/* 採用ページ：トップページの森の色をやわらかくした配色。空色と木もれ日を中心に、差し色は木の実。太いふちどりは触れるものだけ */
:root {
  --ink: #2C2F24; --white: #FFFFFF; --yellow: #F5CF6B; --pink: #F0A283; --blue: #A9D6EA; --green: #A9CB6B; --mori: #3A7537; --paper: #FAF6EA;
  --blue-soft: #E6F3F8; --yellow-soft: #FBF1D3; --pink-soft: #FBE6DC; --green-soft: #E8F2DA;
  --pop: "Mochiy Pop One", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --line: 3px solid var(--ink);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.8 var(--body); }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--ink); outline-offset: 3px; }
h1, h2 { font-family: var(--pop); font-weight: 400; letter-spacing: .04em; line-height: 1.3; margin: 0; }
p { margin: 0; }
.wrap { width: min(1080px, 100%); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
section { position: relative; overflow: hidden; overflow: clip; padding-block: clamp(52px, 8vw, 96px); }
section > .wrap { position: relative; z-index: 1; }
.big { font-size: clamp(2rem, 6vw, 3.6rem); }
.lead { margin-top: 8px; font-size: 1.1rem; font-weight: 700; }

.note { background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.6; padding-block: 6px; }
header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 8px; }
.logo { font-family: var(--pop); font-size: 1.25rem; text-decoration: none; letter-spacing: .04em; color: var(--mori); }
.headcta { font-family: var(--pop); text-decoration: none; background: var(--pink); border: var(--line); border-radius: 999px; padding: 0 .95em; font-size: .92rem; white-space: nowrap; }

/* ボタン */
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.btns.center { justify-content: center; }
.btn { font-family: var(--pop); text-decoration: none; display: inline-block; border: var(--line); border-radius: 999px; padding: .5em 1.3em; box-shadow: 4px 4px 0 var(--ink); letter-spacing: .03em; transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(2px, 2px) rotate(-1deg); box-shadow: 2px 2px 0 var(--ink); }
.btn.yellow { background: var(--yellow); }
.btn.white { background: var(--white); }

/* ファーストビュー */
.hero { background: var(--blue); padding-block: clamp(40px, 7vw, 80px) clamp(48px, 7vw, 84px); }
.hero h1 { font-size: clamp(2.2rem, min(11vw, 14vh), 5.4rem); }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 span:nth-child(2) { margin-left: .5em; }
.hero h1 .fun { font-size: 1.5em; line-height: 1.2; margin-top: .05em; }
.fun i { display: inline-block; font-style: normal; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 4px 5px 0 var(--ink); animation: hop 1.8s ease-in-out infinite; }
.fun i:nth-child(1) { color: var(--yellow); }
.fun i:nth-child(2) { color: var(--pink); animation-delay: .12s; }
.fun i:nth-child(3) { color: var(--white); animation-delay: .24s; }
.fun i:nth-child(4) { color: var(--green); animation-delay: .36s; }
.fun i:nth-child(5) { color: var(--yellow); animation-delay: .48s; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0) rotate(-3deg); } 30% { transform: translateY(-.14em) rotate(4deg); } }
.hero-sub { margin-top: 20px; font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.7; font-weight: 700; }
.burst { position: absolute; z-index: 2; right: clamp(-10px, 6vw, 110px); top: clamp(14px, 6vw, 70px); width: clamp(96px, 22vw, 230px); aspect-ratio: 1; background: var(--yellow); display: grid; place-items: center; text-align: center; transform: rotate(10deg); font-family: var(--pop); font-size: clamp(.68rem, 1.9vw, 1.35rem); line-height: 1.35;
  clip-path: polygon(50% 0, 60% 13%, 75% 7%, 79% 21%, 93% 21%, 90% 36%, 100% 50%, 90% 64%, 93% 79%, 79% 79%, 75% 93%, 60% 87%, 50% 100%, 40% 87%, 25% 93%, 21% 79%, 7% 79%, 10% 64%, 0 50%, 10% 36%, 7% 21%, 21% 21%, 25% 7%, 40% 13%); }
.ball { position: absolute; border-radius: 50%; }
.b1 { width: clamp(90px, 18vw, 200px); aspect-ratio: 1; background: var(--pink); right: -40px; bottom: -40px; }
.b2 { width: clamp(44px, 8vw, 90px); aspect-ratio: 1; background: var(--yellow); right: clamp(90px, 22vw, 280px); bottom: 26px; }

/* 流れる文字 */
.ticker { background: var(--yellow); overflow: hidden; }
.track { display: flex; width: max-content; animation: flow 30s linear infinite; }
.track span { font-family: var(--pop); font-size: 1.2rem; padding: .3em .8em; white-space: nowrap; }
@keyframes flow { to { transform: translateX(-50%); } }

/* 苦手と得意 */
.deal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tile { border-radius: 26px; padding: clamp(22px, 4vw, 40px); }
.tile h2 { font-size: clamp(2rem, 5.4vw, 3.4rem); }
.tile p { margin-top: 10px; font-size: 1.1rem; font-weight: 700; }
.t1 { background: var(--pink); transform: rotate(-1.2deg); }
.t2 { background: var(--mori); color: var(--white); transform: rotate(1.2deg) translateY(10px); }

/* せんせい図鑑 */
.zukan { background: var(--yellow-soft); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 26px; }
.card { position: relative; aspect-ratio: 3 / 4.3; padding: 0; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; perspective: 900px; }
.card:nth-child(odd) { rotate: -2deg; }
.card:nth-child(even) { rotate: 2deg; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: var(--line); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform .45s; overflow: hidden; text-align: left; }
.front { background: var(--white); }
.back { background: var(--blue-soft); transform: rotateY(180deg); justify-content: flex-start; }
.c2 .back { background: var(--pink-soft); }
.c3 .back { background: var(--green-soft); }
.c4 .front { background: var(--pink); }
.c4 .back { background: var(--white); }
.card[aria-pressed="true"] .front { transform: rotateY(-180deg); }
.card[aria-pressed="true"] .back { transform: rotateY(0); }
.no { font-family: var(--pop); font-size: .85rem; }
.pic { flex: 1; min-height: 0; display: grid; place-items: center; background: var(--paper); border: 2px dashed var(--ink); border-radius: 12px; font-size: .9rem; }
.pic.q { font: 400 3.2rem/1 var(--pop); background: var(--white); }
.name { font-family: var(--pop); line-height: 1.3; font-size: 1.02rem; }
.flip { font-size: .8rem; font-weight: 700; }
.row { display: block; line-height: 1.45; font-size: 1rem; margin-top: 2px; font-weight: 700; }
.row b { display: block; font: 400 .78rem/1.5 var(--pop); }

/* 診断 */
.shindan { background: var(--blue-soft); }
.picks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.picks button { font: 400 1.05rem/1.4 var(--pop); color: var(--ink); background: var(--white); border: var(--line); border-radius: 999px; padding: .5em 1.05em; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.picks button:nth-child(odd) { rotate: -1.5deg; }
.picks button:nth-child(even) { rotate: 1.5deg; }
.picks button[aria-pressed="true"] { background: var(--pink); translate: 2px 2px; box-shadow: 1px 1px 0 var(--ink); }
.result { margin-top: 26px; background: var(--white); border-radius: 22px; padding: 22px clamp(20px, 3vw, 34px); max-width: 760px; }
.r-big { font-family: var(--pop); font-size: clamp(1.25rem, 3.2vw, 1.9rem); line-height: 1.5; letter-spacing: .03em; margin-top: 4px; }

/* 写真 */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 26px; }
.photos figure { margin: 0; background: var(--white); padding: 10px 10px 6px; border-radius: 6px; }
.photos figure:nth-child(3n+1) { transform: rotate(-2deg); }
.photos figure:nth-child(3n+2) { transform: rotate(1.5deg) translateY(8px); }
.photos figure:nth-child(3n) { transform: rotate(-1deg); }
.ph { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--blue-soft); font-size: .9rem; }
.photos figure:nth-child(even) .ph { background: var(--yellow-soft); }
.photos figcaption { font-family: var(--pop); text-align: center; padding-top: 6px; font-size: 1.02rem; }

/* 数字：落ち着いて読む場所 */
.nums { background: var(--white); }
.nums .big, .terms .big { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
.num-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.num { border-radius: 20px; display: grid; justify-items: center; text-align: center; padding: 20px 10px; line-height: 1.3; }
.num b { font: 400 clamp(1.8rem, 4vw, 2.7rem)/1.1 var(--pop); }
.num small { font-size: .45em; }
.num span { font-size: .95rem; margin-top: 4px; }
.n1 { background: var(--yellow-soft); }
.n2 { background: var(--blue-soft); }
.n3 { background: var(--pink-soft); }
.n4 { background: var(--green-soft); }

/* 募集：落ち着いて読む場所 */
.terms { background: var(--white); padding-top: 0; }
.term-list { margin: 22px 0 0; max-width: 800px; }
.term-list div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 12px; padding-block: 10px; border-bottom: 2px solid var(--blue-soft); }
.term-list dt { font-weight: 700; color: var(--mori); }
.term-list dd { margin: 0; }

/* 見学 */
.visit { background: var(--blue); text-align: center; }
.visit h2 { font-size: clamp(2.2rem, 7vw, 4.4rem); }
.tel { display: inline-block; margin-top: 18px; font-family: var(--pop); text-decoration: none; font-size: clamp(1.7rem, 6vw, 3.2rem); background: var(--yellow); border: var(--line); border-radius: 20px; padding: .1em .55em; box-shadow: 6px 6px 0 var(--ink); transform: rotate(-1.5deg); letter-spacing: .02em; }

footer { background: var(--mori); color: var(--white); font-size: 13px; line-height: 1.7; padding-block: 18px; }
.callbar { display: none; }

@media (max-width: 860px) {
  .cards, .num-grid, .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .deal-grid { grid-template-columns: minmax(0, 1fr); }
  .t2 { transform: rotate(1.2deg); }
  body { padding-bottom: 58px; }
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--pink); text-align: center; font-family: var(--pop); text-decoration: none; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
}
@media (max-width: 480px) {
  .card { aspect-ratio: auto; height: 250px; }
}
@media (max-width: 360px) {
  .logo { font-size: 1.05rem; white-space: nowrap; }
  .headcta { font-size: .78rem; padding: 0 .7em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fun i, .track { animation: none; }
  .face, .btn { transition: none; }
}
