/* VITAMIN 2026 — テーマ(theme/vitamin-2026/assets/css/main.css)が元。prototype/css/style.css は同じ内容のコピー */
:root {
  --red: #EF454A; /* 本朱 */
  --ink: #222;
  --line: #EF454A; /* 罫線も薄めず本朱そのまま */
  --header-h: 70px; /* ヘッダーの高さは fastretailing.com/jp と同じ（PC 70px、スマホ 50px） */
  --gutter: clamp(20px, 2.4vw, 28px);
  --bar-w: 7px;    /* 見出し・項目名の左の赤い縦線。にじまないよう高さは整数 */
  --bar-h: 26px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  /* 書体・太さ・字間は fastretailing.com/jp に合わせている（Roboto + Noto Sans JP、400/700、字間なし） */
  font-family: Roboto, "Noto Sans JP", "Hiragino Sans", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, Verdana, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.red { color: var(--red); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: relative; /* 画面上部への固定はスマホだけ（下の max-width: 600px） */
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: #fff;
  border-bottom: 2px solid var(--red); /* 線の太さは fastretailing.com/jp のスマホと同じ */
}
.site-logo { display: block; line-height: 0; }
.site-logo svg { width: auto; height: 36px; }

.menu-btn {
  position: relative;
  z-index: 40;
  width: 44px;
  height: 44px;
  margin-right: -7px; /* 二本線の右端を本文の右端に揃える */
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-btn span {
  position: absolute;
  left: 7px;
  width: 30px;
  height: 2px;
  background: var(--red);
  transition: transform .35s ease, top .35s ease;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(30deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-30deg); }

/* ---------- overlay menu ---------- */
.global-nav {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  padding: calc(var(--header-h) + 16px) 0 32px;
  overflow-y: auto;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.menu-open .global-nav { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.global-nav ul { list-style: none; margin: auto; padding: 0; width: min(420px, 78vw); }
.global-nav li { border-bottom: 1px solid var(--line); }
.global-nav li:first-child { border-top: 1px solid var(--line); }
.global-nav a {
  display: block;
  padding: clamp(12px, 2.4vh, 20px) 4px;
  font-weight: 400;
  transition: color .25s, padding-left .25s;
}
.global-nav a:hover, .global-nav a[aria-current] { color: var(--red); padding-left: 12px; }

/* ---------- home: 1画面に収める ---------- */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; } /* © を画面の下端に置く */
main { flex: 1; }
.home main { display: flex; flex-direction: column; }

/* ---------- hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px var(--gutter);
  text-align: center;
}
.hero h1 {
  margin: 0;
  font-size: 30px; /* ファーストリテイリング版の見出しと同じ大きさ・太さ */
  font-weight: 900;
  line-height: 1.3;
}
.hero h1 span { display: inline-block; }
.hero p {
  margin: clamp(28px, 7vh, 88px) 0 0;
  font-size: clamp(14px, 1.5vw, 17px);
}
.hero p span { display: inline-block; }

/* ---------- top index nav ---------- */
.index-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.index-nav li { border-bottom: 1px solid var(--line); }
.index-nav li:nth-child(odd) { border-right: 1px solid var(--line); }
.index-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 16px 8px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  transition: color .25s, background-color .25s;
}
.index-nav a:hover { color: #fff; background: var(--red); }

@media (min-width: 900px) {
  .index-nav { grid-template-columns: repeat(3, 1fr); }
  .index-nav li:nth-child(odd) { border-right: 0; }
  .index-nav li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
  .index-nav a { min-height: clamp(64px, 10vh, 96px); font-size: 16px; }
}

/* ---------- sub page ---------- */
main.page {
  width: 100%;
  max-width: calc(760px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(96px, 12vw, 160px);
}
/* パンくずとページ見出し: 構成は fastretailing.com/jp の下層ページと同じ。
   見出しは本文の約1.6倍（FRと同じ比率）。間隔は ヘッダー線→パンくず→見出し を同じ幅、見出し→本文をその2倍にしている */
.breadcrumb {
  padding-top: 17px;
  color: #666;
  font-size: 12px;
  line-height: 16px;
}
.breadcrumb a { transition: color .25s; }
.breadcrumb a:hover, .breadcrumb [aria-current] { color: var(--red); }

.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0 39px;
  font-size: 24px;
  font-weight: 700;
  line-height: var(--bar-h);
}
/* 見出しの文字は行の中心より少し上に描かれるので、縦線を 1px 上げて文字の上下の空きを揃える */
.page-title::before { position: relative; top: -1px; }
.page-title::before,
.info-list dt::before,
.c-form .form_parts > label::before {
  content: "";
  flex: none;
  width: var(--bar-w);
  height: var(--bar-h);
  background: var(--red);
}

.info-list { margin: 0; }
.info-list dt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  line-height: var(--bar-h);
}
.info-list dd { margin: 11px 0 28px; }
.info-list dd:last-child { margin-bottom: 0; }

.coming-soon {
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  color: #999;
}

.page-body > :first-child { margin-top: 0; }
.page-body a, .back-link a { border-bottom: 1px solid var(--red); transition: color .25s; }
.page-body a:hover, .back-link a:hover { color: var(--red); }
.back-link { margin-top: 48px; }

/* ---------- contact form ---------- */
.contact-note { margin: 0 0 40px; font-size: .9em; }

.c-form .form_parts { margin-bottom: 32px; }
.c-form .form_parts.check-list { margin-bottom: 8px; }
.c-form label { display: block; }
.c-form .form_parts > label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: var(--bar-h);
}
.c-form .requied { margin-left: -6px; color: var(--red); }
.c-form .wpcf7-form-control-wrap { display: block; }

.c-form input[type="text"],
.c-form input[type="tel"],
.c-form input[type="email"],
.c-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s;
}
.c-form textarea { min-height: 180px; resize: vertical; }
.c-form input:focus, .c-form textarea:focus { outline: 0; border-color: var(--red); }
.c-form ::placeholder { color: #bbb; }

.c-form__check-list { margin-bottom: 32px; }
.c-form .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.c-form .wpcf7-list-item { margin: 0; }
.c-form .wpcf7-list-item label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.c-form input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--red); }

.c-form .btn-area { margin-top: 48px; text-align: center; }
.c-form input[type="submit"] {
  min-width: 240px;
  padding: 16px 32px;
  border: 1px solid var(--red);
  border-radius: 0;
  background: #fff;
  color: var(--red);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color .25s, background-color .25s;
}
.c-form input[type="submit"]:hover { background: var(--red); color: #fff; }
.c-form .wpcf7-spinner { display: block; margin: 12px auto 0; }

.wpcf7-not-valid-tip { margin-top: 6px; font-size: .85em; color: var(--red); }
.wpcf7 form .wpcf7-response-output {
  margin: 32px 0 0;
  padding: 14px 16px;
  border: 1px solid var(--red);
  font-size: .9em;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 18px 24px;
  text-align: center;
  font-size: 11px;
  line-height: 20px;
  color: #888;
}
main.page + .site-footer { border-top: 1px solid var(--line); }

/* ---------- 枠（左右余白あり） ---------- */
/* タブレット以上は画面の左右に余白を取り、ヘッダーの線・メニューの罫線・本文をすべて同じ枠の中に収める。
   枠の最大幅 1024px は fastretailing.com/jp のPCと同じ。スマホ（600px以下）は余白なしで画面幅いっぱい。 */
@media (min-width: 601px) {
  body {
    --outer: clamp(32px, 5vw, 64px);
    --gutter: 0px;
    width: calc(100% - var(--outer) * 2);
    max-width: 1024px;
    margin-inline: auto;
  }
  /* 枠の位置と幅を整数pxに揃える。端数になると 1px の縦線がにじむ */
  @supports (width: round(down, 1.5px, 1px)) {
    body {
      width: round(down, min(1024px, 100% - var(--outer) * 2), 1px);
      max-width: none;
      margin-left: round(down, calc((100% - min(1024px, 100% - var(--outer) * 2)) / 2), 1px);
      margin-right: 0;
    }
  }
  main.page { max-width: none; margin: 0; }
  main.page > * { max-width: 720px; }

  /* © の上の横線はヘッダーの線と同じ 2px。トップではメニュー最下段の罫線の代わりになる */
  .site-footer,
  main.page + .site-footer { border-top: 2px solid var(--red); }
  .index-nav li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (min-width: 900px) {
  .index-nav li:nth-last-child(-n+3) { border-bottom: 0; }
}

/* 左右の赤い枠線: 画面の左右に十分な余白がある幅（1100px以上）だけ。
   ヘッダーから © のあるページ最下部まで通す。 */
@media (min-width: 1100px) {
  body { --gutter: 32px; }
  .site-header,
  main,
  .site-footer { border-inline: 1px solid var(--red); }
}

/* ---------- 比較用: 文字サイズを fastretailing.com/jp に合わせた版（/fr/ 以下） ---------- */
/* レイアウトは標準と同じ。文字の大きさ・行間・太さだけ FR の実測値（2026-10-15）にしている。
   本文 13px/行間 19.5px、見出し 20px（スマホ 18px）、本文内の小見出し 18px（スマホ 16px）、
   トップの説明文 12px/行間 24px、パンくず 11px、メニュー 13px 太字、赤い縦線は幅 4px */
.is-fr {
  --bar-w: 4px;
  --bar-h: 21px;
  font-size: 13px;
  line-height: 19.5px;
}
.is-fr .hero p { font-size: 12px; line-height: 24px; }
.is-fr .index-nav a { font-size: 13px; }
.is-fr .global-nav a { font-size: 15.5px; }
.is-fr .breadcrumb { font-size: 11px; }
.is-fr .page-title { font-size: 20px; line-height: 17px; }
.is-fr .page-title::before { height: 17px; top: 0; }
.is-fr .page-body h2 { margin: 0 0 20px; font-size: 18px; font-weight: 700; line-height: 23.4px; }
.is-fr .page-body h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; line-height: 1.5; }
.is-fr .page-body p, .is-fr .page-body li { margin: 0 0 10px; }
.is-fr .coming-soon { font-size: 13px; }
.is-fr .contact-note { font-size: 13px; }
.is-fr .c-form input[type="text"],
.is-fr .c-form input[type="tel"],
.is-fr .c-form input[type="email"],
.is-fr .c-form textarea,
.is-fr .c-form input[type="submit"] { font-size: 13px; }
.is-fr .site-footer { font-size: 11px; }
@media (max-width: 600px) {
  .is-fr { --bar-h: 21px; font-size: 13px; }
  .is-fr .page-title { font-size: 18px; line-height: 15px; }
  .is-fr .page-title::before { height: 15px; }
  .is-fr .page-body h2 { font-size: 16px; line-height: 20.8px; }
  .is-fr .site-footer { font-size: 12px; }
}

/* ---------- motion ---------- */
.fade { opacity: 0; transform: translateY(12px); animation: fade .9s ease forwards; }
.fade.d1 { animation-delay: .25s; }
.fade.d2 { animation-delay: .5s; }
@keyframes fade { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  :root { --header-h: 50px; }
  .site-header { position: sticky; top: 0; }
  body { font-size: 14px; }
  :root { --bar-h: 24px; }
  .site-footer { padding: 12px 20px; }
  .breadcrumb { padding-top: 13px; }
  .page-title { gap: 10px; margin: 13px 0 31px; font-size: 20px; }
  .site-logo svg { height: 32px; }
  .menu-btn { margin-right: -10px; }
  .menu-btn span { left: 10px; width: 24px; }
  .menu-btn span:nth-child(1) { top: 17px; }
  .menu-btn span:nth-child(2) { top: 25px; }
  .index-nav a { min-height: 49px; padding: 8px; line-height: 1.3; } /* 1行50px（Fast Retailing のスマホと同じ） */
}
