/* ============================================
   CONSTRUCTION SOFT TEMPLATE
   女性・若手が活躍する工務店 — ピーチ／ベージュ × くすみグリーン
   大きな角丸と有機的なblob、余白多めで、ふわっと現れる動き
============================================ */

:root {
  /* Color */
  --base: #f7f0e6; /* ベージュ（背景） */
  --base-deep: #efe4d5;
  --peach: #f2c9b1; /* ピーチ */
  --peach-pale: #fae6da;
  --peach-deep: #c9805f; /* ピーチの濃いめ（文字・ボタン用） */
  --sage: #a3b59f; /* くすみグリーン */
  --sage-pale: #e3eadf;
  --sage-deep: #56705b; /* 文字・ボタン用 */
  --ink: #4a403a; /* 本文（やわらかい焦げ茶） */
  --muted: #7f736a;
  --line: #e2d6c7;
  --white: #fffdf9;

  /* Font */
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-hand: "Klee One", cursive; /* 手書きメモ */

  /* Shape */
  --radius: 28px;
  --radius-lg: 48px;
  --radius-full: 999px;
  --blob-a: 58% 42% 46% 54% / 52% 44% 56% 48%;
  --blob-b: 44% 56% 60% 40% / 46% 58% 42% 54%;

  --container: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 80px;

  /* ふわっとしたイージング */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: 0.8s;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--base);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.06em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--sage-deep);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 12px;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 4px;
}

.sp-only {
  display: none;
}

@media (max-width: 767px) {
  .sp-only {
    display: inline;
  }
  .pc-only {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 30px;
  border: 0;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background-color 0.5s var(--ease),
    color 0.5s var(--ease),
    transform 0.6s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--sage {
  background: var(--sage-deep);
  color: var(--white);
}

.btn--sage:hover {
  background: #476049;
}

.btn--peach {
  background: var(--peach-deep);
  color: var(--white);
}

.btn--peach:hover {
  background: #b56e4f;
}

.btn--line {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn--line:hover {
  background: var(--white);
}

.btn--block {
  width: 100%;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: transform 0.6s var(--ease);
}

/* ぼかしは疑似要素に（ヘッダー自体に付けるとモバイルメニューが閉じ込められるため） */
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 240, 230, 0);
  transition: background-color 0.6s var(--ease);
}

.header.is-scrolled::before {
  background: rgba(247, 240, 230, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header__inner {
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sage-deep);
  flex-shrink: 0;
}

.logo__mark {
  width: 38px;
  height: 38px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: 0.12em;
}

.logo__text small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__list {
  display: flex;
  gap: 4px;
}

.nav__list a {
  position: relative;
  display: block;
  padding: 8px 10px;
  font-size: 0.92rem;
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--peach-deep);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}

.nav__list a:hover::after {
  opacity: 1;
  transform: none;
}

.nav__cta {
  min-height: 46px;
  padding: 8px 22px;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}

.nav-toggle span:nth-child(1) {
  top: 22px;
}
.nav-toggle span:nth-child(2) {
  top: 29px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 25.5px;
  transform: rotate(30deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  top: 25.5px;
  transform: rotate(-30deg);
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 28px;
    padding: 32px var(--gutter) 48px;
    background: var(--base);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }

  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__list a {
    padding: 14px 4px;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav__list a::after {
    display: none;
  }

  .nav__cta {
    min-height: 56px;
    font-size: 1rem;
  }
}

/* ---------- Section head ---------- */
.section {
  padding: clamp(96px, 13vw, 168px) 0;
  position: relative;
}

.head {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}

.head--left {
  text-align: left;
}

.head__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--sage-deep);
  margin-bottom: 14px;
}

.head__label::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: var(--blob-a);
  background: var(--peach);
}

.head__title {
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
  word-break: keep-all;
}

.head__text {
  margin-top: 20px;
  color: var(--muted);
  max-width: 36em;
}

.head:not(.head--left) .head__text {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(96px, 12vw, 160px);
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: var(--blob-a);
  pointer-events: none;
}

.hero__blob--peach {
  width: min(56vw, 720px);
  aspect-ratio: 1;
  right: -8vw;
  top: -6vw;
  background: var(--peach-pale);
}

.hero__blob--sage {
  width: min(28vw, 340px);
  aspect-ratio: 1;
  left: -8vw;
  bottom: 4vw;
  background: var(--sage-pale);
  border-radius: var(--blob-b);
}

.hero__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.hero__place {
  font-size: 0.92rem;
  color: var(--sage-deep);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.hero__title span {
  display: block;
}

.hero__text {
  margin-top: 28px;
  color: var(--muted);
  max-width: 30em;
}

.hero__cta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__visual {
  position: relative;
  padding-bottom: 40px;
}

.hero__photo {
  border-radius: var(--blob-a);
  overflow: hidden;
  aspect-ratio: 10 / 11;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__sub {
  position: absolute;
  left: -40px;
  bottom: 0;
  width: 34%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--base);
}

.hero__sub img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__memo {
  position: absolute;
  right: 4%;
  bottom: -6px;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sage-deep);
  background: var(--white);
  padding: 12px 18px;
  border-radius: 20px;
  transform: rotate(-2deg);
}

/* 糸のような一本線（描かれていく） */
.hero__thread {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: 100%;
  height: 90px;
  pointer-events: none;
}

.hero__thread path {
  fill: none;
  stroke: var(--peach-deep);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.6;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1600;
  stroke-dashoffset: 0;
}

/* ヒーローの登場（JSがあるときだけ。タイマーの保険つき） */
html.js .hero__place,
html.js .hero__title span,
html.js .hero__text,
html.js .hero__cta,
html.js .hero__visual {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--slow) var(--ease),
    transform var(--slow) var(--ease);
}

html.js .hero__thread path {
  stroke-dashoffset: 1600;
  transition: stroke-dashoffset 1.8s var(--ease) 0.3s;
}

html.js .hero.is-in .hero__place,
html.js .hero.is-in .hero__title span,
html.js .hero.is-in .hero__text,
html.js .hero.is-in .hero__cta,
html.js .hero.is-in .hero__visual {
  opacity: 1;
  transform: none;
}

html.js .hero.is-in .hero__thread path {
  stroke-dashoffset: 0;
}

html.js .hero.is-in .hero__title span:nth-child(1) {
  transition-delay: 0.08s;
}
html.js .hero.is-in .hero__title span:nth-child(2) {
  transition-delay: 0.16s;
}
html.js .hero.is-in .hero__title span:nth-child(3) {
  transition-delay: 0.24s;
}
html.js .hero.is-in .hero__text {
  transition-delay: 0.32s;
}
html.js .hero.is-in .hero__cta {
  transition-delay: 0.4s;
}
html.js .hero.is-in .hero__visual {
  transition-delay: 0.1s;
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }

  .hero__sub {
    left: -12px;
  }

  .hero__blob--peach {
    width: 90vw;
    right: -30vw;
    top: 30%;
  }
}

@media (max-width: 480px) {
  .hero__cta .btn {
    width: 100%;
  }

  .hero__memo {
    right: 0;
    font-size: 0.88rem;
  }
}

/* ---------- News ---------- */
.news {
  padding-bottom: clamp(24px, 4vw, 40px);
}

.news__inner {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 24px;
  align-items: start;
}

.news__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding-top: 18px;
}

.news__list li {
  display: grid;
  grid-template-columns: 7em auto 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.news__list time {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.news__tag {
  font-size: 0.78rem;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  background: var(--sage-pale);
  color: var(--sage-deep);
  white-space: nowrap;
}

.news__tag--peach {
  background: var(--peach-pale);
  color: var(--peach-deep);
}

.news__list p {
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .news__inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .news__list li {
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
  }

  .news__list p {
    grid-column: 1 / -1;
  }
}

/* ---------- Business ---------- */
.biz {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
}

/* 上段は2つ大きく、下段は3つ小さく（大きさに緩急をつける） */
.biz__item {
  grid-column: span 2;
}

.biz__item:nth-child(1),
.biz__item:nth-child(2) {
  grid-column: span 3;
}

.biz__item:nth-child(2) {
  margin-top: 80px;
}

.biz__item:nth-child(4) {
  margin-top: 40px;
}

.biz__img {
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 24px;
}

.biz__item:nth-child(1) .biz__img,
.biz__item:nth-child(2) .biz__img {
  aspect-ratio: 4 / 3;
}

.biz__img--a {
  border-radius: 46% 54% 30% 70% / 52% 40% 60% 48%;
}
.biz__img--b {
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 160px;
}
.biz__img--c {
  border-radius: 50%;
}
.biz__img--d {
  border-radius: var(--blob-b);
}
.biz__img--e {
  border-radius: 160px 160px var(--radius) var(--radius);
}

.biz__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.biz__item:hover .biz__img img {
  transform: scale(1.03);
}

.biz__no {
  font-family: var(--font-hand);
  color: var(--peach-deep);
  font-size: 1rem;
}

.biz__body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.biz__body p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .biz {
    grid-template-columns: 1fr 1fr;
  }

  .biz__item,
  .biz__item:nth-child(1),
  .biz__item:nth-child(2) {
    grid-column: auto;
  }

  .biz__item:nth-child(1) {
    grid-column: 1 / -1;
  }

  .biz__item:nth-child(2),
  .biz__item:nth-child(4) {
    margin-top: 0;
  }

  .biz__item:nth-child(odd):not(:first-child) {
    margin-top: 48px;
  }
}

@media (max-width: 520px) {
  .biz {
    grid-template-columns: 1fr;
  }

  .biz__item:nth-child(odd):not(:first-child) {
    margin-top: 0;
  }

  .biz__item:not(:first-child) {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 18px;
    align-items: center;
  }

  .biz__item:not(:first-child) .biz__img {
    margin-bottom: 0;
  }
}

/* ---------- Women ---------- */
.women {
  overflow: hidden;
}

.women__bg {
  position: absolute;
  inset: 6% -10% 6% 18%;
  background: var(--peach-pale);
  border-radius: 240px 0 0 240px;
  z-index: -1;
}

.women {
  isolation: isolate;
}

.women__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}

.women__visual {
  position: relative;
}

.women__photo {
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 9 / 10;
}

.women__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.women__note {
  position: absolute;
  right: -20px;
  bottom: 32px;
  font-family: var(--font-hand);
  font-size: 0.95rem;
  line-height: 1.7;
  background: var(--white);
  padding: 14px 20px;
  border-radius: 24px 24px 4px 24px;
  color: var(--peach-deep);
}

.women__lead {
  color: var(--muted);
}

.women__nums {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin: 36px 0;
}

.women__nums dt {
  font-size: 0.85rem;
  color: var(--muted);
}

.women__nums dd {
  font-size: 1rem;
  line-height: 1.2;
}

.women__nums b {
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--sage-deep);
  margin-right: 4px;
}

.women__people {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.women__people li {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 26px;
}

.women__people li:nth-child(2) {
  margin-left: clamp(0px, 4vw, 48px);
}

.women__role {
  display: block;
  font-size: 0.82rem;
  color: var(--sage-deep);
}

.women__people b {
  font-weight: 700;
  letter-spacing: 0.12em;
}

.women__people p {
  font-family: var(--font-hand);
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .women__inner {
    grid-template-columns: 1fr;
  }

  .women__visual {
    max-width: 420px;
  }

  .women__bg {
    inset: 20% -10% 4% 6%;
    border-radius: 160px 0 0 160px;
  }

  .women__note {
    right: 0;
  }
}

/* ---------- Support（育休・時短） ---------- */
.support__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.support__top .head {
  margin-bottom: 0;
}

.support__lead {
  color: var(--muted);
}

.support__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}

.sup {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 28px 30px;
}

.sup h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.sup p {
  color: var(--muted);
  font-size: 0.95rem;
}

.sup--big {
  grid-row: span 2;
  background: var(--sage-pale);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px;
  padding: 40px 36px 48px;
}

.sup--big h3 {
  font-size: 1.2rem;
}

.sup__num {
  color: var(--sage-deep) !important;
  font-size: 1.1rem !important;
  line-height: 1.3;
  margin-top: 18px;
}

.sup__num b {
  font-size: clamp(3.4rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: 0;
}

.sup__num small {
  font-size: 0.85rem;
  color: var(--muted);
  margin-left: 6px;
}

.sup__num--sub b {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.sup__text {
  margin-top: 24px;
}

.sup--peach {
  background: var(--peach-pale);
}

.sup--sage {
  grid-column: span 2;
  border-radius: var(--radius) var(--radius) 120px var(--radius);
}

.support__voice {
  position: relative;
  max-width: 760px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding: 0 0 0 clamp(28px, 5vw, 56px);
  border-left: 2px solid var(--peach);
}

.support__voice p {
  font-family: var(--font-hand);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 2.1;
}

.support__voice cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .support__top {
    grid-template-columns: 1fr;
  }

  .support__grid {
    grid-template-columns: 1fr 1fr;
  }

  .sup--big {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .support__grid {
    grid-template-columns: 1fr;
  }

  .sup--sage {
    grid-column: auto;
  }

  .sup--big {
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 72px;
    padding: 32px 26px 36px;
  }
}

/* ---------- Interview ---------- */
.interview {
  background: var(--white);
  border-radius: clamp(48px, 8vw, 120px);
  margin: 0 clamp(8px, 2vw, 24px);
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.tab {
  min-height: 56px;
  padding: 8px 26px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--base);
  cursor: pointer;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease);
}

.tab span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.6s;
}

.tab[aria-selected="true"] {
  background: var(--sage-deep);
  color: var(--white);
}

.tab[aria-selected="true"] span {
  color: var(--sage-pale);
}

.iv-wrap {
  display: grid;
}

.iv {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.iv + .iv {
  margin-top: 80px;
}

/* JSが動いたらタブで1人ずつ。同じマスに重ねて、ふわっと入れ替える */
.iv-wrap.is-tabs .iv {
  grid-area: 1 / 1;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease),
    visibility 0.4s;
}

.iv-wrap.is-tabs .iv.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.iv__photo {
  border-radius: var(--blob-a);
  overflow: hidden;
  aspect-ratio: 1;
}

.iv__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iv__who {
  display: flex;
  flex-direction: column;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.iv__who b {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.16em;
}

.iv__qa dt {
  font-weight: 700;
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}

.iv__qa dt::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--peach);
  flex-shrink: 0;
}

.iv__qa dd {
  margin: 4px 0 22px 24px;
  color: var(--ink);
}

@media (max-width: 800px) {
  .iv {
    grid-template-columns: 1fr;
  }

  .iv__photo {
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  .tab {
    flex: 1 1 30%;
    padding: 8px 10px;
  }

  .iv__qa dd {
    margin-left: 0;
  }
}

/* ---------- Gallery ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: clamp(20px, 3vw, 36px);
}

.g img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 7 / 5;
  object-fit: cover;
}

.g--tall {
  grid-row: span 2;
}

.g--tall img {
  aspect-ratio: auto;
  height: calc(100% - 44px);
  min-height: 320px;
  border-radius: 200px 200px var(--radius) var(--radius);
}

.g--wide {
  grid-column: span 2;
}

.g--wide img {
  aspect-ratio: 16 / 7;
}

.g p {
  font-family: var(--font-hand);
  font-size: 0.95rem;
  margin-top: 10px;
  color: var(--muted);
}

.g:nth-child(3) {
  margin-top: 48px;
}

@media (max-width: 860px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .g--tall {
    grid-row: span 2;
  }

  .g--wide {
    grid-column: 1 / -1;
  }

  /* 最後の1枚は、隣の小さい写真と並べる */
  .g--wide:last-child {
    grid-column: auto;
  }

  .g--wide:last-child img {
    aspect-ratio: 7 / 5;
  }

  .g:nth-child(3) {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .g--tall {
    grid-row: auto;
  }

  .g--tall img {
    height: auto;
    aspect-ratio: 4 / 5;
    min-height: 0;
  }

  .g--wide img {
    aspect-ratio: 7 / 5;
  }
}

/* ---------- Works（横スクロール） ---------- */
.works__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.works__top .head {
  margin-bottom: 0;
}

.works__nav {
  display: flex;
  gap: 10px;
}

.round-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.5s var(--ease);
}

.round-btn:hover {
  background: var(--white);
}

.round-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.works__track {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  padding: 8px max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter))) 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--peach) transparent;
}

.works__track:focus-visible {
  outline-offset: -4px;
}

.case {
  flex: 0 0 clamp(270px, 32vw, 380px);
  scroll-snap-align: start;
}

.case__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
}

.case:nth-child(even) .case__img {
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 120px;
}

.case__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}

.case:hover .case__img img {
  transform: scale(1.03);
}

.case__type {
  display: inline-block;
  font-size: 0.8rem;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  background: var(--sage-pale);
  color: var(--sage-deep);
}

.case__type--peach {
  background: var(--peach-pale);
  color: var(--peach-deep);
}

.case h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.7;
  margin: 8px 0 10px;
  letter-spacing: 0.06em;
}

.case dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (max-width: 560px) {
  .works__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .case {
    flex-basis: 80%;
  }
}

/* ---------- Quality ---------- */
.quality {
  background: var(--sage-pale);
  border-radius: clamp(48px, 8vw, 120px) clamp(48px, 8vw, 120px) 0 0;
}

.quality__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.quality__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.quality__list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
}

.quality__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--blob-a);
  background: var(--white);
  color: var(--sage-deep);
  font-size: 1.3rem;
}

.quality__list h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 4px;
}

.quality__list p {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .quality__inner {
    grid-template-columns: 1fr;
  }

  .quality .head {
    margin-bottom: 0;
  }
}

/* ---------- Recruit ---------- */
.recruit {
  background: var(--sage-pale);
  overflow: hidden;
  isolation: isolate;
}

.recruit__bg {
  position: absolute;
  width: 60vw;
  max-width: 760px;
  aspect-ratio: 1;
  right: -20vw;
  top: -10%;
  border-radius: var(--blob-b);
  background: var(--peach-pale);
  opacity: 0.7;
  z-index: -1;
}

.recruit__jobs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rjob {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) var(--radius);
  display: flex;
  flex-direction: column;
}

.rjob:nth-child(2) {
  transform: translateY(32px);
}

.rjob h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.rjob p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1 0 auto;
}

.rjob .rjob__pay {
  flex: none;
  margin-top: 18px;
  color: var(--sage-deep);
  font-weight: 700;
}

.terms {
  margin-top: clamp(64px, 8vw, 96px);
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 48px);
}

.terms__list > div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
}

.terms__list > div:last-child {
  border-bottom: 0;
}

.terms__list dt {
  font-weight: 700;
  color: var(--sage-deep);
}

.entry {
  margin-top: clamp(64px, 9vw, 112px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.entry__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}

.entry__head p {
  color: var(--muted);
}

.entry__head a {
  color: var(--sage-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 860px) {
  .recruit__jobs {
    grid-template-columns: 1fr;
  }

  .rjob:nth-child(2) {
    transform: none;
  }

  .entry {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .terms__list > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- Forms ---------- */
.form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: block;
  border: 0;
  min-width: 0;
}

.field__label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.req {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--peach-deep);
  margin-left: 6px;
}

.field input:not([type="radio"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 16px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--base);
  transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--white);
}

.field--radio {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: center;
}

.field--radio legend {
  width: 100%;
}

.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}

.radio input {
  width: 20px;
  height: 20px;
  accent-color: var(--sage-deep);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  position: relative;
  cursor: pointer;
}

.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--line);
  background: var(--base);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s;
}

.pill input:checked + span {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--white);
}

.pill input:focus-visible + span {
  outline: 2px solid var(--sage-deep);
  outline-offset: 3px;
}

.is-invalid,
.pills.is-invalid .pill span {
  border-color: var(--peach-deep) !important;
  background: var(--peach-pale) !important;
}

.form__msg {
  min-height: 1.5em;
  text-align: center;
  color: var(--sage-deep);
  font-weight: 700;
}

.form__msg.is-error {
  color: var(--peach-deep);
}

@media (max-width: 560px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Company ---------- */
.company__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.profile > div {
  display: grid;
  grid-template-columns: 8em 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.profile dt {
  color: var(--muted);
}

.history {
  padding-top: 8px;
}

.history__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.history__list {
  position: relative;
  padding-left: 28px;
}

.history__list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 1.5px;
  background: var(--peach);
}

.history__list li {
  position: relative;
  padding-bottom: 20px;
  font-size: 0.95rem;
}

.history__list li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--base);
  border: 1.5px solid var(--peach-deep);
}

.history__list span {
  display: block;
  font-family: var(--font-hand);
  color: var(--peach-deep);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .company__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .profile > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- Contact ---------- */
.contact {
  background: var(--peach-pale);
  border-radius: clamp(48px, 8vw, 120px);
  margin: 0 clamp(8px, 2vw, 24px);
}

.contact__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.contact__head > p {
  margin-top: 20px;
  color: var(--muted);
}

.contact__tel {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
}

.contact__tel p {
  font-size: 0.9rem;
}

.contact__tel a {
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--sage-deep);
}

.contact__tel small {
  color: var(--muted);
}

@media (max-width: 900px) {
  .contact__inner {
    grid-template-columns: 1fr;
  }
}

/* ---------- Access ---------- */
.access {
  padding: clamp(96px, 12vw, 152px) 0;
}

.access__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.access__map {
  border-radius: var(--blob-a);
  overflow: hidden;
  aspect-ratio: 1;
  max-width: 520px;
  width: 100%;
}

.access__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.access__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.access dl {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 12px 16px;
}

.access dt {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .access__inner {
    grid-template-columns: 1fr;
  }

  .access__map {
    border-radius: var(--radius-lg);
    aspect-ratio: 4 / 3;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .access dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .access dd {
    margin-bottom: 12px;
  }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--sage-deep);
  color: var(--white);
  padding: 64px 0 32px;
  border-radius: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 80px) 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer__name {
  font-size: 1.3rem;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.footer__brand p:not(.footer__name) {
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0 40px;
}

.footer__nav a {
  display: inline-block;
  padding: 8px 0;
  font-size: 0.92rem;
}

.footer__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  margin-top: 48px;
  opacity: 0.8;
}

/* ---------- ふわっと現れる（JSがあるときだけ隠す） ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--slow) var(--ease),
    transform var(--slow) var(--ease);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 段違い配置は表示後も保つ */
html.js .rjob:nth-child(2)[data-reveal].is-visible {
  transform: translateY(32px);
}

/* タブ切り替えのパネルは、タブ側の表示ルールに任せる */
html.js .iv-wrap.is-tabs .iv[data-reveal]:not(.is-active) {
  opacity: 0;
}

@media (max-width: 860px) {
  html.js .rjob:nth-child(2)[data-reveal].is-visible {
    transform: none;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  html.js [data-reveal],
  html.js .hero__place,
  html.js .hero__title span,
  html.js .hero__text,
  html.js .hero__cta,
  html.js .hero__visual {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  html.js .iv-wrap.is-tabs .iv[data-reveal]:not(.is-active) {
    opacity: 0 !important;
  }

  html.js .hero__thread path {
    stroke-dashoffset: 0;
  }
}
