/* =========================================================
   しろくも乳業 / SHIROKUMO DAIRY（デモサイト） — style.css
   ========================================================= */

:root {
  --base: #EAF4FA;        /* 淡い水色（ベース） */
  --base-2: #DCEDF7;      /* 少し濃い水色 */
  --white: #FFFFFF;
  --navy: #1D3347;        /* 文字 */
  --text: #34495A;
  --muted: #4F6475;
  --blue: #2E7BB4;        /* メインカラー */
  --blue-dark: #1F5F8F;
  --line: #C9DDEA;
  --yellow: #F4D35E;      /* アクセント（バターの黄色） */

  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --sans: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --en: "Outfit", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 10vw, 140px);
  --max: 1200px;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0; background: var(--base); color: var(--navy);
  font-family: var(--sans); font-size: 15px; line-height: 1.9; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 100; }
.skip-link:focus { top: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px var(--gutter) 0; }
.header-inner {
  max-width: 1360px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px 24px;
  background: var(--white); border-radius: 999px; padding: 10px 12px 10px 28px;
  box-shadow: 0 6px 24px rgba(29, 51, 71, .06);
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.logo img { width: 40px; height: 28px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-jp { font-family: var(--round); font-weight: 700; font-size: 19px; letter-spacing: .12em; white-space: nowrap; }
.logo-en { font-family: var(--en); font-size: 11px; letter-spacing: .2em; color: var(--muted); white-space: nowrap; }
.demo-badge {
  flex: none; padding: 3px 14px; border: 1px dashed var(--muted); border-radius: 999px;
  font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .1em; white-space: nowrap;
}

.global-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px 6px; }
.global-nav a { text-decoration: none; color: var(--navy); }
.global-nav .nav-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 12px; border-radius: 999px; line-height: 1.3;
}
.global-nav .nav-link:hover { background: var(--base); }
.global-nav .en { font-family: var(--en); font-weight: 500; font-size: 15px; letter-spacing: .06em; }
.global-nav .jp { font-size: 10px; color: var(--muted); letter-spacing: .1em; }
.global-nav [aria-current="page"] .en { color: var(--blue); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; margin-left: 8px; border-radius: 999px;
  background: var(--blue); color: #fff !important; font-weight: 500; font-size: 14px;
}
.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none; width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%;
  background: var(--blue); cursor: pointer; position: relative;
}
.nav-toggle span { position: absolute; left: 15px; right: 15px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s; }
.nav-toggle span:nth-child(1) { top: 19px; }
.nav-toggle span:nth-child(2) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .header-inner { padding: 8px 8px 8px 20px; }
  .global-nav {
    position: fixed; left: var(--gutter); right: var(--gutter); top: 84px;
    max-height: calc(100vh - 100px); overflow-y: auto;
    background: var(--white); border-radius: var(--radius); padding: 16px 24px 24px;
    box-shadow: 0 12px 40px rgba(29, 51, 71, .12);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .global-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .global-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav li { border-bottom: 1px solid var(--line); }
  .global-nav li.cta-item { border: 0; padding-top: 20px; }
  .global-nav .nav-link {
    flex-direction: row; justify-content: space-between; align-items: center;
    padding: 12px 4px; border-radius: 0; min-height: 56px;
  }
  .global-nav .nav-link:hover { background: transparent; }
  .global-nav .en { font-size: 20px; }
  .global-nav .jp { font-size: 12px; }
  .nav-cta { display: flex; width: 100%; margin: 0; min-height: 56px; font-size: 15px; }
}
@media (max-width: 520px) {
  .header-inner { padding-left: 16px; }
  .brand { gap: 10px; }
  .logo img { width: 32px; height: 22px; }
  .logo-jp { font-size: 16px; }
  .logo-en { font-size: 9px; letter-spacing: .14em; }
  .demo-badge { padding: 2px 8px; font-size: 10px; }
}

/* ---------- Section heading ---------- */
.section { padding-block: var(--section-y); }
.section-white { background: var(--white); }
.section-blue { background: var(--base-2); }

.sec-head { display: flex; flex-direction: column; gap: 6px; }
.sec-head .en {
  font-family: var(--en); font-weight: 600; color: var(--blue);
  font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: .02em;
}
.sec-head .jp {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--round); font-weight: 700; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: .12em; color: var(--navy);
}
.sec-head .jp::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex: none; }
.sec-head.center { align-items: center; text-align: center; }
.sec-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: 56px; }
.sec-row > p { margin: 0; max-width: 520px; color: var(--text); }

/* ---------- Wave divider ---------- */
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.wave path { fill: var(--white); }
.wave.to-blue path { fill: var(--base-2); }
.wave.to-base path { fill: var(--base); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 12px 0 32px; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 15px; cursor: pointer; border: 0;
  font-family: inherit; transition: background .25s, transform .25s;
}
.btn .arrow {
  width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary .arrow { background: #fff; color: var(--blue); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-white { background: var(--white); color: var(--navy); }
.btn-white .arrow { background: var(--blue); color: #fff; }
.btn-white:hover { color: var(--blue); }
.btn svg { width: 14px; height: 14px; }

.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; text-decoration: none; }
.text-link::after {
  content: "→"; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff; font-size: 13px; transition: transform .25s;
}
.text-link:hover::after { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; background: var(--white); opacity: .7; z-index: 0;
}
.hero::before { width: 46vw; height: 46vw; right: -10vw; top: -14vw; }
.hero::after { width: 22vw; height: 22vw; left: -8vw; bottom: -6vw; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.hero-copy .kicker { font-family: var(--en); font-weight: 600; color: var(--blue); letter-spacing: .2em; font-size: 14px; margin: 0 0 20px; }
.hero-copy h1 {
  margin: 0; font-family: var(--round); font-weight: 700;
  font-size: clamp(36px, 5vw, 68px); line-height: 1.45; letter-spacing: .08em;
}
.hero-copy h1 em { font-style: normal; color: var(--blue); }
.hero-copy p { margin: 28px 0 40px; color: var(--text); max-width: 30em; }
.hero-collage { position: relative; aspect-ratio: 1 / .9; }
.hero-collage img { position: absolute; object-fit: cover; border-radius: 32px; box-shadow: 0 20px 50px rgba(29, 51, 71, .1); }
.hero-collage .c1 { width: 62%; aspect-ratio: 4 / 5; right: 0; top: 0; border-radius: 160px 160px 32px 32px; }
.hero-collage .c2 { width: 46%; aspect-ratio: 1; left: 0; top: 20%; border-radius: 50%; }
.hero-collage .c3 { width: 40%; aspect-ratio: 4 / 3; left: 22%; bottom: 0; }
.hero-collage .dot { position: absolute; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); right: 6%; bottom: 10%; }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-collage { max-width: 520px; width: 100%; margin: 0 auto; }
}

/* ---------- Message lines (poem) ---------- */
.poem { text-align: center; }
.poem p {
  margin: 0 0 1.6em; font-family: var(--round); font-weight: 500;
  font-size: clamp(18px, 2vw, 24px); line-height: 2.2; letter-spacing: .14em;
}
.poem strong { font-weight: 700; color: var(--blue); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--navy);
  transition: transform .3s, box-shadow .3s;
}
a.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(29, 51, 71, .1); color: var(--navy); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body .en { font-family: var(--en); font-weight: 600; font-size: 13px; letter-spacing: .14em; color: var(--blue); }
.card-body h3 { margin: 0; font-family: var(--round); font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.card-body p { margin: 0; color: var(--text); font-size: 14px; }
.card-body .more { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--blue-dark); font-size: 14px; }
.section-white .card { background: var(--base); }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: center; }
.split + .split { margin-top: clamp(64px, 8vw, 120px); }
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split-text h3 { margin: 0 0 16px; font-family: var(--round); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.6; letter-spacing: .08em; }
.split-text > .en { display: block; font-family: var(--en); font-weight: 600; font-size: 14px; color: var(--blue); letter-spacing: .14em; margin-bottom: 8px; }
.split-text p { margin: 0 0 1.2em; color: var(--text); }
.tag-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list li { padding: 4px 14px; border-radius: 999px; background: var(--base); font-size: 13px; }
.section-blue .tag-list li, .section:not(.section-white) .tag-list li { background: var(--white); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Strengths ---------- */
.strengths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.strength { background: var(--white); border-radius: var(--radius); padding: 36px 32px; position: relative; }
.strength .icon { width: 64px; height: 64px; border-radius: 50%; background: var(--base); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.strength .icon svg { width: 32px; height: 32px; stroke: var(--blue); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.strength h3 { margin: 0 0 12px; font-family: var(--round); font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.strength p { margin: 0; color: var(--text); font-size: 14px; }
@media (max-width: 860px) { .strengths { grid-template-columns: 1fr; } }

/* ---------- Flow (製造工程) ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.flow li { background: var(--white); border-radius: var(--radius); padding: 28px 20px; text-align: center; position: relative; }
.flow .step { font-family: var(--en); font-weight: 600; color: var(--blue); font-size: 13px; letter-spacing: .14em; }
.flow h3 { margin: 6px 0 8px; font-family: var(--round); font-size: 18px; }
.flow p { margin: 0; font-size: 13px; color: var(--text); text-align: left; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -13px; top: 50%; width: 10px; height: 10px;
  border-top: 2px solid var(--blue); border-right: 2px solid var(--blue); transform: translateY(-50%) rotate(45deg); z-index: 1;
}
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; }
  .flow li:not(:last-child)::after { right: 50%; top: auto; bottom: -13px; transform: translateX(50%) rotate(135deg); }
}

/* ---------- Works ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter button {
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--blue);
  background: var(--white); color: var(--blue-dark); font: inherit; font-size: 14px; cursor: pointer;
}
.filter button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.work-card .cat { align-self: flex-start; font-size: 12px; padding: 2px 12px; border-radius: 999px; background: var(--base-2); color: var(--navy); }
.work-card .year { font-family: var(--en); font-size: 13px; color: var(--muted); }
.work-card[hidden] { display: none; }
.works-empty { color: var(--muted); }

/* ---------- News ---------- */
.news-box { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 32px 56px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li + li { border-top: 1px solid var(--line); }
.news-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 20px 0; text-decoration: none; color: var(--navy); }
.news-list a:hover .title { color: var(--blue); }
.news-list time { font-family: var(--en); color: var(--muted); min-width: 92px; }
.news-list .cat { font-size: 12px; padding: 2px 12px; border-radius: 999px; background: var(--base); min-width: 88px; text-align: center; }
.news-list .title { flex: 1 1 300px; }
@media (max-width: 860px) { .news-box { grid-template-columns: 1fr; } }

/* ---------- Contact band ---------- */
.contact-band { padding-block: var(--section-y); }
.contact-box {
  background: var(--blue); color: #fff; border-radius: 40px; padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px 64px; align-items: center;
  position: relative; overflow: hidden;
}
.contact-box::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -80px; top: -120px; }
.contact-box .sec-head .en, .contact-box .sec-head .jp { color: #fff; }
.contact-box p { margin: 24px 0 0; }
.contact-actions { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.tel-box { background: rgba(255, 255, 255, .12); border-radius: 20px; padding: 20px 24px; }
.tel-box .label { font-size: 13px; }
.tel-box .num { display: block; font-family: var(--en); font-weight: 600; font-size: clamp(24px, 3vw, 32px); letter-spacing: .06em; color: #fff; text-decoration: none; }
.tel-box .time { font-size: 12px; opacity: .9; }
@media (max-width: 860px) { .contact-box { grid-template-columns: 1fr; } }

/* ---------- Page hero (下層) ---------- */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 36vw; height: 36vw; border-radius: 50%; background: var(--white); opacity: .7; right: -8vw; top: -16vw; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .sec-head .en { font-size: clamp(52px, 8vw, 110px); }
.page-hero .lead { margin: 28px 0 0; max-width: 40em; color: var(--text); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; font-size: 12px; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }

/* ---------- Philosophy ---------- */
.philosophy { background: var(--white); border-radius: 40px; padding: clamp(40px, 6vw, 80px); text-align: center; }
.philosophy .label { font-family: var(--en); font-weight: 600; color: var(--blue); letter-spacing: .2em; font-size: 14px; }
.philosophy h2 { margin: 12px 0 24px; font-family: var(--round); font-weight: 700; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.6; letter-spacing: .1em; }
.philosophy p { margin: 0 auto; max-width: 36em; color: var(--text); }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.value { background: var(--white); border-radius: var(--radius); padding: 36px 32px; }
.value .label { font-family: var(--en); font-weight: 600; color: var(--blue); letter-spacing: .2em; font-size: 13px; }
.value h3 { margin: 8px 0 16px; font-family: var(--round); font-size: 22px; letter-spacing: .08em; }
.value ol { margin: 0; padding-left: 1.4em; color: var(--text); }
.value li + li { margin-top: 6px; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* ---------- Table (会社概要) ---------- */
.table-box { background: var(--white); border-radius: var(--radius); padding: clamp(16px, 3vw, 40px) clamp(20px, 4vw, 56px); }
.outline { width: 100%; border-collapse: collapse; }
.outline th, .outline td { padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.outline tr:last-child th, .outline tr:last-child td { border-bottom: 0; }
.outline th { width: 200px; font-weight: 500; color: var(--blue-dark); padding-right: 24px; }
@media (max-width: 640px) {
  .outline th, .outline td { display: block; width: 100%; }
  .outline th { padding-bottom: 0; border: 0; }
  .outline td { padding-top: 4px; }
}
.map {
  margin-top: 24px; min-height: 360px; border-radius: var(--radius); background: #CFE3EF;
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.map svg.roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .pin { position: relative; background: var(--white); padding: 6px 16px; border-radius: 999px; font-size: 13px; }

/* ---------- History ---------- */
.history { list-style: none; margin: 0; padding: 0; position: relative; }
.history::before { content: ""; position: absolute; left: 100px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.history li { display: grid; grid-template-columns: 100px 1fr; gap: 32px; padding: 16px 0; position: relative; }
.history li::before { content: ""; position: absolute; left: 95px; top: 28px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); }
.history .y { font-family: var(--en); font-weight: 600; color: var(--blue); padding-top: 2px; }
.history p { margin: 0 0 0 16px; }

/* ---------- President ---------- */
.president { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px 80px; align-items: start; }
.president figure { margin: 0; position: sticky; top: 120px; }
.president img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 160px 160px var(--radius) var(--radius); }
.president figcaption { margin-top: 16px; text-align: center; }
.president figcaption .role { display: block; font-size: 13px; color: var(--muted); }
.president figcaption .name { font-family: var(--round); font-weight: 700; font-size: 22px; letter-spacing: .2em; }
.president h2 { margin: 0 0 32px; font-family: var(--round); font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.6; letter-spacing: .08em; }
.president .body p { margin: 0 0 1.6em; color: var(--text); }
.president .sign { text-align: right; font-family: var(--round); font-weight: 700; }
@media (max-width: 860px) {
  .president { grid-template-columns: 1fr; }
  .president figure { position: static; max-width: 360px; margin: 0 auto; }
}

/* ---------- Form ---------- */
.form-box { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); }
.form { max-width: 760px; margin: 0 auto; display: grid; gap: 28px; }
.field { display: grid; gap: 8px; }
.field > label, .field legend { font-weight: 500; font-size: 15px; }
.req, .opt { margin-left: 10px; font-size: 11px; padding: 1px 10px; border-radius: 999px; letter-spacing: .1em; vertical-align: 2px; }
.req { background: var(--blue); color: #fff; }
.opt { background: var(--base-2); color: var(--navy); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; color: var(--navy);
  background: var(--base); border: 1px solid #A9C3D5; border-radius: 12px;
}
.field textarea { min-height: 200px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(46, 123, 180, .35); border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #B3261E; background: #FDF1F0; }
.error { font-size: 13px; color: #B3261E; min-height: 1em; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.radio-row label, .check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.radio-row input, .check input { width: 20px; height: 20px; accent-color: var(--blue); }
.form .submit { text-align: center; }
.form-done { max-width: 760px; margin: 0 auto; text-align: center; }
.form-done h2 { font-family: var(--round); font-size: 26px; margin: 0 0 12px; }
.form-done[hidden], .form[hidden] { display: none; }

/* ---------- Policy ---------- */
.policy-box { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); }
.policy { max-width: 820px; margin: 0 auto; }
.policy h2 { display: flex; align-items: center; gap: 12px; margin: 48px 0 12px; font-family: var(--round); font-size: 20px; letter-spacing: .08em; }
.policy h2::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex: none; }
.policy p, .policy li { color: var(--text); }
.policy .date { margin-top: 48px; text-align: right; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #E6EEF4; padding: clamp(64px, 8vw, 100px) 0 24px; }
.site-footer a { color: #E6EEF4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px 80px; }
.footer-top .logo { color: #fff; }
.footer-top .logo-en { color: #A9BCCB; }
.footer-top .logo img { background: #fff; border-radius: 10px; padding: 4px; width: 48px; height: 36px; }
.footer-address { margin: 20px 0 0; font-size: 14px; color: #C8D6E1; font-style: normal; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 24px; }
.footer-nav a { display: inline-flex; flex-direction: column; min-height: 44px; justify-content: center; padding: 6px 0; line-height: 1.4; }
.footer-nav .en { font-family: var(--en); font-weight: 500; font-size: 16px; }
.footer-nav .jp { font-size: 12px; color: #A9BCCB; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px;
  margin-top: 56px; padding-top: 20px; 
}
.footer-meta { display: flex; flex-direction: column; gap: 2px; }
.demo-note { margin: 0; font-size: 13px; }
.footer-meta .links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 12px; color: #A9BCCB; }
.footer-meta .links a { color: #C8D6E1; display: inline-flex; align-items: center; min-height: 44px; }
.to-top { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; letter-spacing: .08em; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Fade-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 追加調整 ---------- */
.nowrap { white-space: nowrap; }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .card-grid.four { grid-template-columns: 1fr; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .hero-copy p br, .contact-box p br { display: none; }
  .poem p { font-size: 16px; letter-spacing: .06em; }
  .president h2 { font-size: 22px; }
}

/* ---------- Recruit ---------- */
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.benefit { background: var(--white); border-radius: 20px; padding: 24px 28px; }
.benefit h3 { margin: 0 0 6px; font-family: var(--round); font-size: 17px; letter-spacing: .06em; color: var(--blue-dark); }
.benefit p { margin: 0; font-size: 14px; color: var(--text); }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } }

.req-list { display: grid; gap: 16px; }
.req-item { background: var(--base); border-radius: 20px; overflow: hidden; }
.req-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; padding: 16px 28px; font-family: var(--round); font-weight: 700; font-size: 18px; letter-spacing: .06em;
}
.req-item summary::-webkit-details-marker { display: none; }
.req-item .plus { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); flex: none; }
.req-item .plus::before, .req-item .plus::after { content: ""; position: absolute; left: 11px; right: 11px; top: 17px; height: 2px; background: #fff; transition: transform .3s; }
.req-item .plus::after { transform: rotate(90deg); }
.req-item[open] .plus::after { transform: rotate(0); }
.req-item .outline { margin: 0 28px 16px; width: calc(100% - 56px); }
.req-item .outline th { width: 160px; }

.flow.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .flow.four { grid-template-columns: 1fr; } }

/* ヘッダーの項目が減ったのでブレイクポイントを調整 */
@media (min-width: 961px) and (max-width: 1080px) {
  .nav-toggle { display: none; }
  .global-nav {
    position: static; visibility: visible; opacity: 1; transform: none;
    background: transparent; box-shadow: none; padding: 0; max-height: none; overflow: visible;
  }
  .global-nav > ul { flex-direction: row; align-items: center; gap: 4px 6px; }
  .global-nav li { border: 0; }
  .global-nav li.cta-item { padding: 0; }
  .global-nav .nav-link { flex-direction: column; justify-content: center; padding: 0 12px; min-height: 48px; border-radius: 999px; }
  .global-nav .en { font-size: 15px; }
  .global-nav .jp { font-size: 10px; }
  .nav-cta { display: inline-flex; width: auto; margin-left: 8px; min-height: 48px; font-size: 14px; }
}

/* =========================================================
   アニメーション：ヒーロー写真のぷかぷか ＋ 泡 ＋ 動く波
   ========================================================= */

/* 写真がぷかぷか浮かぶ（それぞれ速さと向きを変えて自然に） */
@keyframes float-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-6px, -16px) rotate(-1.2deg); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(8px, -12px) rotate(1.5deg); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, -10px); }
}
.hero-collage .c1 { animation: float-a 7s ease-in-out infinite; }
.hero-collage .c2 { animation: float-b 6s ease-in-out infinite -2s; }
.hero-collage .c3 { animation: float-c 5.5s ease-in-out infinite -1s; }
.hero-collage .dot { animation: float-b 4.5s ease-in-out infinite -3s; }

/* 下から上へのぼっていく泡 */
.hero-collage .bubble {
  position: absolute; bottom: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, rgba(255, 255, 255, .6) 40%, rgba(255, 255, 255, .15) 100%);
  border: 1px solid rgba(46, 123, 180, .25);
  opacity: 0; animation: bubble-rise linear infinite;
}
.hero-collage .b1 { width: 18px; height: 18px; left: 12%; animation-duration: 9s; animation-delay: 0s; }
.hero-collage .b2 { width: 10px; height: 10px; left: 38%; animation-duration: 7s; animation-delay: -2s; }
.hero-collage .b3 { width: 26px; height: 26px; left: 58%; animation-duration: 11s; animation-delay: -5s; }
.hero-collage .b4 { width: 12px; height: 12px; left: 78%; animation-duration: 8s; animation-delay: -6s; }
.hero-collage .b5 { width: 16px; height: 16px; left: 92%; animation-duration: 10s; animation-delay: -3s; }
@keyframes bubble-rise {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate(14px, -50%) scale(1); }
  90% { opacity: .7; }
  100% { transform: translate(-8px, -110%) scale(1.1); opacity: 0; }
}
/* translate の％は泡自身の大きさ基準なので、のぼる距離はコンテナの高さで指定 */
@supports (height: 1cqh) {
  .hero-collage { container-type: size; }
  @keyframes bubble-rise {
    0% { transform: translate(0, 0) scale(.6); opacity: 0; }
    10% { opacity: .9; }
    50% { transform: translate(14px, -50cqh) scale(1); }
    90% { opacity: .7; }
    100% { transform: translate(-8px, -105cqh) scale(1.1); opacity: 0; }
  }
}

/* ゆっくり流れる波（2枚重ねて奥行きを出す） */
.wave { overflow: hidden; }
.wave path { transform-box: view-box; }
.wave .wave-front { animation: wave-move 18s linear infinite; }
.wave .wave-back { opacity: .45; animation: wave-move 28s linear infinite reverse; transform: translateX(-720px); }
@keyframes wave-move {
  from { transform: translateX(0); }
  to { transform: translateX(-1440px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-collage img, .hero-collage .dot, .wave path { animation: none !important; }
  .hero-collage .bubble { display: none; }
}