/* ▼ [tokens] 色・寸法・書体の共通値 */
:root {
  --color-white: #ffffff;
  --color-black: #121212;
  --color-dark: #161616;
  --color-muted-bg: #f9f9f9;
  --color-line: #d9d9d9;
  --color-line-light: #e6e6e6;
  --color-copy: #444444;
  --color-copy-soft: #555555;
  --color-gray: #757575;
  --color-gray-light: #c7c7c7;
  --color-orange: #f0a46b;
  --color-green: #5cc0b5;
  --color-blue: #7c9cf0;
  --color-pink: #e58c9a;
  --content-width: 1600px;
  --font-latin: "Jost";
  --font-japanese: "Zen Kaku Gothic New";
}
/* ▲ [tokens] */

/* ▼ [base] ページ全体の基本表示 */
body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-japanese), sans-serif;
}

a {
  color: var(--color-black);
}

a:hover {
  color: var(--color-gray);
}

.site,
.site *,
.site *::before,
.site *::after {
  box-sizing: border-box;
}

.site {
  width: 100%;
  overflow-x: hidden;
  background: var(--color-white);
}

.en {
  font-family: var(--font-latin), var(--font-japanese), sans-serif;
}

:focus-visible {
  outline: 3px solid var(--color-blue);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}
/* ▲ [base] */

/* ▼ [loading] 読み込み画面 */
@keyframes loader-out {
  0%, 80% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes book-grow {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes loader-text-in {
  from { opacity: 0; letter-spacing: 0.4em; }
  to { opacity: 1; letter-spacing: 0.06em; }
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  pointer-events: none;
  background: var(--color-black);
  animation: loader-out 2.6s ease forwards;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
}

.brand-mark__book {
  display: block;
  width: 14px;
  border-radius: 3px;
  transform-origin: bottom;
  animation: book-grow 0.5s cubic-bezier(0.3, 1.3, 0.5, 1) both;
}

.brand-mark__book--orange { height: 52px; background: var(--color-orange); animation-delay: 0.2s; }
.brand-mark__book--green { height: 42px; background: var(--color-green); animation-delay: 0.35s; }
.brand-mark__book--blue { height: 60px; background: var(--color-blue); animation-delay: 0.5s; }
.brand-mark__book--pink { height: 40px; background: var(--color-pink); animation-delay: 0.65s; transform: rotate(10deg); }

.loader__text {
  color: var(--color-white);
  font-size: 28px;
  font-weight: 500;
  animation: loader-text-in 0.8s ease 1s both;
}
/* ▲ [loading] */

/* ▼ [planes] 背景を流れる半透明の板 */
@keyframes plane-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-160px, 70px, 0); }
}

.plane-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  perspective: 900px;
  pointer-events: none;
}

.plane-scene {
  position: absolute;
  inset: -10%;
  transform: rotateY(var(--rotate-y, 0deg)) rotateX(var(--rotate-x, 0deg));
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.plane {
  position: absolute;
  left: var(--plane-x);
  top: var(--plane-y);
  transform: translateZ(var(--plane-z)) rotate(var(--plane-rotate));
  transform-style: preserve-3d;
}

.plane__surface {
  width: var(--plane-width);
  height: var(--plane-height);
  border: 1px solid rgba(255, 255, 255, var(--plane-border-alpha, 0.1));
  background: var(--plane-color);
  animation: plane-drift var(--plane-duration) linear var(--plane-delay) infinite alternate;
}
/* ▲ [planes] */

/* ▼ [header] ヘッダーとロゴ */
.header {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 40px;
  gap: 24px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  text-decoration: none;
}

.wordmark__mark {
  flex: 0 0 auto;
}

.wordmark__text {
  font-size: 24px;
  font-weight: 500;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  color: var(--color-white);
  font-size: 14px;
}

.header-nav a {
  color: inherit;
  text-decoration: none;
}

.header-nav .en {
  letter-spacing: 0.1em;
}

.header-nav a:hover {
  opacity: 0.6;
}

/* ヘッダーのメニュー文字：乗せると英語が上へ抜け、日本語が下から入る */
.nav-roll {
  display: inline-block;
  height: 1.4em;
  overflow: hidden;
  line-height: 1.4em;
  vertical-align: middle;
}

.nav-roll__inner {
  display: flex;
  flex-direction: column;
  transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}

.nav-roll__ja {
  font-family: var(--font-japanese), sans-serif;
  letter-spacing: 0.04em;
}

.nav-roll:hover .nav-roll__inner,
.nav-roll:focus-visible .nav-roll__inner {
  transform: translateY(-50%);
}

/* 入れ替わりで反応を見せるので、今の「薄くなる」動きはこのリンクでは止める */
.header-nav a.nav-roll:hover {
  opacity: 1;
}
/* ▲ [header] */

/* ▼ [buttons] 共通ボタン */
.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.button:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--light {
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-black) !important;
}

.button--contact {
  flex: 0 1 420px;
  justify-content: space-between;
  min-height: 72px;
  padding: 28px 36px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 18px;
}
/* ▲ [buttons] */

/* ▼ [hero] トップ画面 */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-leaf-out {
  0% { transform: rotateY(0) skewY(0); filter: brightness(1); opacity: 1; }
  55% { transform: rotateY(-62deg) skewY(-4deg); filter: brightness(0.55); opacity: 1; }
  100% { transform: rotateY(-108deg) skewY(-6deg); filter: brightness(0.25); opacity: 0; }
}

@keyframes hero-leaf-in {
  0% { transform: rotateY(108deg) skewY(6deg) translateZ(24px); filter: brightness(0.35); opacity: 0; }
  45% { transform: rotateY(-14deg) skewY(-1deg) translateZ(8px); filter: brightness(1.25); opacity: 1; }
  72% { transform: rotateY(5deg) skewY(0); filter: brightness(1); }
  100% { transform: rotateY(0) skewY(0) translateZ(0); filter: brightness(1); opacity: 1; }
}

@keyframes hero-sheen-glide {
  0% { left: -30%; opacity: 0; }
  15%, 85% { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}

@keyframes hero-edge-run {
  0% { left: 0; opacity: 0; }
  10%, 90% { opacity: 0.9; }
  100% { left: 100%; opacity: 0; }
}

@keyframes scroll-line {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  overflow: hidden;
  flex-direction: column;
  background: var(--color-dark);
  color: var(--color-white);
}

.hero__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 40px 120px;
  gap: 36px;
}

.hero__title {
  margin: 0;
  font-size: min(74px, 5.4vw, calc((100vw - 96px) / 14.5));
  font-weight: 700;
  line-height: 1.3;
  animation: hero-in 1s ease 2.6s both;
}

.hero__title-line {
  display: block;
}

.hero__dynamic {
  display: grid;
  white-space: nowrap;
}

.hero__dynamic-sizer,
.hero__flip {
  grid-area: 1 / 1;
}

.hero__dynamic-sizer {
  visibility: hidden;
}

.hero__flip {
  position: relative;
  display: block;
  perspective: 900px;
}

.hero__leaf {
  display: inline-block;
  transform-origin: left center;
  backface-visibility: hidden;
  will-change: transform;
}

.hero__flip.is-leaving .hero__leaf {
  animation: hero-leaf-out 0.5s cubic-bezier(0.55, 0, 0.85, 0.35) both;
}

.hero__flip.is-entering .hero__leaf {
  animation: hero-leaf-in 0.95s cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.hero__sheen,
.hero__edge {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
}

.hero__sheen {
  width: 28%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0));
}

.hero__edge {
  width: 2px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: -18px 0 28px rgba(0, 0, 0, 0.55);
}

.hero__flip.is-entering .hero__sheen {
  animation: hero-sheen-glide 1.4s cubic-bezier(0.3, 0.1, 0.3, 1) 0.1s both;
}

.hero__flip.is-leaving .hero__edge {
  animation: hero-edge-run 0.9s cubic-bezier(0.5, 0, 0.6, 1) both;
}

.hero__lead {
  max-width: 560px;
  margin: 0;
  color: var(--color-gray-light);
  font-size: 18px;
  line-height: 1.9;
  animation: hero-in 1s ease 2.8s both;
}

.scroll-indicator {
  position: absolute;
  right: 40px;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.scroll-indicator__text {
  color: var(--color-gray-light);
  font-size: 11px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.scroll-indicator__track {
  position: relative;
  display: block;
  width: 1px;
  height: 80px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.scroll-indicator__line {
  position: absolute;
  inset: 0;
  background: var(--color-white);
  animation: scroll-line 2s cubic-bezier(0.6, 0, 0.4, 1) infinite;
}
/* ▲ [hero] */

/* ▼ [side-nav] 画面右側のページ内メニュー */
.side-nav {
  position: fixed;
  top: 50%;
  right: 12px;
  z-index: 20;
  display: none;
  flex-direction: column;
  gap: 18px;
  transform: translateY(-50%);
}

.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 24px;
  min-height: 28px;
  gap: 12px;
  color: var(--color-black);
  text-decoration: none;
}

.side-nav__bar {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--color-gray-light);
  transition: width 0.4s ease, background 0.4s ease;
}

.side-nav__text {
  position: absolute;
  top: 50%;
  right: 36px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  color: #9a9a9a;
  font-size: 13px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.4s ease;
  pointer-events: none;
}

.side-nav a.is-active .side-nav__bar {
  width: 24px;
  background: var(--color-black);
}

.side-nav a.is-active .side-nav__text {
  color: var(--color-black);
}

.side-nav.is-dark a .side-nav__bar { background: #5a5a5a; }
.side-nav.is-dark a .side-nav__text { color: #8a8a8a; }
.side-nav.is-dark a.is-active .side-nav__bar { background: var(--color-white); }
.side-nav.is-dark a.is-active .side-nav__text { color: var(--color-white); }

@media (min-width: 721px) {
  .side-nav:not([hidden]) { display: flex; }
}

/* 通常は線だけを出し、メニューに乗せたとき・キーボードで選んだときに文字を左側へ出す */
.side-nav.is-dark .side-nav__text { background: rgba(22, 22, 22, 0.94); }
.side-nav:hover .side-nav__text,
.side-nav:focus-within .side-nav__text {
  opacity: 1;
  transform: translate(0, -50%);
}
/* ▲ [side-nav] */

/* ▼ [marquee] サービス名の流れる帯 */
@keyframes marquee-move {
  to { transform: translateX(-50%); }
}

.marquee {
  overflow: hidden;
  padding: 26px 0;
  border-bottom: 1px solid var(--color-line-light);
  background: var(--color-white);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 64px;
  color: var(--color-gray-light);
  font-size: 30px;
  font-weight: 400;
  white-space: nowrap;
  animation: marquee-move 40s linear infinite;
}
/* ▲ [marquee] */

/* ▼ [sections] 共通セクション */
.section-shell--muted {
  background: var(--color-muted-bg);
}

.section {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 160px 40px 120px;
  gap: 64px;
}

.section--stacked {
  flex-direction: column;
  flex-wrap: nowrap;
  padding-bottom: 140px;
}

.section--dark {
  position: relative;
  z-index: 1;
  color: var(--color-white);
}

.section__heading-wrap {
  display: flex;
  flex: 1 1 360px;
  flex-direction: column;
  gap: 20px;
}

.section-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-title {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.1;
}

.wipe-title__base {
  color: var(--color-line-light);
}

.wipe-title__top {
  position: absolute;
  inset: 0;
  color: var(--color-black);
  clip-path: polygon(0 0, 115% 0, 130% 100%, 0 100%);
}

.section-title--dark .wipe-title__base { color: #3a3a3a; }
.section-title--dark .wipe-title__top { color: var(--color-white); }

.section-copy {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.5;
}

.body-copy {
  margin: 0;
  color: var(--color-copy);
  font-size: 17px;
  line-height: 2;
}

.body-copy--narrow {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.9;
}

.body-copy--dark {
  color: var(--color-gray-light);
}
/* ▲ [sections] */

/* ▼ [scroll-effects] スクロール時の見出しと本文の動き */
@keyframes title-wipe {
  from { clip-path: polygon(0 0, 0 0, -15% 100%, -15% 100%); }
  to { clip-path: polygon(0 0, 115% 0, 130% 100%, 0 100%); }
}

@keyframes reveal-rise {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

@keyframes parallax-move {
  from { transform: translateY(80px); }
  to { transform: translateY(-80px); }
}

@supports (animation-timeline: view()) {
  .wipe-title__top {
    animation: title-wipe linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 35%;
  }

  .reveal {
    animation: reveal-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 22%;
  }

  .parallax {
    animation: parallax-move linear both;
    animation-timeline: view();
  }
}
/* ▲ [scroll-effects] */

/* ▼ [concept] 事業の考え方 */

.concept .section__heading-wrap {
  flex: 0 1 auto;
}

@media (min-width: 721px) {
  .concept .section-copy {
    font-size: 34px;
  }
}

.concept__content {
  position: relative;
  display: flex;
  flex: 1.4 1 480px;
  flex-direction: column;
  gap: 28px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 16px;
  border-top: 1px solid var(--color-black);
}

.fact {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 0 0;
  gap: 10px;
}

.fact__value {
  font-size: 36px;
  font-weight: 400;
}

.fact__value span {
  font-size: 16px;
}

.fact__value .fact__number {
  display: inline-block;
  min-width: 2ch;
  font-size: inherit;
  font-variant-numeric: tabular-nums;
}

.fact__label {
  color: var(--color-gray);
  font-size: 14px;
}
/* ▲ [concept] */

/* ▼ [services] サービス一覧 */
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.service-browser {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.service-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-black);
}

.service-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 88px;
  padding: 24px 2px;
  border: 0;
  border-bottom: 1px solid var(--color-line);
  background: transparent;
  color: var(--color-black);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: padding 0.3s ease, color 0.3s ease;
}

.service-card:hover,
.service-card:focus-visible,
.service-card.is-active {
  padding-left: 12px;
}

.service-card:not(.is-active) {
  color: var(--color-copy-soft);
}

.service-card:focus-visible,
.service-panel:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 4px;
}

.service-card__title {
  font-size: 24px;
  font-weight: 700;
}

.service-detail {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 24px;
}

/* 非表示のパネルも高さの計算に含め、切り替え時のレイアウト移動を防ぐ */
.service-panels {
  display: grid;
}

.service-panel {
  display: grid;
  grid-area: 1 / 1;
  grid-template-rows: 220px auto;
  align-content: start;
  min-width: 0;
  gap: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.service-panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.service-card__icon {
  align-self: center;
  justify-self: center;
  width: 200px;
  height: 200px;
  transform: scale(0.9) rotate(-4deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-panel.is-active .service-card__icon {
  transform: none;
}

.service-card__description {
  margin: 0;
  color: var(--color-copy-soft);
  font-size: 17px;
  line-height: 1.8;
  text-align: center;
}

.service-type__char {
  position: relative;
  opacity: 0;
}

.service-type__char.is-shown {
  opacity: 1;
}

.service-type__char.is-caret::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: 0;
  width: 2px;
  height: 1.1em;
  background: var(--color-black);
  animation: service-caret 1s steps(1) infinite;
}

@keyframes service-caret {
  50% { opacity: 0; }
}

@media (max-width: 720px) {
  .service-browser {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .service-card {
    min-height: 64px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .service-card__title {
    font-size: 20px;
  }

  .service-panel {
    grid-template-rows: 160px auto;
  }

  .service-card__icon {
    width: 144px;
    height: 144px;
  }
}

.dot { animation: dot-pulse 1.4s ease-in-out infinite; }
.dot--2 { animation-delay: 0.2s; }
.dot--3 { animation-delay: 0.4s; }
.draw-line { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw-line 1.6s ease-out infinite alternate; }
.draw-line--2 { animation-delay: 0.4s; }
.draw-line--3 { animation-delay: 0.8s; }
.check-line { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw-line 1.2s ease-out 0.4s infinite alternate; }
.blink { animation: blink 1.1s steps(1) infinite; }
.spin { transform-origin: center; transform-box: fill-box; animation: spin 10s linear infinite; }

.color-orange { color: var(--color-orange); }
.color-green { color: var(--color-green); }
.color-blue { color: var(--color-blue); }
.color-pink { color: var(--color-pink); }
.color-gray { color: var(--color-gray); }
/* ▲ [services] */

/* ▼ [flow] 相談の流れ */
.flow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 0;
  padding: 0;
  border-left: 1px solid var(--color-line);
  list-style: none;
}

.flow-step {
  display: flex;
  flex-direction: column;
  padding: 8px 32px 24px;
  border-right: 1px solid var(--color-line);
  gap: 18px;
}

.flow-step__number {
  color: var(--color-gray-light);
  font-size: 56px;
  font-weight: 300;
}

.flow-step__title {
  font-size: 19px;
  font-weight: 700;
}

.flow-step__copy {
  color: var(--color-copy-soft);
  font-size: 15px;
  line-height: 1.8;
}
/* ▲ [flow] */

/* ▼ [hours] 対応時間 */
.hours {
  position: relative;
  overflow: hidden;
  background: var(--color-dark);
  color: var(--color-white);
}

.plane-field--hours .plane__surface {
  --plane-border-alpha: 0.06;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  border-top: 1px solid #3a3a3a;
}

.hours-day {
  display: flex;
  flex-direction: column;
  padding: 28px 16px 28px 0;
  border-bottom: 1px solid #3a3a3a;
  gap: 14px;
}

.hours-day__name {
  color: var(--color-gray-light);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.hours-day__time {
  font-size: 22px;
}

.hours-day__time--ja {
  font-size: 20px;
}

.hours-day__line {
  display: block;
  width: 100%;
  height: 3px;
  background: #3a3a3a;
}

.hours-day__detail {
  color: var(--color-gray-light);
  font-size: 13px;
}

.hours-day--off .hours-day__name,
.hours-day--off .hours-day__time,
.hours-day--off .hours-day__detail {
  color: #8a8a8a;
}

.bg-orange { background: var(--color-orange); }
.bg-green { background: var(--color-green); }
.bg-blue { background: var(--color-blue); }
/* ▲ [hours] */

/* ▼ [profile] プロフィール */
/* Contact がすぐ下に続くので、下の余白を詰める */
.section.profile {
  padding-top: 140px;
  padding-bottom: 40px;
}

.profile__content {
  position: relative;
  display: flex;
  flex: 1.4 1 400px;
  flex-direction: column;
  gap: 22px;
}

.profile__name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

/* 紹介文：幅が広い画面では2行。狭い画面では普通に折り返す */
.profile__lead {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
}

.profile__lead span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .profile__lead span { white-space: normal; }
}

.profile-history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--color-black);
  list-style: none;
}

.profile-history li {
  display: flex;
  flex-direction: column;
  padding: 18px 16px 0 0;
  gap: 6px;
}

.profile-history__year {
  font-size: 22px;
  font-weight: 300;
}

.profile-history__event {
  color: var(--color-copy-soft);
  font-size: 13px;
}

/* Python を始めた年と開業の年だけ色を変える（白地で読める濃さにしてある） */
.profile-history__year--python { color: #2e8c83; }
.profile-history__year--now { color: #c2702f; }
/* ▲ [profile] */

/* ▼ [contact] 問い合わせ */
@keyframes sketch-draw {
  0% { stroke-dashoffset: var(--len); }
  40%, 75% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: calc(var(--len) * -1); }
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 56px;
  border-top: 1px solid var(--color-black);
  gap: 48px 64px;
}

/* 線画：線がペンで描くように現れ、止まり、消える（6秒でくり返し） */
.contact__sketch {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 520px;
  height: auto;
  color: var(--color-black);
}

.contact__sketch rect,
.contact__sketch path {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: sketch-draw 6s ease-in-out infinite;
}

.contact__copy {
  display: flex;
  flex: 0 1 420px;
  flex-direction: column;
  gap: 24px;
}

.contact .body-copy {
  color: var(--color-copy-soft);
  font-size: 16px;
  line-height: 1.9;
}

/* ボタンは縦並びの中に入るので、横並び用の flex 指定を打ち消す（打ち消さないと高さが420pxになる） */
.contact__copy .button--contact {
  flex: none;
}
/* ▲ [contact] */

/* ▼ [footer] フッター */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 40px;
  gap: 24px;
}

.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer__name {
  font-size: 22px;
  font-weight: 500;
}

.footer__area {
  color: var(--color-gray-light);
  font-size: 13px;
}

.footer__copyright {
  margin: 0;
  color: var(--color-gray-light);
  font-size: 12px;
  letter-spacing: 0.12em;
}
/* ▲ [footer] */

/* ▼ [responsive] 画面幅に応じた配置 */
@media (max-width: 720px) {
  .header,
  .hero__body,
  .section,
  .footer__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hide-small { display: none !important; }
}
/* ▲ [responsive] */

/* ▼ [reduced-motion] 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .site *,
  .site *::before,
  .site *::after {
    animation: none !important;
    transition: none !important;
  }
  .loader { display: none; }
  .draw-line,
  .check-line,
  .contact__sketch rect,
  .contact__sketch path { stroke-dashoffset: 0; }
  .wipe-title__top { clip-path: none; }
}
/* ▲ [reduced-motion] */
