/* ───────────────────────────────
   １．全ページ共通コンテンツ幅
   ─────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;    /* お好みで 1024px〜1400px の間で調整 */
  margin: 0 auto;
  padding: 0 2rem;      /* 両端の余白 */
  box-sizing: border-box;
}

/* グリッド部分も内包されるように */
.container .case-list-grid,
.container .front-case-list .case-list-grid,
.container .work-archive .case-list-grid {
  margin: 0 auto;
}
/* ─────────────────────────────────────────
   ヘッダー：全体
───────────────────────────────────────── */
.site-header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.site-header a{
  text-decoration: none;
}

.site-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  justify-content: space-between;
}

/* 左：自由HTML領域 */
.header-left {
  flex: 1 1 auto;
  z-index: 10;
  width: 100%;
  max-width: 300px;
  margin: 10px 0 0 30px;
}

/* 中央：サイト名＋サブタイトルを完全中央揃え */
.header-center {
  width: 100%;
  position: relative;
  text-align: center;
  z-index: 5;
  height: 210px;
}
.header-center .site-title {
  margin: 65px 0 12px;
  font-size: 135px;
  line-height: 1;
  font-weight: 100 !important;
}
.header-center .site-title a {
  text-decoration: none;
  color: #000;
}
.header-center .site-subtitle {
  margin: .25rem 0 3rem;
  font-size: 16px;
  text-decoration: none;
}
.work-header .site-title{
  margin: 40px 0 20px;
  font-size: 80px;
  line-height: 1;
  font-weight: 100 !important;
}
.header-wave.work-wave{
  position: relative;          /* z-index を有効にするため */
  width: 100%;
  height: 200px;               /* 元画像の高さに合わせる */
  margin-bottom: -30px;        /* 下に 30px 分だけ重ねる（調整可） */
  margin-top: -120px;
  background: url("../images/back_upper.webp") repeat-x top center;
  background-color: #f2f2f2;
  background-size: auto 200px; /* 高さ 100px に収める */
}
.header-center.work-header {
  width: 100%;
  position: relative;
  text-align: center;
  z-index: 5;
  height: auto;
  margin-top: -80px;
}
/* 右：Contactボタン＋ハンバーガーボタン */
.header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  z-index: 10;
  margin-left: auto;
  text-align: center;
}
.header-right .contact-icon {
  display: inline-block;
  margin-right: 100px;
  padding: 1rem 0 0 0;
  text-decoration: none;
  border-radius: 4px;
  font-size: .875rem;
}
.contact-icon img{
  width: 100%;
  max-width: 40px;
}

.header-right a,
.header-right a:hover{
  transition: 0.2s ease;
}

.header-right a:hover{
  opacity:0.5;
}

.contactus{
  font-size: smaller;
  text-decoration: none;
  color: #000;
}
/* ─────────────────────────────────────────
   ヘッダー直下：波（back_upper.webp）を横リピート
───────────────────────────────────────── */
.header-wave {
  position: relative;          /* z-index を有効にするため */
  width: 100%;
  height: 200px;               /* 元画像の高さに合わせる */
  margin-bottom: -30px;        /* 下に 30px 分だけ重ねる（調整可） */
  background: url("../images/back_upper.webp") repeat-x top center;
  background-color: #f2f2f2;
  background-size: auto 200px; /* 高さ 100px に収める */
}
/* メインコンテンツが header-wave の下にくるように */
#content {
  position: relative;
  z-index: 0;
  background-color: #f2f2f2;
  padding-bottom: 8rem;
}
/* ─────────────────────────────────────────────
   フッター全体
───────────────────────────────────────────── */
.site-footer {
  background: #333;
  color: #fff;
}

.site-footer a{
  text-decoration: none;
}

/* コンテンツ幅をメインと揃える */
.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 3rem 1rem 0 1rem;
  box-sizing: border-box;
}
.site-footer .footer-copyright{
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 1rem 1rem 2rem 1rem;
  text-align: center;
  font-size: 13px;
}
/* ─────────────────────────────────────────────
   フッター内 3カラムレイアウト
───────────────────────────────────────────── */
.footer-inner {
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
}

/* 共通カラム設定 */
.footer-col {
  box-sizing: border-box;
  padding: 0 1rem;
}

/* 1カラム目（ロゴ+タイトル+住所）幅を絞る */
.footer-col--left {
  flex: 0 0 auto;    /* 幅を240pxに固定 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 4%;;
}
.footer-logo img {
  max-width: 140px;
  width: 300px;
  height: auto;
  background-color: #333;
}
.footer-title {
  margin: 0;
  font-size: 4rem;
  font-weight: 100;
}
.footer-subtitle {
  margin: 0 0 1rem;
}
.footer-address {
  font-style: normal;
  line-height: 1.5;
  margin: 0;
}

/* フッター中央カラム */
.footer-col--center {
  display: flex;
  flex-direction: column;
  align-items: center;    /* 横方向中央揃え */
  gap: 1rem;
  padding-top: 4rem;
}

/* お問い合わせボタン */
.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid #fff;
  border-radius: 10px;
  color: #fff !important;
  text-decoration: none;
  transition: background .2s ease;
}

.footer-contact a{
  color: #fff !important;
}
.footer-contact:hover {
  background: rgba(255,255,255,0.1);
}

/* アイコンサイズ調整 */
.footer-contact-icon {
  display: block;
  width: 1.6em;
  height: auto;
  filter: brightness(0) invert(1);
}

/* プライバシーリンク周り */
.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
}
.footer-sep {
  line-height: 1;
  pointer-events: none;  /* 線自体のクリック・選択を無効化 */
  user-select: none;     /* 線自体をコピー不可に */
}
.footer-privacy {
  color: #fff !important;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-privacy:hover {
  color: #ddd !important;
}

/* 3カラム目（バナー + コピーライト） */
.footer-col--right {
  flex: 0 0 304px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: .5rem;
  margin-left: auto;
}
.footer-banner img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.2s;
}

.footer-banner img:hover{
  opacity: 0.7; 
}

/* ─────────────
   白い菱形アイコン
   ───────────── */
.diamond {
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  margin: 0 auto 1rem;
}

/* ─────────────
   セクションヘッダー共通
   ───────────── */
.section-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section-header .section-title {
  margin: 0;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: 0.2rem;
}
.section-header .section-subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: normal;
  letter-spacing: 0.2rem;
}
.section-header .section-nametitle { 
  margin: 20px 0 0 0;
  font-size: 20px;
  font-weight: normal;
  letter-spacing: 0.2rem;
}

.section-header .section-nametitle:before {
    content: "";
    top: 0px;
    width: 1px;
    height: 25px;
    background: #000;
    display: block;
    position: relative;
    left: 50%;
}

/* フロント用微調整 */
.front-intro .section-header {
  margin-top: 2rem;
}

/* 一覧・アーカイブのグリッド前 */
.work-archive .section-header {
  margin-bottom: 3rem;
}

/* ─────────────────────────────────────────────
   フロント：紹介文セクション
───────────────────────────────────────────── */
.work-intro {
  text-align: center;
  padding: 1rem 1rem;
}

.work-intro .intro-title {
  font-size: 1.75rem;
  margin: 0 0 .5rem;
}
.work-intro .intro-title .intro-sub {
  display: block;
  font-size: .875rem;
  margin-top: .25rem;
}
.work-intro .intro-text {
  font-size: 1rem;
  margin: .5rem auto 0;
  max-width: 600px;
  line-height: 1.6;
}

.pagination {
  text-align: center;
  margin: 4rem 0 2rem 0;
}

/* 丸ボタン用に余白をリセットし、幅・高さを固定 */
.pagination .page-numbers {
  display: inline-block;
  width: 2.4rem;           /* ボタンの直径 */
  height: 2.4rem;          /* ボタンの直径 */
  line-height: 2.4rem;     /* 縦中央揃え */
  margin: 0 0.3rem;        /* ボタン間の空き */
  background: #fff;
  color: #000;
  text-decoration: none;
  border-radius: 50%;      /* ここで丸くする */
  box-sizing: border-box;  
  font-size: 1rem;
  transition: background .3s, color .3s;
}

/* 現在ページ（アクティブ）の丸ボタン */
.pagination .page-numbers.current {
  background: #4e4d4d;
  color: #fff;
  border-color: #4e4d4d;
  pointer-events: none;
}

.pagination .page-numbers:hover{
  background:#4e4d4d;
  color: #fff
}

/* ----------------------------------------
   ボタン本体：常に表示 + 中央寄せ + 色指定
---------------------------------------- */
#backToTop {
  position: fixed;
  bottom: 40px;
  right: 80px;
  display: flex;                  /* いつも見える */
  align-items: center;            /* 疑似要素を中央に */
  justify-content: center;
  width: 70px;
  height: 70px;
  border: 1px solid #000;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  z-index: 1000;
  transition: background .3s, color .3s;
}

/* ２本の線を描画 */
#backToTop::before,
#backToTop::after {
  content: "";
  position: absolute;
  /* 線の底辺がボタン中央に揃うように bottom を設定 */
  bottom: calc(60% - 1px); 
  left: 50%;
  width: 2px;       /* 線の太さ */
  height: 14px;     /* 線の長さ */
  background: #000; /* 線の色 */
  transform-origin: bottom center;
}

/* 左腕 */
#backToTop::before {
  transform: translateX(-0%) rotate(-135deg);
}

/* 右腕 */
#backToTop::after {
  transform: translateX(-60%) rotate(135deg);
}

#backToTop:hover{
  background:#e9e9e9;
  color: #fff
}

a:focus:not(:focus-visible) {
  outline: none;
}

/* ─────────────────────────────────────────────
   404：専用クラス
───────────────────────────────────────────── */
.message{
  text-align: center;
  margin: 0;
}
#error .section-title{
  font-size: 30px;
}