/* 案C「シアワセの色」— 白地に明るい3色・丸み・弾む動き */
:root {
  --bg: #fffdf8;
  --ink: #26262b;
  --muted: #5c5d66;
  --pink: #ff8fab;
  --pink-soft: #ffe3ea;
  --sky: #5cc1ee;
  --sky-soft: #ddf3fc;
  --yellow: #ffd44d;
  --yellow-soft: #fff4cc;
  --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(20px, 5vw, 72px);
}
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--maru); font-weight: 500; font-size: 15px; line-height: 2; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; }
address { font-style: normal; }

/* ---------- ヘッダー（浮かぶ丸い帯） ---------- */
.head {
  position: fixed; top: 14px; left: var(--gutter); right: var(--gutter); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 12px 0 24px;
  background: rgba(255,255,255,.92); border-radius: 999px; box-shadow: 0 6px 24px rgba(38,38,43,.08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.head-logo img { width: 200px; }
.head-nav { display: flex; gap: 6px; font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.head-nav a { padding: 8px 16px; border-radius: 999px; transition: background-color .3s, transform .4s var(--bounce); }
.head-nav a:hover { background: var(--yellow-soft); transform: translateY(-2px); }
.menu-btn { display: none; }

/* ---------- 最初の画面 ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: 45% 55%; align-items: center;
  min-height: 100svh; padding: 110px var(--gutter) 60px; gap: 24px; overflow: hidden;
}
.hero-text { position: relative; z-index: 2; }
.hero-catch { white-space: nowrap; font-weight: 900; font-size: clamp(22px, 2.9vw, 46px); line-height: 1.6; letter-spacing: .04em; }
.hl { position: relative; display: inline-block; color: var(--pink); }
.hl svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .4em; overflow: visible; }
.hl path { fill: none; stroke: var(--yellow); stroke-width: 7; stroke-linecap: round; }
.hero-en { margin: 24px 0 0; font-weight: 700; color: var(--sky); font-size: clamp(14px, 1.2vw, 18px); }
.hero-photo { position: relative; z-index: 1; aspect-ratio: 1 / .92; border-radius: 46% 54% 44% 56% / 52% 46% 54% 48%; overflow: hidden; box-shadow: 0 20px 60px rgba(92,193,238,.25); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* 泡（スクロールに合わせてふわっと動く。勝手に動き続けはしない） */
.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubbles i { position: absolute; border-radius: 50%; display: block; z-index: 0; }
.b1 { width: 220px; height: 220px; background: var(--yellow-soft); left: -60px; top: 18%; }
.b2 { width: 120px; height: 120px; background: var(--pink); opacity: .85; right: 6%; bottom: 8%; z-index: 2 !important; }
.b3 { width: 56px; height: 56px; background: var(--sky); left: 40%; top: 16%; }
.b4 { width: 300px; height: 300px; background: var(--sky-soft); right: -80px; top: -60px; }
.b5 { width: 28px; height: 28px; background: var(--yellow); left: 12%; bottom: 14%; }

/* ---------- 共通 ---------- */
.ttl { font-weight: 900; font-size: clamp(22px, 2.3vw, 32px); line-height: 1.6; letter-spacing: .04em; word-break: auto-phrase; text-wrap: balance; }
.center { text-align: center; margin: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 12px 32px;
  border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 0 rgba(38,38,43,.18); transition: transform .45s var(--bounce), box-shadow .3s;
}
.btn::after { content: "→"; }
.btn:hover { transform: translateY(-3px) scale(1.04); }
.btn:active { transform: translateY(2px) scale(.96); box-shadow: 0 2px 0 rgba(38,38,43,.18); }
.btn.is-sky { background: var(--sky); }
.btn.is-pink { background: var(--pink); color: var(--ink); }

/* ---------- お知らせ ---------- */
.news { padding: 40px var(--gutter) 100px; max-width: 1100px; margin: 0 auto; }
.news-list { list-style: none; margin: 0; padding: 12px 32px; background: #fff; border-radius: 32px; box-shadow: 0 10px 40px rgba(38,38,43,.06); }
.news-list li + li { border-top: 2px dashed #eee; }
.news-list a { display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; padding: 18px 0; transition: transform .4s var(--bounce); }
.news-list a:hover { transform: translateX(6px); color: var(--pink); }
.news-list time { justify-self: start; padding: 2px 14px; border-radius: 999px; background: var(--sky-soft); color: #1d7aa5; font-weight: 700; font-size: 13px; }

/* ---------- ミッション ---------- */
.mission { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1240px; margin: 0 auto; padding: 60px var(--gutter) 120px; }
.mission-photo { border-radius: 50%; overflow: hidden; aspect-ratio: 1; box-shadow: 0 0 0 14px var(--yellow-soft); }
.mission-photo img { width: 100%; height: 100%; object-fit: cover; }
.mission-text .ttl { margin-bottom: 28px; }
.mission-text p { margin: 0 0 24px; color: var(--muted); }
.mission-text .btn { margin-bottom: 44px; }

/* ---------- 2つの言葉 ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 0 var(--gutter) 120px; max-width: 1340px; margin: 0 auto; }
.duo-item { border-radius: 40px; padding: 20px 20px 40px; }
.duo-item.is-sky { background: var(--sky-soft); }
.duo-item.is-pink { background: var(--pink-soft); margin-top: 80px; }
.duo-item figure { border-radius: 28px; overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 32px; }
.duo-item img { width: 100%; height: 100%; object-fit: cover; }
.duo-item .ttl, .duo-item p { padding: 0 20px; }
.duo-item .ttl { margin-bottom: 16px; }
.duo-item p { margin: 0; color: var(--muted); }

/* ---------- 事業（大きさ違いの箱を並べる） ---------- */
.biz { padding: 0 var(--gutter) 120px; max-width: 1340px; margin: 0 auto; }
.bento { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 18px; }
.bento li { border-radius: 32px; overflow: hidden; }
.bento .is-big { grid-column: span 2; grid-row: span 2; }
.bento .is-wide { grid-column: span 2; }
.bento a { position: relative; display: flex; flex-direction: column; height: 100%; padding: 12px; transition: transform .5s var(--bounce); }
.bento a:hover { transform: translateY(-6px) rotate(-.6deg); }
.bento .is-pink a { background: var(--pink-soft); }
.bento .is-sky a { background: var(--sky-soft); }
.bento .is-yellow a { background: var(--yellow-soft); }
.bento figure { flex: 1; min-height: 0; border-radius: 22px; overflow: hidden; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.bento a:hover img { transform: scale(1.06); }
.bento h3, .links p { word-break: auto-phrase; }
.bento h3 { padding: 12px 8px 4px; font-size: 16px; font-weight: 900; }
.bento .is-big h3 { font-size: 22px; }

/* ---------- 採用 ---------- */
.recruit { position: relative; background: var(--yellow-soft); padding: 80px var(--gutter) 120px; }
.wave { position: absolute; left: 0; top: -59px; width: 100%; height: 60px; }
.wave path { fill: var(--yellow-soft); }
.recruit-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1240px; margin: 0 auto; }
.recruit-photo { border-radius: 50% 50% 40px 40px; overflow: hidden; aspect-ratio: 4 / 4.2; }
.recruit-photo img { width: 100%; height: 100%; object-fit: cover; }
.recruit .ttl { margin-bottom: 24px; }
.recruit p { margin: 0 0 24px; color: var(--muted); }
.recruit .recruit-call { font-weight: 900; font-size: clamp(22px, 2.4vw, 32px); color: var(--ink); margin-bottom: 32px; }

/* ---------- 4つの入口 ---------- */
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 100px var(--gutter); max-width: 1340px; margin: 0 auto; }
.links a { border-radius: 32px; padding: 14px 14px 24px; transition: transform .5s var(--bounce); }
.links a.is-pink { background: var(--pink-soft); }
.links a.is-sky { background: var(--sky-soft); }
.links a.is-yellow { background: var(--yellow-soft); }
.links a:hover { transform: translateY(-8px) rotate(1deg); }
.links-img { display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 16px; }
.links-img img { width: 100%; height: 100%; object-fit: cover; }
.links h3 { padding: 0 8px; font-size: 22px; font-weight: 900; letter-spacing: .08em; }
.links p { padding: 0 8px; margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

/* ---------- フッター ---------- */
.foot { padding: 72px var(--gutter) 110px; text-align: center; background: #fff; border-radius: 48px 48px 0 0; color: var(--muted); font-size: 13px; }
.foot-logo { width: 240px; margin: 0 auto 24px; }
.foot address { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-bottom: 28px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; font-weight: 700; color: var(--ink); }
.foot-nav a { padding: 6px 16px; border-radius: 999px; background: var(--bg); }
.foot-nav a:hover { background: var(--yellow-soft); }
.copy { margin: 0; font-size: 11px; }

/* ---------- デザイン案の切り替え（確認用） ---------- */
.switch {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap;
}
.switch span { margin-right: 6px; }
.switch a { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.switch a[aria-current] { background: var(--yellow); color: var(--ink); }

/* ---------- 動き ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--bounce); }
  .js .rv.is-in { opacity: 1; transform: none; }
  /* 写真は小さな丸からぽんと広がる */
  .js .pop { transform: scale(.7); opacity: 0; transition: transform 1s var(--bounce), opacity .6s var(--ease); }
  .js .pop.is-in { transform: none; opacity: 1; }
  /* 最初の写真は最初から見せる。ほんの少し弾んで落ち着くだけ */
  .hero-photo { animation: bloom 1.4s var(--bounce) both; }
  @keyframes bloom { from { transform: scale(.94); } to { transform: none; } }
  /* 「シアワセ」に手描きの線を引く */
  .hl path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 1.1s .5s var(--ease) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  @supports (animation-timeline: scroll()) {
    .bubbles i { animation: float linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .b1 { --dy: -120px; } .b2 { --dy: -260px; } .b3 { --dy: -180px; } .b4 { --dy: 80px; } .b5 { --dy: -320px; }
    @keyframes float { to { transform: translateY(var(--dy)); } }
  }
}

/* ---------- スマホ ---------- */
@media (max-width: 899px) {
  body { font-size: 14px; }
  .head { top: 10px; left: 12px; right: 12px; height: 56px; padding: 0 8px 0 18px; }
  .head-logo img { width: 168px; }
  .menu-btn { display: grid; align-content: center; justify-items: center; gap: 5px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--yellow); cursor: pointer; position: relative; z-index: 2; }
  .menu-btn span { width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--bounce), opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .head-nav {
    position: fixed; top: 76px; left: 12px; right: 12px; flex-direction: column; gap: 4px; padding: 16px; font-size: 18px;
    background: #fff; border-radius: 28px; box-shadow: 0 12px 40px rgba(38,38,43,.15);
    visibility: hidden; opacity: 0; transform: translateY(-12px) scale(.96); transform-origin: top right;
    transition: opacity .3s, transform .4s var(--bounce), visibility .4s;
  }
  .head-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .head-nav a { padding: 12px 18px; }
  .hero { grid-template-columns: 1fr; padding-top: 92px; min-height: 0; gap: 28px; }
  .hero-photo { order: -1; width: 92%; justify-self: center; }
  .hero-catch { font-size: clamp(22px, 6.4vw, 32px); }
  .b1 { width: 140px; height: 140px; top: 52%; }
  .b5 { bottom: 3%; left: 80%; }
  .b2 { width: 72px; height: 72px; right: 4%; bottom: auto; top: 46%; }
  .b4 { width: 200px; height: 200px; }
  .news { padding: 24px 16px 72px; }
  .news-list { padding: 8px 20px; border-radius: 24px; }
  .news-list a { grid-template-columns: 1fr; gap: 6px; }
  .mission { grid-template-columns: 1fr; padding: 40px 20px 80px; }
  .mission-photo { width: 64%; justify-self: center; }
  .duo { grid-template-columns: 1fr; padding: 0 16px 80px; gap: 20px; }
  .duo-item { border-radius: 28px; padding: 12px 12px 28px; }
  .duo-item.is-pink { margin-top: 0; }
  .duo-item .ttl, .duo-item p { padding: 0 12px; }
  .biz { padding: 0 16px 88px; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 12px; }
  .bento li { border-radius: 24px; }
  .bento .is-big { grid-row: span 1; }
  .bento h3 { font-size: 13px; padding: 8px 4px 0; }
  .bento .is-big h3 { font-size: 16px; }
  .recruit { padding: 56px 20px 88px; }
  .wave { top: -29px; height: 30px; }
  .recruit-in { grid-template-columns: 1fr; }
  .recruit-photo { width: 80%; justify-self: center; }
  .links { grid-template-columns: 1fr 1fr; padding: 72px 16px; gap: 12px; }
  .links a { border-radius: 24px; padding: 10px 10px 16px; }
  .links h3 { font-size: 16px; padding: 0 4px; }
  .links p { font-size: 11px; padding: 0 4px; }
  .foot { border-radius: 32px 32px 0 0; padding: 56px 20px 96px; }
  .switch { bottom: 12px; }
}
