/* ==========================================================================
   雅プロ株式会社 コーポレートサイト
   モバイルファースト / ブレークポイント 768px・1024px
   ========================================================================== */

:root {
  /* 色 */
  --c-text: #161616;
  --c-text-2: #333333;
  --c-text-3: #6b6b6b;
  --c-bg: #ffffff;
  --c-bg-2: #f7f7f7;
  --c-bg-3: #fafafa;
  --c-ink: #161616; /* 黒塗り(番号バッジ・アクティブタブ) */
  --c-required: #b83a3a;
  --c-line-soft: #dddddd;

  /* フォント
     本文・見出しは さわらびゴシック(Google Fonts)。元のSTUDIO版のA1ゴシックはWebで使えないため代替。
     さわらびゴシックは太さ400のみなので、見出しの太字はブラウザが太らせて表示する */
  --ff-base: "Sawarabi Gothic", sans-serif;
  --ff-strong: "Sawarabi Gothic", sans-serif; /* weight 500/700 で使う */
  --ff-heading: "Zen Kaku Gothic Antique", "Sawarabi Gothic", sans-serif; /* 見出し(セクション見出し・小見出し・サービス名・下層ページh1/h2)。太字あり */
  --ff-display: "WDXL Lubrifont JP N", sans-serif; /* キャッチ・サービスタグ・取引実績の分類名 */
  --ff-logo: "Zen Kaku Gothic Antique", sans-serif;
  --ff-sub: "Zen Maru Gothic", sans-serif; /* ヒーローの対象者3つ */

  /* レイアウト */
  --header-h: 70px;
  --gutter: 20px;
  --container: 1280px;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 90px;
    --gutter: 80px;
  }
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  font-family: var(--ff-base);
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.1em;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

@media (min-width: 768px) {
  body { font-size: 15px; }
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; letter-spacing: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--c-ink);
  outline-offset: 3px;
}

.material-symbols-outlined {
  font-size: 1.2em;
  line-height: 1;
  vertical-align: middle;
  letter-spacing: normal;
  user-select: none;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 300;
  padding: 8px 16px;
  background: var(--c-ink);
  color: #fff;
  font-size: 13px;
}
.skip-link:focus { top: 8px; }

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

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 20px;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-text);
}

.brand__logo {
  width: auto;
  height: min(44px, 13vw); /* 狭い画面では社名と一緒に小さくする */
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand__name {
  font-family: var(--ff-logo);
  font-size: min(18px, 5.4vw); /* 幅330px未満の狭い画面では少し小さくして、1行に収める */
  font-weight: 500;
  letter-spacing: 1px;
  white-space: nowrap;
}

.brand__en {
  align-self: flex-end;
  font-family: var(--ff-logo);
  font-size: 9px;
  letter-spacing: 0.25em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-bg);
  font-size: 22px;
}

.nav-toggle .nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

/* SP/タブレット: 全画面メニュー */
.gnav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  padding: 24px var(--gutter) 48px;
  overflow-y: auto;
  background: var(--c-bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.gnav.is-open {
  opacity: 1;
  visibility: visible;
}

/* JS無効時はSP/タブレットのヘッダーナビを出さない(フッターのナビで代替) */
html:not(.js) .gnav,
html:not(.js) .nav-toggle { display: none; }

.gnav__list a {
  display: block;
  padding: 18px 4px;
  border-bottom: 1px solid var(--c-line-soft);
  font-family: var(--ff-strong);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.gnav__list .btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 12px 28px;
  border: 1px solid var(--c-ink);
  border-radius: 100px;
}

.btn-contact .material-symbols-outlined { font-size: 18px; }

@media (min-width: 768px) {
  .site-header { padding-inline: 32px; }
  .brand__logo { height: 52px; }
  .brand__name { font-size: 20px; }
  .brand__en { font-size: 10px; }
}

@media (min-width: 1024px) {
  .site-header { padding-inline: 36px; }
  .brand__logo { height: 60px; }

  .nav-toggle { display: none; }
  html:not(.js) .gnav { display: block; }

  .gnav {
    position: static;
    inset: auto;
    z-index: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transition: none;
  }

  .gnav__list {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .gnav__list a {
    padding: 0;
    border: 0;
    font-size: 14px;
    letter-spacing: 0.05em;
    line-height: 1.4;
  }

  .gnav__list a:hover { opacity: 0.6; }

  .gnav__list .btn-contact {
    margin: 0;
    gap: 6px;
    padding: 7px 16px;
    font-size: 12px;
    transition: background 0.2s, color 0.2s;
  }

  .gnav__list .btn-contact:hover {
    opacity: 1;
    background: var(--c-ink);
    color: #fff;
  }
}

/* ---------- ヒーロー ---------- */
.hero {
  padding: calc(var(--header-h) + 32px) 0 32px;
  background: var(--c-bg-2);
}

.hero__stage {
  --photo-h: 280px;
  --pill-h: 100px;
  --overlap: 60px;
  position: relative;
  height: calc(var(--photo-h) - var(--overlap) + var(--pill-h));
}

.hero__photo {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--photo-h);
  overflow: hidden;
  border-radius: 120px 0 0 0;
  background: #cfd6dc;
}

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

.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.39) 0%, rgba(255, 255, 255, 0) 19%, rgba(199, 199, 199, 0) 87%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}

.hero__pill {
  position: absolute;
  top: calc(var(--photo-h) - var(--overlap));
  left: 0;
  width: 90%;
  height: var(--pill-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
  background: var(--c-bg);
  border: 1px solid var(--c-ink);
  border-left: 0;
  border-top: 0;
  border-radius: 0 60px 60px 0;
  container-type: inline-size; /* キャッチの大きさを、この枠の幅(cqi)に合わせて決める */
}

/* スマホ:枠の幅が狭いほど、文字の大きさと文字の間隔を小さくして1行に収める
   (8文字の字幅の合計が約5.97em。字幅+間隔×8 が枠の内側の94%になるよう間隔を決める) */
.hero__catch {
  --catch-fs: min(30px, 11cqi);
  font-family: var(--ff-display);
  font-size: clamp(24px, 7.6vw, 30px); /* コンテナクエリ単位が使えないブラウザ向け */
  font-size: var(--catch-fs);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.5em;
  letter-spacing: clamp(0.15em, (94cqi - 5.97 * var(--catch-fs)) / 8, 0.5em);
  white-space: nowrap;
  line-height: 1.6;
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__catch::before {
  content: "";
  display: none;
  width: 60px;
  height: 1px;
  flex: none;
  background: var(--c-ink);
}

.hero__targets {
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  font-family: var(--ff-sub);
  font-size: 11px;
  font-size: min(11px, 3.6cqi); /* 枠が狭いときは小さくして、3つを1行に収める */
  font-style: italic;
  letter-spacing: 0; /* 375px幅で3つが1行に収まるように詰める */
  line-height: 1.6;
  color: var(--c-text-3);
}

.hero__scroll,
.hero__tags { display: none; }

@media (min-width: 768px) {
  .hero { padding-bottom: 44px; }

  .hero__stage {
    --photo-h: 300px;
    --pill-h: 120px;
    --overlap: 70px;
  }

  .hero__photo {
    left: 60px;
    border-top-left-radius: 160px;
  }

  .hero__pill {
    width: min(560px, 75%);
    padding-left: 48px;
    border-top-right-radius: 80px;
    border-bottom-right-radius: 80px;
  }

  .hero__catch { font-size: 38px; letter-spacing: 0.5em; }
  .hero__targets { gap: 0 24px; font-size: 11px; }
}

@media (min-width: 1024px) {
  .hero { padding-bottom: 55px; }

  .hero__stage {
    --photo-h: 327px;
    --pill-h: 134px;
    --overlap: 87px;
  }

  .hero__photo {
    left: 142px;
    border-top-left-radius: 232px;
  }

  .hero__pill {
    width: clamp(560px, 50vw, 700px);
    padding-left: 72px;
    border-top-right-radius: 92px;
    border-bottom-right-radius: 92px;
  }

  .hero__catch {
    font-size: clamp(36px, 3.4vw, 48px);
  }

  .hero__catch::before { display: block; }

  .hero__targets {
    margin-left: 84px;
    gap: 0 32px;
    font-size: 12px;
  }

  .hero__scroll {
    position: absolute;
    top: 70px;
    left: 108px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.1em;
    line-height: 1;
  }

  .hero__scroll-text { writing-mode: vertical-rl; }

  .hero__scroll-line {
    position: relative;
    display: block;
    width: 1px;
    height: 60px;
    background: var(--c-ink);
  }

  /* 線の上を●が下へ滑る。下に行くほど遅く(ease-out)、薄くなる */
  .hero__scroll-line::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 50%;
    background: var(--c-ink);
    animation: scroll-dot 2.4s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
  }
}

@keyframes scroll-dot {
  0%   { transform: translateY(0);    opacity: 1; }
  75%  { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(60px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scroll-line::before { animation: none; }
}

@media (min-width: 1200px) {
  .hero__tags {
    position: absolute;
    top: calc(var(--photo-h) - 62px);
    right: 24px;
    z-index: 2;
    display: flex;
    gap: 22px;
    font-family: var(--ff-display);
    font-size: 20px;
    line-height: 1.4;
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  }

  .hero__tags .material-symbols-outlined { font-size: 1em; }
}

@media (min-width: 1440px) {
  .hero__tags { font-size: 24px; }
}

/* ---------- タブ帯+ティッカー ---------- */
.tabband {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 56px;
  background: var(--c-bg-2);
}

/* 下線はタブのSVG(z-index付き)より手前に描く。border だとタブの塗りに隠れて、タブの下だけ線が消える */
.tabband::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--c-ink);
  z-index: 10;
  pointer-events: none;
}

.tabs { display: none; }

.ticker {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  color: var(--c-text-2);
  /* 左右の端で文字がふっと消えるよう、透明度のグラデーションをかける */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 96px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 48px, #000 calc(100% - 96px), transparent 100%);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 60s linear infinite;
}

.ticker__item {
  flex: none;
  padding-right: 4em;
  white-space: nowrap;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { padding-inline: var(--gutter); }
  .ticker__track { animation: none; width: auto; }
  .ticker__item { white-space: normal; padding-right: 0; }
  .ticker__item[aria-hidden="true"] { display: none; }
}

@media (min-width: 768px) {
  .ticker { font-size: 15px; }
}

@media (min-width: 1024px) {
  /* 背景はヒーローと同じ灰色のまま。タブの内側だけ白(.tab__fill)にする */
  .tabband { height: 52px; }

  .tabs {
    display: flex;
    flex: none;
    padding-right: 60px; /* 最後のタブの負のマージン分 */
  }

  .tab {
    --tab-fill: var(--c-bg);
    position: relative;
    display: block;
    flex: none;
    width: 200px;
    height: 52px;
    margin-right: -60px;
    color: var(--c-text);
    font-family: var(--ff-strong);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    line-height: 1.4;
    text-decoration: none;
  }

  .tab:nth-child(1) { z-index: 6; }
  .tab:nth-child(2) { z-index: 5; }
  .tab:nth-child(3) { z-index: 4; }
  .tab:nth-child(4) { z-index: 3; }
  .tab:nth-child(5) { z-index: 2; }
  .tab:nth-child(6) { z-index: 1; }

  .tab__shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .tab__fill { fill: var(--tab-fill); stroke: none; }

  .tab__line {
    fill: none;
    stroke: var(--c-ink);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
  }

  .tab__label {
    position: absolute;
    inset: 0 60px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }

  .tab:hover { --tab-fill: #f0f0f0; }

  .tab.is-active {
    --tab-fill: var(--c-ink);
    color: #fff;
  }
}

/* ---------- 共通: セクション ---------- */
.section {
  position: relative;
  padding: 80px 0 96px;
}

.section--line { border-top: 1px solid var(--c-ink); }

.section-head { margin-bottom: 48px; }

.section-title {
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.section-label {
  margin-top: 6px;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--c-text-3);
}

@media (min-width: 768px) {
  .section-title { font-size: 28px; }
  .section-head { margin-bottom: 64px; }
}

/* ---------- CONCEPT ---------- */
.concept__grid {
  display: grid;
  gap: 32px;
}

.concept__image img {
  width: 100%;
  aspect-ratio: 1456 / 816;
  object-fit: cover;
  border-radius: 8px;
}

.concept__lead {
  margin-bottom: 20px;
  font-family: var(--ff-heading);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.concept__text p + p { margin-top: 2em; }

@media (min-width: 768px) {
  .concept__lead { font-size: 22px; }
}

@media (min-width: 1024px) {
  .concept__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
    gap: 56px;
    align-items: center; /* 文章を写真の高さの中央に揃える */
  }
}

/* ---------- MESSAGE ---------- */
.message {
  background: url("../images/message-bg.webp") center / cover no-repeat;
}

.message__body { max-width: 900px; }
.message__body p + p { margin-top: 2em; }

.message__sign {
  margin-top: 2em;
  text-align: right;
}

/* ---------- SERVICE ---------- */
.service { isolation: isolate; }

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/service-bg.webp") center / cover no-repeat;
  opacity: 0.12;
}

.service__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 40px;
}

.card { width: 100%; }

.card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
}

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

.card:nth-child(4) .card__photo img { object-position: 50% 30%; }

.card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  font-family: var(--ff-strong);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
}

.card__no {
  margin-top: 24px;
  font-family: var(--ff-strong);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--c-text-3);
}

.card__name {
  margin-top: 6px;
  font-family: var(--ff-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
}

.card__lead {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 2;
}

@media (min-width: 768px) {
  .card { width: calc(50% - 20px); }
}

@media (min-width: 1024px) {
  /* PCでは4枚を横一列に並べる(間隔40px×3) */
  .card {
    flex: 0 0 calc((100% - 120px) / 4);
    width: auto;
    min-width: 0;
  }
}

/* ---------- ABOUT ---------- */
.about {
  padding-bottom: 120px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    url("../images/about-bg.webp") center / cover no-repeat;
}

.about__sub {
  margin-top: 56px;
  margin-bottom: 16px;
}

.clients {
  display: grid;
  gap: 16px;
  align-items: stretch; /* 2列のとき、横に並ぶカードの高さ(下端)をそろえる */
}

.client {
  padding: 40px 20px 44px;
  border: 2px solid #000;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
}

.client__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--ff-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

.client__title .material-symbols-outlined { font-size: 1em; }

.client__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client__tags li {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 4px 16px;
  border: 2px solid #000;
  border-radius: 24px;
  font-size: 13px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}


@media (min-width: 768px) {
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client { padding: 48px 24px 56px; }
  .client__title { font-size: 36px; }
  .client__tags li { font-size: 15px; letter-spacing: 0.1em; }
}

/* ---------- COMPANY ---------- */
.company__grid {
  display: grid;
  gap: 40px;
}

.company__map iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
  background: #e9e9e9;
}

.company__table > div {
  display: flex;
  align-items: stretch;
  min-height: 55px;
}

.company__table dt,
.company__table dd {
  display: flex;
  align-items: center;
  padding: 8px 0;
  line-height: 1.7;
}

.company__table dt {
  flex: none;
  width: 104px;
  padding-right: 8px;
  border-bottom: 1px solid var(--c-ink);
  font-family: var(--ff-strong);
  font-weight: 700;
  font-size: 13px;
}

.company__table dd {
  flex: 1;
  min-width: 0;
  padding-left: 16px;
  border-bottom: 1px solid var(--c-line-soft);
  font-size: 14px;
  word-break: keep-all;     /* 折り返しは <wbr> の位置だけにする */
  overflow-wrap: anywhere;  /* 収まらないときの保険 */
}

.company__table a { text-decoration: none; }
.company__table a:hover { text-decoration: underline; }

@media (min-width: 768px) {
  .company__table dt { width: 120px; font-size: 14px; }
  .company__table dd { padding-left: 16px; font-size: 15px; }
}

@media (min-width: 1024px) {
  .company__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
    align-items: start;
  }

  .company__map iframe { height: 300px; }
}

/* ---------- CONTACT ---------- */
.contact {
  padding: 80px var(--gutter);
  background: var(--c-bg-3);
  border: 1px solid #000;
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
}

.contact__inner {
  max-width: 1120px;
  margin-inline: auto;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* 中身(折り返さない文の塊・認証ウィジェット)に合わせて画面より広がらないように */
  gap: 32px;
}

.contact__lead p + p { margin-top: 2em; }
.contact__lead .nb { display: inline-block; }

.contact-form { width: 100%; max-width: 614px; }

.field { margin-bottom: 24px; }
/* Turnstile ウィジェット(300×65)の読み込み前に高さを確保してガタつきを防ぐ */
.field--captcha { min-height: 65px; }
.field--captcha-compact { min-height: 140px; } /* 狭い画面用の小さい版(150×140) */

.field__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--ff-strong);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.badge {
  display: inline-block;
  padding: 1px 4px;
  border-radius: 2px;
  background: var(--c-required);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #ececec;
  border-radius: 4px;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  appearance: none;
}

.field textarea {
  height: 160px;
  padding: 12px 16px;
  resize: vertical;
  line-height: 1.8;
}

.field ::placeholder { color: #8a8a8a; opacity: 1; }

.field input[type="text"][aria-invalid="true"],
.field input[type="email"][aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--c-required); }

.field-error {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: var(--c-required);
}

.field-error[hidden] { display: none; }

.field--check .field__label {
  margin-bottom: 0;
  font-weight: 500;
  cursor: pointer;
}

.field--check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--c-ink);
}

.privacy-link {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.privacy-link a { text-underline-offset: 3px; }

.btn-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 15px;
  border: 1px solid var(--c-ink);
  border-radius: 100px;
  background: transparent;
  font-family: var(--ff-strong);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.2s, color 0.2s;
}

.btn-submit:hover:not(:disabled) {
  background: var(--c-ink);
  color: #fff;
}

.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.form-summary {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--c-required);
}

.form-status {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.8;
}

.form-status:empty { display: none; }

.form-status.is-error { color: var(--c-required); }

@media (min-width: 768px) {
  .field input[type="text"],
  .field input[type="email"],
  .field textarea { font-size: 14px; }
}

@media (min-width: 1024px) {
  .contact { padding: 160px 80px; }
}

@media (min-width: 1200px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr) 614px;
    gap: 56px;
    align-items: start;
  }

  .contact-form { margin-inline: 0; }

  .contact__lead { padding-top: 24px; }
}

/* ---------- フッター ---------- */
.site-footer {
  padding: 56px var(--gutter) 40px;
  border-top: 1px solid var(--c-ink);
  background: var(--c-bg);
  text-align: center;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 14px;
}

.footer-nav a {
  font-family: var(--ff-strong);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 2;
  text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  text-decoration: none;
}

.footer-brand .brand__logo { height: 40px; }
.footer-brand .brand__name { font-size: 22px; }

.footer-policy {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}
.footer-policy a { color: inherit; }

.footer-copy {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .footer-nav ul { gap: 4px 24px; }
  .footer-nav a { font-size: 12px; }
}

@media (min-width: 1024px) {
  .site-footer { padding-top: 80px; }
}

/* ---------- 下層ページ(privacy / thanks) ---------- */
.page-main {
  padding: calc(var(--header-h) + 56px) 0 96px;
}

.policy {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.policy h1 {
  margin-bottom: 40px;
  font-family: var(--ff-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
}

.policy h2 {
  margin: 48px 0 12px;
  font-family: var(--ff-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.policy p + p,
.policy p + ul,
.policy ul + p { margin-top: 1em; }

.policy ul { padding-left: 1.5em; list-style: disc; }

.page-back {
  margin-top: 64px;
}

.link-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-strong);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--c-ink);
}

.link-back .material-symbols-outlined { font-size: 18px; }

.thanks {
  max-width: 720px;
  margin-inline: auto;
  padding: 40px var(--gutter);
  text-align: center;
}

.thanks h1 {
  font-family: var(--ff-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
}

.thanks p { margin-top: 24px; }
.thanks .page-back { margin-top: 48px; }

@media (min-width: 768px) {
  .page-main { padding-top: calc(var(--header-h) + 80px); }
  .policy h1 { font-size: 28px; }
  .policy h2 { font-size: 20px; }
  .thanks h1 { font-size: 28px; }
}

/* ---------- フェードイン(JS有効時のみ。JS無効時は最初から表示) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .fade {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .js .fade.is-visible {
    opacity: 1;
    transform: none;
  }

  .js-init .fade { transition: none; }
}

/* 見出しの行末に1〜2文字だけ取り残されないよう、行の長さを揃える */
.section-title,
.concept__lead,
.card__name,
.policy h1,
.policy h2,
.thanks h1 {
  text-wrap: balance;
}

/* スマホでは本文の改行(<br>)を使わず、画面の幅で自然に折り返す
   (PC用の改行位置のままだと、狭い画面では1〜2文字だけの行ができて段落が飛び飛びに見えるため) */
@media (max-width: 767.98px) {
  .concept__text p br,
  .message__body p br,
  .about > .container > p br { display: none; }
}

/* ---------- オープニング演出(トップのみ) ----------
   index.html の head で html に op-pending(演出待ち)/ op-loader(ローディング画面あり)を付け、
   main.js が読み込み完了後に op-reveal(登場演出)へ切り替える。
   動きを減らす設定・ページ内リンク(#〜)で開いたとき・JS無効のときは、どのクラスも付かず最初から全部見える */

/* 演出が始まるまで主要要素を隠す(ちらつき防止) */
.op-pending .site-header,
.op-pending .hero__photo,
.op-pending .hero__pill,
.op-pending .hero__tags,
.op-pending .hero__scroll,
.op-pending .tabband { opacity: 0; }

/* ローディング画面:ロゴがふわっと出る(訪問の最初の1ページだけ) */
.loader { display: none; }

.op-loader .loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.6s ease;
}

.op-loader-out .loader { opacity: 0; pointer-events: none; }

.loader__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: op-logo 1.6s ease forwards;
}

.loader__logo img { width: 44px; height: auto; }
.loader__name { font-family: var(--ff-logo); font-size: 22px; letter-spacing: 0.08em; line-height: 1.3; }
.loader__en { display: block; font-size: 10px; letter-spacing: 0.2em; color: var(--c-text-3); }

@keyframes op-logo {
  0%   { opacity: 0; transform: translateY(6px); filter: blur(4px); }
  40%  { opacity: 1; transform: none; filter: none; }
  100% { opacity: 1; }
}

/* 登場演出:写真(流体)が墨のように中心からにじんで広がり、キャッチ・タグが続いて出る */
@keyframes op-fade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes op-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes op-ink {
  0%   { clip-path: circle(0% at 62% 45%); filter: blur(14px); }
  60%  { filter: blur(4px); }
  100% { clip-path: circle(120% at 62% 45%); filter: none; }
}

.op-reveal .hero__photo { animation: op-ink 1.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.op-reveal .hero__pill  { animation: op-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both; }
.op-reveal .hero__tags li { animation: op-fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; }
.op-reveal .hero__tags li:nth-child(1) { animation-delay: 1.30s; }
.op-reveal .hero__tags li:nth-child(2) { animation-delay: 1.38s; }
.op-reveal .hero__tags li:nth-child(3) { animation-delay: 1.46s; }
.op-reveal .hero__tags li:nth-child(4) { animation-delay: 1.54s; }
.op-reveal .hero__tags li:nth-child(5) { animation-delay: 1.62s; }
.op-reveal .hero__tags li:nth-child(6) { animation-delay: 1.70s; }
.op-reveal .hero__scroll,
.op-reveal .site-header,
.op-reveal .tabband { animation: op-fade 0.8s ease 1.4s both; }
