/* =========================================================
   エムケイ開発株式会社  共通デザイン
   - 色・文字の大きさ・余白は、ここの変数だけを使う
   ========================================================= */
:root {
  /* 色 */
  --ink: #1d2420;          /* 見出し・本文 */
  --text: #39413c;         /* 本文 */
  --muted: #6a736d;        /* 補足 */
  --line: #e2e0d8;         /* 罫線 */
  --bg: #ffffff;
  --bg-soft: #f6f4ef;      /* 生成り（区切りの面） */
  --dark: #17201b;         /* 濃い面（理念・フッター） */
  --on-dark: #f3f1ea;
  --on-dark-muted: rgba(243, 241, 234, .68);
  --green: #1f7a4c;        /* ロゴの緑 */
  --green-deep: #135a37;
  --green-soft: #e7f1ea;

  /* 文字の大きさ（この6段階だけ） */
  --fs-xs: .75rem;     /* 12px ラベル */
  --fs-sm: .875rem;    /* 14px 補足 */
  --fs-base: 1rem;     /* 16px 本文 */
  --fs-lg: 1.25rem;    /* 20px 小見出し */
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);      /* 見出し */
  --fs-2xl: clamp(2rem, 1.4rem + 3vw, 3.5rem);       /* 大見出し */

  /* 余白（8の倍数） */
  --sp-1: .5rem;  --sp-2: 1rem;  --sp-3: 1.5rem; --sp-4: 2rem;
  --sp-6: 3rem;   --sp-8: 4rem;  --sp-12: 6rem;
  --section: clamp(4.5rem, 3rem + 7vw, 8rem);
  --gutter: clamp(1rem, .5rem + 3vw, 3rem);
  --max: 1200px;
  --max-narrow: 760px;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(23, 32, 27, .04), 0 8px 24px rgba(23, 32, 27, .06);
  --ease: cubic-bezier(.22, .61, .36, 1);

  --sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.9;
  letter-spacing: .04em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(var(--max-narrow) + var(--gutter) * 2); }
.section { padding: var(--section) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.sp-only { display: none; }
@media (max-width: 767px) { .pc-only { display: none; } .sp-only { display: inline; } }

/* ---------- 見出し ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 500; letter-spacing: .3em;
  color: var(--green); text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: #8fc7a6; }
.heading {
  font-family: var(--serif); font-weight: 500;
  font-size: var(--fs-xl); line-height: 1.6; letter-spacing: .08em;
  color: var(--ink); margin-top: var(--sp-2);
}
.section--dark .heading { color: var(--on-dark); }
.lead { margin-top: var(--sp-3); color: var(--muted); }
.section--dark .lead { color: var(--on-dark-muted); }
.section-head { margin-bottom: var(--sp-8); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 32px; height: 1px; background: currentColor; }

/* ---------- ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.header__inner {
  max-width: var(--max); margin: 0 auto; padding: var(--sp-3) var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  transition: padding .4s var(--ease);
}
.header__logo img { height: 34px; width: auto; transition: filter .4s var(--ease); }
.header--on-hero:not(.is-scrolled) .header__logo img { filter: brightness(0) invert(1); }
.header.is-scrolled, .header--solid {
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-scrolled .header__inner { padding-top: var(--sp-2); padding-bottom: var(--sp-2); }
.nav { display: flex; align-items: center; gap: var(--sp-4); }
.nav a {
  position: relative; text-decoration: none;
  font-size: var(--fs-sm); letter-spacing: .12em; color: var(--ink);
  padding: var(--sp-1) 0;
}
.header--on-hero:not(.is-scrolled) .nav > a:not(.nav__cta) { color: #fff; }
.nav > a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease);
}
.nav > a:not(.nav__cta):hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  padding: .55rem 1.25rem !important; border-radius: 999px;
  background: var(--green); color: #fff !important;
  transition: background .3s var(--ease);
}
.nav__cta:hover { background: var(--green-deep); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; z-index: 120; }
.menu-btn span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease), opacity .2s, background .3s;
}
.menu-btn span:nth-child(1) { top: 16px; } .menu-btn span:nth-child(2) { top: 22px; } .menu-btn span:nth-child(3) { top: 28px; }
.header--on-hero:not(.is-scrolled):not(.is-open) .menu-btn span { background: #fff; }
.is-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.is-open .menu-btn span:nth-child(2) { opacity: 0; }
.is-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  /* JS が動かないときは、メニューを並べて見せる */
  .header__inner { flex-wrap: wrap; }
  .nav { flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
}
@media (max-width: 860px) {
  .has-js .menu-btn { display: block; }
  .has-js .nav {
    position: fixed; inset: 0; z-index: 110; flex-direction: column; justify-content: center; gap: var(--sp-3);
    background: #fff;
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .has-js .nav a { font-size: var(--fs-lg); }
  .has-js .nav > a:not(.nav__cta) { color: var(--ink) !important; }
  .has-js .is-open .nav { opacity: 1; visibility: visible; }
  .has-js .header__inner { flex-wrap: nowrap; }
  .is-open .header__logo img { filter: none !important; }
  .header.is-open { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: grid; place-items: center; text-align: center; color: #fff; overflow: hidden;
  background: var(--dark);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); animation: heroZoom 14s var(--ease) forwards; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 13, .45) 0%, rgba(10, 18, 13, .25) 45%, rgba(10, 18, 13, .6) 100%); }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__content { position: relative; padding: 0 var(--gutter); }
.hero__eyebrow { font-size: var(--fs-xs); letter-spacing: .4em; opacity: .85; }
.hero__title {
  font-family: var(--serif); font-weight: 500; font-size: var(--fs-2xl);
  line-height: 1.55; letter-spacing: .12em; margin-top: var(--sp-3);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.hero__sub { margin-top: var(--sp-3); font-size: var(--fs-sm); letter-spacing: .2em; opacity: .9; }
.hero__scroll {
  position: absolute; left: 50%; bottom: var(--sp-4); transform: translateX(-50%);
  font-size: var(--fs-xs); letter-spacing: .3em; color: rgba(255, 255, 255, .8); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-1);
}
.hero__scroll::after { content: ""; width: 1px; height: 48px; background: linear-gradient(rgba(255,255,255,.9), transparent); animation: scrollLine 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ページ見出し（下層） */
.page-hero { padding: calc(var(--section) + 40px) 0 var(--sp-8); background: var(--bg-soft); text-align: center; }
.page-hero__title { font-family: var(--serif); font-weight: 500; font-size: var(--fs-2xl); letter-spacing: .12em; color: var(--ink); margin-top: var(--sp-2); line-height: 1.4; }

/* ---------- 理念 ---------- */
.philosophy { text-align: center; }
.philosophy__text { font-family: var(--serif); font-size: var(--fs-lg); line-height: 2.3; letter-spacing: .1em; margin-top: var(--sp-6); }
.credo {
  margin: var(--sp-8) auto 0; max-width: 640px; padding: var(--sp-6) var(--sp-4);
  border: 1px solid rgba(243, 241, 234, .18); border-radius: var(--radius);
}
.credo__title { font-family: var(--serif); font-weight: 500; font-size: var(--fs-base); letter-spacing: .3em; color: #8fc7a6; }
.credo__text { margin-top: var(--sp-3); font-size: var(--fs-sm); line-height: 2.2; color: var(--on-dark-muted); }

/* ---------- 代表メッセージ ---------- */
.message { display: grid; grid-template-columns: 280px 1fr; gap: var(--sp-8); align-items: start; }
.message__profile { position: sticky; top: 120px; }
.message__photo { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.message__name { margin-top: var(--sp-3); font-family: var(--serif); font-size: var(--fs-lg); color: var(--ink); letter-spacing: .2em; }
.message__role { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .2em; }
.message__body p + p { margin-top: var(--sp-3); }
.message__body .highlight { font-family: var(--serif); font-size: var(--fs-lg); color: var(--green-deep); padding: var(--sp-2) 0 var(--sp-2) var(--sp-3); border-left: 2px solid var(--green); line-height: 1.8; }
.message__more { display: none; }
@media (max-width: 860px) {
  .message { grid-template-columns: 1fr; gap: var(--sp-4); }
  .message__profile { position: static; display: grid; grid-template-columns: 120px 1fr; gap: var(--sp-3); align-items: end; }
  .message__profile .message__name { margin-top: 0; }
  .has-js .message__body { position: relative; max-height: 26rem; overflow: hidden; transition: max-height .6s var(--ease); }
  .has-js .message__body::after { content: ""; position: absolute; inset: auto 0 0; height: 8rem; background: linear-gradient(transparent, var(--bg)); transition: opacity .3s; }
  .has-js .message__body.is-expanded { max-height: 400rem; }
  .has-js .message__body.is-expanded::after { opacity: 0; pointer-events: none; }
  .has-js .message__more { display: block; margin: var(--sp-3) auto 0; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
  min-height: 48px; padding: .75rem 1.75rem; border-radius: 999px;
  font-size: var(--fs-sm); letter-spacing: .12em; text-decoration: none;
  background: var(--green); color: #fff; border: 1px solid var(--green);
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--dark .btn--outline, .banner .btn--outline { color: var(--on-dark); border-color: rgba(243,241,234,.35); }
.section--dark .btn--outline:hover, .banner .btn--outline:hover { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }

/* ---------- 事業 ---------- */
.biz-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-1); margin-bottom: var(--sp-8); }
.biz-nav a { font-size: var(--fs-sm); text-decoration: none; padding: .5rem 1.25rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .3s, color .3s; }
.biz-nav a:hover { border-color: var(--green); color: var(--green); }
.biz-group + .biz-group { margin-top: var(--sp-12); }
.biz-group__head { display: flex; align-items: baseline; gap: var(--sp-3); padding-bottom: var(--sp-3); margin-bottom: var(--sp-4); border-bottom: 1px solid var(--line); }
.biz-group__title { font-family: var(--serif); font-weight: 500; font-size: var(--fs-xl); color: var(--ink); letter-spacing: .1em; }
.biz-group__en { font-size: var(--fs-xs); letter-spacing: .3em; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--sp-4); }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(23,32,27,.05), 0 16px 40px rgba(23,32,27,.1); }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-3); }
.card__tag { font-size: var(--fs-xs); color: var(--green); letter-spacing: .15em; }
.card__title { font-size: var(--fs-lg); font-weight: 500; color: var(--ink); line-height: 1.5; margin-top: .25rem; letter-spacing: .05em; }
.card__text { margin-top: var(--sp-2); font-size: var(--fs-sm); line-height: 1.9; color: var(--text); }
.card__meta { margin-top: var(--sp-2); font-size: var(--fs-xs); color: var(--muted); }
.card__links { display: flex; gap: var(--sp-1); margin-top: auto; padding-top: var(--sp-3); }
.icon-link {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); transition: background .3s, color .3s, border-color .3s;
}
.icon-link svg { width: 18px; height: 18px; }
.icon-link:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* 海外事業 */
.overseas-intro { max-width: var(--max-narrow); }
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--sp-3); margin-top: var(--sp-6); counter-reset: svc; }
.service { padding: var(--sp-4) var(--sp-3); background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .3s; }
.service:hover { border-color: var(--green); }
.service__num { font-family: var(--serif); font-size: var(--fs-xl); color: var(--green); line-height: 1; }
.service__title { margin-top: var(--sp-2); font-size: var(--fs-base); font-weight: 500; color: var(--ink); }
.service__text { margin-top: var(--sp-1); font-size: var(--fs-sm); line-height: 1.85; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--sp-2); }
.tag { font-size: var(--fs-xs); padding: .2rem .75rem; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); }
.value { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--sp-6); margin-top: var(--sp-8); padding: var(--sp-6); background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.value__title { font-size: var(--fs-sm); letter-spacing: .2em; color: var(--muted); margin-bottom: var(--sp-2); }
.checks li { position: relative; padding-left: 1.75rem; }
.checks li + li { margin-top: .5rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .65em; width: 12px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.value__meta > div + div { margin-top: var(--sp-4); }
@media (max-width: 767px) { .value { grid-template-columns: 1fr; padding: var(--sp-4) var(--sp-3); } }

.banner {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--sp-8);
  border-radius: var(--radius); overflow: hidden; background: var(--dark); color: var(--on-dark);
}
.banner__img img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.banner__body { padding: var(--sp-6); display: flex; flex-direction: column; justify-content: center; gap: var(--sp-2); }
.banner__title { font-family: var(--serif); font-weight: 500; font-size: var(--fs-xl); letter-spacing: .08em; }
.banner__text { color: var(--on-dark-muted); font-size: var(--fs-sm); }
.banner__btns { display: flex; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-2); }
@media (max-width: 767px) { .banner { grid-template-columns: 1fr; } .banner__img img { min-height: 200px; } .banner__body { padding: var(--sp-4) var(--sp-3); } }

/* ---------- お問い合わせ帯 ---------- */
.cta { text-align: center; }
.cta .lead { margin-bottom: var(--sp-4); }

/* ---------- 会社概要 ---------- */
.info { width: 100%; border-collapse: collapse; }
.info th, .info td { text-align: left; vertical-align: top; padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.info th { width: 28%; font-weight: 500; color: var(--ink); font-size: var(--fs-sm); letter-spacing: .1em; padding-right: var(--sp-3); }
.info tr:first-child th, .info tr:first-child td { border-top: 1px solid var(--line); }
.info a { color: var(--green); }
.info .sub + .sub { margin-top: var(--sp-1); }
@media (max-width: 600px) { .info th, .info td { display: block; width: 100%; } .info th { padding-bottom: 0; border-bottom: 0; } .info td { padding-top: .25rem; } }
.ceo-short { display: grid; grid-template-columns: 220px 1fr; gap: var(--sp-6); align-items: center; }
.ceo-short img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }
.ceo-short__text { font-family: var(--serif); font-size: var(--fs-lg); line-height: 2.1; color: var(--ink); }
.ceo-short__motto { margin-top: var(--sp-3); color: var(--green-deep); }
.ceo-short__name { margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--muted); letter-spacing: .15em; }
@media (max-width: 767px) { .ceo-short { grid-template-columns: 1fr; gap: var(--sp-4); } .ceo-short img { max-width: 200px; } }

.timeline { position: relative; padding-left: var(--sp-4); }
.timeline::before { content: ""; position: absolute; left: 5px; top: .6rem; bottom: .6rem; width: 1px; background: var(--line); }
.timeline__item { position: relative; display: grid; grid-template-columns: 110px 1fr; gap: var(--sp-3); padding: var(--sp-2) 0; }
.timeline__item::before { content: ""; position: absolute; left: calc(-1 * var(--sp-4) + 1px); top: calc(var(--sp-2) + .55rem); width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 2px solid var(--green); }
.timeline__date { font-family: var(--serif); color: var(--green-deep); letter-spacing: .08em; }
@media (max-width: 600px) { .timeline__item { grid-template-columns: 1fr; gap: 0; } }

/* ---------- フォーム ---------- */
.form { max-width: 680px; margin: 0 auto; background: #fff; padding: var(--sp-6); border-radius: var(--radius); box-shadow: var(--shadow); }
.form__group + .form__group { margin-top: var(--sp-4); }
.form__label { display: flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-sm); font-weight: 500; color: var(--ink); margin-bottom: var(--sp-1); }
.form__req { font-size: var(--fs-xs); padding: 0 .5rem; border-radius: 3px; background: var(--green); color: #fff; letter-spacing: .05em; }
.form__input, .form__select, .form__textarea {
  width: 100%; font: inherit; font-size: var(--fs-base); color: var(--ink);
  padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form__textarea { min-height: 180px; resize: vertical; }
.form__input:focus, .form__select:focus, .form__textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.form__note { margin-top: .25rem; font-size: var(--fs-xs); color: var(--muted); }
.form__to { margin-top: var(--sp-2); padding: var(--sp-2); background: var(--green-soft); border-radius: var(--radius); font-size: var(--fs-sm); color: var(--green-deep); }
.form__submit { width: 100%; margin-top: var(--sp-6); }
@media (max-width: 600px) { .form { padding: var(--sp-4) var(--sp-3); } }

/* ---------- フッター ---------- */
.footer { background: var(--dark); color: var(--on-dark-muted); padding: var(--sp-8) 0 var(--sp-4); font-size: var(--fs-sm); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-6); }
.footer__logo { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer__addr { margin-top: var(--sp-3); line-height: 2; }
.footer__title { font-size: var(--fs-xs); letter-spacing: .3em; color: var(--on-dark); margin-bottom: var(--sp-2); }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer li + li { margin-top: .4rem; }
.footer__copy { margin-top: var(--sp-6); padding-top: var(--sp-3); border-top: 1px solid rgba(243,241,234,.12); font-size: var(--fs-xs); letter-spacing: .1em; }
@media (max-width: 767px) { .footer__grid { grid-template-columns: 1fr; gap: var(--sp-4); } }

.to-top {
  position: fixed; right: var(--sp-3); bottom: var(--sp-3); z-index: 90; width: 48px; height: 48px;
  display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink);
  box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* =========================================================
   動き
   ========================================================= */
/* 最初のロゴ演出：JS が動くときだけ出す（JS が止まっても中身は見える） */
.opening { display: none; }
.js .opening {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: #fff;
}
.opening__inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); }
.opening__logo { width: min(280px, 64vw); opacity: 0; transform: translateY(10px); animation: openLogo 1s var(--ease) .15s forwards; }
.opening__bar { width: min(200px, 48vw); height: 1px; background: var(--line); overflow: hidden; }
.opening__bar::after { content: ""; display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; animation: openBar 1.1s var(--ease) .35s forwards; }
.opening.is-done { animation: openOut .8s var(--ease) forwards; }
.opening.is-skip { display: none; }
@keyframes openLogo { to { opacity: 1; transform: none; } }
@keyframes openBar { to { transform: scaleX(1); } }
@keyframes openOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* ヒーローの文字：ロゴのあとに下から出る */
.has-js .hero__title .line > span, .has-js .hero__sub, .has-js .hero__eyebrow, .has-js .hero__scroll { opacity: 0; }
.is-ready .hero__eyebrow { animation: fadeUp 1s var(--ease) .1s forwards; }
.is-ready .hero__title .line > span { animation: lineUp 1.1s var(--ease) forwards; }
.is-ready .hero__title .line:nth-child(1) > span { animation-delay: .25s; }
.is-ready .hero__title .line:nth-child(2) > span { animation-delay: .4s; }
.is-ready .hero__title .line:nth-child(3) > span { animation-delay: .55s; }
.is-ready .hero__sub { animation: fadeUp 1s var(--ease) .85s forwards; }
.is-ready .hero__scroll { animation: fadeIn 1s var(--ease) 1.2s forwards; }
@keyframes lineUp { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }

/* スクロールで現れる */
.has-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.has-js [data-reveal].is-in { opacity: 1; transform: none; }
.has-js [data-reveal="img"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.has-js [data-reveal="img"].is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .opening { display: none; }
  .has-js [data-reveal], .has-js .hero__title .line > span, .has-js .hero__sub, .has-js .hero__eyebrow, .has-js .hero__scroll { opacity: 1; transform: none; clip-path: none; }
}

/* ヒーローの見出し：パソコンは2行、スマホは3行 */
@media (min-width: 768px) { .hero__title .line--join { display: inline-block; vertical-align: top; } }
@media (max-width: 767px) { .hero__title .line--join:nth-child(3), .hero__title .line--join:nth-child(4) { display: inline-block; vertical-align: top; } }

/* お問い合わせ：JS が動かないときはフォームを出さず、連絡先を案内する */
#contactForm { display: none; }
.has-js #contactForm { display: block; }
.has-js .form--nojs { display: none; }
