@charset "UTF-8";

:root {
  --blue: #005bac;
  --blue-pale: #eaf0f7;
  --blue-light: #7fa6d1;
  --orange: #f08300;
  --orange-menu: #ec6d1f;
  --orange-pale: #fdeee4;
  --text: #222a3a;
  --white: #fff;
  --font-en: "hurme-geometric-sans-3", sans-serif;
  --font-ja: "fot-tsukugo-pro", "Hiragino Sans", sans-serif;
  --inner: 1100px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--white);
}
/* ページ下半分では、下端のバウンス（オーバースクロール）時に見える背景をフッター色に */
html.is-lower { background: var(--blue); }
/* スクロールバーは常に非表示（スクロール自体はホイール・タッチ・キーで可能） */
html,
.sp-menu__content { scrollbar-width: none; }
html::-webkit-scrollbar,
.sp-menu__content::-webkit-scrollbar { display: none; }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  letter-spacing: .05em;
  -webkit-font-smoothing: antialiased;
  /* コンテンツが短いページでもフッターを画面下端に固定 */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
main { flex: 1 0 auto; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: middle; }
img[src=""] { display: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.inner {
  width: min(100% - 48px, var(--inner));
  margin-inline: auto;
}

/* ---------- pill button ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-en);
  font-weight: 500;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue);
  border-radius: 999px;
  transition: background-color .3s, border-color .3s, color .3s;
}
@media (hover: hover) {
  .pill:hover { background: var(--blue); color: var(--white); }
}
.pill--s { width: 80px; height: 30px; padding: 0; font-size: 12px; letter-spacing: .04em; }
.pill--l { min-width: 120px; height: 48px; padding: 0 20px; font-size: 15px; letter-spacing: .06em; }
.pill .ext { width: 9px; height: 9px; }
/* 追従メニュー：ホバーで文字が上へ抜け、下から同じ文字が出てくる（JS で文字を 2 つ重ねている） */
.pill__roll { display: inline-grid; overflow: hidden; line-height: 1.3; }
.pill__label { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.pill__label + .pill__label { transform: translateY(110%); }
@media (hover: hover) {
  .g-nav .pill:hover .pill__label,
  .g-nav .pill:focus-visible .pill__label {
    transform: translateY(-110%);
    transition: transform .45s cubic-bezier(.65, 0, .35, 1);
  }
  .g-nav .pill:hover .pill__label + .pill__label,
  .g-nav .pill:focus-visible .pill__label + .pill__label { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .g-nav .pill .pill__label { transition: none !important; }
}

.btn-row { display: flex; justify-content: flex-end; }

.sp-only { display: none; }

/* ---------- global nav (追従) ---------- */
.g-nav {
  position: fixed;
  top: 32px;
  right: 40px;
  z-index: 100;
  transition: opacity .4s, visibility .4s;
}
/* フッターメニュー展開中は非表示 */
.is-footer-open .g-nav { opacity: 0; visibility: hidden; }
.g-nav__list { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.g-nav__sns { display: flex; gap: 14px; }
/* PC・タブレット：Menu ボタンだけを表示し、押すと下の項目が上から順に開く */
.g-nav__list > :nth-child(2) { --i: 0; }
.g-nav__list > :nth-child(3) { --i: 1; }
.g-nav__list > :nth-child(4) { --i: 2; }
.g-nav__list > :nth-child(5) { --i: 3; }
.g-nav__list > :nth-child(6) { --i: 4; }
.g-nav__list > :nth-child(7) { --i: 5; }
.g-nav__list > :nth-child(8) { --i: 6; }
@media (min-width: 768px) {
  /* （ローディング演出の指定より優先させるため詳細度を上げている） */
  html:not(.is-pc-nav-open) .g-nav .g-nav__list > :is(.g-nav__link, .g-nav__sns) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px);
    transition: opacity .25s ease, transform .35s ease, visibility 0s .35s;
  }
  html.is-pc-nav-open .g-nav .g-nav__list > :is(.g-nav__link, .g-nav__sns) {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .4s ease, transform .6s cubic-bezier(.22, 1, .36, 1), visibility 0s;
    transition-delay: calc(var(--i, 0) * 50ms);
  }
  /* 開いている間は Menu ボタンをメニュー色に */
  .is-pc-nav-open .g-nav__menu .pill {
    color: var(--white);
    background: var(--orange-menu);
    border-color: var(--orange-menu);
  }
}
.sns-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--blue);
  border-radius: 50%;
  transition: background-color .3s, border-color .3s, color .3s;
}
.sns-btn svg { width: 14px; height: 14px; }
@media (hover: hover) {
  .sns-btn:hover { background: var(--blue); color: var(--white); }
}
/* 追従メニューのホバーはメニュー色（オレンジ） */
/* PC・タブレットの追従メニューの文字は一段階太く */
@media (min-width: 768px) {
  .g-nav .pill { font-weight: 600; }
}
@media (hover: hover) {
  .g-nav .pill:hover,
  .g-nav .sns-btn:hover {
    color: var(--white);
    background: var(--orange-menu);
    border-color: var(--orange-menu);
  }
}

/* ---------- KV ---------- */
.kv {
  position: relative;
  height: 1080px;
  max-height: 100svh;
  min-height: 560px;
  display: grid;
  place-items: center;
}
.kv__logo { width: min(62%, 1180px); }
.kv__logo img { display: block; width: 100%; }
.kv__hint {
  position: absolute;
  left: 24px;
  bottom: 32px;
  display: flex;
  /* 矢印（右向きの返し）と文字の縦位置を中央で揃える */
  align-items: center;
  gap: 8px;
}
/* 固定情報：画面の右下に、枠や背景なしの文字だけで表示 */
.kv-notice {
  position: absolute;
  right: 48px;
  bottom: 36px;
  max-width: min(380px, calc(100% - 96px));
  color: var(--blue);
}
/* 期間なし：文字の幅だけの大きさで右端に寄せる（内容の末尾を軸に、長いほど左へ伸びる）
   期間あり：開始日〜終了日の線の長さを確保するため幅を固定 */
.kv-notice.has-period { width: 380px; }
.kv-notice__title { font-size: 20px; font-weight: 900; line-height: 1.45; letter-spacing: .06em; }
.kv-notice > :not([hidden]) ~ * { margin-top: 8px; }
.kv-notice__body { font-size: 12px; line-height: 1.75; letter-spacing: .05em; color: var(--text); white-space: pre-line; }
/* 期間：開始日 ── 終了日。線は今日までの日数ぶんオレンジになる（毎日伸びるプログレスバー） */
/* 日付は、管理ページのプレビューと同じ書体（極太まであるヒラギノ角ゴ）で表示 */
.kv-notice__period { font-family: "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif; }
.kv-notice__period { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.kv-notice__period[hidden] { display: none; }
/* 西暦・曜日は月日より 2 割小さく */
.kv-notice__year,
.kv-notice__week { font-size: .8em; }
.kv-notice__week { margin-left: .35em; }
.kv-notice__bar { position: relative; flex: 1; min-width: 60px; height: 16px; }
/* 薄い線（期間全体） */
.kv-notice__bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: rgba(236, 109, 31, .2); border-radius: 1px; }
/* オレンジの線（今日まで）。この幅の中だけを心電図のような波が左から右へ流れる */
.kv-notice__fill { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; transition: width 1.4s cubic-bezier(.22, 1, .36, 1) .3s; }
.kv-notice__fill::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--orange-menu); border-radius: 1px; }
.kv-notice__pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 16px;
  fill: none;
  stroke: var(--orange-menu);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  animation: notice-pulse 2.4s linear infinite;
}
/* 線の左端の外から右端の外まで流す（線が短くても長くても同じ速さに見えるよう left で動かす） */
@keyframes notice-pulse { from { left: -40px; } to { left: 100%; } }
/* 波の部分だけ下の横線を背景色で隠し、波と線が重ならないように */
.kv-notice__pulse-gap { fill: var(--white); stroke: none; }
@media (prefers-reduced-motion: reduce) {
  .kv-notice__pulse { display: none; }
}
/* リンクボタン：Top ページの他のボタンと同じ形（小さめ版は .switch-btn--s） */
.kv-notice .kv-notice__link { margin-top: 14px; }
.kv-notice__link[hidden] { display: none; }
/* ホバーで内容の文章の右端まで伸び、矢印もその長さで描かれる（--arrow-w・--arrow-len は JS で文章の幅から計算） */
.kv-notice .kv-notice__link .switch-btn__arrow svg { width: calc(var(--arrow-w, 42px) - 12px); height: 8px; }
.kv-notice .kv-notice__link .switch-btn__arrow polyline { stroke-dasharray: var(--arrow-len, 56); stroke-dashoffset: var(--arrow-len, 56); }
.kv-notice .kv-notice__link:focus-visible .switch-btn__arrow { width: var(--arrow-w, 42px); }
@media (hover: hover) {
  .kv-notice .kv-notice__link:hover .switch-btn__arrow { width: var(--arrow-w, 42px); }
}
.kv-notice .kv-notice__link:focus-visible .switch-btn__arrow polyline { stroke-dashoffset: 0; }
@media (hover: hover) {
  .kv-notice .kv-notice__link:hover .switch-btn__arrow polyline { stroke-dashoffset: 0; }
}
/* PC：セクションボタンと同じ形の下向き矢印が、上から描かれては消えるを繰り返す */
.kv__hint-scroll { display: block; width: 8px; height: 88px; }
.kv__hint-scroll svg { display: block; width: 100%; height: 100%; overflow: visible; }
.kv__hint-scroll polyline {
  fill: none;
  stroke: var(--blue);
  stroke-width: 1;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hint-scroll 2.4s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes hint-scroll {
  0% { stroke-dashoffset: 100; }
  50% { stroke-dashoffset: 0; }
  75% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
/* SP：点が下から上へスッと動いて消える（縦のフリック） */
.kv__hint-flick {
  position: relative;
  width: 8px;
  height: 30px;
}
.kv__hint-flick::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(0, 91, 172, .2);
}
.kv__hint-flick::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  animation: hint-flick 1.8s cubic-bezier(.22, 1, .36, 1) infinite;
}
@keyframes hint-flick {
  0% { transform: translateY(22px); opacity: 0; }
  15% { transform: translateY(22px); opacity: 1; }
  55% { transform: translateY(0); opacity: 1; }
  80%, 100% { transform: translateY(0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .kv__hint-scroll polyline { animation: none; stroke-dashoffset: 0; }
  .kv__hint-flick::after { animation: none; }
}
.kv__scroll {
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--blue);
  padding-bottom: 0;
}

/* ---------- Works carousel ---------- */
.works {
  background: var(--blue-pale);
  padding: 60px 0 60px;
}
.carousel {
  overflow: hidden;
  padding: 0 0 12px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.carousel.is-dragging { cursor: grabbing; }
.carousel.is-dragging a { pointer-events: none; }
.carousel__track {
  display: flex;
  gap: 40px;
  width: max-content;
  padding-left: 30px;
  will-change: transform;
}
.work-card { flex: 0 0 auto; width: 340px; }
.work-card a { display: block; }
.work-card img { -webkit-user-drag: none; }
.work-card__img {
  aspect-ratio: 340 / 240;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 40, 90, .12);
  overflow: hidden;
}
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
@media (hover: hover) {
  .work-card a:hover .work-card__img img { transform: scale(1.05); }
}
.work-card__title {
  margin-top: 12px;
  font-size: 13px;
  color: var(--blue);
}
.works .btn-row { margin-top: 50px; }
.works .works-soon { margin: 80px 0 30px; }

/* ---------- section title ---------- */
.sec-title {
  position: relative;
  text-align: center;
  font-family: var(--font-en);
  font-size: 50px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .05em;
  color: var(--blue);
  padding-bottom: 14px;
}
.sec-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100px;
  height: 3px;
  background: var(--orange);
  transform: translateX(-50%);
}

/* ---------- Profile ---------- */
/* セクション全体を 16:9 に（円以外の要素の高さ合計 = 529px） */
.profile { min-height: 56.25vw; padding: 80px 0 90px; text-align: center; }
.profile__name {
  margin-top: 56px;
  font-family: var(--font-en), var(--font-ja);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--blue);
}
.profile__icon {
  display: grid;
  place-items: center;
  width: clamp(200px, 56.25vw - 529px, 560px);
  max-width: 80vw;
  aspect-ratio: 1;
  margin: 40px auto 0;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  transition: opacity .3s;
}
@media (hover: hover) {
  .profile__icon:hover { opacity: .85; }
}
.profile__icon svg { width: 36%; height: 36%; }
.profile__text {
  margin-top: 40px;
  font-size: 18px;
  line-height: 1.5;
}
.btn-row--profile { margin-top: -50px; }

/* ---------- Topics ---------- */
/* ---------- Service ---------- */
.service { padding: 80px 0 90px; }
.service__lead { margin-top: 40px; text-align: center; font-size: 15px; line-height: 1.9; letter-spacing: .05em; color: var(--blue); }
.service__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.service__item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 26px 32px;
  background: var(--blue-pale);
  border-radius: 32px 0 32px 0;
}
.service__num { font-family: var(--font-en); font-size: 15px; font-weight: 600; letter-spacing: .08em; color: var(--orange-menu); }
.service__icon { width: 52px; height: 52px; margin-top: 18px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service__name { margin: 20px 0 0; font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--blue); }
.service__en { display: block; margin-bottom: 2px; font-family: var(--font-en); font-size: 20px; font-weight: 600; letter-spacing: .03em; }
.service__text { margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--text); }
.service .btn-row { margin-top: 50px; }
@media (max-width: 1023px) {
  /* 右側の追従メニューと重ならないよう右に余白を確保（Works・Contact ページと同じ） */
  .service .inner { width: auto; margin: 0 150px 0 40px; }
  .service__list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

.topics { background: var(--blue-pale); padding: 80px 0 60px; }
.topics__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin-top: 44px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .06em;
}
.topics__tabs button { color: var(--blue-light); transition: color .3s; }
.topics__tabs button.is-active { color: var(--blue); }
@media (hover: hover) {
  .topics__tabs button:hover { color: var(--blue); }
}
.topics__tabs button.is-active { font-weight: 600; }
.topics__box {
  margin-top: 16px;
  min-height: 400px;
  padding: 24px 48px;
  border: 1px solid var(--blue);
  border-radius: 28px;
}
.topics__list li { border-bottom: 1px solid rgba(0, 91, 172, .2); }
.topics__list li:last-child { border-bottom: 0; }
.topics__list li.is-hidden { display: none; }
.topics__list .topics__empty { padding: 40px 0; text-align: center; font-size: 14px; color: var(--blue); border-bottom: 0; }
.topics__list a,
.topics__row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  transition: opacity .3s;
}
@media (hover: hover) {
  .topics__list a:hover { opacity: .6; }
}
.topics__list time { font-family: var(--font-en); font-size: 13px; font-weight: 500; color: var(--blue); }
.topics__ttl { font-size: 14px; }
.topics__list .tag,
.modal .tag {
  flex: 0 0 auto;
  min-width: 110px;
  padding: 2px 12px;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
}
.topics .btn-row { margin-top: 60px; }
/* 登録したニュースの行（押すと詳細のポップアップ） */
button.topics__row { width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
@media (hover: hover) {
  button.topics__row:hover { opacity: .6; }
}
button.topics__row:focus-visible { outline: 2px solid var(--orange-menu); outline-offset: 2px; }

/* ---------- ニュースの詳細ポップアップ ---------- */
html.is-modal-open { overflow: hidden; }
.modal {
  width: min(100% - 48px, 860px);
  max-width: none;
  max-height: min(100svh - 80px, 900px);
  padding: 0;
  color: var(--text);
  background: var(--white);
  border: 0; /* ブラウザ標準の枠線を消す */
  border-radius: 54px 0 54px 0;
  overflow: hidden;
}
.modal[open] { display: flex; flex-direction: column; animation: modal-in .45s cubic-bezier(.22, 1, .36, 1); }
.modal::backdrop { background: rgba(34, 42, 58, .35); animation: modal-backdrop-in .3s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes modal-backdrop-in { from { opacity: 0; } }
.modal__scroll { overflow-y: auto; padding: 64px 72px 72px; overscroll-behavior: contain; }
.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: var(--white);
  border-radius: 50%;
  transition: background-color .3s, color .3s;
}
.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (hover: hover) {
  .modal__close:hover { color: var(--white); background: var(--orange-menu); }
}
.modal__close:focus-visible { outline: 2px solid var(--orange-menu); outline-offset: 2px; }
.modal__head { display: flex; align-items: center; gap: 20px; }
.modal__head time { font-family: var(--font-en); font-size: 14px; font-weight: 500; color: var(--blue); }
.modal__title { margin: 18px 0 0; padding-bottom: 24px; font-size: 22px; line-height: 1.5; color: var(--blue); border-bottom: 1px solid rgba(0, 91, 172, .2); outline: none; }
.modal__body { margin-top: 28px; font-size: 15px; line-height: 1.9; }
.modal__body p { margin: 0; overflow-wrap: anywhere; }
/* Markdown で書いた本文の装飾 */
.modal__body h4,
.modal__body h5,
.modal__body h6 { margin: 0; line-height: 1.5; color: var(--blue); }
.modal__body h4 { font-size: 19px; padding-left: 14px; border-left: 3px solid var(--orange-menu); }
.modal__body h5 { font-size: 17px; }
.modal__body h6 { font-size: 15px; }
.modal__body ul,
.modal__body ol { margin: 0; padding-left: 1.5em; }
.modal__body ul { list-style: disc; } /* サイト全体ではリストの記号を消しているため、本文では戻す */
.modal__body ol { list-style: decimal; }
.modal__body li + li { margin-top: 4px; }
.modal__body ul li::marker { color: var(--blue); }
.modal__body ol li::marker { font-family: var(--font-en); font-weight: 600; color: var(--blue); }
.modal__body blockquote { margin: 0; padding: 14px 20px; color: #4a5468; background: var(--blue-pale); border-radius: 0 12px 12px 0; border-left: 3px solid var(--blue-light); }
.modal__body hr { height: 1px; margin-block: 32px; background: rgba(0, 91, 172, .2); border: 0; }
.modal__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (hover: hover) {
  .modal__body a:hover { text-decoration: none; }
}
.modal__body strong { font-weight: 700; color: var(--blue); }
.modal__body code { padding: 1px 6px; font-size: .9em; background: var(--blue-pale); border-radius: 4px; }
.modal__body > :not(:first-child) { margin-top: 24px; }
.modal__body img { display: block; width: 100%; height: auto; border-radius: 12px; }
/* ---------- 作品画像の拡大表示（Top ページ） ---------- */
.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  overflow: hidden;
}
.lightbox[open] { animation: lightbox-in .35s ease; }
.lightbox::backdrop { background: rgba(20, 28, 44, .78); animation: modal-backdrop-in .3s ease; }
@keyframes lightbox-in { from { opacity: 0; } }
.lightbox__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  height: 100%;
  padding: 72px 24px 40px;
  outline: none;
}
.lightbox__img {
  display: block;
  align-self: center;
  width: auto;
  max-width: min(100%, 1200px);
  height: auto;
  max-height: calc(100svh - 220px);
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  animation: lightbox-zoom .45s cubic-bezier(.22, 1, .36, 1);
}
@keyframes lightbox-zoom { from { transform: scale(.94); } }
/* 画像・閉じるボタン・タイトルと「詳細を見る」をまとめる枠（幅は画像に合わせる） */
/* 作品画像の保存対策：画像そのものには触れないようにして、右クリック・長押し・ドラッグから
   「画像を保存」「新しいタブで画像を開く」を出さない（クリック・スワイプは外側の枠が受ける） */
.work-card__img img, .work-item__img img, .lightbox__img, .modal__slide img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  pointer-events: none;
}
.lightbox__frame { position: relative; display: flex; flex-direction: column; max-width: min(100%, 1200px); }
.lightbox__close { top: -56px; right: 0; }
/* Top ページのボタン（.btn-row）と同じく、PC は右寄せ・モバイルは中央 */
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 0; min-width: 100%; margin-top: 24px; } /* 幅は画像に合わせ、タイトルの長さで広げない */
.lightbox__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .05em; color: var(--white); overflow-wrap: anywhere; }
.lightbox__more { flex: none; margin-left: auto; }
/* 拡大表示では青い輪郭線と、その切れ目をなくす */
.lightbox .lightbox__more { border-color: transparent; }
.lightbox .lightbox__more::before { display: none; }
@media (prefers-reduced-motion: reduce) {
  .lightbox[open], .lightbox__img { animation: none; }
}

/* 作品のポップアップ：使用ソフト・写真 */
.modal__tools { display: flex; gap: 8px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.modal__tools .tool { width: 24px; height: 24px; }
/* 写真：インスタのように 1 枚ずつ表示し、横スワイプ・矢印で切り替え */
.modal__gallery { position: relative; margin-top: 28px; }
.modal__slides {
  display: flex;
  aspect-ratio: var(--ratio, 4 / 3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  background: var(--blue-pale);
  border-radius: 12px;
}
.modal__slides::-webkit-scrollbar { display: none; }
.modal__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.modal__slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.modal__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--blue);
  background: rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(34, 42, 58, .18);
  transform: translateY(-50%);
  transition: opacity .3s, background-color .3s, color .3s;
}
.modal__nav--prev { left: 12px; }
.modal__nav--next { right: 12px; }
@media (hover: hover) {
  .modal__nav:hover { color: var(--white); background: var(--orange-menu); }
}
.modal__nav[hidden] { display: none; }
.modal__nav svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.modal__count {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 2px 10px;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--white);
  background: rgba(34, 42, 58, .6);
  border-radius: 999px;
  pointer-events: none;
}
.modal__dots { display: flex; justify-content: center; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.modal__dots li { width: 6px; height: 6px; background: rgba(0, 91, 172, .25); border-radius: 50%; transition: background-color .3s, transform .3s; }
.modal__dots li.is-active { background: var(--blue); transform: scale(1.2); }
.modal__gallery + .modal__body { margin-top: 32px; }
.modal__body[hidden] { display: none; }
.modal__link[hidden] { display: none; } /* 関連リンクが未設定のニュースでは表示しない */
.modal__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 999px;
  transition: background-color .3s, color .3s;
}
@media (hover: hover) {
  .modal__link:hover { color: var(--white); background: var(--blue); }
}
.modal__link .ext { width: 9px; height: 9px; }
@media (max-width: 767px) {
  .modal { width: calc(100% - 32px); max-height: calc(100svh - 48px); border-radius: 30px 0 30px 0; }
  .modal__scroll { padding: 56px 24px 40px; }
  .modal__close { top: 10px; right: 10px; }
  .modal__head { gap: 12px; }
  .modal__head time { font-size: 12px; }
  .modal__title { margin-top: 12px; padding-bottom: 16px; font-size: 17px; }
  .modal__body { margin-top: 20px; font-size: 14px; line-height: 1.8; }
  .modal__body > :not(:first-child) { margin-top: 18px; }
  .modal__body img { border-radius: 8px; }
  .modal__body h4 { font-size: 16px; }
  .modal__body h5 { font-size: 15px; }
  .modal__body h6 { font-size: 14px; }
  .modal__body blockquote { padding: 12px 16px; }
  .modal__link { margin-top: 28px; font-size: 13px; }
  .modal__tools { gap: 6px; }
  .lightbox__inner { gap: 20px; padding: 64px 16px 32px; }
  .lightbox__img { max-height: calc(100svh - 260px); border-radius: 10px; }
  .lightbox__close { top: -52px; right: 0; }
  .lightbox__bar { flex-direction: column; gap: 16px; margin-top: 18px; }
  .lightbox__title { font-size: 14px; text-align: center; }
  .lightbox__more { margin-left: 0; }
  .modal__tools .tool { width: 18px; height: 18px; }
  .modal__gallery { margin-top: 20px; }
  .modal__slides { border-radius: 8px; }
  .modal__nav { width: 32px; height: 32px; }
  .modal__nav--prev { left: 8px; }
  .modal__nav--next { right: 8px; }
  .modal__count { top: 8px; right: 8px; font-size: 11px; }
  .modal__dots { margin-top: 10px; }
  .modal__gallery + .modal__body { margin-top: 24px; }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 10;
  padding: 60px 0 0;
  color: var(--white);
  /* アール部分の外側の色（トップは Topics の背景色。ページごとに変更可） */
  background: var(--footer-corner, var(--blue-pale));
  text-align: center;
}
/* 角丸のフッター本体 */
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--blue);
  border-radius: 56px 56px 0 0;
}
/* 三本線の色をなめらかに変化させるため、色をアニメーション可能なプロパティとして登録 */
@property --toggle-line {
  syntax: "<color>";
  inherits: true; /* 三本線（::before）にも引き継ぐ */
  initial-value: rgba(255, 255, 255, .7);
}
.menu-toggle {
  --toggle-line: rgba(255, 255, 255, .7);
  position: absolute;
  top: 4px;
  left: 50%;
  width: 72px;
  height: 28px;
  transform: translateX(-50%);
  transition: --toggle-line .3s;
}
/* 三本線：上へクルクルと流れ続ける（枠の高さを線 3 本分にして、常に 3 本がはっきり見えるように） */
.menu-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 12px;
  transform: translate(-50%, -50%);
  background: repeating-linear-gradient(to bottom, var(--toggle-line) 0 1px, transparent 1px 4px) 0 0 / 100% 4px repeat-y;
  overflow: hidden;
  animation: toggle-roll .9s linear infinite;
}
@keyframes toggle-roll { to { background-position: 0 -4px; } }
/* 指でつかみやすいよう、見た目より広い範囲で反応させる（上へのフリックで開く。js/main.js） */
.menu-toggle { touch-action: none; }
.menu-toggle::after { content: ""; position: absolute; inset: -14px -24px -6px; } /* 下は控えめにして、ロゴのリンクと重ならないように */
@media (prefers-reduced-motion: reduce) {
  .menu-toggle::before { animation: none; }
}
.menu-toggle:focus-visible { --toggle-line: var(--orange-menu); }
@media (hover: hover) {
  .menu-toggle:hover { --toggle-line: var(--orange-menu); }
}
.menu-toggle:focus-visible { outline: none; }
.footer__logo { display: inline-block; width: 340px; max-width: 60%; }
.footer__logo img { width: 100%; }
/* ページトップ：左側に切れ目のある白い円＋細い山形（元データ 76×76） */
.pagetop {
  position: absolute;
  top: 74px;
  right: 50px;
  display: block;
  width: 60px;
  height: 60px;
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 50%;
  transition: background-color .3s, color .3s;
  -webkit-tap-highlight-color: transparent; /* スマホでタップした時の灰色の影を出さない */
}
/* 輪郭の左側の切れ目（フッターの青で隠す） */
.pagetop::before {
  content: "";
  position: absolute;
  top: 38.4%;
  left: -2px;
  width: 3px;
  height: 10%;
  background: var(--blue);
  transition: opacity .3s;
}
.pagetop svg { display: block; width: 100%; height: 100%; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) {
  .pagetop:hover { color: var(--blue); background: var(--white); }
}
/* 白く塗った時は切れ目を消して綺麗な円に */
@media (hover: hover) {
  .pagetop:hover::before { opacity: 0; }
}
@media (hover: hover) {
  .pagetop:hover svg { transform: translateY(-4px); }
}
.footer__bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 0 24px 12px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: .06em;
}
.footer__bottom small { font-size: inherit; font-weight: 400; }
.footer__bottom a { font-weight: 600; }
@media (hover: hover) {
  .footer__bottom a:hover { text-decoration: underline; }
}

/* ---------- Footer menu（フッターが上に伸びて出現） ---------- */
.footer__menu {
  height: 0;
  overflow: hidden;
}
.footer__menu-inner {
  margin: 12px 24px 0;
  padding: 90px 124px 60px;
  border-top: 1px solid rgba(255, 255, 255, .7);
  text-align: center;
  opacity: 0;
  transition: opacity .4s;
}
.footer.is-open .footer__menu-inner { opacity: 1; transition-delay: .2s; }
.footer__menu-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  /* 2 列のまま、メニュー全体と各項目を中央に揃える */
  justify-content: center;
  justify-items: center;
  gap: 28px 80px;
  font-size: 15px;
  line-height: 1.4;
}
.footer__menu-nav a { transition: opacity .3s; }
@media (hover: hover) {
  .footer__menu-nav a:hover { opacity: .6; }
}
.footer__menu-nav span {
  margin-left: .6em;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .08em;
}
.footer__menu-sns { display: flex; justify-content: center; gap: 62px; margin-top: 90px; }
.footer__menu-sns a { display: block; width: 36px; height: 36px; transition: opacity .3s; }
@media (hover: hover) {
  .footer__menu-sns a:hover { opacity: .6; }
}
.footer__menu-sns svg { width: 100%; height: 100%; }

/* ==========================================================
 * Works ページ
 * ========================================================== */
.page-works { --footer-corner: var(--white); }
.works-page { padding: 76px 0 140px; }
/* 左右に 160px 以上（右の追従メニューと重ならない幅）を確保 */
.works-page__inner { width: min(100% - 320px, 1600px); margin-inline: auto; }

/* 絞り込み（ボタンがそのままパネルに広がって一覧が出現） */
.works-filter {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 30px;
  /* 高さはボタン分だけ確保し、開いたパネルは下の作品に被せる */
  height: 30px;
  margin: 21px 0 0 -50px;
}
.filter {
  flex: none;
  width: 150px;
  overflow: hidden;
  border-radius: 15px;
  transition: width .4s cubic-bezier(.22, 1, .36, 1), border-radius .4s;
}
.filter.is-open { border-radius: 12px; }
.filter--category { color: var(--blue); background: var(--blue-pale); }
.filter--software { color: var(--orange-menu); background: var(--orange-pale); }
.filter__btn {
  display: block;
  width: 100%;
  height: 30px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600; /* 一覧の項目と同じ太さ */
  letter-spacing: .05em;
  white-space: nowrap;
  transition: opacity .3s;
}
@media (hover: hover) {
  .filter__btn:hover { opacity: .7; }
}
.filter__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.22, 1, .36, 1);
}
.filter.is-open .filter__body { grid-template-rows: 1fr; }
.filter__clip { min-height: 0; overflow: hidden; }
.filter__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 12px 0 22px;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
}
.filter__list button { line-height: 1.4; border-bottom: 1px solid transparent; transition: opacity .3s, border-color .3s; }
@media (hover: hover) {
  .filter__list button:hover { opacity: .6; }
}
.filter__list button[aria-pressed="true"] { border-bottom-color: currentColor; }
/* 開いた一覧は検索窓よりも前面に重ねる */
.filter { position: relative; z-index: 1; }

/* 作品検索（虫眼鏡＋青いアンダーラインのみ） */
.works-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 300px;
  height: 30px;
  margin-left: auto;
  border-bottom: 1px solid var(--blue);
  color: var(--blue);
}
.works-search__icon { flex: none; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.works-search__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  font: inherit;
  font-size: 14px;
  letter-spacing: .05em;
  color: var(--blue);
  background: none;
  border: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.works-search__input::placeholder { color: var(--blue-light); opacity: 1; }
.works-search__input::-webkit-search-cancel-button { display: none; }
.work-item[hidden] { display: none; }

/* 作品一覧 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px 50px;
  margin-top: 31px;
}
.work-item a,
.work-item__open { display: block; }
/* 投稿した作品（押すと詳細のポップアップ） */
.work-item__open { width: 100%; padding: 0; font: inherit; color: inherit; text-align: left; background: none; border: 0; cursor: pointer; }
.work-item__open:focus-visible { outline: 2px solid var(--orange-menu); outline-offset: 4px; border-radius: 4px; }
.work-item__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--white);
  border-radius: 28px 0 28px 0;
}
.work-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
@media (hover: hover) {
  .work-item a:hover .work-item__img img,
  .work-item__open:hover .work-item__img img { transform: scale(1.05); }
}
.work-item__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.work-item__title { font-size: 14px; line-height: 1.4; color: var(--blue); }
.work-item__tools { display: flex; gap: 8px; flex: none; }
/* 使用ソフトのアイコン（images/software/*.svg） */
.tool { width: 22px; height: 22px; }
.tool img { display: block; width: 100%; height: 100%; }
.works-empty { margin: 60px 0; text-align: center; font-size: 14px; color: var(--blue); }
.works-soon { margin: 120px 0 80px; text-align: center; font-family: var(--font-en); font-size: 28px; font-weight: 500; letter-spacing: .08em; color: var(--blue); }

@media (max-width: 1023px) {
  /* 右側の追従メニューと重ならないよう右に余白を確保 */
  .works-page__inner { width: auto; margin: 0 150px 0 40px; }
  .works-filter { margin-left: 0; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
}

/* ==========================================================
 * Profile ページ
 * ========================================================== */
.page-profile { --footer-corner: var(--white); }
.profile-page { padding: 76px 0 80px; }

/* 自己紹介 */
.pf-intro {
  display: grid;
  grid-template-columns: minmax(280px, 421px) 1fr;
  align-items: start;
  gap: clamp(60px, 8vw, 220px);
  width: min(100% - 320px, 1500px);
  margin: 104px auto 0;
}
.pf-intro__icon {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  transition: opacity .3s;
}
@media (hover: hover) {
  .pf-intro__icon:hover { opacity: .85; }
}
.pf-intro__icon svg { width: 36%; height: 36%; }
.pf-intro__body { padding-top: 20px; color: var(--blue); }
.pf-intro__name {
  font-family: var(--font-en);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .05em;
}
.pf-intro__text { margin-top: 32px; font-size: 18px; line-height: 1.65; letter-spacing: .06em; }

/* Skill */
.pf-skill { margin-top: 200px; }
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  margin-top: 36px;
}
.skill { width: 100px; color: var(--skill-color); }
.skill__icon { display: block; width: 100%; height: auto; }
/* アイコンはボタン：カーソルを合わせると少し拡大し、押すと「できること」をポップアップで表示 */
.skill__btn {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 24%;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.skill__btn:focus-visible { transform: scale(1.1); }
@media (hover: hover) {
  .skill__btn:hover { transform: scale(1.1); }
}
.skill__btn:focus-visible { outline: 2px solid var(--orange-menu); outline-offset: 4px; }
.skill__detail { display: none; }

/* Skill のポップアップ：アイコン（液体が溜まった状態）＋アプリ名、その下にできること */
.skill-modal { width: min(100% - 48px, 640px); }
.skill-modal__head { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid rgba(0, 91, 172, .2); }
.skill-modal__icon { flex: none; width: 76px; color: var(--skill-color); }
.skill-modal__icon .skill { width: 100%; }
.skill-modal__icon .skill__icon { width: 100%; }
.skill-modal__icon .skill__stream { animation: none !important; } /* 最初から溜まった状態なので注ぐ筋は出さない */
.skill-modal .skill-modal__title { margin: 0; padding: 0; font-family: var(--font-en); font-size: 24px; color: var(--skill-color, var(--blue)); border: 0; }
.skill-modal .modal__body { margin-top: 24px; }
.skill__wave {
  fill: var(--skill-liquid);
  animation: skill-wave 3.2s linear infinite;
}
/* 奥側の波：少し上・半透明・逆向きに流して液面に揺らぎを出す */
.skill__wave--back {
  opacity: .55;
  transform: translateY(-3px);
  animation: skill-wave-back 4.6s linear infinite;
}
@keyframes skill-wave { from { transform: translateX(0); } to { transform: translateX(70px); } }
@keyframes skill-wave-back { from { transform: translate(70px, -3px); } to { transform: translate(0, -3px); } }
/* カーソルを合わせると上から液体が注がれ、--level の高さまで溜まる（JS で .is-filled。一度溜まったらそのまま） */
.skill__liquid {
  transform: translateY(155px); /* 空の状態（波の山もアイコンの下に隠れる位置） */
  transition: transform 1.8s cubic-bezier(.33, 0, .2, 1) .25s;
}
.skill.is-filled .skill__liquid { transform: translateY(var(--level)); }
/* 注ぎ口から落ちる液体の筋：上から伸びて、溜まり終わる頃に細くなって消える */
.skill__stream {
  fill: var(--skill-liquid);
  transform-box: fill-box;
  transform-origin: 50% 0;
  transform: scaleY(0);
}
.skill.is-filled .skill__stream { animation: skill-pour 2.2s ease-out forwards; }
@keyframes skill-pour {
  0% { transform: scaleY(0); }
  12% { transform: scaleY(1); }
  78% { transform: scaleY(1); opacity: 1; }
  100% { transform: scale(0, 1); opacity: 0; }
}
/* 目盛り・ロゴ・枠（添付の SVG のデザイン） */
.skill__ticks line { stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.skill__mark { fill: currentColor; }

/* SNS */
.pf-sns { margin-top: 110px; }
.pf-sns__row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(100% - 320px, 1500px);
  margin: 40px auto 0;
}
.pf-sns__list { display: flex; gap: 92px; }
.pf-sns__list a { display: block; width: 42px; height: 42px; color: var(--blue-light); transition: color .3s; }
@media (hover: hover) {
  .pf-sns__list a:hover { color: var(--blue); }
}
.pf-sns__list svg { width: 100%; height: 100%; }
/* 右端固定（ホバーで左に伸びる）。.switch-btn の position より優先させる */
.pf-sns__row .pf-sns__contact { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }

@media (max-width: 1023px) {
  .pf-intro { grid-template-columns: 300px 1fr; gap: 60px; width: auto; margin: 80px 150px 0 40px; }
  .pf-intro__name { font-size: 30px; }
  .pf-intro__text { margin-top: 20px; font-size: 15px; }
  .pf-skill { margin-top: 120px; }
  .pf-sns__row { flex-direction: column; gap: 40px; width: auto; }
  .pf-sns__list { gap: 48px; }
  .pf-sns__row .pf-sns__contact { position: relative; top: auto; right: auto; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .skill__wave { animation: none; }
  .skill__liquid { transition: none; }
  .skill__btn { transition: none; }
  .skill.is-filled .skill__stream { animation: none; }
  .c-reveal, .c-reveal *, .c-collapse { transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* ==========================================================
 * Contact ページ
 * ========================================================== */
.page-contact { --footer-corner: var(--white); }
/* フォーム（水色パネル）が出たらフッターの角の外側もパネル色に */
.page-contact.is-form-shown { --footer-corner: var(--blue-pale); }
.contact-page { display: flex; flex-direction: column; padding-top: 76px; }
/* 入力パネルを画面下（フッター）まで伸ばす */
.contact-form { flex: 1; display: flex; flex-direction: column; }
.c-reveal[data-step="form"] { flex: 1; }
/* 入力欄が空の状態で、パネル＋フッターがちょうど 16:9 の画面 1 枚に収まる高さ
 * （--footer-h は JS でフッターの実際の高さを設定。縦の余白は画面の高さに合わせて詰め、
 *   送信ボタンはパネルの下端側へ） */
.c-panel {
  --gap: clamp(16px, 8svh - 40px, 64px);
  box-sizing: border-box;
  min-height: calc(100vh - var(--footer-h, 203px));
  min-height: calc(100svh - var(--footer-h, 203px));
  display: flex;
  flex-direction: column;
}
.c-panel__inner { flex: 1; display: flex; flex-direction: column; }
.contact-page .sec-title { margin-bottom: 64px; }

.c-step { text-align: center; color: var(--blue); }
/* 右の追従メニューに重ならないよう画面幅に合わせて縮小 */
.c-lead { font-size: min(16px, 1.15vw); line-height: 1.6; letter-spacing: .05em; }
.c-lead a { color: var(--orange-menu); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
@media (hover: hover) {
  .c-lead a:hover { text-decoration: none; }
}
.c-step > .c-check { margin-top: 22px; }
.c-step--type { padding-top: 36px; }
.c-choices { display: flex; justify-content: center; gap: 120px; margin-top: 16px; }

/* 丸いチェック（checkbox / radio 共通） */
.c-check { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; }
.c-check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.c-check__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue-light);
  border: 2px solid var(--blue);
  border-radius: 50%;
  opacity: .9;
  transition: background-color .3s, color .3s;
}
.c-check__mark svg { width: 62%; height: 62%; opacity: .5; transition: opacity .3s; }
.c-check input:checked + .c-check__mark { color: var(--white); background: var(--blue); }
.c-check input:checked + .c-check__mark svg { opacity: 1; }
.c-check input:focus-visible + .c-check__mark { outline: 2px solid var(--orange-menu); outline-offset: 3px; }
.c-check__label { font-size: 18px; letter-spacing: .06em; }

/* 次の質問をふわっと出す（高さ 0 → 自動）
 * 出す時：ゆっくり広がりながら、中身が少し下から浮き上がる
 * 消す時：素早くたたむ */
.c-reveal {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .45s var(--ease-out), opacity .25s;
}
.c-reveal.is-shown {
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows .9s var(--ease-out), opacity .6s ease .05s;
}
.c-reveal__inner { min-height: 0; overflow: hidden; }
.c-reveal__inner > * {
  transform: translateY(24px);
  transition: transform .45s var(--ease-out);
}
.c-reveal.is-shown .c-reveal__inner > * { transform: none; transition-duration: 1s; }
/* 入力パネルは高さを一気に確保し、JS で画面の下から上へせり上げる */
.c-reveal[data-step="form"].is-shown { transition: none; }

/* フォームの中身は上から順に時間差で出現
 * （企業名・部署名の折りたたみ枠自体は除外し、中の項目に時間差をつける） */
.c-reveal .c-panel__inner > :not(.c-fields),
.c-reveal .c-fields > :not(.c-collapse),
.c-reveal .c-collapse__inner > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .25s, transform .25s;
}
.c-reveal.is-shown .c-panel__inner > :not(.c-fields),
.c-reveal.is-shown .c-fields > :not(.c-collapse),
.c-reveal.is-shown .c-collapse__inner > * {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.c-reveal.is-shown .c-select { --delay: .2s; }
.c-reveal.is-shown .c-required { --delay: .3s; }
.c-reveal.is-shown .c-fields > .c-field:nth-child(2) { --delay: .35s; }
.c-reveal.is-shown .c-collapse__inner > :nth-child(1) { --delay: .42s; }
.c-reveal.is-shown .c-collapse__inner > :nth-child(2) { --delay: .49s; }
.c-reveal.is-shown .c-fields > .c-field:nth-child(4) { --delay: .56s; }
.c-reveal.is-shown .c-fields > .c-field:nth-child(5) { --delay: .63s; }
.c-reveal.is-shown .c-fields > .c-field:nth-child(6) { --delay: .7s; }
.c-reveal.is-shown .c-submit { --delay: .8s; }
/* パネル内のドロップダウンがはみ出せるよう、出現後は overflow を解除 */
.c-reveal.is-done .c-reveal__inner { overflow: visible; }

/* 入力パネル */
.c-panel {
  margin-top: 40px;
  padding: var(--gap) 0;
  background: var(--blue-pale);
  border-radius: 54px 54px 0 0;
}
.c-panel__inner { width: min(100% - 320px, 1400px); margin-inline: auto; }

/* お問い合わせの種類（カスタムセレクト） */
.c-select { position: relative; z-index: 3; height: 48px; }
.c-select__box {
  z-index: 2;
  position: absolute;
  inset: 0 0 auto;
  background: var(--white);
  border-radius: 24px;
  color: var(--blue);
}
.c-select__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0 24px 0 30px;
  font-size: 16px;
  letter-spacing: .06em;
  text-align: left;
}
.c-select__arrow { position: relative; width: 10px; height: 20px; flex: none; }
.c-select__arrow::before,
.c-select__arrow::after {
  content: "";
  position: absolute;
  left: 0;
  border: 5px solid transparent;
}
.c-select__arrow::before { top: 0; border-top-width: 0; border-bottom: 8px solid currentColor; }
.c-select__arrow::after { bottom: 0; border-bottom-width: 0; border-top: 8px solid currentColor; }
.c-select__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s cubic-bezier(.22, 1, .36, 1);
}
.c-select.is-open .c-select__body { grid-template-rows: 1fr; }
.c-select__clip { min-height: 0; overflow: hidden; }
.c-select__list {
  margin: 0 24px 0 28px;
  padding: 12px 0 20px;
  border-top: 1px solid var(--blue);
}
.c-select__option {
  display: block;
  width: 100%;
  padding: 7px 2px;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: .05em;
  text-align: left;
  transition: opacity .3s;
}
@media (hover: hover) {
  .c-select__option:hover { opacity: .6; }
}
.c-select__option[aria-pressed="true"] { color: var(--orange-menu); }
/* 注釈はバーの上に表示（下に開くリストに隠れないように） */
.c-error { position: absolute; z-index: 1; bottom: calc(100% + 10px); left: 36px; font-size: 14px; line-height: 1.4; color: var(--orange-menu); }
/* PC・タブレットはバーの上に余白が少ないため、バーの中の右端（矢印の左）に表示 */
@media (min-width: 768px) {
  .c-error { z-index: 3; top: 24px; bottom: auto; left: auto; right: 58px; transform: translateY(-50%); pointer-events: none; }
}

/* 入力項目（ラベルが線の上に乗り、入力すると上に移動） */
.c-fields { position: relative; margin-top: clamp(10px, 3svh - 8px, 27px); color: var(--blue); }
/* 横に並べる入力欄（氏名・フリガナ） */
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.c-required { position: absolute; top: 16px; right: 0; font-size: 14px; color: var(--orange-menu); letter-spacing: .05em; }
.c-req { margin-left: .6em; font-size: max(.75em, 9px); color: var(--orange-menu); letter-spacing: .05em; white-space: nowrap; }
.c-select__btn .c-req { margin-right: auto; }
.c-field { --field-pad: clamp(14px, 6svh - 26px, 40px); position: relative; padding-top: var(--field-pad); border-bottom: 2px solid var(--blue); }
.c-field input,
.c-field textarea {
  display: block;
  width: 100%;
  padding: 4px 0 6px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: none;
  border: 0;
  outline: none;
  resize: none;
  overflow: hidden;
}
.c-field label {
  position: absolute;
  left: 0;
  /* 下端基準だとテキストエリアが伸びた時に本文へ被るため上端基準 */
  top: calc(var(--field-pad) + 4px);
  font-size: 14px;
  letter-spacing: .05em;
  transform-origin: left top;
  pointer-events: none;
  transition: transform .3s;
}
.c-field label small { font-size: .75em; margin: 0 .2em; }
.c-field:focus-within,
.c-field:has(input:not(:placeholder-shown)),
.c-field:has(textarea:not(:placeholder-shown)) { border-bottom-color: var(--orange-menu); }
.c-field :focus + label,
.c-field :not(:placeholder-shown) + label { transform: translateY(calc(2px - var(--field-pad))) scale(.75); }

.c-collapse {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .7s cubic-bezier(.16, 1, .3, 1), opacity .5s ease;
}
.c-collapse.is-collapsed { grid-template-rows: 0fr; opacity: 0; }
.c-collapse__inner { min-height: 0; overflow: hidden; }

/* 送信 */
.c-submit { display: flex; justify-content: center; padding-top: 40px; }
/* 送信結果のメッセージ・スパム対策の隠し欄 */
.c-status { margin-top: 60px; text-align: center; font-size: 15px; color: var(--blue); }
.c-status.is-error { color: var(--orange-menu); }
.c-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.c-submit__btn:disabled { opacity: .5; pointer-events: none; }

/* 送信ボタン：封筒の丸 → ホバーで横に伸びて「送信」のピル型へ（比率は元データ 133:133 → 268.7:133） */
.c-submit__btn {
  --size: 64px;
  --ease-morph: cubic-bezier(.65, 0, .35, 1);
  position: relative;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  padding: 0;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  transition: width .55s var(--ease-morph);
}
/* 輪郭の左側の切れ目 */
.c-submit__btn::before {
  content: "";
  position: absolute;
  top: 38.4%;
  left: -3px;
  width: 5px;
  height: 10%;
  background: var(--blue-pale);
}
.c-submit__icon,
.c-submit__label { grid-area: 1 / 1; }
.c-submit__icon {
  width: 43.6%;
  transition: opacity .3s .15s, transform .5s var(--ease-morph) .1s;
}
.c-submit__label {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .06em;
  white-space: nowrap;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s, transform .4s var(--ease-morph);
}
.c-submit__btn:focus-visible { width: calc(var(--size) * 2.02); }
@media (hover: hover) {
  .c-submit__btn:hover { width: calc(var(--size) * 2.02); }
}
.c-submit__btn:focus-visible .c-submit__icon {
  opacity: 0;
  transform: scale(.5);
  transition: opacity .2s, transform .4s var(--ease-morph);
}
@media (hover: hover) {
  .c-submit__btn:hover .c-submit__icon {
    opacity: 0;
    transform: scale(.5);
    transition: opacity .2s, transform .4s var(--ease-morph);
  }
}
.c-submit__btn:focus-visible .c-submit__label {
  opacity: 1;
  transform: none;
  transition: opacity .35s .2s, transform .5s var(--ease-morph) .15s;
}
@media (hover: hover) {
  .c-submit__btn:hover .c-submit__label {
    opacity: 1;
    transform: none;
    transition: opacity .35s .2s, transform .5s var(--ease-morph) .15s;
  }
}
.c-submit__btn:focus-visible { outline: 2px solid var(--orange-menu); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .c-submit__btn, .c-submit__icon, .c-submit__label { transition-duration: 0s !important; transition-delay: 0s !important; }
}

@media (max-width: 1023px) {
  .c-step { padding-inline: 40px 150px; }
  .c-lead { font-size: 14px; text-wrap: balance; }
  .c-panel__inner { width: auto; margin: 0 150px 0 40px; }
}

/* ==========================================================
 * Privacy Policy ページ
 * ========================================================== */
.page-privacy { --footer-corner: var(--blue-pale); background: var(--blue-pale); }
/* 上端のバウンス時もページ色に */
html:has(.page-privacy):not(.is-lower) { background: var(--blue-pale); }
.privacy-page { padding: 76px 0 220px; }
.policy {
  width: min(100% - 320px, 1332px);
  margin: 140px auto 0;
  color: var(--blue);
}
.policy__sec + .policy__sec { margin-top: 80px; }
.policy__heading { font-size: 22px; line-height: 1.4; letter-spacing: .06em; }
.policy__sec p { margin-top: 14px; font-size: 15px; line-height: 1.75; letter-spacing: .06em; }
.policy__links { margin-top: 56px; font-size: 15px; line-height: 1.75; letter-spacing: .06em; }
.policy__links a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; transition: opacity .3s; }
@media (hover: hover) {
  .policy__links a:hover { opacity: .6; }
}

@media (max-width: 1439px) {
  .policy__heading { font-size: 21px; }
  .policy__sec p,
  .policy__links { font-size: 15px; }
  .policy__sec + .policy__sec { margin-top: 70px; }
}
@media (max-width: 1023px) {
  .policy { width: auto; margin: 100px 150px 0 40px; }
  .policy br.pc-only { display: none; }
  .policy__heading { font-size: 20px; }
  .policy__sec p,
  .policy__links { font-size: 14px; }
}

/* ==========================================================
 * Flow ページ（制作の流れ）
 * ========================================================== */
.page-flow { --footer-corner: var(--white); }
.flow-page { padding: 76px 0 160px; }
.flow__lead { margin-top: 40px; text-align: center; font-size: 15px; line-height: 1.9; letter-spacing: .05em; color: var(--blue); }
.flow,
.flow__btn { width: min(100% - 320px, 960px); margin-inline: auto; }
.flow { margin-top: 80px; }
/* 左の番号の丸を縦線でつなぐ */
.flow__step { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 40px; padding-bottom: 48px; }
.flow__step:last-child { padding-bottom: 0; }
.flow__step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 88px;
  bottom: 0;
  left: 43px;
  width: 2px;
  background: var(--blue-light);
}
.flow__num {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
}
.flow__body { padding: 30px 40px 32px; color: var(--blue); background: var(--blue-pale); border-radius: 32px 0 32px 0; }
.flow__name { font-size: 22px; line-height: 1.4; letter-spacing: .06em; }
.flow__en { display: block; margin-bottom: 4px; font-family: var(--font-en); font-size: 13px; font-weight: 500; letter-spacing: .1em; color: var(--orange-menu); }
.flow__text { margin-top: 10px; font-size: 15px; line-height: 1.8; letter-spacing: .05em; color: var(--text); }
.flow__btn { margin-top: 80px; }

@media (max-width: 1023px) {
  .flow,
  .flow__btn { width: auto; margin-left: 40px; margin-right: 150px; }
  .flow__lead { margin-inline: 40px 150px; }
  .flow__lead br.pc-only { display: none; }
}

/* 画面切り替えの演出：画面が青いドットで埋まっていく（js/main.js の initSearchShortcut） */
.screen-wipe {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
  pointer-events: all;
}
.screen-wipe span { background: var(--blue); transform: scale(0); animation: wipe-dot .3s steps(3) forwards; }
@keyframes wipe-dot { to { transform: scale(1.02); } }
.screen-wipe__text {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--white);
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: wipe-text .8s steps(1) .9s forwards;
}
@keyframes wipe-text { 0% { opacity: 1; } 50% { opacity: .2; } 100% { opacity: 1; } }

/* ==========================================================
 * News ページ（お知らせの一覧。部品は Top ページの Topics と同じ）
 * ========================================================== */
.page-news { --footer-corner: var(--blue-pale); background: var(--blue-pale); }
html:has(.page-news):not(.is-lower) { background: var(--blue-pale); }
.news-page { padding: 76px 0 160px; }
.topics--page { padding: 60px 0 0; }

/* ショップ準備中のポップアップ（js/main.js の initShopSoon） */
.soon-modal { width: min(100% - 48px, 520px); }
.soon-modal .soon-modal__body { padding: 72px 40px 64px; text-align: center; }
.soon-modal__title { font-family: var(--font-en); font-size: 34px; font-weight: 500; letter-spacing: .08em; color: var(--blue); outline: none; }
.soon-modal__text { margin-top: 18px; font-size: 14px; line-height: 1.9; color: var(--blue); }
@media (max-width: 767px) {
  .soon-modal .soon-modal__body { padding: 60px 20px 52px; }
  .soon-modal__title { font-size: 26px; white-space: nowrap; }
  .soon-modal__text { font-size: 12px; }
}

/* ==========================================================
 * ページ遷移（サイト内リンクのみ。外部サイトは対象外）
 *  - 表示時：ふわっとフェードイン＋本文が少し浮き上がる
 *  - 離脱時：フェードアウトしてから遷移（JS で .is-leaving を付与）
 * ========================================================== */
body { animation: page-fade-in .5s ease backwards; }
main { animation: page-rise .8s cubic-bezier(.22, 1, .36, 1) backwards; }
@keyframes page-fade-in { from { opacity: 0; } }
@keyframes page-rise { from { transform: translateY(16px); } }
html.is-leaving { background: var(--white); }
html.is-leaving body { opacity: 0; transition: opacity .3s ease; }
@media (prefers-reduced-motion: reduce) {
  body, main { animation: none; }
  html.is-leaving body { transition: none; }
}

/* ==========================================================
 * ローディング（トップページ・セッション中の初回のみ。JS で状態クラスを切り替え）
 *  1. is-loading   ：青い画面に白いロゴが左から順に満ちていく（プログレスバーの要領）
 *  2. is-inverting ：青→白、白いロゴ→青いロゴへ反転（そのまま KV の見た目になる）
 *  3. is-ready     ：メニューなどの UI がふわっと浮かび上がる
 * ========================================================== */
html.has-loader body,
html.has-loader main { animation: none; }
.loader { display: none; }
.is-loading .loader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--blue);
  transition: opacity .8s ease;
}
.is-inverting .loader { opacity: 0; }
/* KV のロゴを青い画面の前面に出して白く表示（位置ズレが起きない） */
.is-loading .kv__logo { position: relative; z-index: 901; }
.is-loading .kv__logo img {
  filter: brightness(0) invert(1);
  clip-path: inset(0 100% 0 0);
  transition: filter .8s ease;
}
.is-inverting .kv__logo img { filter: brightness(1) invert(0); }
/* UI は反転後に順番に浮かび上がる */
html.has-loader .g-nav__list > li,
html.has-loader .kv__hint,
html.has-loader .kv-notice {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}
html.has-loader.is-ready .g-nav__list > li,
html.has-loader.is-ready .kv__hint,
html.has-loader.is-ready .kv-notice { opacity: 1; transform: none; }
html.has-loader .g-nav__list > li:nth-child(2) { transition-delay: .06s; }
html.has-loader .g-nav__list > li:nth-child(3) { transition-delay: .12s; }
html.has-loader .g-nav__list > li:nth-child(4) { transition-delay: .18s; }
html.has-loader .g-nav__list > li:nth-child(5) { transition-delay: .24s; }
html.has-loader .g-nav__list > li:nth-child(6) { transition-delay: .3s; }
html.has-loader .kv__hint,
html.has-loader .kv-notice { transition-delay: .4s; }

/* ==========================================================
 * プロフィール画像（円形トリミング・保存抑止）
 *  - <img> ではなく背景画像で表示し、透明のカバーを重ねて
 *    右クリック保存・ドラッグ・長押し保存をしにくくする
 * ========================================================== */
.pf-photo {
  position: relative;
  overflow: hidden;
  background: var(--blue) url("../images/profile.png") center / cover no-repeat;
  border-radius: 50%;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.pf-photo::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) {
  .pf-photo:hover { opacity: 1; }
}

/* ==========================================================
 * トップの各セクションのボタン（Switch）
 *  - 通常：ラベルだけのピル型（元データ 153.6×76 の比率）
 *  - ホバー：左側に伸び、右側に矢印が描かれる（元データ 250×76）
 *    ※ ボタンは右寄せなので、幅が増えると左へ伸びる
 * ========================================================== */
.switch-btn {
  --switch-bg: var(--white);
  --ease-switch: cubic-bezier(.65, 0, .35, 1);
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 29px;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--blue);
  background: var(--switch-bg);
  border: 1px solid var(--blue);
  border-radius: 999px;
  transition: padding .5s var(--ease-switch);
}
/* ラベルの幅を揃えて、どのボタンも同じ横幅・文字は中央に */
.switch-btn__label { min-width: 76px; text-align: center; white-space: nowrap; }
.works .switch-btn,
.topics .switch-btn { --switch-bg: var(--blue-pale); }
/* 輪郭の左側の切れ目 */
.switch-btn::before {
  content: "";
  position: absolute;
  top: 38.4%;
  left: -2px;
  width: 3px;
  height: 10%;
  background: var(--switch-bg);
}
.switch-btn__arrow {
  display: block;
  width: 0;
  overflow: hidden;
  transition: width .5s var(--ease-switch) .05s;
}
.switch-btn__arrow svg { display: block; width: 46px; height: 8px; margin-left: 22px; overflow: visible; transform: translateY(-2px); }
.switch-btn__arrow polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 56;
  stroke-dashoffset: 56;
  transition: stroke-dashoffset .25s ease;
}
.switch-btn:focus-visible { padding-right: 25px; }
@media (hover: hover) {
  .switch-btn:hover { padding-right: 25px; }
}
.switch-btn:focus-visible { outline: 2px solid var(--orange-menu); outline-offset: 4px; }
.switch-btn:focus-visible .switch-btn__arrow { width: 68px; transition-delay: 0s; }
@media (hover: hover) {
  .switch-btn:hover .switch-btn__arrow { width: 68px; transition-delay: 0s; }
}
.switch-btn:focus-visible .switch-btn__arrow polyline { stroke-dashoffset: 0; transition: stroke-dashoffset .45s var(--ease-switch) .25s; }
@media (hover: hover) {
  .switch-btn:hover .switch-btn__arrow polyline { stroke-dashoffset: 0; transition: stroke-dashoffset .45s var(--ease-switch) .25s; }
}
@media (prefers-reduced-motion: reduce) {
  .switch-btn, .switch-btn__arrow, .switch-btn__arrow polyline { transition-duration: 0s !important; transition-delay: 0s !important; }
}
/* 小さめ版（固定情報のリンクなど）。形・切れ目・ホバーの動きは同じで、サイズだけ縮める */
.switch-btn--s { height: 36px; padding: 0 20px; font-size: 12px; }
.switch-btn--s .switch-btn__label { min-width: 0; }
.switch-btn--s .switch-btn__arrow svg { width: 30px; height: 6px; margin-left: 12px; }
.switch-btn--s:focus-visible { padding-right: 17px; }
@media (hover: hover) {
  .switch-btn--s:hover { padding-right: 17px; }
}
.switch-btn--s:focus-visible .switch-btn__arrow { width: 42px; }
@media (hover: hover) {
  .switch-btn--s:hover .switch-btn__arrow { width: 42px; }
}

/* ---------- SP menu（Menu ボタンが変形して出現。SP のみ） ---------- */
.sp-menu {
  position: fixed;
  inset: 0;
  z-index: 300;
  visibility: hidden;
}
.sp-menu.is-active { visibility: visible; }
.sp-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .9);
  opacity: 0;
  transition: opacity .5s;
}
.sp-menu.is-open .sp-menu__backdrop { opacity: 1; }
.sp-menu__panel {
  position: absolute;
  inset: 25px 28px;
  color: var(--white);
  background: var(--orange-menu);
  border-radius: 10px;
  overflow: hidden;
}
.sp-menu__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 69px 0 18px;
  font-family: var(--font-en);
  opacity: 0;
  transition: opacity .2s;
}
.sp-menu.is-open .sp-menu__content { opacity: 1; transition: opacity .4s .5s; }
/* 指で押しやすいよう、押せる範囲は 44px 以上を確保 */
.sp-menu__close {
  position: absolute;
  top: 4px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
}
.sp-menu__close::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 1px;
  background: currentColor;
}
.sp-menu__logo { display: block; width: 168px; }
.sp-menu__logo img { width: 100%; }
.sp-menu__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
}
.sp-menu__title {
  position: relative;
  padding-bottom: 9px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.2;
}
.sp-menu__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 30px;
  height: 1.5px;
  background: currentColor;
  transform: translateX(-50%);
}
.sp-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.4;
}
.sp-menu__nav a { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 160px; min-height: 48px; padding: 0 16px; }
.sp-menu__nav .ext { width: 11px; height: 11px; }
.sp-menu__sns { display: flex; gap: 4px; }
.sp-menu__sns a { display: block; width: 44px; height: 44px; padding: 11px; }
.sp-menu__sns svg { display: block; width: 100%; height: 100%; }
.sp-menu__copy {
  margin-top: 36px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
}
/* 高さの低い画面では余白を詰めて全体が収まるように（押せる範囲は 44px を維持） */
@media (max-height: 720px) {
  .sp-menu__content { padding-top: 52px; padding-bottom: 12px; }
  .sp-menu__main { padding: 14px 0; }
  .sp-menu__nav { gap: 0; margin-top: 14px; }
  .sp-menu__nav a { min-height: 44px; }
  .sp-menu__copy { margin-top: 20px; }
}
/* 変形前にボタンがメニュー色に染まる */
.g-nav__menu .pill { transition: background-color .2s, border-color .2s, color .2s; }
.is-sp-menu-open .g-nav__menu .pill {
  color: transparent;
  background: var(--orange-menu);
  border-color: var(--orange-menu);
}

@media (min-width: 768px) {
  .sp-menu { display: none; }
}

/* ---------- SP（デザイン幅540px → 390px基準に換算） ---------- */
@media (max-width: 767px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }

  /* header: SNS + Menu ボタン */
  .g-nav { top: 25px; right: 28px; }
  .g-nav__list { flex-direction: row; gap: 8px; }
  .g-nav__link { display: none; }
  .g-nav__sns { gap: 6px; }
  /* SP は SNS の右に Menu */
  /* ボタンを行の高さに合わせて上下中央に置き、SNS アイコンと高さを揃える */
  .g-nav__menu { order: 1; display: flex; }
  .g-nav__menu .pill { font-weight: 600; }
  .sns-btn { width: 22px; height: 22px; }
  .sns-btn svg { width: 11px; height: 11px; }
  .pill--s { width: auto; min-width: 59px; height: 22px; padding: 0 10px; font-size: 10px; }

  /* KV */
  .kv { height: 100svh; max-height: none; min-height: 480px; }
  .kv__logo { width: 81%; }
  .kv__hint { left: 12px; bottom: 34px; align-items: center; gap: 8px; }
  .kv-notice { right: 20px; bottom: 30px; max-width: min(300px, calc(100% - 96px)); }
  .kv-notice.has-period { width: min(300px, calc(100% - 96px)); }
  .kv-notice > :not([hidden]) ~ * { margin-top: 6px; }
  .kv-notice__title { font-size: 15px; }
  .kv-notice__body { font-size: 11px; line-height: 1.7; }
  .kv-notice__period { gap: 8px; font-size: 13px; }
  .kv-notice__link.switch-btn--s { height: 30px; padding: 0 16px; font-size: 11px; }
  .kv__hint .kv__hint-flick { display: block; }
  .kv__scroll { font-size: 14px; font-weight: 600; letter-spacing: .08em; }

  /* Works */
  .works { padding: 29px 0 27px; }
  .carousel { padding-bottom: 16px; }
  .carousel__track { gap: 29px; padding-left: 0; }
  .work-card { width: 246px; }
  .work-card__img { border-radius: 9px; box-shadow: 0 6px 16px rgba(0, 40, 90, .14); }
  .work-card__title { margin-top: 4px; font-size: 13px; }
  .works .btn-row { margin-top: 27px; }
  .works .works-soon { margin: 48px 0 10px; }
  .btn-row { justify-content: center; }
  .pill--l { min-width: 112px; height: 54px; padding: 0 16px; font-size: 14px; }

  /* section title */
  .sec-title { font-size: 43px; padding-bottom: 8px; }
  .sec-title::after { width: 72px; height: 2px; }

  /* Profile */
  .profile { min-height: 0; padding: 40px 0 30px; }

  /* Service */
  .service { padding: 40px 0 44px; }
  .service .inner { width: min(100% - 48px, var(--inner)); margin-inline: auto; }
  .service__lead { margin-top: 24px; font-size: 12px; line-height: 1.8; text-align: left; }
  .service__list { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .service__item {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    padding: 20px 20px 22px;
    border-radius: 19px 0 19px 0;
  }
  .service__num { grid-column: 1; grid-row: 1; font-size: 12px; }
  .service__icon { grid-column: 1; grid-row: 2 / 4; width: 40px; height: 40px; margin-top: 6px; }
  .service__name { grid-column: 2; grid-row: 1 / 3; margin: 0; font-size: 12px; }
  .service__en { font-size: 16px; }
  .service__text { grid-column: 2; grid-row: 3; margin-top: 6px; font-size: 12px; line-height: 1.7; }
  .service .btn-row { margin-top: 30px; }
  .profile__name { margin-top: 36px; font-size: 37px; }
  .profile__icon { width: 215px; margin-top: 18px; }
  .profile__text { margin: 20px -12px 0; font-size: min(13px, 3.1vw); line-height: 1.5; letter-spacing: .02em; }
  .btn-row--profile { margin-top: 70px; }

  /* Topics */
  .topics { padding: 40px 0 28px; }
  .topics__tabs { display: none; }
  .topics__box { min-height: 437px; margin: 42px 2px 0; padding: 8px 18px; border-radius: 0; }
  .topics__list a,
  .topics__row { flex-wrap: wrap; gap: 6px 12px; padding: 16px 0; }
  .topics__list time { font-size: 13px; }
  .topics__list .tag,
  .modal .tag { min-width: 0; font-size: 10px; }
  .topics__ttl { flex-basis: 100%; font-size: 13px; }
  .topics .btn-row { margin-top: 44px; }

  /* Footer（閉じた状態） */
  .footer { padding: 36px 0 0; }
  .footer::before { border-radius: 25px 25px 0 0; }
  .menu-toggle { top: 1px; width: 56px; }
  .menu-toggle::before { width: 36px; }
  .footer__logo { display: block; width: 141px; margin: 0 auto; }
  .pagetop { top: 23px; right: 29px; width: 55px; height: 55px; }
  .footer__bottom { margin-top: 6px; padding: 0 18px 9px; font-size: 10px; }
  .footer__bottom a { display: none; }

  /* Footer menu（開いた状態は画面いっぱい。高さは JS で算出） */
  .footer__menu-inner {
    display: flex;
    flex-direction: column;
    margin: 0 18px;
    padding: 56px 0 28px;
  }
  .footer__menu-nav {
    grid-template-columns: max-content;
    grid-auto-flow: row;
    grid-template-rows: none;
    gap: 12px;
    margin: 0 auto;
    font-size: 17px;
  }
  /* 押せる範囲を 48px の高さで確保 */
  .footer__menu-nav a { display: flex; align-items: center; justify-content: center; min-height: 48px; }
  .footer__menu-nav span { margin-left: .4em; font-size: 16px; }
  .footer__menu-sns { justify-content: center; gap: 40px; margin-top: auto; padding: 32px 10px 0; }
  .footer__menu-sns a { width: 48px; height: 48px; padding: 10px; }

  /* Works ページ */
  .works-page { padding: 69px 0 100px; }
  .works-soon { margin: 72px 0 40px; font-size: 20px; }
  .works-page__inner { width: 100%; margin: 0; }
  .works-filter { justify-content: space-between; gap: 0; height: 30px; margin: 18px 0 0; }
  .filter { width: 78px; }
  .filter.is-open { width: 33.4vw; }
  /* 選択中の名称（Graphic Design など）が収まるよう、閉じた状態でも少し広げる */
  .filter.is-selected:not(.is-open) { width: 100px; }
  .filter--category { border-radius: 0 15px 15px 0; }
  .filter--category.is-open { border-radius: 0 7px 7px 0; }
  .filter--software { border-radius: 15px 0 0 15px; }
  .filter--software.is-open { border-radius: 7px 0 0 7px; }
  .filter__btn { height: 30px; font-size: 11px; }
  .filter__list { gap: 33px; padding: 32px 0 47px; font-size: 11px; }
  /* SP は両端がボタンで埋まるため、検索窓はその下に作品と同じ幅で配置 */
  .works-search {
    position: absolute;
    top: 52px;
    left: 50%;
    width: min(74vw, 400px);
    margin: 0;
    transform: translateX(-50%);
  }
  .works-search__input { font-size: 16px; } /* iOS で入力時に拡大されないよう 16px */
  .works-grid {
    grid-template-columns: min(74vw, 400px);
    justify-content: center;
    gap: 50px;
    margin-top: 80px;
  }
  .work-item__img { border-radius: 19px 0 19px 0; }
  .work-item__meta { margin-top: 6px; }
  .work-item__title { font-size: 13px; }
  .work-item__tools { gap: 6px; }
  .tool { width: 16px; height: 16px; }

  /* Profile ページ */
  .profile-page { padding: 69px 0 50px; }
  /* 名前 → アイコン → テキストの順に縦積み */
  .pf-intro { display: flex; flex-direction: column; align-items: center; gap: 0; width: auto; margin: 46px 0 0; text-align: center; }
  .pf-intro__body { display: contents; }
  .pf-intro__name { order: -1; font-size: 37px; }
  .pf-intro__icon { width: 216px; margin-top: 18px; }
  .pf-intro__text { margin: 22px -12px 0; color: var(--text); font-size: min(13px, 3.1vw); line-height: 1.5; letter-spacing: .02em; }
  .pf-skill { margin-top: 44px; }
  .skill-list { display: grid; grid-template-columns: repeat(2, 80px); justify-content: center; gap: 24px 30px; margin-top: 30px; }
  .skill { width: 80px; }
  .pf-sns { margin-top: 60px; }
  .pf-sns__row { width: auto; margin: 32px 0 0; }
  .pf-sns__list { justify-content: space-between; width: 100%; gap: 0; padding: 0 40px; }
  .pf-sns__list a { width: 26px; height: 26px; }
  .pf-sns__contact { display: none; }

  /* Contact ページ */
  .contact-page { padding-top: 69px; }
  .contact-page .sec-title { margin-bottom: 30px; }
  .c-step { padding-inline: 0; }
  .c-lead { font-size: 10px; line-height: 1.65; letter-spacing: .04em; }
  .c-lead a { text-underline-offset: 3px; }
  .c-step > .c-check { margin-top: 12px; }
  .c-step--type { padding-top: 16px; }
  .c-choices { gap: 60px; margin-top: 6px; }
  .c-check { gap: 8px; }
  .c-check__mark { width: 22px; height: 22px; border-width: 1px; }
  .c-check__label { font-size: 10.5px; }

  /* せり上がった後、上部の追従メニュー（X・Instagram・Menu）と重ならない位置からバーを始める */
  .c-panel { margin-top: 40px; padding: 76px 0 20px; border-radius: 29px 29px 0 0; }
  .c-panel__inner { width: 74vw; margin: 0 auto; }
  .c-select { height: 29px; }
  .c-select__box { border-radius: 15px; }
  .c-select__btn { height: 29px; padding: 0 14px 0 16px; font-size: 10px; }
  .c-select__arrow { width: 8px; height: 13px; }
  .c-select__arrow::before,
  .c-select__arrow::after { border-width: 4px; }
  .c-select__arrow::before { border-top-width: 0; border-bottom-width: 5px; }
  .c-select__arrow::after { border-bottom-width: 0; border-top-width: 5px; }
  .c-select__list { margin: 0 14px 0 16px; padding: 8px 0 12px; }
  .c-select__option { padding: 6px 0; font-size: 11px; }
  .c-error { bottom: calc(100% + 5px); left: 16px; font-size: 10px; }

  .c-fields { margin-top: 10px; }
  .c-row { gap: 16px; }
  .c-required { top: 4px; font-size: 9.5px; }
  .c-field { padding-top: 20px; border-bottom: 1px solid var(--blue-light); }
  /* iOS で入力時にズームしないよう 16px 以上 */
  .c-field input,
  .c-field textarea { padding: 2px 0 1px; font-size: 16px; }
  .c-field label { top: 28px; font-size: 9.5px; }
  .c-field :focus + label,
  .c-field :not(:placeholder-shown) + label { transform: translateY(-22px) scale(.85); }

  .c-status { margin-top: 40px; font-size: 11px; }
  .c-submit { position: relative; margin-top: 36px; padding-top: 0; }
  /* SP も PC と同じ封筒アイコンの丸（ホバーできる環境では「送信」のピル型に変形） */
  .c-submit__btn { --size: 53px; border-width: 1px; }
  .c-submit__label { font-size: 13px; }
  /* Privacy Policy ページ */
  .privacy-page { padding: 69px 0 70px; }
  .privacy-page .sec-title { font-size: min(43px, 9.6vw); }
  .news-page { padding: 69px 0 70px; }
  .news-page .sec-title { font-size: min(43px, 9.6vw); }
  .topics--page { padding-top: 24px; }
  .policy { margin: 72px 40px 0; }
  .policy__sec + .policy__sec { margin-top: 43px; }
  .policy__heading { font-size: 14px; }
  .policy__sec p { margin-top: 10px; font-size: 10px; line-height: 1.6; letter-spacing: .05em; }
  .policy__links { margin-top: 30px; font-size: 10px; line-height: 1.6; }
  .policy__links a { text-underline-offset: 3px; }
  /* Flow ページ */
  .flow-page { padding: 69px 0 80px; }
  .flow-page .sec-title { font-size: min(43px, 9.6vw); }
  .flow__lead { margin: 28px 24px 0; font-size: 12px; line-height: 1.8; }
  .flow,
  .flow__btn { margin-left: 24px; margin-right: 24px; }
  .flow { margin-top: 44px; }
  .flow__step { grid-template-columns: 48px 1fr; gap: 14px; padding-bottom: 24px; }
  .flow__step:not(:last-child)::before { top: 48px; left: 23px; width: 1.5px; }
  .flow__num { width: 48px; height: 48px; font-size: 17px; }
  .flow__body { padding: 18px 20px 20px; border-radius: 19px 0 19px 0; }
  .flow__name { font-size: 16px; }
  .flow__en { margin-bottom: 2px; font-size: 10px; }
  .flow__text { margin-top: 6px; font-size: 12px; line-height: 1.7; }
  .flow__btn { margin-top: 44px; }
}

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