/* ============================================================
   IYOSUI Theme - Global Stylesheet  v1.0.0
   ============================================================ */

/* ----------------------------------------------------------
   1. Design Tokens
   ---------------------------------------------------------- */
:root {
  /* Brand Colors  (260616 改訂: PANTONE 7474C 指定。やや緑寄りのティールへ)
     IYOSUI = PANTONE 7474C / CMYK C96 M9 Y32 K29 / RGB 0,118,129 / #007681 */
  --color-primary:       rgb(0 118 129 / 75%); /* 260708確定: PANTONE 7474C = #007681 = rgb(0,118,129) */
  --color-primary-light: #008C96; /* was #0098C0 : 上記から比例で算出 */
  --color-primary-dark:  #007c8f; /* 260704指示: グリーン文字の統一色を#007c8fへ */
  --color-text-teal:     #007c8f; /* 260704指示: グリーン文字の統一色を#007c8fへ */
  --color-gold:          #796428; /* 260703校正: ゴールドはカンプ実測 #796428 に統一 */
  --header-pull: 148px;           /* 260703校正: ヒーローをヘッダー下に潜り込ませる量。260714田中様: 帯を少し広く(132→148) */
  --color-accent-green:  #3A8C5C;
  --color-accent-warm:   #D97A45;

  /* Text */
  --color-text:          #1A1A2E;
  --color-text-sub:      #5A6476;
  --color-text-white:    #FFFFFF;

  /* Backgrounds */
  --color-bg:            #FFFFFF;
  --color-bg-light:      #cddfe2; /* 260703校正: 薄ブルーグリーン背景を統一（top.ai実測 205,223,226） */
  --color-bg-seafoam:    #c7dbdf; /* 260720ユーザー確定値(旧 rgba(0,91,106,0.2)) */
  --color-bg-dark:       #003A3F; /* was #003A50 : フッター等の濃いティール。新ブランド色に合わせ緑寄りへ */
  --color-bg-gray:       #EEEFF2;

  /* Border & Divider */
  --color-border:        #BCD4DD; /* was #D0DFE8 */
  --color-border-light:  #DCE8EE; /* was #E8EEF4 */

  /* Typography */
  /* 和文: カンプはHiragino Sans。Apple系は実Hiraginoで一致、非Appleは近似のZen Kaku Gothic New(Google) */
  --font-jp:   'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Zen Kaku Gothic New', 'Noto Sans JP', 'Meiryo', sans-serif;
  /* 欧文: カンプはSource Sans → Google Fontsの Source Sans 3 */
  --font-en:   'Source Sans 3', 'Source Sans Pro', 'Hiragino Sans', sans-serif;
  --base-size: 16px;
  --lh-body:   1.8;
  --lh-heading: 1.35;

  /* Spacing */
  --sp-xs:  .5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 24px;

  /* Effects */
  --radius:      4px;
  --radius-lg:   8px;
  --shadow-sm:   0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.12);
  --transition:  .25s ease;

  /* Header */
  --header-h: 70px;
}

/* ----------------------------------------------------------
   2. Reset
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--base-size); scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  font-size: 1rem;
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ----------------------------------------------------------
   3. Base Typography
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-heading);
  font-weight: 700;
  letter-spacing: .02em;
}

h1 { font-size: 44px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------
   4. Layout
   ---------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow {
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  color: #007c8f; /* 260704ユーザー確定値(#006a82→#007c8f) */
}

/* 1200px以上: コンテンツ幅を固定し左右マージンautoで中央寄せ（パディング0） */
@media (min-width: 1200px) {
  .container,
  .breadcrumb ol,
  .site-header__utility-inner,
  .site-header__main-inner,
  .site-footer__main-inner,
  .site-footer__bottom-inner {
    width: 1200px;
    max-width: 1200px;
    padding-inline: 0;
    margin-inline: auto;
  }
}

.section {
  padding-block: var(--sp-xl);
}

.section--sm {
  padding-block: var(--sp-lg);
  padding-top: 9rem;
  padding-bottom: 10.5rem;
}

.section--bg-light   { background: var(--color-bg-light); }
.section--bg-seafoam { background: var(--color-bg-seafoam); }
.section--bg-gray    { background: var(--color-bg-gray); }

/* ----------------------------------------------------------
   セクション内・地の文の左右ガター（PCのみ150px）
   ・:where() で詳細度0 → 個別調整済みの要素（クラス指定）が常に優先
   ・container 直下の p / 見出し / sec-head のみ（カード・グリッド・テーブルは対象外）
   ・トップ(.home)は対象外、タブレット以下は通常余白
   ---------------------------------------------------------- */
/* 260717⑤: 1200px以上はヒーロー高さを幅に比例（1200:548≒2.19維持）→横に広げても構図固定 */
@media (min-width: 1200px) {
  .page-hero { min-height: calc(100vw / 2.19); }
}

@media (min-width: 1200px) {
  :where(
    body:not(.home) .l-main .section > .container > p,
    body:not(.home) .l-main .section > .container > h2,
    body:not(.home) .l-main .section > .container > h3,
    body:not(.home) .l-main .section > .container > .sec-head,
    body:not(.home) .l-main .section > .container--narrow > p,
    body:not(.home) .l-main .section > .container--narrow > h2,
    body:not(.home) .l-main .section > .container--narrow > h3,
    body:not(.home) .l-main .section > .container--narrow > .sec-head
  ) {
    padding-inline: 150px;
  }
}
.section--bg-dark    { background: var(--color-bg-dark); color: var(--color-text-white); }

/* Grid */
.grid { display: grid; gap: var(--sp-md); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   5. Section Heading
   ---------------------------------------------------------- */
.sec-head {
  margin-bottom: var(--sp-lg);
}

/* 260721ユーザー確定: トップヒーローのスクロールキュー非表示（該当要素があれば） */
.top-hero__scroll-cue { display: none; }

/* 260721ユーザー確定: コンプラ(18)・プライバシー(19)のみ見出し・本文・リストを左パディング */
.page-id-18 .sec-head,
.page-id-19 .sec-head { padding-left: 24px; }
.page-id-18 .l-main p,
.page-id-19 .l-main p { padding-left: 24px; }
.page-id-18 .compliance-list,
.page-id-19 .privacy-dl { padding-left: 24px; }
/* 260721ユーザー確定: 番号付きリストはmarginで左へ(base padding-left:1.6emの番号字下げは保持) */
.page-id-19 .privacy-basics { margin-left: 24px; }

.sec-head__en {
  display: block;
  font-family: var(--font-en);
  font-size: 1.375rem; /* 260708校正: 英字見出し「細く・小さく」(1.8rem=28.8→22px) */
  font-weight: 300;    /* Light(細く)は維持 */
  letter-spacing: 0.02em; /* 260708校正: 字間ツメ */
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: .4em;
}

/* 260721web校正: 全ページの英字サブタイトルを太く統一（田中様確定「太く」／300・400が混在していた）
   ※ Source Sans 3 の SemiBold(600)。個別の300/400指定に勝つため !important */
.sec-head__en { font-weight: 600 !important; }

.sec-head__ja {
  font-size: 26px;     /* 260708校正: 和文見出し「太く・小さく」(32→26px) */
  font-weight: 500;    /* 260708校正: 太く(300→500) */
  color: var(--color-text);
}

.sec-head__sub {
  margin-top: .75em;
  color: var(--color-text-teal);
  font-size: 1.35rem;
  order: -1;
}

.sec-head--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sec-head.sec-head--center span.sec-head__en {
  order: 1;
  font-weight: 300; /* 260705ユーザー確定値(700→300) */
}

.sec-head.sec-head--center h2.about-dash-head__ja {
  font-weight: 400;
}

.sec-head--line .sec-head__ja::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  margin-top: .6em;
}

.sec-head--center.sec-head--line .sec-head__ja::after {
  margin-inline: auto;
}

/* ----------------------------------------------------------
   6. Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .75em 2em;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .05em;
  border-radius: 0; /* 260703校正: ボタンの角Rトル(全ページ統一) */
  transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid transparent; /* 260714校正10_1「枠トル」: 塗り75%透過×不透明枠の色差で枠線に見えていた */
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary); /* 260703校正: 囲み細く(2→1px) */
  font-weight: 400;      /* 260708校正: アウトラインボタン「やや細く」(理念体系/沿革詳細/FAQ等) */
  justify-content: center; /* 囲みの中央に */
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid #fff;
}
.btn--white:hover {
  background: transparent;
  color: #fff;
}

.btn--arrow::after {
  content: '→';
  font-family: var(--font-en);
}

/* ----------------------------------------------------------
   7. Breadcrumb
   ---------------------------------------------------------- */
.breadcrumb {
  padding-block: .75rem;
  border-bottom: 0;          /* 260703校正: パンくず帯の色トル */
  background: transparent;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  font-size: .8rem;
  color: var(--color-text-sub);
}

.breadcrumb__item { display: flex; align-items: center; }

.breadcrumb__item + .breadcrumb__item::before {
  content: '›';
  margin-right: .25rem;
  color: var(--color-border);
}

.breadcrumb__item a:hover { color: var(--color-primary); }

.breadcrumb__item--current span { color: var(--color-text-sub); }

/* ----------------------------------------------------------
   8. Inner Page Hero
   ---------------------------------------------------------- */
.page-hero {
  position: relative;
  min-height: calc(400px + var(--header-pull)); /* 260714③田中様: Topと現状の中間程度に拡大(300→400) */
  /* 260717⑤: 横に広げても写真の構図が変わらないよう、1200px以上はヒーロー高さを幅に比例させる
     （1200px時の比率 1200:548 ≒ 2.19 を維持＝どの幅でも同じ切り抜きになる） */
  margin-top: calc(-1 * var(--header-pull));    /* 260703校正: 透過ヘッダーの下に写真が透ける */
  padding-top: var(--header-pull);
  display: flex;
  align-items: center;
  background: var(--color-bg-dark);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* 260720ユーザー指定: 薄いマスクを削除（元写真をそのまま表示） */
  background: none;
  z-index: 1;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--sp-lg);
  margin-left: 84px;  /* 260721ユーザー確定: 左端の縦線ソロエル(84px) */
}

.page-hero__title {
  color: #fff;
  font-size: 26px; /* 260703校正: ページタイトル「小さく」(31→26) */
  font-weight: 400;
  letter-spacing: .03em;
}

.page-hero__title em {
  display: block;
  font-style: normal;
  font-family: var(--font-en);
  font-size: .82em; /* 260708校正: ヒーロー英字「大きく」(.65→.82em) */
  font-weight: 400;
  letter-spacing: .1em;
  opacity: .85;
  margin-top: .5em;
  text-transform: none; /* 260703校正: 全大文字→頭文字のみ大文字 */
}

/* 260721ユーザー確定: 会社概要(page-id-8)のヒーロー英字の字間を詰める */
.page-id-8 .page-hero__title em { letter-spacing: 0.04em; }

/* 260720クライアント: お知らせ(一覧＋各記事)のヒーローは画像・ロゴ・グラデを廃し、
   コーポレート薄グリーン(--color-bg-light)の無地に統一。文字はティールで可読性確保 */
.page-hero--news .page-hero__bg { background: var(--color-bg-light) !important; }
.page-hero--news::before { background: none; }
.page-hero--news .page-hero__title,
.page-hero--news .page-hero__title em { color: var(--color-primary-dark); }
/* 260720クライアント: 投稿ヒーローは高すぎるので低く（base/≥1200pxの高さ指定を上書き） */
.page-hero--news { min-height: calc(150px + var(--header-pull)) !important; }

/* ----------------------------------------------------------
   9. Cards
   ---------------------------------------------------------- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__img { overflow: hidden; aspect-ratio: 4/3; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__img img { transform: scale(1.04); }

.card__body { padding: var(--sp-sm) var(--sp-md); }

.card__cat {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .4em;
}

.card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: .5em;
}

.card__meta {
  font-size: .8rem;
  color: var(--color-text-sub);
}

/* ----------------------------------------------------------
   10. News List (共通)
   ---------------------------------------------------------- */
.news-list { }

.news-item {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: .75rem var(--sp-sm);
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--color-border-light);
  font-size: .9rem;
}

.news-item:first-child { border-top: 1px solid var(--color-border-light); }

.news-item__date {
  color: var(--color-text-sub);
  font-family: var(--font-en);
  font-size: .85rem;
  white-space: nowrap;
}

.news-item__cat {
  display: inline-block;
  padding: .1em .6em;
  font-size: .7rem;
  font-weight: 600;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius);
  white-space: nowrap;
  margin-right: .5em;
}

.news-item__title a:hover { color: var(--color-primary); text-decoration: underline; }

/* ----------------------------------------------------------
   11. Pagination
   ---------------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding-block: var(--sp-lg);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}

.pagination a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

.pagination .current {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 700;
}

/* ----------------------------------------------------------
   12. Tags / Category Badges
   ---------------------------------------------------------- */
.tag {
  display: inline-block;
  padding: .2em .8em;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 2em;
  background: var(--color-bg-light);
  color: var(--color-text-sub);
  border: 1px solid var(--color-border);
}

.tag--primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.tag--green   { background: var(--color-accent-green); color: #fff; border-color: var(--color-accent-green); }

/* ----------------------------------------------------------
   13. Related Page Banners
   ---------------------------------------------------------- */
/* 260703校正: 全ページ「商品紹介のデザイン」に統一
   = 白地の帯 + 薄ブルーグリーンのフラットな矩形カード + 中央寄せ(和文上/欧文下・ゴールド) */
.related-pages { padding-block: var(--sp-xl); background: var(--color-bg); }/* 260708校正: 上下に余白アケル(sp-lg→sp-xl) */

.related-pages__grid {
  display: grid;
  gap: 2px; /* 260704校正: カンプ4-6は細い白ラインで密着(24→2) */
  background: transparent;
}

.related-page-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-lg) var(--sp-md);
  background: var(--color-bg-light);
  transition: opacity var(--transition);
  min-height: 140px;
}

.related-page-item:hover { opacity: .8; }

.related-page-item__ja {
  font-size: 18px;
  font-weight: 300;
  color: var(--color-gold);
  margin-bottom: .1em;   /* 260721web校正01_2: 和名↔英名の行間を詰める(全ページ共通) */
  line-height: 1.2;
}

.related-page-item__en {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-gold);
  letter-spacing: .08em;
}

/* 関連ページ: 1段目3＋残りは左から
   260722cotovia: 下部カードの比率・文字位置をTOP(grid--3)に統一
   →余分な padding-inline:80px と __ja 20px を撤去（TOPと同じ幅・18px に） */
.related-pages__grid--left {
  background: transparent;
  gap: 2px; /* 260704校正: 同上 */
  padding-inline: 0;
}

/* ----------------------------------------------------------
   14. Social Links
   ---------------------------------------------------------- */
.social-links {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: .85rem;
  color: var(--color-text-sub);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.social-link:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* ----------------------------------------------------------
   15. Entry Content (Gutenbergブロック)
   ---------------------------------------------------------- */
.entry-content { max-width: 800px; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2em;
  margin-bottom: .75em;
}

.entry-content h2 {
  font-size: 1.5rem;
  padding-left: .75em;
  border-left: 4px solid var(--color-primary);
}

.entry-content h3 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
}

.entry-content ul, .entry-content ol {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.entry-content ol { list-style: decimal; }

.entry-content table {
  margin-bottom: 1.5em;
  font-size: .9rem;
}

.entry-content th,
.entry-content td {
  padding: .6em 1em;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.entry-content th {
  background: var(--color-bg-light);
  font-weight: 700;
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.entry-content figure { margin-block: 1.5em; }
.entry-content figcaption { font-size: .8rem; color: var(--color-text-sub); margin-top: .5em; }

/* ----------------------------------------------------------
   16. Site Header
   ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgb(0 118 129 / 85%); /* 260703校正: 帯を濃く/透過。260708: 確定色#007681=rgb(0,118,129)へ */
  color: #fff;
  height: 148px;   /* カンプ比132px→260714田中様: ロゴが窮屈に見えるため少し広く(148px) */
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

/* 260710 ④プロトタイプ: トップ動画エリアで3秒無操作→ヘッダーをフェードアウト(JS: is-idle-hidden) */
.site-header {
  transition: transform .55s ease, opacity .55s ease, box-shadow var(--transition);
}
.site-header.is-idle-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* Utility nav (top-right, ティール地に白文字) */
.site-header__utility-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-top: 14px;
}

.utility-nav {
  display: flex;
  align-items: center;
}

.utility-nav li a {
  display: inline-block;
  padding: 4px 16px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
  letter-spacing: .04em;
  transition: color var(--transition);
}

.utility-nav li:last-child a { padding-right: 0; }

.utility-nav li a:hover { color: #fff; }

/* Main row: ロゴ左下 / メインnav右下 */
.site-header__main {
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.site-header__main-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad); /* 260714田中様: ロゴ左端をヒーロータイトルと左揃え(58px撤去) */
  padding-bottom: 14px;
  gap: 32px;
}

/* Logo */
.site-header__logo a {
  display: flex;
  flex-direction: column;
  line-height: 1;
  color: #fff;
  gap: 6px;
}

.site-header__logo-name {
  display: flex;
  justify-content: space-between;   /* IYOSUI を左右均等割付（タグライン幅いっぱい） */
  font-family: var(--font-en);
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 0;                 /* 均等割付は space-between が担うため字間は0 */
  color: #fff;
  line-height: 1;
}

.site-header__logo-tagline {
  font-size: 12px;
  color: rgba(255,255,255,.85);
  letter-spacing: .08em;
  font-family: var(--font-en);
  white-space: nowrap; /* ナビ8項目化で折り返さないように */
}

/* 260708: ロゴ+英文メッセージ画像（支給・白版） */
.site-header__logo-link { display: block; }
.site-header__logo-img { width: 185px; height: auto; display: block; } /* 260718田中様: ロゴやや小さく(210→185) */

/* Main nav */
.site-header__nav { align-self: flex-end; }

.main-nav {
  display: flex;
  align-items: flex-end;
  gap: 0;
}

.main-nav li { position: relative; }

.main-nav > li > a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  transition: opacity var(--transition);
  letter-spacing: .04em;
}

.main-nav > li:last-child > a { padding-right: 0; }

.main-nav > li > a:hover,
.main-nav > li.current-menu-item > a,
.main-nav > li.current-page-ancestor > a {
  opacity: .7;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 6px;
  flex-shrink: 0;
}

.hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------
   17. Mobile Menu
   ---------------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1100;   /* 260721: ヘッダー(1000)より上のレイヤーに */
  width: 320px;
  max-width: calc(100% - 48px);
  height: 100dvh;
  background: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  padding-top: 64px;   /* 260721: ヘッダー上に出すため、閉じるボタン分だけの余白に */
  box-shadow: var(--shadow-md);
}

/* 260721: パネル内の閉じる(✕)ボタン */
.mobile-menu__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.mobile-menu__close span {
  position: absolute;
  left: 4px;
  top: 15px;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}
.mobile-menu__close span:first-child { transform: rotate(45deg); }
.mobile-menu__close span:last-child  { transform: rotate(-45deg); }

.mobile-menu.is-open { transform: translateX(0); }

.mobile-nav { padding: var(--sp-sm) 0; }

.mobile-nav li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  font-size: .95rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
}

.mobile-nav li a::after { content: '›'; color: var(--color-primary); }

.mobile-nav li a:hover { background: var(--color-bg-light); color: var(--color-primary); }

/* 260714スマホ校正13「大きく（他と同じサイズ）」: お問合せ・採用情報を他メニュー項目と同一の見た目に */
.mobile-menu__utility {
  padding: 0 0 var(--sp-md);
  display: flex;
  flex-direction: column;
}

.mobile-menu__utility a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  font-size: .95rem;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text);
}
.mobile-menu__utility a::after { content: '›'; color: var(--color-primary); }
.mobile-menu__utility a:hover { background: var(--color-bg-light); color: var(--color-primary); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 1099;   /* 260721: ヘッダー(1000)より上・メニュー(1100)の直下。ヘッダー含め全面を覆いタップで閉じる */
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

/* ----------------------------------------------------------
   18. Site Footer
   ---------------------------------------------------------- */
.site-footer {
  position: relative;
  background: var(--color-bg-dark);
  color: rgba(255,255,255,.85);
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);   /* 白文字の視認性向上 */
}

/* 水中(水面)写真を背景に。260720: 支給版(アセット12)は色調焼込み済みのためオーバーレイ廃止 */
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url(../images/footer-bg.jpg?v=4) center / cover no-repeat;
  z-index: 0;
}

.site-footer > * { position: relative; z-index: 1; }

.site-footer__main {
  padding-block: var(--sp-xl) var(--sp-lg);
}

.site-footer__main-inner {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-left: 112px;
}

/* 上段: ブランド(左) と SNS(右) を左右に分ける */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-lg);
}

.footer-brand__logo {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .04em;
  margin-bottom: .3rem;
}

.footer-brand__name {
  font-size: 1.3rem;    /* 260718→260721web校正(01_3): もう少し大きく(1.15→1.3rem) */
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: .25rem;
}

.footer-brand__tagline {
  font-size: .75rem;
  opacity: .6;
  margin-bottom: var(--sp-md);
  font-family: var(--font-en);
  letter-spacing: .04em;
}

.footer-brand__address {
  font-size: .86rem;    /* 260721ユーザー確定: .66→.86rem */
  line-height: 1.8;
  opacity: 1;
  font-style: normal;
}

.footer-brand__address a {
  opacity: .85;
  transition: opacity var(--transition);
}

.footer-brand__address a:hover { opacity: 1; color: #fff; }

/* Social icons: 右上に1行（facebook → instagram → X → youtube） */
.footer-social {
  display: flex;
  gap: .6rem;
  justify-content: flex-end;
  margin-top: 0;
  margin-right: 30px;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;   /* 260718田中様: SNSアイコンをやや小さく(40→32) */
  height: 32px;
  transition: opacity var(--transition);
  flex-shrink: 0;
}

.footer-social__link img,
.footer-social__link svg { pointer-events: none; width: 100%; height: 100%; }

.footer-social__link:hover { opacity: .6; }

/* Footer nav columns: カンプ準拠で2列・左詰め（列はコンテンツ幅） */
.footer-nav {
  display: grid;
  grid-template-columns: max-content max-content;
  justify-content: start;
  gap: var(--sp-sm) var(--sp-lg);
}

.footer-nav__col h4 {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.45);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-nav__col ul li a {
  display: block;
  font-size: .66rem;  /* 260708校正: サイトマップさらにやや小さく(.7→.66) */
  padding-block: .3rem;
  opacity: .68;
  transition: opacity var(--transition), color var(--transition);
  line-height: 1.4;
}

.footer-nav__col ul li a:hover { opacity: 1; color: #e6cf92; text-decoration: underline; } /* 260722伊達様: hover視認性UP（明るいゴールド＋下線） */

/* Footer bottom bar */
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 1rem;
  background: rgba(0,0,0,.25);
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.footer-legal {
  display: flex;
  gap: var(--sp-sm);
  font-size: .75rem;
  opacity: .55;
}

.footer-legal a:hover { opacity: 1; text-decoration: underline; }

.footer-copy {
  font-size: .72rem;
  font-family: var(--font-en);
  opacity: .45;
  letter-spacing: .03em;
}

/* ----------------------------------------------------------
   19. Main content offset for sticky header
   ---------------------------------------------------------- */
.l-main { padding-top: 0; }

/* ----------------------------------------------------------
   20. Utility
   ---------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Scroll reveal */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.text-center { text-align: center; }
.text-right  { text-align: right; }

/* PC専用の強制改行（br.pc-only）。タブレット以下では自然折り返しに任せる */
@media (max-width: 900px) {
  br.pc-only { display: none; }
}

/* スマホ専用の強制改行（br.sp-only）。260714携帯校正: 見出し末尾1文字だけの改行防止に使用 */
br.sp-only { display: none; }
@media (max-width: 599.98px) {
  br.sp-only { display: inline; }
}

.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }

/* ----------------------------------------------------------
   21. Responsive — Mobile
   ---------------------------------------------------------- */
@media (max-width: 1080px) {
  .main-nav > li > a { padding-inline: .55rem; font-size: .78rem; }
}

@media (max-width: 900px) {
  :root { --header-h: 72px; --header-pull: 72px; } /* 260714校正01_1: 帯を広げロゴが余裕をもって収まるように(60→72) */

  /* モバイルは固定高さの横並びヘッダーに（後日詰める） */
  .site-header { height: var(--header-h); flex-direction: row; align-items: center; }
  .site-header__main { flex: 1; align-items: center; }
  .site-header__main-inner { align-items: center; padding-bottom: 0; }
  .site-header__logo-name { font-size: 24px; }
  .site-header__logo-img { width: 118px; } /* 260721sp01_1: もう少しだけ小さく(134→118) */
  .site-header__main-inner { padding-left: 30px; } /* 260719校正00_1: ロゴを少し右へ */

  .site-header__utility { display: none; }

  .main-nav { display: none; }

  .hamburger { display: flex; }

  .site-footer__main-inner {
    gap: var(--sp-lg);
    padding-left: var(--container-pad);
  }

  /* スマホ: SNSを最上段に（DOMでは2番目→column-reverseで先頭へ） */
  .footer-top {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: var(--sp-md);
  }

  .footer-social { justify-content: flex-start; }

  .footer-nav { grid-template-columns: repeat(2, 1fr); }

  .page-hero { min-height: calc(220px + var(--header-pull)); }
}

@media (max-width: 600px) {
  :root {
    --sp-xl: 4rem;
    --sp-lg: 3rem;
    --container-pad: 20px;
  }

  /* clamp廃止に伴う小画面のfont-size（旧clampの下限相当） */
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }
  .sec-head__ja { font-size: 24px; }
  .page-hero__title { font-size: 28px; }

  .footer-nav { grid-template-columns: 1fr; }

  .news-item { grid-template-columns: 1fr; }
  .news-item__date { display: none; }

  .site-footer__bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ----------------------------------------------------------
   22. Back to Top Button
   ---------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 128, 172, .35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(0, 128, 172, .45);
}

.back-to-top svg {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
  }
}
