/* みどりの丘会 採用LP（デモ） */
:root {
  --bg: #fffaf2;
  --paper: #ffffff;
  --ink: #33403a;
  --sub: #6f7b74;
  --line: #e6e0d4;
  --green: #6fae7f;
  --green-d: #3f7d52;
  --green-l: #e9f4ea;
  --orange: #f08a4b;
  --orange-l: #fdeee2;
  --round: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --hand: 'Klee One', 'Zen Maru Gothic', sans-serif;
  --ja: 'Zen Kaku Gothic New', 'Hiragino Sans', sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ja); font-size: 16px; line-height: 1.95; letter-spacing: .04em; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd, fieldset { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1100px, 100% - 64px); margin-inline: auto; }
.sp { display: none; }

.demo-bar { background: var(--green-d); color: #e5f2e8; font-size: 12px; line-height: 1.6; padding: 8px 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.demo-bar a { color: #fff3c9; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 30px; border-radius: 999px; font-family: var(--round); font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .3s var(--pop), box-shadow .3s, background .3s; }
.btn--orange { background: var(--orange); color: #fff; box-shadow: 0 6px 0 #c96a31; }
.btn--orange:hover { transform: translateY(-3px); box-shadow: 0 9px 0 #c96a31; }
.btn--line { background: #fff; border-color: var(--green); color: var(--green-d); }
.btn--line:hover { background: var(--green-l); }
.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; box-shadow: 0 4px 0 #c96a31; }
.btn--block { width: 100%; }

/* ヘッダー */
.header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; padding: 12px 28px; background: rgba(255, 250, 242, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--round); font-weight: 700; font-size: 16px; line-height: 1.3; }
.logo svg { width: 40px; height: 40px; flex: none; }
.logo small { display: block; font-size: 11px; color: var(--sub); }
.gnav { display: flex; gap: 4px; margin-left: auto; }
.gnav a { padding: 6px 12px; border-radius: 999px; font-family: var(--round); font-weight: 700; font-size: 14px; text-decoration: none; transition: background .3s; }
.gnav a:hover { background: var(--green-l); }

/* 見出し */
.eyebrow { font-family: var(--hand); font-weight: 600; font-size: 20px; color: var(--orange); letter-spacing: .04em; }
.eyebrow--light { color: #ffe1c4; }
.title { margin-top: 4px; font-family: var(--round); font-weight: 900; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.5; letter-spacing: .06em; }
.title--light { color: #fff; }
.head { margin-bottom: 44px; }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.head__note { margin-top: 10px; color: var(--sub); font-size: 15px; }

/* ファーストビュー */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding: 50px max(32px, (100vw - 1180px) / 2) 90px; overflow: hidden; }
.hero__text { position: relative; z-index: 2; }
.hero__tag { display: inline-block; padding: 4px 16px; border-radius: 999px; background: var(--green-l); color: var(--green-d); font-family: var(--round); font-weight: 700; font-size: 14px; }
.hero__title { margin-top: 18px; font-family: var(--round); font-weight: 900; font-size: clamp(34px, 4.6vw, 62px); line-height: 1.35; letter-spacing: .04em; }
.hero__title span { display: block; white-space: nowrap; }
.hero__title span:last-child { color: var(--green-d); }
.hero__title .c { display: inline-block; white-space: normal; }
.motion .hero__title .c { opacity: 0; transform: translateY(.5em); animation: up .7s var(--pop) forwards; animation-delay: calc(.3s + var(--i) * .05s); }
@keyframes up { to { opacity: 1; transform: none; } }
.hero__lead { margin-top: 20px; font-size: 16px; color: var(--sub); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.motion .hero__lead, .motion .hero__btns, .motion .hero__tag { opacity: 0; animation: up .8s var(--ease) forwards; }
.motion .hero__tag { animation-delay: .1s; } .motion .hero__lead { animation-delay: 1.2s; } .motion .hero__btns { animation-delay: 1.4s; }
.hero__photos { position: relative; grid-column: 2; grid-row: 1; aspect-ratio: 4 / 5; max-height: 72vh; justify-self: center; width: 100%; max-width: 520px; }
.hero__photo { position: absolute; inset: 0; border-radius: 58% 42% 46% 54% / 48% 56% 44% 52%; overflow: hidden; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero__photo.ph { background: linear-gradient(160deg, #cfe6d3, #8cc19a); }
.hero__photo.is-on { opacity: 1; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.hero__photo.is-on img { transform: scale(1); }
.motion .hero__photo { animation: blob 14s ease-in-out infinite alternate; }
@keyframes blob { 50% { border-radius: 44% 56% 58% 42% / 54% 44% 56% 46%; } 100% { border-radius: 52% 48% 40% 60% / 42% 58% 50% 50%; } }
.motion .hero__photos { animation: popIn 1s var(--pop) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
.hero__dots { position: absolute; left: 50%; bottom: -26px; display: flex; gap: 8px; transform: translateX(-50%); }
.hero__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s; }
.hero__dots i.is-on { width: 24px; border-radius: 8px; background: var(--green); }
.hero__tour { position: absolute; z-index: 3; right: calc(max(32px, (100vw - 1180px) / 2) + 2%); bottom: 70px; width: 150px; height: 150px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; line-height: 1.35; box-shadow: 0 8px 0 #c96a31; transition: transform .3s var(--pop); }
.hero__tour b { font-family: var(--round); font-weight: 900; font-size: 19px; }
.hero__tour-label { font-size: 12px; padding: 0 10px; border-radius: 99px; background: #fff; color: var(--orange); font-weight: 700; margin-bottom: 4px; }
.hero__tour-sub { font-size: 11px; margin-top: 4px; }
.hero__tour:hover { transform: rotate(-6deg) scale(1.06); }
.motion .hero__tour { animation: popIn .8s var(--pop) 1.6s both, sway 4s ease-in-out 2.4s infinite; }
@keyframes sway { 50% { transform: rotate(-5deg) translateY(-6px); } }
.hero__leaf { position: absolute; width: 60px; z-index: 1; }
.hero__leaf--1 { left: 47%; top: 14%; }
.hero__leaf--2 { right: 4%; top: 10%; width: 44px; transform: rotate(80deg); }
.motion .hero__leaf { animation: float 6s ease-in-out infinite; }
.motion .hero__leaf--2 { animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -14px; rotate: 12deg; } }

/* 想い */
.message { padding: 110px 0; }
.message .title { font-size: clamp(24px, 2.7vw, 34px); }
.message__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: center; }
.js-lines { margin-top: 28px; font-family: var(--hand); font-weight: 600; font-size: 18px; line-height: 2.3; }
.js-lines .ln { display: block; }
.motion .js-lines .ln { opacity: 0; transform: translateX(-12px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--k) * .25s); }
.motion .js-lines.is-in .ln { opacity: 1; transform: none; }
.message__sign { margin-top: 24px; font-family: var(--hand); font-weight: 600; text-align: right; color: var(--sub); }
.message__photo { aspect-ratio: 9 / 11; border-radius: 200px 200px 24px 24px; overflow: hidden; }
.message__photo.ph { background: linear-gradient(160deg, #f7d9be, #e5a77c); }
.message__photo img { width: 100%; height: 100%; object-fit: cover; }

/* 数字で見る */
.data { padding: 110px 0; background: var(--green-l); border-radius: 60px 60px 0 0; }
.data__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { position: relative; padding: 30px 26px; border-radius: 28px; background: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 230px; }
.stat__label { font-family: var(--round); font-weight: 700; font-size: 15px; }
.stat__num { font-family: var(--round); font-weight: 700; font-size: 16px; color: var(--green-d); }
.stat__num b { font-family: var(--round); font-weight: 900; font-size: 42px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__num--big b { font-size: 60px; color: var(--orange); }
.stat__note { margin-top: 6px; font-size: 12px; color: var(--sub); }
.stat--ring { padding-top: 22px; }
.stat--ring svg { width: 130px; height: 130px; transform: rotate(-90deg); }
.stat--ring .stat__num { position: absolute; top: 72px; left: 0; right: 0; }
.stat--ring .stat__num b { font-size: 34px; }
.stat--ring .stat__label { margin-top: 10px; }
.ring-bg, .ring { fill: none; stroke-width: 12; }
.ring-bg { stroke: var(--green-l); }
.ring { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: calc(314 * (1 - var(--p))); transition: stroke-dashoffset 1.6s var(--ease) .2s; }
.ring--orange { stroke: var(--orange); }
.motion .stat:not(.is-in) .ring { stroke-dashoffset: 314; }
.bars { width: 100%; margin-top: 14px; display: grid; gap: 8px; }
.bars li { display: grid; grid-template-columns: 54px 1fr 40px; align-items: center; gap: 8px; font-size: 13px; }
.bars i { display: block; height: 14px; border-radius: 99px; background: var(--green); width: var(--w); transition: width 1.4s var(--ease); }
.bars li:nth-child(even) i { background: var(--orange); }
.motion .stat:not(.is-in) .bars i { width: 0; }
.bars b { font-family: var(--round); text-align: right; }
.data__note { margin-top: 16px; font-size: 12px; color: var(--sub); text-align: right; }

/* お仕事 */
.jobs { padding: 110px 0; }
.jobtabs, .rtabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.jobtabs button, .rtabs button { height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-family: var(--round); font-weight: 700; font-size: 15px; cursor: pointer; transition: background .3s, border-color .3s, color .3s, transform .3s var(--pop); }
.jobtabs button:hover, .rtabs button:hover { border-color: var(--green); }
.jobtabs button[aria-selected="true"], .rtabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); }
.job { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 30px; border-radius: 32px; background: #fff; }
.motion .job.is-swap { animation: up .6s var(--ease) both; }
.job__img { aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; }
.job__img.ph { background: linear-gradient(160deg, #cfe6d3, #8cc19a); }
.job__img img { width: 100%; height: 100%; object-fit: cover; }
.job h3 { font-family: var(--round); font-weight: 900; font-size: 22px; line-height: 1.5; }
.job p { margin-top: 12px; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 2px 14px; border-radius: 99px; background: var(--orange-l); color: #b8592a; font-size: 13px; font-weight: 700; }

/* 1日 */
.day { padding: 100px 0; background: #fff; }
.switch { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--green-l); }
.switch button { height: 42px; padding: 0 26px; border: 0; border-radius: 999px; background: transparent; font-family: var(--round); font-weight: 700; cursor: pointer; transition: background .3s, color .3s; }
.switch button.is-on { background: var(--green-d); color: #fff; }
.flow { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding-top: 34px; }
.flow::before { content: ""; position: absolute; left: 4%; right: 4%; top: 10px; height: 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, var(--green) 0 12px, transparent 12px 20px); }
.flow li { position: relative; padding: 18px 16px; border-radius: 20px; background: var(--bg); }
.flow li::before { content: ""; position: absolute; top: -34px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #fff; border: 5px solid var(--orange); }
.flow time { font-family: var(--round); font-weight: 900; font-size: 22px; color: var(--green-d); }
.flow p { font-family: var(--round); font-weight: 700; font-size: 15px; line-height: 1.6; }
.flow small { display: block; margin-top: 6px; font-family: var(--ja); font-weight: 400; font-size: 12px; color: var(--sub); }
.motion .flow.is-swap li { animation: up .6s var(--pop) both; animation-delay: calc(var(--k) * .08s); }
.flow[data-shift="night"] li { background: #eef0f8; }
.flow[data-shift="night"] li::before { border-color: #6c78b8; }

/* 先輩の声 */
.people { padding: 110px 0; }
.people__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.person { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.person__photo { display: block; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; }
.person__photo.ph { background: linear-gradient(160deg, #f7d9be, #e5a77c); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.person:hover .person__photo img { transform: scale(1.06); }
.person__quote { position: relative; display: block; margin: -40px 14px 0; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(51, 64, 58, .1); font-family: var(--hand); font-weight: 600; font-size: 16px; line-height: 1.7; transition: transform .4s var(--pop); }
.person:hover .person__quote { transform: translateY(-6px) rotate(-1deg); }
.person__meta { display: block; margin-top: 14px; padding: 0 6px; font-size: 13px; color: var(--sub); }
.person__meta b { display: block; font-family: var(--round); font-size: 18px; color: var(--ink); }
.person__meta::after { content: "インタビューを読む →"; display: block; margin-top: 4px; color: var(--orange); font-weight: 700; }
.modal { padding: 0; border: 0; border-radius: 28px; max-width: min(860px, calc(100% - 32px)); width: 100%; background: #fff; color: var(--ink); }
.modal::backdrop { background: rgba(40, 52, 46, .6); }
.modal[open] { animation: popIn .45s var(--pop); }
.modal__inner { position: relative; display: grid; grid-template-columns: 1fr 1.3fr; }
.modal__photo { aspect-ratio: 4 / 5; }
.modal__photo.ph { background: linear-gradient(160deg, #f7d9be, #e5a77c); }
.modal__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.modal__body { padding: 34px 32px; max-height: 80vh; overflow-y: auto; }
.modal__meta { font-size: 13px; color: var(--sub); }
.modal__name { font-family: var(--round); font-weight: 900; font-size: 24px; }
.qa dt { margin-top: 18px; font-family: var(--round); font-weight: 700; color: var(--green-d); }
.qa dt::before { content: "Q. "; color: var(--orange); }
.qa dd { margin-top: 4px; font-size: 15px; }
.modal__close { position: absolute; right: 12px; top: 12px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
.modal__close::before, .modal__close::after { content: ""; position: absolute; left: 13px; right: 13px; top: 50%; height: 2px; background: var(--ink); transform: rotate(45deg); }
.modal__close::after { transform: rotate(-45deg); }

/* 育成 */
.career { padding: 110px 0; background: var(--orange-l); border-radius: 60px; margin: 0 16px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; align-items: start; }
.steps li { padding: 20px 16px; border-radius: 20px 20px 6px 6px; background: #fff; }
.steps li:nth-child(1) { margin-top: 160px; } .steps li:nth-child(2) { margin-top: 120px; } .steps li:nth-child(3) { margin-top: 80px; } .steps li:nth-child(4) { margin-top: 40px; }
.steps li:last-child { background: var(--orange); color: #fff; }
.steps__no { display: inline-block; padding: 0 10px; border-radius: 99px; background: var(--green-l); color: var(--green-d); font-family: var(--round); font-weight: 900; font-size: 12px; }
.steps b { display: block; margin-top: 8px; font-family: var(--round); font-size: 16px; line-height: 1.5; }
.steps p { margin-top: 6px; font-size: 13px; line-height: 1.7; }
.steps li:last-child p { color: #fff3e8; }
.steps li:last-child .steps__no { background: #fff; color: var(--orange); }
.motion .steps li[data-r] { transform: translateY(60px); }
.motion .steps li[data-r].is-in { transform: none; transition: opacity .7s, transform .8s var(--pop); transition-delay: var(--d, 0s); }

/* よくある質問 */
.faq { padding: 110px 0; }
.faq__inner { display: grid; grid-template-columns: 1fr 2fr; gap: 50px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 48px 20px 44px; font-family: var(--round); font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 15px; line-height: 1; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 10px 22px 44px; font-size: 15px; color: var(--sub); }
.motion .faq details[open] p { animation: up .5s var(--ease); }

/* 募集要項 */
.recruit { padding: 110px 0; background: #fff; }
.table { border-top: 2px solid var(--green); }
.table > div { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--line); }
.table dt { padding: 18px 20px; background: var(--green-l); font-family: var(--round); font-weight: 700; }
.table dd { padding: 18px 22px; font-size: 15px; }
.table small { color: var(--sub); }
.motion .table.is-swap { animation: up .5s var(--ease); }

/* エントリー */
.entry { padding: 110px 0 130px; background: var(--green-d); color: #fff; }
.entry__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.entry__lead > p:not(.eyebrow) { margin-top: 18px; color: #e3f0e6; }
.entry__other { display: grid; gap: 12px; margin-top: 30px; }
.other { display: block; padding: 16px 22px; border-radius: 20px; background: rgba(255, 255, 255, .12); font-family: var(--round); font-weight: 900; font-size: 18px; text-decoration: none; transition: background .3s, transform .3s var(--pop); }
.other small { display: block; font-family: var(--ja); font-weight: 400; font-size: 13px; color: #d7e9dc; }
.other:hover { background: rgba(255, 255, 255, .2); transform: translateX(6px); }
.other--line { background: #06c755; }
.other--line:hover { background: #05b34c; }
.form { padding: 34px 32px; border-radius: 30px; background: #fff; color: var(--ink); }
.form__title { font-family: var(--round); font-weight: 900; font-size: 22px; }
.form__type { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; padding: 0; border: 0; }
.form__type legend { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.form__type label { cursor: pointer; }
.form__type input { position: absolute; opacity: 0; }
.form__type span { display: inline-flex; height: 42px; align-items: center; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); font-family: var(--round); font-weight: 700; font-size: 14px; transition: background .3s, border-color .3s, color .3s; }
.form__type input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.form__type input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.field { display: block; margin-top: 16px; font-size: 14px; font-weight: 700; }
.req { margin-left: 8px; padding: 0 8px; border-radius: 4px; background: var(--orange-l); color: #b8592a; font-size: 11px; }
.field input, .field select, .field textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); font-weight: 400; transition: border-color .3s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field.is-error input { border-color: #d9534f; }
.form__error { min-height: 1.6em; margin: 12px 0 8px; color: #c9302c; font-size: 13px; }
.form__note { margin-top: 10px; font-size: 12px; color: var(--sub); text-align: center; }
.form.is-sent { text-align: center; padding: 60px 32px; }
.form__thanks { font-family: var(--round); font-weight: 900; font-size: 22px; }
.motion .form__thanks { animation: popIn .6s var(--pop); }

.footer { padding: 40px 20px 50px; text-align: center; font-size: 13px; color: var(--sub); }
.footer__name { font-family: var(--round); font-weight: 900; font-size: 18px; color: var(--ink); }
.footer small { display: block; margin-top: 16px; font-size: 11px; }

/* 下部の応募ボタン */
.cta-bar { position: fixed; right: 20px; bottom: 20px; z-index: 45; display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(51, 64, 58, .2); transform: translateY(200%); transition: transform .5s var(--ease); }
.cta-bar.is-show { transform: none; }
.cta-bar a { display: grid; place-items: center; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--orange); color: #fff; font-family: var(--round); font-weight: 700; font-size: 14px; text-decoration: none; }
.cta-bar__line { background: #06c755 !important; }
.cta-bar a:last-child { background: var(--green-d); }

/* 写真がまだないときの仮の背景 */
:where(.ph) { position: relative; }
.ph.is-missing > img { display: none; }
.ph.is-missing::after { content: "写真準備中"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: rgba(255, 255, 255, .9); }

/* スクロールで現れる */
.motion [data-r] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.motion [data-r].is-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .gnav { display: none; }
  .header .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 30px; gap: 50px; }
  .hero__photos { grid-column: 1; max-width: 420px; }
  .hero__tour { right: 6%; top: 40px; bottom: auto; width: 120px; height: 120px; }
  .hero__tour b { font-size: 16px; }
  .message__inner, .faq__inner, .entry__inner { grid-template-columns: 1fr; gap: 40px; }
  .message__photo { max-width: 420px; }
  .data__grid { grid-template-columns: 1fr 1fr; }
  .job { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr 1fr 1fr; row-gap: 46px; }
  .flow::before { display: none; }
  .people__list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { margin-top: 0 !important; border-radius: 20px; }
  .steps li:nth-child(1) { margin-right: 32%; } .steps li:nth-child(2) { margin: 0 24% 0 8% !important; } .steps li:nth-child(3) { margin: 0 16% 0 16% !important; } .steps li:nth-child(4) { margin: 0 8% 0 24% !important; } .steps li:nth-child(5) { margin-left: 32%; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 40px); }
  .sp { display: inline; } .pc { display: none; }
  .demo-bar { padding: 8px 16px; }
  .header { padding: 10px 14px; gap: 10px; }
  .logo { font-size: 13px; } .logo svg { width: 32px; height: 32px; }
  .header .btn { height: 38px; padding: 0 14px; font-size: 13px; }
  .hero { padding: 24px 20px 70px; }
  .hero__photos { max-width: 290px; }
  .hero__title { font-size: 31px; }
  .hero__title span { white-space: normal; }
  .hero__lead { font-size: 14px; }
  .hero__btns .btn { flex: 1; padding: 0 12px; font-size: 15px; }
  .hero__tour { width: 100px; height: 100px; right: 12px; top: 24px; }
  .hero__tour b { font-size: 13px; }
  .hero__tour-label, .hero__tour-sub { font-size: 10px; }
  .message, .data, .jobs, .people, .faq, .recruit, .career { padding: 80px 0; }
  .data { border-radius: 36px 36px 0 0; }
  .career { margin: 0 8px; border-radius: 36px; }
  .js-lines { font-size: 16px; }
  .data__grid { gap: 12px; }
  .stat { padding: 20px 12px; min-height: 190px; border-radius: 22px; }
  .stat--bar { grid-column: 1 / -1; }
  .stat__num--big b { font-size: 44px; }
  .stat--ring svg { width: 110px; height: 110px; }
  .stat--ring .stat__num { top: 62px; }
  .stat--ring .stat__num b { font-size: 28px; }
  .stat__label { font-size: 13px; }
  .jobtabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; }
  .jobtabs button { flex: none; height: 42px; padding: 0 16px; font-size: 14px; }
  .job { padding: 16px; border-radius: 24px; gap: 20px; }
  .flow { grid-template-columns: 1fr; row-gap: 12px; padding-top: 0; padding-left: 34px; }
  .flow::before { display: block; left: 10px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; background: repeating-linear-gradient(180deg, var(--green) 0 12px, transparent 12px 20px); }
  .flow li::before { top: 22px; left: -34px; margin-left: 0; }
  .people__list { grid-template-columns: 1fr; gap: 40px; }
  .modal__inner { grid-template-columns: 1fr; }
  .modal__photo { aspect-ratio: 16 / 10; }
  .modal__body { padding: 24px 22px; max-height: 50vh; }
  .steps li { margin: 0 !important; }
  .table > div { grid-template-columns: 1fr; }
  .table dt { padding: 10px 16px; }
  .table dd { padding: 12px 16px; }
  .rtabs { flex-wrap: nowrap; gap: 6px; }
  .rtabs button { flex: 1; padding: 0 4px; font-size: 12px; white-space: nowrap; }
  .message .title { font-size: 21px; }
  .form { padding: 26px 20px; }
  .entry { padding-bottom: 120px; }
  .cta-bar { left: 10px; right: 10px; bottom: 10px; }
  .cta-bar a { flex: 1; padding: 0 8px; font-size: 13px; }
  .footer { padding-bottom: 100px; }
}
