/* やわらかい配色: 霞・知覧茶・錦江湾の空・朝の杏 */
:root {
  --kasumi: #f4f7f6;     /* 背景 */
  --white: #ffffff;
  --wan: #34505f;        /* 見出し・濃い文字 */
  --ink: #46585f;        /* 本文 */
  --ink-soft: #6c7d83;
  --cha: #4f7f62;        /* ボタン（白文字のコントラストを確保） */
  --cha-soft: #e3efe6;
  --sora-soft: #e4eef2;
  --anzu-soft: #f8ebdc;
  --line: #dce5e2;
  --ff-round: 'Zen Maru Gothic', sans-serif;
  --ff-sans: 'Noto Sans JP', sans-serif;
  --w: 1080px;
  --r-lg: 32px;
  --r-md: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--kasumi);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .04em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cha); }
:focus-visible { outline: 3px solid #9cc4ab; outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--w), 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--ff-round); color: var(--wan); font-weight: 700; letter-spacing: .06em; }
h2 { font-size: clamp(22px, 2.8vw, 28px); line-height: 1.7; margin: 0 0 32px; }
h3 { font-size: 19px; line-height: 1.6; margin: 0 0 12px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 247, 246, .92);
  backdrop-filter: blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { text-decoration: none; color: var(--wan); line-height: 1.35; }
.brand-name { font-family: var(--ff-round); font-size: 19px; font-weight: 700; letter-spacing: .06em; }
.brand-sub { display: block; font-size: 11px; color: var(--ink-soft); letter-spacing: .1em; }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--wan); font-size: 14px;
  padding: 8px 16px; border-radius: 999px;
}
.nav a:hover { background: var(--white); }
.nav a[aria-current="page"] { background: var(--white); color: var(--cha); }
.nav .nav-cta { background: var(--cha); color: var(--white); margin-left: 8px; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: #446f55; color: var(--white); }
.nav-toggle { display: none; }

/* buttons */
.btn {
  display: inline-block; background: var(--cha); color: var(--white); text-decoration: none;
  border: 0; padding: 15px 34px; font: inherit; font-size: 15px; font-weight: 500;
  cursor: pointer; border-radius: 999px; min-height: 48px;
}
.btn:hover { background: #446f55; }

/* hero: アーチ窓から桜島をのぞく */
.hero { padding: 56px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.8; margin: 0 0 28px; }
.hero p { margin: 0 0 1em; max-width: 34em; }
.hero .promise {
  margin: 28px 0 36px; padding: 22px 26px; background: var(--white);
  border-radius: var(--r-md); color: var(--wan);
}
/* 画像にはアーチ窓と余白が描かれているので、余白を拡大で外に逃がしてアーチで切り抜く */
.hero-arch {
  max-width: 400px; margin-inline: auto; width: 100%; aspect-ratio: 2 / 3;
  overflow: hidden; border-radius: 999px 999px 24px 24px;
}
.hero-arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.11); }

/* sections */
section { padding: 88px 0; }
section.alt { background: var(--white); border-radius: 48px; margin: 0 12px; }
.lead { max-width: 40em; }

.worries { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.worries li { padding: 28px 26px; border-radius: var(--r-md); font-size: 15px; color: var(--wan); }
.worries li:nth-child(1) { background: var(--cha-soft); }
.worries li:nth-child(2) { background: var(--sora-soft); }
.worries li:nth-child(3) { background: var(--anzu-soft); }

.wide-img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--r-lg); }

/* profile */
.profile { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; }
.photo-ph {
  aspect-ratio: 3 / 4; background: var(--cha-soft);
  border-radius: 999px 999px var(--r-md) var(--r-md);
  display: grid; place-items: center; color: var(--ink-soft); font-size: 13px; text-align: center;
}
.profile-name { font-family: var(--ff-round); font-weight: 700; color: var(--wan); font-size: 24px; margin: 0 0 2px; }
.profile-role { color: var(--ink-soft); font-size: 13px; margin: 0 0 20px; }
.bridge { width: 100%; border-collapse: separate; border-spacing: 0 10px; margin: 18px 0; font-size: 15px; }
.bridge thead th { text-align: left; font-weight: 500; font-size: 12px; color: var(--ink-soft); padding: 0 18px; }
.bridge td { background: var(--kasumi); padding: 14px 18px; vertical-align: top; }
.bridge td:first-child { border-radius: 14px 0 0 14px; font-weight: 700; color: var(--wan); width: 36%; }
.bridge td:last-child { border-radius: 0 14px 14px 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-link {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--white); border-radius: var(--r-lg); padding: 14px 14px 26px;
}
.card-link .card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; margin-bottom: 18px; }
.card-link h3, .card-link p, .card-link .more { margin-left: 12px; margin-right: 12px; }
.card-link h3 { margin-top: 0; margin-bottom: 8px; }
.card-link p { margin-top: 0; margin-bottom: 0; font-size: 14px; color: var(--ink-soft); }
.card-link .more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--cha); font-weight: 500; }
.card-link:hover .more { text-decoration: underline; }

/* page hero */
.page-hero { padding: 48px 0 24px; }
.page-hero h1 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.6; margin: 0; }
.page-hero p { margin: 16px 0 0; max-width: 34em; }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.page-hero-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); }

/* flow */
.flow { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.flow li { background: var(--white); border-radius: var(--r-lg); padding: 14px 14px 26px; position: relative; }
.flow .flow-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 22px; margin-bottom: 16px; }
.flow .num, .flow strong, .flow span { margin-left: 12px; margin-right: 12px; }
.flow .num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--cha-soft); color: var(--cha); font-family: var(--ff-round); font-weight: 700; font-size: 14px;
}
.flow strong { display: block; font-family: var(--ff-round); color: var(--wan); font-size: 19px; margin-top: 10px; margin-bottom: 4px; }
.flow span:not(.num) { display: block; font-size: 14px; color: var(--ink-soft); }
.flow-loop { font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; text-align: center; }

.step { display: grid; grid-template-columns: 64px 1fr; gap: 24px; padding: 40px 0; }
.step + .step { border-top: 2px dotted var(--line); }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; background: var(--cha-soft); color: var(--cha);
  display: grid; place-items: center; font-family: var(--ff-round); font-weight: 700; font-size: 18px;
}
.step-tag { display: inline-block; font-size: 12px; background: var(--sora-soft); color: var(--wan); padding: 2px 12px; border-radius: 999px; margin-bottom: 10px; }
.step p { margin: 0 0 1em; max-width: 40em; }
.quote {
  margin: 1.4em 0; padding: 22px 26px; background: var(--anzu-soft); border-radius: var(--r-md);
  font-family: var(--ff-round); color: var(--wan); font-size: 17px; max-width: 40em;
}

/* works */
.case { background: var(--white); border-radius: var(--r-lg); padding: 48px; margin-bottom: 32px; }
.case-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 16px; }
.case-head h2 { margin: 0; }
.case-meta { font-size: 13px; color: var(--ink-soft); }
.case-role { background: var(--cha-soft); padding: 16px 22px; border-radius: var(--r-md); margin: 0 0 30px; font-size: 15px; color: var(--wan); }
.case-role b { color: var(--cha); margin-right: .6em; }
.case-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-items > div { background: var(--kasumi); border-radius: var(--r-md); padding: 22px 24px; }
.case-items h3 { font-size: 17px; margin: 0 0 6px; }
.case-items p { margin: 0; font-size: 15px; }
.case-list { margin: 0; padding-left: 1.2em; }
.case-list li { margin-bottom: 6px; }
.case-list li::marker { color: var(--cha); }

/* works: Baku の特設ページへの入口 */
.case-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
  background: var(--kasumi); border-radius: var(--r-lg); padding: 14px; margin: 8px 0 28px;
  text-decoration: none; color: var(--wan);
}
.case-feature img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 22px; }
.case-feature-text { display: block; padding: 8px 18px 8px 0; }
.case-feature-title { display: block; font-family: var(--ff-round); font-weight: 700; font-size: 19px; line-height: 1.7; }
.case-feature-sub { display: block; font-size: 14px; color: var(--ink-soft); margin: 6px 0 18px; }
.case-feature:hover .btn { background: #446f55; }

/* 支援事例の個別ページ */
.case-kicker { display: inline-block; font-size: 13px; background: var(--white); color: var(--cha); padding: 4px 14px; border-radius: 999px; margin: 0 0 18px; }
.case-sub { font-family: var(--ff-round); font-size: 17px; color: var(--wan); }
.story { max-width: 760px; }
.story p { margin: 0 0 1.2em; }
.story h2 { margin-bottom: 24px; }
.voice {
  margin: 1.6em 0; padding: 26px 30px; background: var(--anzu-soft); border-radius: var(--r-md);
  font-family: var(--ff-round); font-weight: 700; font-size: 20px; line-height: 1.7; color: var(--wan);
}
.shift { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.shift li { background: var(--cha-soft); border-radius: 14px; padding: 14px 20px; color: var(--wan); font-weight: 500; }
.measures { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.measures li { background: var(--kasumi); border-radius: var(--r-md); padding: 18px 22px; font-size: 14px; color: var(--ink); }
.measures b { display: block; font-family: var(--ff-round); color: var(--wan); font-size: 16px; margin-bottom: 4px; }
.measures li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.before-after { display: grid; grid-template-columns: 1fr 56px 1fr; align-items: center; gap: 12px; margin: 0 0 48px; }
.ba { border-radius: var(--r-lg); padding: 30px 28px; text-align: center; }
.ba.before { background: var(--white); }
.ba.after { background: var(--cha-soft); }
.ba-label { display: block; font-size: 13px; color: var(--ink-soft); }
.ba-value { display: block; font-family: var(--ff-round); font-weight: 700; font-size: 44px; line-height: 1.3; color: var(--wan); margin: 4px 0; }
.ba.after .ba-value { color: var(--cha); }
.ba-note { display: block; font-size: 13px; color: var(--ink-soft); }
.ba-arrow { height: 2px; background: repeating-linear-gradient(90deg, var(--cha) 0 6px, transparent 6px 12px); position: relative; }
.ba-arrow::after { content: ""; position: absolute; right: -2px; top: -6px; border: 7px solid transparent; border-left: 10px solid var(--cha); }

.story-split { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: start; }
.story-photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px var(--r-md) var(--r-md); }

.company-card { display: grid; grid-template-columns: 160px 1fr; gap: 36px; align-items: center; background: var(--white); border-radius: var(--r-lg); padding: 32px 40px; }
.company-card img { width: 160px; aspect-ratio: 1; object-fit: contain; border-radius: var(--r-md); background: var(--white); }
.company-card h2 { margin: 0 0 12px; font-size: 20px; }
.company-card dl { display: grid; grid-template-columns: 7em 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
.company-card dt { color: var(--ink-soft); }
.company-card dd { margin: 0; overflow-wrap: anywhere; }
.back-link { margin: 28px 0 0; font-size: 14px; }

/* contact */
.form { max-width: 720px; display: grid; gap: 22px; background: var(--white); padding: 40px; border-radius: var(--r-lg); }
.form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; color: var(--wan); }
.form .req { font-size: 11px; background: var(--anzu-soft); color: #8a5a2b; padding: 1px 8px; border-radius: 999px; margin-left: 8px; font-weight: 500; }
.form input, .form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 16px;
  border: 1.5px solid var(--line); background: var(--kasumi); border-radius: 14px;
}
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--cha); background: var(--white); }
.note { font-size: 13px; color: var(--ink-soft); margin: 0; }
.mock-note { background: var(--anzu-soft); padding: 12px 18px; border-radius: 14px; font-size: 13px; max-width: 720px; }

/* cta band */
.cta-band { padding: 0 0 96px; }
.cta-band .wrap { background: var(--cha-soft); border-radius: 48px; text-align: center; padding: 64px 24px; }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { margin: 0 0 28px; }

/* footer */
.site-footer { background: var(--white); color: var(--ink-soft); padding: 48px 0 32px; font-size: 13px; border-radius: 48px 48px 0 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--wan); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand-name { color: var(--wan); }
.copy { width: 100%; margin-top: 18px; font-size: 12px; }

/* text pages */
.doc { max-width: 760px; }
.doc h2 { font-size: 19px; margin: 36px 0 8px; }
.doc p, .doc li { font-size: 15px; }

@media (max-width: 1000px) {
  section { padding: 64px 0; }
  section.alt { margin: 0 8px; border-radius: 32px; }
  .brand-name { font-size: 16px; letter-spacing: .02em; white-space: nowrap; }
  .nav-toggle {
    display: block; flex-shrink: 0; white-space: nowrap; background: var(--white); border: 0; border-radius: 999px;
    padding: 10px 18px; font: inherit; font-size: 13px; color: var(--wan); min-height: 44px; cursor: pointer;
  }
  .nav {
    display: none; position: absolute; left: 12px; right: 12px; top: 72px; flex-direction: column; align-items: stretch;
    background: var(--white); border-radius: 24px; padding: 12px; gap: 4px; box-shadow: 0 12px 32px rgba(52, 80, 95, .12);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 16px; }
  .nav .nav-cta { margin: 6px 0 0; text-align: center; }
  .hero { padding: 24px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-arch { order: -1; max-width: 240px; margin-inline: auto; width: 100%; }
  .hero h1 { font-size: 20px; letter-spacing: .02em; }
  .worries, .cards, .flow, .case-items, .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid { gap: 24px; }
  .profile { grid-template-columns: 1fr; gap: 28px; }
  .photo-ph { max-width: 220px; }
  .wide-img { aspect-ratio: 2 / 1; border-radius: var(--r-md); }
  .step { grid-template-columns: 1fr; gap: 10px; padding: 32px 0; }
  .case { padding: 28px 22px; }
  .case-feature { grid-template-columns: 1fr; gap: 14px; }
  .case-feature-text { padding: 0 8px 10px; }
  .case-feature-title { font-size: 17px; }
  .measures { grid-template-columns: 1fr; }
  .before-after { grid-template-columns: 1fr; }
  .ba-arrow { width: 2px; height: 32px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--cha) 0 6px, transparent 6px 12px); }
  .ba-arrow::after { right: -6px; top: auto; bottom: -10px; border: 7px solid transparent; border-top: 10px solid var(--cha); }
  .ba-value { font-size: 36px; }
  .voice { font-size: 17px; padding: 20px 22px; }
  .story-split { grid-template-columns: 1fr; gap: 24px; }
  .story-photo { max-width: 220px; margin-inline: auto; }
  .company-card { grid-template-columns: 1fr; padding: 24px; gap: 16px; justify-items: start; }
  .company-card img { width: 120px; }
  .company-card dl { grid-template-columns: 1fr; gap: 0; }
  .company-card dd { margin-bottom: 8px; }
  .form { padding: 24px 18px; }
  .cta-band .wrap { border-radius: 32px; padding: 48px 20px; }
}

/* 長い見出し・横長写真の見出し */
.page-hero h1.h1-long { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.75; }
.page-hero-img.wide { aspect-ratio: 2 / 1; }

/* 支援事例の冒頭: 白いカードの中に見出しと事実、右にアーチ窓 */
.case-hero { padding: 40px 0 16px; }
.case-hero-card {
  display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center;
  background: var(--white); border-radius: 48px; padding: 56px 56px 56px 64px;
}
.case-hero h1 { font-size: clamp(22px, 2.5vw, 31px); line-height: 1.75; margin: 0 0 14px; }
.case-hero .case-sub { margin: 0 0 36px; }
.case-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px; margin: 0; }
.case-facts > div { background: var(--kasumi); border-radius: var(--r-md); padding: 14px 22px 16px; }
.case-facts dt { font-size: 12px; color: var(--ink-soft); }
.case-facts dd { margin: 2px 0 0; font-family: var(--ff-round); font-weight: 700; font-size: 22px; color: var(--wan); white-space: nowrap; }
.case-facts .to { color: var(--cha); margin: 0 .35em; font-size: 18px; }
.case-hero-arch { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 999px 999px 24px 24px; margin: -24px 0; }
.case-hero-arch img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.11); }

@media (max-width: 1000px) {
  .case-hero { padding: 16px 0 8px; }
  .case-hero-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 22px 32px; border-radius: 32px; }
  .case-hero-arch { order: -1; max-width: 220px; margin: 0 auto; width: 100%; }
  .case-hero h1 { font-size: 20px; letter-spacing: .02em; }
  .case-hero h1 br { display: none; }
  .case-facts { grid-template-columns: 1fr 1fr; }
  .case-facts > div:nth-child(2) { grid-column: 1 / -1; order: -1; }
}
.case-hero h1 { font-size: clamp(20px, 2.15vw, 27px); }
.case-hero .case-kicker { background: var(--cha-soft); }
.case-hero-arch img { transform: scale(1.14); }
@media (max-width: 1000px) { .case-hero h1 { font-size: 20px; } }
/* 白いカードの外（霞の背景）に置くときは項目を白に */
section:not(.alt) > .wrap > .case-items > div { background: var(--white); }

/* お問い合わせ: フォーム＋メールの連絡先 */
.contact-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.contact-grid .form { max-width: none; }
.contact-mail { background: var(--white); border-radius: var(--r-lg); padding: 28px 26px; }
.contact-mail h2 { font-size: 18px; margin: 0 0 8px; }
.contact-mail p { font-size: 14px; margin: 0 0 14px; }
.contact-mail__addr { display: inline-block; font-family: var(--ff-round); font-weight: 700; font-size: 17px; color: var(--cha); overflow-wrap: anywhere; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fbe9e7; color: #8a2f1f; padding: 12px 16px; border-radius: 12px; font-size: 14px; margin: 0; }
.btn:disabled { opacity: .6; cursor: wait; }
.footer-mail { color: rgba(52, 80, 95, .9); }
@media (max-width: 1000px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* 代表写真（TOP のアーチ窓と同じ形） */
.profile-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 999px 999px var(--r-md) var(--r-md); background: var(--sora-soft); }
@media (max-width: 1000px) { .profile-photo { max-width: 220px; } }

/* フッターのリンクは途中で折り返さない（スマホで「の」だけ次の行に落ちていた） */
.site-footer a { display: inline-block; white-space: nowrap; }

/* 番号が「01-1」のように4文字になるので少し小さく */
.step-num { font-size: 14px; letter-spacing: 0; }
