/* ==========================================================================
   株式会社ジャパン家 コーポレートサイト
   コンセプト: 3つの事業（円）が集まり、重なったところに新しい色が生まれる。
   その中心にあるのが「家」= 人が集まる場所。
   ========================================================================== */

:root {
  /* color */
  --navy: #1f286f;        /* ロゴのネイビー */
  --navy-deep: #161d54;
  --ink: #1c2242;         /* 本文 */
  --ink-soft: #5a6080;
  --red: #d70c18;         /* ロゴの日の丸 */
  --school: #e94829;      /* スクール事業（ジャパン家ボーカルスクールの朱） */
  --ent: #f7b500;         /* エンターテインメント事業 */
  --intl: #57a0d9;        /* 国際人材・ビジネス事業（cocori の水色） */
  --bg: #ffffff;
  --tint: #f3f5fb;
  --line: #dfe3f0;

  /* type */
  --font-jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --font-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* layout */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 11vw, 140px);
  --radius: 20px;
  --header-h: 72px;
}

*, *::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(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: .04em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--intl); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tint { background: var(--tint); }
.sp-only { display: none; }
@media (max-width: 767px) { .sp-only { display: inline; } .pc-only { display: none; } }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.header__logo img { width: 168px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.nav a { text-decoration: none; font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.nav a:not(.btn):hover { color: var(--school); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: 999px;
  background: var(--navy); color: #fff !important;
  font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn--sm { padding: 10px 22px; font-size: 14px; }
.btn--lg { padding: 20px 44px; font-size: 17px; }
.btn--white { background: #fff; color: var(--navy) !important; }
.btn--white:hover { background: var(--tint); }
.arrow { width: 18px; height: 10px; flex: none; }

@media (max-width: 899px) {
  :root { --header-h: 60px; }
  .header__logo img { width: 136px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; color: var(--navy);
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 24px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, background .25s;
  }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -8px; }
  .nav-toggle span::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] span { background: transparent; }
  .nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav .btn { margin-top: 24px; }
}

/* ---------- section heading ---------- */
.heading { display: grid; gap: 10px; margin-bottom: clamp(36px, 6vw, 64px); }
.heading__en {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .2em; line-height: 1; color: var(--navy);
}
.heading__en::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.heading__jp { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 900; line-height: 1.4; color: var(--navy); text-wrap: balance; }

/* ---------- hero (top) ---------- */
.hero { position: relative; padding-block: clamp(32px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero__copy { min-width: 0; }
.hero__title {
  font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 900; line-height: 1.7; letter-spacing: .02em; color: var(--navy);
}
.hero__title span { display: block; white-space: nowrap; }
.hero__title em { font-style: normal; background: linear-gradient(transparent 68%, color-mix(in srgb, var(--ent) 55%, transparent) 68%); }
.hero__lead { margin-top: 28px; max-width: 30em; color: var(--ink); font-weight: 500; }
.hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 32px; font-weight: 700; font-size: 14px; color: var(--navy); line-height: 1.5; }
.hero__tags li { display: flex; align-items: center; gap: 8px; }
.hero__tags li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.hero__tags li + li::before { margin-left: 0; }
.hero__tags .x { font-family: var(--font-en); color: var(--ink-soft); font-weight: 600; }
.hero__tags .x::before { display: none; }

/* 3つの円 */
.venn { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1; margin-inline: auto; isolation: isolate; }
.venn__circle { position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; mix-blend-mode: multiply; }
.venn__circle--school { left: 20%; top: 2%; background: var(--school); --from: 0, -34%; }
.venn__circle--ent { left: 2%; top: 36%; background: var(--ent); --from: -34%, 26%; }
.venn__circle--intl { left: 38%; top: 36%; background: var(--intl); --from: 34%, 26%; }
.venn__mark { position: absolute; left: 50%; top: 55%; width: 21%; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 14px rgba(22, 29, 84, .28)); }
.venn__label {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; gap: 6px; justify-items: center; text-align: center; text-decoration: none; color: var(--navy);
}
.venn__label b { font-family: var(--font-en); font-size: clamp(9px, 1vw, 11px); font-weight: 800; letter-spacing: .16em; line-height: 1; }
.venn__label span { white-space: nowrap; font-size: clamp(13px, 1.5vw, 17px); font-weight: 900; line-height: 1.35; letter-spacing: .04em; border-bottom: 2px solid transparent; transition: border-color .2s; }
.venn__label:hover span { border-color: currentColor; }
.venn__label--school { left: 50%; top: 24.5%; }
.venn__label--ent { left: 20%; top: 71.5%; }
.venn__label--intl { left: 80%; top: 71.5%; }
.venn__dot { position: absolute; left: var(--x); top: var(--y); width: var(--s); aspect-ratio: 1; border-radius: 50%; background: var(--c); }

@media (prefers-reduced-motion: no-preference) {
  .venn__circle { animation: gather 1.5s cubic-bezier(.2, .8, .2, 1) both, drift 9s ease-in-out 1.5s infinite alternate; }
  .venn__circle--ent { animation-delay: .12s, 1.62s; }
  .venn__circle--intl { animation-delay: .24s, 1.74s; }
  .venn__mark { animation: pop .7s cubic-bezier(.3, 1.5, .5, 1) 1s both; }
  .venn__label { animation: fade .6s ease 1.1s both; }
  .venn__dot { animation: fade .8s ease calc(var(--d, 0) * 1s + .4s) both, bob 6s ease-in-out calc(var(--d, 0) * -3s) infinite alternate; }
  @keyframes gather { from { translate: var(--from); opacity: 0; } to { translate: 0 0; opacity: 1; } }
  @keyframes drift { from { transform: translate(0, 0); } to { transform: translate(calc(var(--dx, 1) * 1.5%), 2%); } }
  @keyframes pop { from { transform: translate(-50%, -50%) scale(0); } to { transform: translate(-50%, -50%) scale(1); } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes bob { from { translate: 0 0; } to { translate: 0 -10px; } }
}

@media (max-width: 899px) {
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__title { font-size: clamp(1.25rem, 6vw, 2.9rem); }
  .venn { order: -1; max-width: 440px; }
}

/* ---------- about ---------- */
.about { position: relative; overflow: hidden; }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__side { position: sticky; top: calc(var(--header-h) + 40px); }
.about__quote { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 900; line-height: 1.65; color: var(--navy); }
.about__quote i { font-style: normal; color: var(--school); }
.about__x { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 28px; font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.6; }
.about__x .x { font-family: var(--font-en); color: var(--ink-soft); }
.prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.9em; max-width: 36em; }
.prose strong { font-weight: 900; color: var(--navy); background: linear-gradient(transparent 70%, color-mix(in srgb, var(--ent) 50%, transparent) 70%); }
.prose__lead { font-size: clamp(1.125rem, 2vw, 1.3rem); font-weight: 700; line-height: 1.9; color: var(--navy); }
.paths { display: grid; gap: 14px; padding: 8px 0; }
.paths li {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 18px;
  padding: 18px 26px; background: #fff; border-radius: 999px; font-weight: 700; color: var(--navy); line-height: 1.6;
}
.paths li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.paths b { font-weight: 900; }
.closing { font-size: clamp(1.125rem, 2vw, 1.35rem); font-weight: 900; line-height: 1.9; color: var(--navy); }
@media (max-width: 899px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__side { position: static; }
  .paths li { border-radius: 18px; padding: 16px 20px; }
}

/* ---------- business ---------- */
.biz-list { display: grid; gap: clamp(64px, 9vw, 112px); }
.biz { --c: var(--school); position: relative; display: grid; gap: clamp(24px, 3.4vw, 40px); }
.biz--ent { --c: var(--ent); }
.biz--intl { --c: var(--intl); }
.biz__photo { position: relative; }
.biz__photo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--radius); }
.biz__badge {
  position: absolute; left: clamp(-28px, -2vw, -12px); top: clamp(-44px, -3.4vw, -24px);
  display: grid; place-items: center; width: clamp(84px, 11vw, 136px); aspect-ratio: 1; border-radius: 50%;
  background: var(--c); color: var(--navy);
  font-family: var(--font-en); font-weight: 800; font-size: clamp(8px, 1vw, 12px); letter-spacing: .12em; line-height: 1.5; text-align: center;
}
.biz--right .biz__badge { left: auto; right: clamp(-28px, -2vw, -12px); }
.biz__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(32px, 6vw, 96px); align-items: start; }
.biz__title { display: flex; align-items: center; gap: 14px; font-size: clamp(1.4rem, 2.8vw, 2rem); font-weight: 900; line-height: 1.5; color: var(--navy); }
.biz__title::before { content: ""; flex: none; width: .6em; height: .6em; border-radius: 50%; background: var(--c); }
.biz__text { display: grid; gap: 20px; justify-items: start; }
.biz__catch { font-size: clamp(1.05rem, 1.8vw, 1.2rem); font-weight: 700; line-height: 2; }
.more {
  display: inline-flex; align-items: center; gap: 14px; padding: 6px 0; text-decoration: none; font-weight: 900; font-size: 15px; color: var(--navy);
  border-bottom: 2px solid var(--navy);
}
.more__dot { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 6px; border-radius: 50%; background: var(--c, var(--navy)); color: var(--navy); transition: transform .2s; }
.more:hover .more__dot { transform: translateX(6px); }
@media (max-width: 767px) {
  .biz__photo img { aspect-ratio: 16 / 9; border-radius: 14px; }
  .biz__body { grid-template-columns: 1fr; }
}

/* ---------- company ---------- */
.company__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.table { border-top: 2px solid var(--navy); }
.table > div { display: grid; grid-template-columns: 9em 1fr; gap: 8px 24px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.table dt { font-weight: 900; color: var(--navy); }
.ceo { display: grid; gap: 20px; }
.ceo__photo { position: relative; isolation: isolate; }
.ceo__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: var(--radius); }
.ceo__photo::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--intl); z-index: -1; }
.ceo__role { font-size: 13px; font-weight: 700; color: var(--ink-soft); line-height: 1.6; }
.ceo__name { font-size: 1.5rem; font-weight: 900; color: var(--navy); line-height: 1.5; letter-spacing: .12em; }
@media (max-width: 767px) {
  .company__grid { grid-template-columns: 1fr; }
  .table > div { grid-template-columns: 1fr; padding: 16px 0; gap: 0; }
  .ceo { max-width: 300px; }
}

/* ---------- contact ---------- */
.contact { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-deep); color: #fff; text-align: center; }
.contact .heading { justify-items: center; margin-bottom: 24px; }
.contact .heading__en, .contact .heading__jp { color: #fff; }
.contact p { max-width: 34em; margin-inline: auto; }
.contact .btn { margin-top: 36px; }
.contact__circle { position: absolute; z-index: -1; border-radius: 50%; mix-blend-mode: screen; opacity: .5; }
.contact__circle--a { width: 360px; aspect-ratio: 1; left: -120px; top: -140px; background: var(--school); }
.contact__circle--b { width: 280px; aspect-ratio: 1; left: 90px; top: -180px; background: var(--ent); }
.contact__circle--c { width: 420px; aspect-ratio: 1; right: -160px; bottom: -220px; background: var(--intl); }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #fff; padding-block: 64px 32px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 40px; }
.footer__logo img { width: 190px; }
.footer__addr { margin-top: 20px; line-height: 1.9; opacity: .8; }
.footer h2 { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .18em; opacity: .6; margin-bottom: 14px; line-height: 1.4; }
.footer li + li { margin-top: 8px; }
.footer a { text-decoration: none; line-height: 1.7; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer small { display: block; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); font-family: var(--font-en); font-size: 12px; letter-spacing: .1em; opacity: .7; }
@media (max-width: 899px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ==========================================================================
   下層ページ（事業ページ）
   ========================================================================== */
.page-school { --c: var(--school); }
.page-ent { --c: var(--ent); }
.page-intl { --c: var(--intl); }

.phero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.phero__circle { position: absolute; z-index: -1; border-radius: 50%; mix-blend-mode: multiply; }
.phero__circle--main { width: clamp(300px, 46vw, 640px); aspect-ratio: 1; right: -8%; top: -30%; background: var(--c); }
.phero__circle--a { width: clamp(120px, 16vw, 230px); aspect-ratio: 1; right: 26%; top: 44%; background: var(--ent); }
.phero__circle--b { width: clamp(80px, 10vw, 150px); aspect-ratio: 1; right: 4%; top: 58%; background: var(--intl); }
.page-ent .phero__circle--a { background: var(--school); }
.page-intl .phero__circle--b { background: var(--school); }
.phero__en { display: flex; align-items: center; gap: 10px; font-family: var(--font-en); font-weight: 700; font-size: 13px; letter-spacing: .2em; color: var(--navy); line-height: 1; }
.phero__en::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.phero__title { margin-top: 18px; font-size: clamp(1.5rem, 6.6vw, 4rem); font-weight: 900; line-height: 1.3; color: var(--navy); }
.phero__lead { margin-top: 28px; font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.9; color: var(--navy); max-width: 22em; }
.phero__photo { margin-top: clamp(40px, 6vw, 72px); }
.phero__photo img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 767px) { .phero__photo img { aspect-ratio: 16 / 9; border-radius: 14px; } .phero__circle--main { right: -42%; top: -22%; } .phero__circle--a, .phero__circle--b { display: none; } }

.statement { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement__catch { position: sticky; top: calc(var(--header-h) + 40px); font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 900; line-height: 1.6; color: var(--navy); }
.statement__catch i { font-style: normal; background: linear-gradient(transparent 68%, color-mix(in srgb, var(--c) 45%, transparent) 68%); }
@media (max-width: 899px) { .statement { grid-template-columns: 1fr; } .statement__catch { position: static; } }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-inline: 4%; margin-block: 12px; isolation: isolate; }
.trio li {
  display: grid; place-content: center; gap: 6px; text-align: center; aspect-ratio: 1; border-radius: 50%; padding: 6px;
  background: var(--c); mix-blend-mode: multiply; color: var(--navy); line-height: 1.5; margin-inline: -4%;
}
.trio small { font-size: clamp(10px, 1.2vw, 14px); font-weight: 700; }
.trio b { font-size: clamp(12px, 1.6vw, 18px); font-weight: 900; }

.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.link-card {
  display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: 32px 28px 26px; background: #fff; border-radius: var(--radius);
  text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s;
}
.link-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31, 40, 111, .12); }
.link-card__logo { height: 64px; display: flex; align-items: center; justify-content: center; }
.link-card__logo img { max-height: 64px; width: auto; }
.link-card__name { font-size: 1.15rem; font-weight: 900; color: var(--navy); line-height: 1.5; }
.link-card__desc { font-size: 14px; line-height: 1.8; color: var(--ink-soft); margin-top: 6px; }
.link-card__url { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--font-en); font-size: 13px; font-weight: 600; color: var(--navy); letter-spacing: .02em; word-break: break-all; }
@media (max-width: 899px) { .links { grid-template-columns: 1fr; } }

.others { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.other {
  --c: var(--ent); position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 6px; padding: 36px 32px; border: 2px solid var(--navy); border-radius: var(--radius);
  text-decoration: none; color: var(--navy);
}
.other--intl { --c: var(--intl); }
.other--school { --c: var(--school); }
.other::after { content: ""; position: absolute; z-index: -1; right: -40px; top: 50%; width: 150px; aspect-ratio: 1; border-radius: 50%; background: var(--c); transform: translateY(-50%); transition: transform .3s; }
.other:hover::after { transform: translateY(-50%) scale(1.25); }
.other b { font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .18em; line-height: 1.4; }
.other span { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 900; line-height: 1.5; }
@media (max-width: 767px) { .others { grid-template-columns: 1fr; } }

/* ---------- 追加: 事業ページ・プロフィール ---------- */
.paths--tint li { background: var(--tint); }
.links--2 { grid-template-columns: repeat(2, 1fr); }
.links--1 { grid-template-columns: minmax(0, 560px); }
@media (max-width: 899px) { .links--2, .links--1 { grid-template-columns: 1fr; } }

.page-profile { --c: var(--intl); }
.page-profile .phero__circle--b { background: var(--school); }
.page-profile .phero { padding-bottom: clamp(24px, 4vw, 48px); }
.profile { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
.profile__side { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 20px; }
@media (max-width: 767px) {
  .profile { grid-template-columns: 1fr; }
  .profile__side { position: static; max-width: 300px; }
}

.link-card--photo { overflow: hidden; }
.link-card__photo { margin: -32px -28px 8px; }
.link-card__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- お問い合わせフォーム ---------- */
.page-contact { --c: var(--ent); }
.page-contact .phero__circle--a { background: var(--school); }
.page-contact .phero { padding-bottom: clamp(24px, 4vw, 48px); }
.form { display: grid; gap: 32px; max-width: 760px; margin-inline: auto; }
.form__row { display: grid; gap: 10px; }
.form__label { display: flex; align-items: center; gap: 12px; font-weight: 900; color: var(--navy); line-height: 1.6; }
.form__tag { padding: 3px 10px; border-radius: 999px; background: var(--school); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .1em; }
.form__tag--opt { background: var(--tint); color: var(--ink-soft); }
.form__input {
  width: 100%; padding: 16px 18px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
  font: inherit; font-size: 16px; line-height: 1.6; letter-spacing: .04em; color: var(--ink); transition: border-color .2s;
}
.form__input::placeholder { color: #a9aec4; }
.form__input:focus { outline: none; border-color: var(--navy); }
.form__input--area { min-height: 220px; resize: vertical; line-height: 1.9; }
.form__submit { display: grid; justify-items: center; margin-top: 16px; }
.form__submit .btn { border: 0; cursor: pointer; font-family: inherit; min-width: min(320px, 100%); }

/* ---------- 折り返し制御 ---------- */
/* リード文・キャッチは文節単位（.ph）でのみ折り返す */
.ph { display: inline-block; }
/* 本文は対応ブラウザで文節区切りの折り返しにする */
.prose p, .link-card__desc, .hero__lead, .contact p { word-break: auto-phrase; }

/* ---------- エラーページ ---------- */
.page-error { --c: var(--school); }
.phero--error { padding-bottom: var(--section); }
.phero--error .phero__lead { max-width: none; }
.phero--error .btn { margin-top: clamp(48px, 6vw, 64px); }

/* ---------- 所在地の地図リンク ---------- */
.maplink { display: inline-flex; align-items: center; gap: 4px; margin-left: 14px; font-size: 12px; font-weight: 500; color: var(--ink-soft); text-decoration: none; white-space: nowrap; transition: color .2s; }
.maplink svg { width: 11px; height: 11px; }
.maplink:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- フォームのエラー表示・完了画面 ---------- */
.form__hint { font-size: 13px; line-height: 1.6; color: var(--ink-soft); }
.form__input.is-error { border-color: var(--red); background: #fff6f5; }
.form__error { font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--red); }
.form__alert { padding: 16px 20px; border-radius: 12px; background: #fff0ee; color: var(--red); font-weight: 700; line-height: 1.7; }
.phero--done { padding-bottom: var(--section); }
.phero--done .phero__lead { max-width: 26em; }
.phero--done .btn { margin-top: clamp(48px, 6vw, 64px); }

/* 不正送信対策の隠し項目（人には見せない） */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
