/* ============================================================
   FIWEAR — 公開用の調整

   index.html は Claude Design からの書き出しを機械的に展開したもので、
   直接編集すると次の書き出しで消えます。手を入れるのはこのファイルです。
   tools/unpack.py が css/site.css としてコピーし、生成側のスタイルより
   後ろで読み込ませます（同じ強さなら後勝ち。inline style には !important）。

   目印のクラス（fw-*）は unpack.py がHTMLコメントを頼りに付けています。
   ============================================================ */

/* ---- 全体 ---- */

/* 画像を右クリック保存されにくくする目的ではなく、
   ドラッグでレイアウトが崩れるのを防ぐため */
img { -webkit-user-drag: none; user-select: none; }

/* 読み込み中に文字が消えるのを防ぐ（Google Fonts 待ちの白画面対策） */
html { background: #0a0b10; }

/* キーボード操作でどこにいるか分かるように */
:focus-visible { outline: 2px solid #00d4b8; outline-offset: 3px; }

/* ============================================================
   お問い合わせ（src/contact.html）
   ============================================================ */
.fw-form { margin-top: 44px; }
.fw-form label { display: block; margin-bottom: 22px; }
.fw-form label > span {
  display: block; margin-bottom: 8px;
  font-size: 12px; letter-spacing: .1em; color: #aeb3c0;
}
.fw-form label > span > em {
  font-style: normal; font-size: 10px; letter-spacing: .1em;
  color: #00d4b8; border: 1px solid currentColor;
  padding: 1px 6px; margin-left: 8px; vertical-align: 1px;
}
/* このページには box-sizing の初期化がないため、個別に指定する。
   これがないと padding と border のぶん枠が画面からはみ出す。 */
.fw-form input,
.fw-form textarea,
.fw-form button { box-sizing: border-box; }

.fw-form input,
.fw-form textarea {
  width: 100%; padding: 13px 14px;
  font-family: inherit; font-size: 16px; color: #ecedf2;
  background: rgba(255, 255, 255, .03);
  border: 1px solid #232633; border-radius: 10px;
  transition: border-color .25s, background .25s;
}
.fw-form input::placeholder,
.fw-form textarea::placeholder { color: #4a4e59; }
.fw-form input:focus,
.fw-form textarea:focus {
  outline: none; border-color: #00d4b8; background: rgba(0, 212, 184, .05);
}
.fw-form input:user-invalid,
.fw-form textarea:user-invalid { border-color: #e0413c; }
.fw-form textarea { resize: vertical; line-height: 1.8; }

.fw-form button {
  width: 100%; min-height: 54px; margin-top: 6px;
  font-family: inherit; font-size: 14px; font-weight: 700; letter-spacing: .08em;
  color: #06231e; background: #00d4b8;
  border: 0; border-radius: 99px; cursor: pointer;
  transition: background .25s;
}
.fw-form button:hover { background: #3ce8cf; }

.fw-form__note { margin-top: 16px; font-size: 12px; color: #4a4e59; text-align: center; }
.fw-form__mail { margin-top: 24px; font-size: 13px; color: #8a8f9e; text-align: center; }

/* 送信先が未設定のときの表示 */
.fw-form--pending {
  margin-top: 40px; padding: 30px 24px; text-align: center;
  border: 1px dashed #232633; border-radius: 14px;
  background: rgba(255, 255, 255, .02);
}
.fw-form--pending p { margin: 0; font-size: 14px; color: #8a8f9e; }
.fw-form--pending code {
  font-size: 12px; color: #aeb3c0;
  background: rgba(255, 255, 255, .05); padding: 2px 6px; border-radius: 4px;
}

/* リンクにした要素が、元の見た目のまま押せるようにする */
.fw-header a { text-decoration: none; }
a[style*="background:#00d4b8"],
a[style*="border:1px solid #232633"] {
  display: inline-block; text-decoration: none;
  transition: background .25s, border-color .25s;
}
a[style*="background:#00d4b8"]:hover { background: #3ce8cf !important; }
a[style*="border:1px solid #232633"]:hover { border-color: #00d4b8 !important; }

/* ============================================================
   下層ページ（src/pages/*.html）
   プライバシーポリシーなど、読ませるためのページの体裁
   ============================================================ */
.fw-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 148px 24px 96px;
  line-height: 2;
  font-size: 15px;
  color: #aeb3c0;
}
.fw-page h1 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 700; font-size: clamp(26px, 4vw, 40px); line-height: 1.4;
  color: #ecedf2; margin: 0 0 40px;
}
.fw-page h2 {
  font-size: 17px; font-weight: 700; color: #ecedf2;
  margin: 52px 0 14px; padding-top: 22px;
  border-top: 1px solid #1b1e29;
}
.fw-page p { margin: 0 0 18px; }
.fw-page ul { margin: 0 0 18px; padding-left: 1.4em; }
.fw-page li { margin-bottom: 6px; }
.fw-page a { color: #00d4b8; }

.fw-lead { font-size: 16px; color: #ecedf2; }

/* 404ページの導線 */
.fw-404__links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.fw-404__links a {
  display: inline-block; padding: 13px 30px; border-radius: 99px;
  font-size: 14px; font-weight: 700; text-decoration: none;
  color: #06231e; background: #00d4b8;
  transition: background .25s;
}
.fw-404__links a:hover { background: #3ce8cf; }
.fw-404__links a:last-child {
  color: #ecedf2; background: transparent; border: 1px solid #232633; font-weight: 400;
}
.fw-404__links a:last-child:hover { border-color: #00d4b8; background: transparent; }

/* 会社概要などの一覧表 */
.fw-table { width: 100%; border-collapse: collapse; margin-top: 44px; }
.fw-table th,
.fw-table td {
  padding: 22px 0; text-align: left; vertical-align: top;
  border-bottom: 1px solid #1b1e29; font-size: 15px; font-weight: 400;
}
.fw-table th { width: 168px; color: #ecedf2; padding-right: 20px; letter-spacing: .04em; }
.fw-table ul { margin: 0; padding-left: 1.3em; }
.fw-table li { margin-bottom: 8px; }
.fw-table li:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .fw-table th, .fw-table td { display: block; width: auto; border-bottom: 0; padding: 0; }
  .fw-table th { padding-top: 24px; font-size: 13px; color: #00d4b8; letter-spacing: .1em; }
  .fw-table td { padding: 8px 0 24px; border-bottom: 1px solid #1b1e29; }
}
.fw-page__date { margin-top: 56px; font-size: 13px; color: #4a4e59; }

/* ---- お問い合わせ（メールのみの場合） ---- */
.fw-mailbox { margin-top: 44px; text-align: center; }
.fw-mailbox__btn {
  display: inline-block;
  min-width: 260px; padding: 17px 40px;
  font-size: 15px; font-weight: 700; letter-spacing: .06em;
  color: #06231e !important; background: #00d4b8;
  border-radius: 99px; text-decoration: none;
  transition: background .25s, transform .25s;
}
.fw-mailbox__btn:hover { background: #3ce8cf; transform: translateY(-2px); }
.fw-mailbox__addr {
  margin-top: 18px;
  font-family: 'Space Grotesk', sans-serif; font-size: 14px;
  letter-spacing: .04em; color: #8a8f9e;
}
.fw-mailbox .fw-form__note { margin-top: 20px; line-height: 1.9; }

/* ---- 動きを減らす設定への配慮 ---- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .fw-hint { display: none !important; }
}

/* ============================================================
   スマートフォン（〜767px）

   元のデザインは横に余白がある前提で組まれているため、
   狭い画面では説明文・採寸ラベル・商品名が重なってしまう。
   位置を組み替えて、縦に並ぶようにする。
   ============================================================ */
@media (max-width: 767px) {

  /* ヘッダー: ロゴとメニューが詰まるので、文字を小さくして間隔を詰める
     （ロゴは <a> に変わったので、要素名では指定しない） */
  .fw-header { padding: 13px 16px !important; }
  .fw-header > :first-child { gap: 8px !important; }
  .fw-header > :first-child span { font-size: 15px !important; letter-spacing: .08em !important; }
  .fw-header > :first-child img { height: 20px !important; }
  .fw-header > :last-child { gap: 13px !important; font-size: 9.5px !important; }

  /* 右端の進行インジケーターは、狭い画面では商品名と重なるので隠す */
  .fw-rail { display: none !important; }

  /* 採寸ラベルは画面外にはみ出して読めないため隠す */
  .fw-measure { display: none !important; }

  /* 場面の説明文は、左端ではなく画面上部の余白に移す */
  .fw-captions {
    left: 16px !important;
    right: 16px;
    top: 68px !important;
    bottom: auto !important;
    transform: none !important;
    text-align: center;
  }
  .fw-captions > div {
    top: 0 !important;
    left: 0;
    right: 0;
    width: auto !important;
  }
  .fw-captions > div > div:nth-child(2) { font-size: 21px !important; }

  /* 試着中の商品名は、アバターに重なるので下（モデル名の下）へ移す。
     数値は figure の枠（高さ420px）を基準にした位置。 */
  .fw-garment {
    left: 50% !important;
    top: 484px !important;
    transform: translateX(-50%) !important;
    width: 86vw !important;
    text-align: center;
  }

  /* ヒーローの見出しは nowrap のままだと画面からはみ出す */
  .fw-hero > div:nth-child(2) { white-space: normal !important; }
  /* 3つの訴求は縦に積む */
  .fw-hero > div:nth-child(3) > div {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .fw-hero > div:nth-child(3) > div > span[style*="width:1px"] { display: none !important; }
}

/* ============================================================
   細い画面（〜380px）
   ============================================================ */
@media (max-width: 380px) {
  .fw-captions > div > div:nth-child(2) { font-size: 19px !important; }
}
