/* =========================================================
   FELUNEA 公式ホームページ 第4稿（LUNA素材版）
   色・文字は :root でまとめて管理する
   ========================================================= */
/* ---------- フォント（SIL Open Font License。ページで使う文字だけに絞ったもの。ライセンスは fonts フォルダの OFL-*.txt）
   文言を変えたら、新しい漢字が入っていないか確認し、必要なら作り直す（README参照） ---------- */
@font-face {
  font-family: "FELUNEA Mincho";
  src: url("../assets/fonts/noto-serif-jp-subset.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "FELUNEA Serif";
  src: url("../assets/fonts/cormorant-garamond-subset.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* カラーパレット（Webデザイン計画・暫定） */
  --night: #0B1B3A;      /* メイン・夜空 */
  --star: #1A3A70;       /* サブ・星空 */
  --wc: #6D8BB5;         /* アクセント・水彩（文字には使わない） */
  --paper: #F8F5EE;      /* ベース・紙 */
  --white: #FFFFFF;
  --gold: #D9B56A;       /* アクセント・光（細線・小さな装飾だけ） */

  --text: #26324A;       /* 本文（紙の上でコントラスト約12） */
  --text-sub: #4A556B;   /* 補足（約7） */
  --line: rgba(11, 27, 58, .14);
  --line-wc: rgba(109, 139, 181, .38);
  --on-night: #E9EEF8;
  --on-night-sub: #C3CEE2;

  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-mincho: "FELUNEA Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", YuMincho, "Noto Serif JP", "Noto Serif CJK JP", serif;
  --font-serif: "FELUNEA Serif", "FELUNEA Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Times New Roman", serif;

  --gutter: 20px;
  --max: 1200px;
  --header-h: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .04em;
  font-feature-settings: "palt" 1;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
.nowrap { display: inline-block; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--white); color: var(--night); border-radius: 4px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico-line { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--night); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }

.container { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  color: var(--white);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled, .menu-open .site-header { background: rgba(11, 27, 58, .94); box-shadow: 0 1px 0 rgba(217, 181, 106, .18); }
.header-inner { height: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; min-height: 44px; } /* 押しやすさ：高さ44px以上 */
.brand-mark { width: 20px; height: 20px; fill: currentColor; }
.brand-name { font-family: var(--font-serif); font-weight: 500; font-size: 20px; letter-spacing: .32em; margin-right: -.32em; }

.menu-toggle { position: relative; z-index: 2; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; color: var(--white); cursor: pointer; }
.menu-bar, .menu-bar::before, .menu-bar::after { position: absolute; left: 11px; width: 22px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.menu-bar { top: 21px; }
.menu-bar::before, .menu-bar::after { content: ""; left: 0; }
.menu-bar::before { top: -7px; }
.menu-bar::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bar::before { transform: translateY(7px) rotate(45deg); background: var(--white); }
.menu-toggle[aria-expanded="true"] .menu-bar::after { transform: translateY(-7px) rotate(-45deg); background: var(--white); }

/* スマホ・タブレット：全画面メニュー */
.global-nav {
  position: fixed; inset: 0; z-index: 1;
  padding: calc(var(--header-h) + 24px) 32px 40px;
  background: var(--night) url("../assets/img/footer/footer-sp.jpg") center / cover no-repeat;
  background-image: image-set(url("../assets/img/footer/footer-sp.avif") type("image/avif"), url("../assets/img/footer/footer-sp.jpg") type("image/jpeg"));
  overflow-y: auto;
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility .35s;
}
.global-nav.is-open { visibility: visible; opacity: 1; }
.global-nav a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(233, 238, 248, .14); }
.nav-ja { white-space: nowrap; }
@media (max-width: 359px) { /* 320px幅：英字の上に日本語を重ねて、日本語が途中で折れないようにする */
  .global-nav a { flex-direction: column; gap: 2px; padding: 12px 0; }
  .nav-en { min-width: 0; }
}
.nav-en { font-family: var(--font-serif); font-weight: 600; font-size: 13px; letter-spacing: .24em; color: var(--gold); min-width: 124px; }
.nav-ja { font-family: var(--font-mincho); font-size: 17px; letter-spacing: .14em; }
.global-nav li:first-child .nav-ja { display: none; }
.global-nav li:first-child .nav-en { color: var(--on-night); font-size: 15px; }
.nav-contact .ico { display: none; }
body.menu-open { overflow: hidden; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) 72px;
  background: var(--night);
  color: var(--white);
  text-align: center;
}
.hero-bg, .hero-bg img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: center top; }
/* スマホ：月は文字の上に「並べて」置く（背の低い画面でも文字と重ならない。2026-11-28 検証で修正） */
.hero-moon { position: relative; z-index: -1; flex: none; width: min(62vw, 300px); margin: -12px auto 0; transform: translateX(-6%); }
.hero-moon img { width: 100%; }
.hero::after { /* 文字の後ろだけ、ごく薄く暗くして読みやすくする */
  content: ""; position: absolute; z-index: -1; left: 50%; bottom: 0; width: 140%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(11, 27, 58, .55), rgba(11, 27, 58, 0));
  pointer-events: none;
}
.hero-copy { position: relative; margin-top: auto; padding-top: 8px; }
.hero-brand { font-family: var(--font-serif); font-weight: 500; font-size: clamp(36px, 11vw, 64px); line-height: 1.1; letter-spacing: .3em; margin-right: -.3em; }
.hero-tagline { margin-top: 12px; font-family: var(--font-serif); font-weight: 600; font-size: 11.5px; letter-spacing: .18em; white-space: nowrap; color: var(--on-night); text-shadow: 0 1px 10px rgba(11, 27, 58, .8); }
.hero-tagline span { margin: 0 .3em; }
.hero-rule { display: block; width: 44px; height: 1px; margin: 20px auto; background: var(--gold); opacity: .8; }
.hero-title { font-family: var(--font-mincho); font-weight: 500; font-size: clamp(24px, 6.6vw, 40px); line-height: 1.6; letter-spacing: .14em; text-shadow: 0 1px 18px rgba(11, 27, 58, .6); }
.hero-sub { margin-top: 6px; font-family: var(--font-mincho); font-size: clamp(15px, 4vw, 19px); letter-spacing: .22em; color: var(--on-night); }
.hero-lead { margin-top: 18px; font-size: 14px; line-height: 1.9; letter-spacing: .08em; color: #DDE5F3; text-shadow: 0 1px 12px rgba(11, 27, 58, .7); } /* 2026-11-28 LUNA指示②：わずかに明るく */
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 0 28px; border-radius: 999px; font-family: var(--font-mincho); font-size: 15px; letter-spacing: .12em; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s; }
.btn-light { background: var(--paper); color: var(--night); }
.btn-light:hover { background: var(--white); }
/* 2026-11-28 LUNA指示①：雲に重なっても白文字が読めるよう、半透明のネイビーを敷く（スマホは濃いめ） */
.btn-ghost { border: 1px solid rgba(233, 238, 248, .75); color: var(--white); background: rgba(11, 27, 58, .66); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: rgba(26, 58, 112, .75); border-color: var(--white); }

/* ---------- 紙の面（中央のセクション） ---------- */
/* 紙テクスチャは継ぎ目なく並べられない素材のため、セクションごとに引き伸ばして敷く */
.paper { position: relative; background-color: var(--paper); }
.section {
  position: relative; overflow: hidden; padding: 72px 0;
  background-color: var(--paper);
  /* 紙の凹凸が強すぎないよう、紙色を薄く重ねてから敷く */
  background-image: linear-gradient(rgba(248, 245, 238, .5), rgba(248, 245, 238, .5)), url("../assets/img/texture/paper.jpg");
  background-image: linear-gradient(rgba(248, 245, 238, .5), rgba(248, 245, 238, .5)), image-set(url("../assets/img/texture/paper.avif") type("image/avif"), url("../assets/img/texture/paper.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
}
.section + .section { border-top: 1px solid var(--line); }
.section-en { font-family: var(--font-serif); font-weight: 600; font-size: 13px; letter-spacing: .32em; color: var(--text-sub); }
.section-title { margin-top: 4px; font-family: var(--font-mincho); font-weight: 500; font-size: clamp(28px, 7.4vw, 38px); line-height: 1.45; letter-spacing: .14em; color: var(--night); }
.section-rule { display: block; width: 36px; height: 1px; margin-top: 18px; background: var(--gold); }
.section-lead { margin-top: 18px; font-family: var(--font-mincho); font-size: 16px; line-height: 2; letter-spacing: .08em; color: var(--text); }
.section-note { margin-top: 10px; font-size: 14px; color: var(--text-sub); }

.deco { position: absolute; z-index: 0; pointer-events: none; }
.deco img { width: 100%; }
.deco-wc { opacity: .55; }
.deco-gold { opacity: .7; display: none; } /* スマホでは金の曲線をヒーローだけに絞る */

/* ---------- できること ---------- */
.deco-strengths { width: 520px; left: -220px; bottom: -150px; }
.deco-gold-strengths { width: 900px; max-width: none; left: -300px; top: 10px; opacity: .45; }
.split { display: grid; gap: 36px; }
.skill-list { border-top: 1px solid var(--line); }
.skill-list li {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 18px; row-gap: 2px; align-items: center;
  padding: 18px 4px; border-bottom: 1px solid var(--line);
}
.skill-list .ico-line { grid-row: span 2; }
.skill-name { font-family: var(--font-mincho); font-size: 17px; letter-spacing: .1em; color: var(--night); }
.skill-desc { font-size: 14px; line-height: 1.7; color: var(--text-sub); }

/* ---------- サービス ---------- */
.service-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.service-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 30px 1fr; column-gap: 18px; align-items: center;
  padding: 22px 22px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--line-wc);
  border-radius: 4px;
}
.service-card::before { /* 水彩のにじみを右上に薄く */
  content: ""; position: absolute; z-index: -1; top: -40px; right: -70px; width: 220px; height: 165px;
  background: url("../assets/img/deco/watercolor.png") center / contain no-repeat;
  background: image-set(url("../assets/img/deco/watercolor.avif") type("image/avif"), url("../assets/img/deco/watercolor.png") type("image/png")) center / contain no-repeat;
  opacity: .45;
}
.service-card .ico-line { grid-row: span 2; }
.service-card h3 { font-family: var(--font-mincho); font-weight: 500; font-size: 18px; line-height: 1.5; letter-spacing: .1em; color: var(--night); }
.service-card p { margin-top: 4px; font-size: 14px; line-height: 1.7; color: var(--text-sub); }

/* ---------- プロフィール ---------- */
.about-grid { display: grid; gap: 8px; }
.about-visual { width: min(300px, 78vw); margin: 0 auto; }
.about-visual img { width: 100%; }
.about-text { padding-top: 8px; }
.about-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 16px; }
.name-ja { font-family: var(--font-mincho); font-size: 26px; letter-spacing: .16em; color: var(--night); }
.name-en { font-family: var(--font-serif); font-weight: 600; font-size: 13px; letter-spacing: .28em; color: var(--text-sub); }
.about-text p + p { margin-top: 4px; }
.about-note { margin-top: 16px !important; font-size: 13px; color: var(--text-sub); }

/* ---------- 制作物・取り組み ---------- */
.works-grid { display: grid; gap: 32px; }
.work-media { position: relative; }
.media-placeholder {
  aspect-ratio: 16 / 10; display: grid; place-items: center;
  background: rgba(255, 255, 255, .45);
  border: 1px solid var(--line-wc); border-radius: 6px;
  color: var(--text-sub); font-size: 13px; letter-spacing: .14em;
}
.work-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line-wc); border-radius: 6px; }
.work-media figcaption { margin-top: 10px; font-size: 13px; color: var(--text-sub); }
.tag { display: inline-block; padding: 2px 14px; border: 1px solid var(--gold); border-radius: 999px; font-size: 12px; letter-spacing: .14em; color: #6B5428; background: rgba(255, 255, 255, .5); }
.work-title { margin-top: 14px; font-family: var(--font-mincho); font-weight: 500; font-size: 21px; line-height: 1.6; letter-spacing: .1em; color: var(--night); }
.work-text { margin-top: 14px; font-size: 15px; line-height: 1.95; }

.work-more { margin-top: 18px; }
.work-more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-mincho); font-size: 15px; letter-spacing: .12em; color: var(--night);
  cursor: pointer; list-style: none;
}
.work-more summary::-webkit-details-marker { display: none; }
.work-more summary .ico { width: 40px; transition: transform .3s var(--ease); }
.work-more[open] summary .ico { transform: rotate(90deg); }
.work-more summary:hover { color: var(--star); }
.work-more-body { padding-top: 16px; font-size: 15px; }
.work-points { margin-top: 12px; display: grid; gap: 4px; }
.work-points li { position: relative; padding-left: 20px; }
.work-points li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 8px; height: 1px; background: var(--gold); }
.work-caution { margin-top: 12px; font-size: 13px; color: var(--text-sub); }

/* ---------- お問い合わせ ---------- */
.contact { padding-bottom: 88px; }
.deco-contact { width: 420px; right: -170px; bottom: -120px; opacity: .45; }
.contact-grid { display: grid; gap: 22px; }
.contact-text { font-family: var(--font-mincho); font-size: 16px; line-height: 2; letter-spacing: .06em; }
.mail-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 440px;
  min-height: 64px; padding: 0 24px;
  background: var(--night); color: var(--white);
  border-radius: 999px;
  transition: background-color .3s var(--ease);
}
.mail-btn:hover { background: var(--star); }
.mail-addr { flex: 1; font-family: var(--font-serif); font-weight: 500; font-size: clamp(15px, 4.2vw, 18px); letter-spacing: .03em; white-space: nowrap; }
.mail-btn .ico:last-child { width: 24px; }

/* ---------- フッター ---------- */
.site-footer {
  position: relative; color: var(--on-night);
  background: var(--night) url("../assets/img/footer/footer-sp.jpg") center / cover no-repeat;
  background-image: image-set(url("../assets/img/footer/footer-sp.avif") type("image/avif"), url("../assets/img/footer/footer-sp.jpg") type("image/jpeg"));
}
.footer-inner { max-width: 1320px; margin: 0 auto; padding: 48px var(--gutter) 40px; display: grid; justify-items: center; gap: 14px; text-align: center; }
.footer-catch { font-family: var(--font-mincho); font-size: 14px; letter-spacing: .16em; color: var(--on-night-sub); }
.to-top { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 44px; padding: 6px 8px; font-size: 13px; letter-spacing: .12em; color: var(--on-night); }
.to-top .ico { width: 16px; height: 16px; }
.to-top:hover { color: var(--gold); }
.copyright { font-family: var(--font-serif); font-weight: 500; font-size: 14px; letter-spacing: .14em; color: var(--on-night-sub); }
/* 公式発信媒体（FOLLOW US）2026-11-30 追加。媒体名と汎用アイコン、外部リンクは別タブ */
.footer-follow { display: grid; justify-items: center; gap: 10px; margin: 6px 0 4px; }
.footer-follow-title { font-family: var(--font-serif); font-weight: 600; font-size: 13px; letter-spacing: .32em; margin-right: -.32em; color: var(--gold); }
.footer-follow ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer-follow a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 1px solid rgba(233, 238, 248, .35); border-radius: 999px;
  font-size: 13px; letter-spacing: .08em; color: var(--on-night);
  transition: border-color .3s, background-color .3s, color .3s;
}
.footer-follow a:hover { border-color: var(--gold); color: var(--white); background: rgba(255, 255, 255, .06); }
.footer-follow .ico { width: 18px; height: 18px; }
.footer-follow .ico-ext { width: 12px; height: 12px; opacity: .7; }
@media (max-width: 479px) { .footer-follow .ico-ext { display: none; } .footer-follow a { padding: 0 10px; } } /* スマホでは3つを1段に収める（読み上げ用の「新しいタブで開きます」は残す） */

/* ---------- スクロール表示（控えめ） ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   タブレット（768px〜）
   ========================================================= */
@media (min-width: 768px) {
  :root { --gutter: 40px; }
  .hero { min-height: 680px; justify-content: center; padding-bottom: 96px; }
  .hero-bg img { object-position: center center; }
  .btn-ghost { background: rgba(11, 27, 58, .45); }
  .hero-moon { position: absolute; margin: 0; top: 96px; left: -4%; width: 44vw; max-width: 420px; transform: none; }
  .hero-copy { margin-top: 0; padding-top: 0; margin-left: 30%; }
  .hero::after { left: 62%; width: 80%; height: 100%; bottom: 0; }

  .section { padding: 88px 0; }
  .deco-gold { display: block; }
  .service-cards { grid-template-columns: 1fr 1fr; }
  .service-card { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 12px; padding: 32px 20px 28px; }
  .service-card .ico-line { grid-row: auto; width: 34px; height: 34px; }

  .about-grid { grid-template-columns: 1fr 1.6fr; column-gap: 40px; align-items: center; }
  .about-grid .section-head { grid-column: 1 / -1; }
  .about-text { padding-left: 32px; border-left: 1px solid rgba(217, 181, 106, .7); }

  .contact-grid { grid-template-columns: auto 1fr; align-items: center; column-gap: 40px; }
  .contact-grid .mail-btn { grid-column: 1 / -1; justify-self: start; }

  .site-footer { background-image: url("../assets/img/footer/footer-pc.jpg"); background-image: image-set(url("../assets/img/footer/footer-pc.avif") type("image/avif"), url("../assets/img/footer/footer-pc.jpg") type("image/jpeg")); }
}

/* =========================================================
   PC（1024px〜）
   ========================================================= */
@media (min-width: 1024px) {
  :root { --gutter: 48px; --header-h: 76px; }

  /* ヘッダー：横並びのメニュー */
  .menu-toggle { display: none; }
  .global-nav { position: static; padding: 0; background: none; visibility: visible; opacity: 1; overflow: visible; transition: none; }
  .global-nav ul { display: flex; align-items: center; gap: 34px; }
  .global-nav a { display: block; padding: 6px 0; border: 0; }
  .global-nav .nav-en { display: none; }
  .global-nav li:first-child .nav-ja { display: inline; }
  .nav-ja { font-size: 13px; letter-spacing: .14em; color: var(--on-night); transition: color .3s; }
  .global-nav a:hover .nav-ja { color: var(--gold); }
  .nav-contact { margin-left: 10px; }
  .nav-contact a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 20px; border: 1px solid rgba(233, 238, 248, .6); border-radius: 999px; transition: border-color .3s, background-color .3s; }
  .nav-contact .ico { display: block; width: 16px; height: 16px; color: var(--on-night); }
  .nav-contact a:hover { background: rgba(255, 255, 255, .08); border-color: var(--white); }
  .nav-contact a:hover .nav-ja { color: var(--white); }

  /* ヒーロー */
  .hero { min-height: min(820px, 100svh); height: auto; padding-top: calc(var(--header-h) + 40px); padding-bottom: 120px; }
  .hero-moon { top: 9%; left: 8%; width: 32vw; max-width: 500px; }
  .hero-copy { margin-left: 36%; margin-right: 2%; }
  .hero-brand { font-size: clamp(52px, 5vw, 72px); }
  .hero-tagline { font-size: 13px; letter-spacing: .28em; }
  .hero-title { font-size: clamp(32px, 2.9vw, 42px); }
  .hero-lead { font-size: 15px; }

  /* 中央セクション：左に見出し、右に内容 */
  .section { padding: 104px 0; }
  .section-title { font-size: 36px; }
  .split { grid-template-columns: 320px 1fr; column-gap: 72px; align-items: center; }
  .skill-list li { grid-template-columns: 30px minmax(220px, 1fr) 1.3fr; column-gap: 24px; padding: 20px 8px; }
  .skill-list .ico-line { grid-row: auto; }
  .skill-desc { font-size: 15px; }
  .deco-strengths { width: 620px; left: -200px; bottom: -180px; }

  .split-services { grid-template-columns: 300px 1fr; column-gap: 56px; }
  .service-card h3 { font-size: 19px; }

  .name-ja { font-size: 30px; }

  .works-grid { grid-template-columns: 320px 1.15fr 1fr; column-gap: 44px; align-items: center; }
  .works .section-title { white-space: nowrap; }

  .contact { padding: 88px 0 96px; }

  .footer-inner { grid-template-columns: auto 1fr auto auto; justify-items: start; text-align: left; align-items: center; column-gap: 40px; padding: 44px var(--gutter); }
  .footer-catch { padding-left: 40px; border-left: 1px solid rgba(233, 238, 248, .25); }
  .to-top { margin: 0; }
  .footer-follow { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; grid-template-columns: auto 1fr; justify-items: start; align-items: center; column-gap: 32px; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid rgba(233, 238, 248, .18); }
  .footer-follow ul { justify-content: flex-start; }
}

/* 1024〜1279px：サービスは2列、プロフィール・お問い合わせはタブレットと同じ組み方（2026-11-28 検証で修正） */
@media (min-width: 1280px) {
  .hero-copy { margin-left: 34%; }
  .service-cards { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .service-card { min-height: 236px; align-content: start; padding: 34px 16px 28px; }
  .about-grid { grid-template-columns: 250px 270px 1fr; column-gap: 40px; }
  .about-grid .section-head { grid-column: auto; }
  .about-visual { width: 100%; }
  .about-text { padding-left: 48px; }
  .contact-grid { grid-template-columns: 300px 1fr auto; column-gap: 48px; }
  .contact-grid .section-head { padding-right: 48px; border-right: 1px solid var(--line); }
  .contact-grid .mail-btn { grid-column: auto; width: 440px; min-height: 72px; padding: 0 32px; gap: 18px; }
}

/* =========================================================
   制作事例（トップの代表5点・works.html・拡大表示）
   第3稿の仕組みを第4稿の色・文字に合わせて移したもの（2026-11-30）
   ========================================================= */
.btn-navy { background: var(--night); color: var(--white); }
.btn-navy:hover { background: var(--star); }
.btn-outline { border: 1px solid var(--night); color: var(--night); }
.btn-outline:hover { background: rgba(11, 27, 58, .06); }

.works-preview { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--line); }
.works-preview-head { margin-bottom: 28px; }
.sub-title { font-family: var(--font-mincho); font-weight: 500; font-size: 20px; letter-spacing: .12em; color: var(--night); }
.sub-title::before { content: ""; display: inline-block; width: 20px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--gold); }
.works-notice { margin-top: 12px; color: var(--text-sub); font-size: 13px; line-height: 1.9; }
.works-notice-lg { padding: 16px 20px; border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 6px; background: rgba(255, 255, 255, .5); }

.works-list { display: grid; grid-template-columns: 1fr; gap: 36px 24px; }
.work-card[hidden] { display: none; }
.work-thumb {
  position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
  border: 1px solid var(--line-wc); border-radius: 6px;
  background: rgba(255, 255, 255, .55);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.work-thumb img { width: 100%; height: 100%; object-fit: contain; }
.work-thumb:hover { box-shadow: 0 18px 40px -24px rgba(11, 27, 58, .55); transform: translateY(-3px); }
.work-zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(11, 27, 58, .8); color: var(--white); }
.work-meta { padding-top: 14px; }
.work-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12px; letter-spacing: .06em; color: var(--text-sub); }
.work-no { font-family: var(--font-serif); font-weight: 600; font-size: 15px; letter-spacing: .1em; color: var(--night); }
.work-label { padding: 0 10px; border: 1px solid var(--gold); border-radius: 999px; background: rgba(255, 255, 255, .5); font-size: 11px; letter-spacing: .1em; color: #6B5428; }
.work-card-title { margin-top: 6px; font-size: 17px; font-weight: 600; line-height: 1.6; letter-spacing: .06em; color: var(--night); }
.work-note { margin-top: 6px; font-size: 13px; line-height: 1.8; color: var(--text-sub); }
.works-more { margin-top: 40px; text-align: center; }
/* 商標・提携関係の注記（2026-11-30 追加） */
.works-notices .works-notice + .works-notice { margin-top: 8px; }
.works-notice-lg + .works-notice-lg { margin-top: 10px; }

/* works.html の見出し（フッターと同じ星空の画像を敷く） */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 48px) 0 56px; color: var(--white);
  background: var(--night) url("../assets/img/footer/footer-sp.jpg") center / cover no-repeat;
  background-image: image-set(url("../assets/img/footer/footer-sp.avif") type("image/avif"), url("../assets/img/footer/footer-sp.jpg") type("image/jpeg"));
}
.page-hero .section-en { color: var(--gold); }
.page-title { margin-top: 6px; font-family: var(--font-mincho); font-weight: 500; font-size: clamp(30px, 8vw, 44px); line-height: 1.4; letter-spacing: .14em; }
.page-rule { margin: 18px 0 0; }
.page-lead { margin-top: 18px; font-family: var(--font-mincho); font-size: 15px; letter-spacing: .08em; color: var(--on-night); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: 13px; color: var(--on-night-sub); }
.breadcrumb a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.works-section { padding-top: 48px; }

.filter { margin-top: 32px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px;
  border: 1px solid rgba(11, 27, 58, .3); border-radius: 999px; background: rgba(255, 255, 255, .55);
  color: var(--night); font: inherit; font-size: 13px; letter-spacing: .06em; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.filter-btn:hover { border-color: var(--night); }
.filter-btn[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--white); }
.filter-count { font-family: var(--font-serif); font-weight: 600; font-size: 13px; opacity: .8; }
.filter-status { margin: 16px 0 28px; font-size: 13px; color: var(--text-sub); }
html:not(.js) .filter, html:not(.js) .filter-status { display: none; }
html:not(.js) .works-list { margin-top: 32px; }
.works-back { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 64px; }

/* 拡大表示 */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(6, 14, 32, .92); }
.lightbox[hidden] { display: none; }
.lightbox-inner { position: relative; display: grid; justify-items: center; max-width: 100%; }
.lightbox-figure { display: grid; justify-items: center; gap: 12px; }
.lightbox-img { max-width: min(1400px, calc(100vw - 32px)); max-height: calc(100svh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 4px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.lightbox-caption { font-size: 13px; letter-spacing: .06em; text-align: center; color: var(--on-night); }
.lightbox-close { position: fixed; top: 12px; right: 12px; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(233, 238, 248, .4); border-radius: 50%; background: rgba(11, 27, 58, .85); color: var(--white); cursor: pointer; }
.lightbox-close .ico { width: 22px; height: 22px; }
.lightbox-close:hover { background: var(--star); }
body.lightbox-open { overflow: hidden; }

@media (min-width: 768px) {
  .works-list { grid-template-columns: repeat(2, 1fr); gap: 44px 28px; }
  .page-hero { padding: calc(var(--header-h) + 64px) 0 72px; background-image: url("../assets/img/footer/footer-pc.jpg"); background-image: image-set(url("../assets/img/footer/footer-pc.avif") type("image/avif"), url("../assets/img/footer/footer-pc.jpg") type("image/jpeg")); }
}
@media (min-width: 1024px) {
  .works-list { grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
  .works-preview { margin-top: 72px; padding-top: 56px; }
  .works-preview-head { display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: baseline; }
  .works-preview-head .works-notice { margin: 0; }
  .works-preview-head .works-notices { display: grid; gap: 8px; }
}

/* ---------- 動作を減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- JavaScriptが動かない環境（ファイルのプレビュー等）。消さないこと ---------- */
html:not(.js) .site-header { position: absolute; }
html:not(.js) .menu-toggle { display: none; }
@media (max-width: 1023px) {
  html:not(.js) .site-header { height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-top: 14px; padding-bottom: 8px; row-gap: 4px; }
  html:not(.js) .global-nav { position: static; flex-basis: 100%; padding: 0; background: none; visibility: visible; opacity: 1; overflow: visible; }
  html:not(.js) .global-nav ul { display: flex; flex-wrap: wrap; gap: 0 16px; }
  html:not(.js) .global-nav a { display: block; padding: 2px 0; border: 0; }
  html:not(.js) .nav-en { display: none; }
  html:not(.js) .global-nav li:first-child { display: none; }
  html:not(.js) .nav-ja { font-size: 13px; }
  html:not(.js) .hero { padding-top: 120px; }
  html:not(.js) .page-hero { padding-top: 176px; } /* 制作事例の見出し：折り返したメニューとパンくずが重ならないように（2026-11-30 CEOの実機確認で修正） */
}
