/*
Theme Name: kotohogi-BE
Theme URI:
Author: ブランドの編集室
Author URI:
Description: ブランドの編集室 公式 WordPress テーマ
Version: 0.1.0
Text Domain: kotohogi-be
*/

/* =============================================================
   レイアウト幅 / フォント オーバーライド
   (henshushitsu-starter.css の変数をここで上書き)
   ============================================================= */
:root {
  --inner-w: 820px;
  --wide-w:  1120px;
  --outfit:  'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --body:    #2a3440;
  --serif:   'Zen Old Mincho', 'Yu Mincho', '游明朝', 'Hiragino Mincho ProN', serif;
}

/* p 要素を明朝体に統一 */
p {
  font-family: var(--serif);
  letter-spacing: .22em;
}

/* 見出しサイズ拡大（フォントはvar(--serif) = Zen Old Minchoを継承） */
h1 { font-size: clamp(34px, 5.5vw, 52px); }
h2 { font-size: clamp(24px, 3.8vw, 34px); }

/* Cinzel: キッカー共通 */
.kicker {
  font-family: var(--outfit);
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 13px;
}

/* Cinzel: ナビ */
.site-nav a,
.site-logo {
  font-family: var(--outfit);
}

/* =============================================================
   サイトヘッダー / ナビ
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0 60px;
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.site-logo {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--ink);
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--sub);
  text-decoration: none;
  transition: color .3s ease;
  cursor: pointer;
}
.site-nav a:hover { color: var(--ink); }

/* ハンバーガー(モバイル) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ink);
  margin: 5px 0;
  transition: all .3s ease;
}

@media (max-width: 720px) {
  .site-header { padding: 0 24px; position: relative; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 11.5px;
  }
  .fp-hero__inner,
  .fp-case__inner,
  .fp-column__inner { padding: 0 24px; }
}

/* =============================================================
   セクション共通
   ============================================================= */
.section { padding: var(--section-pad) 0; }
.section--hero { padding: 100px 0 80px; }
.section--contact { padding: 80px 0 100px; text-align: center; }

.contact-line {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .12em;
  margin-bottom: 36px;
}

/* 関連リンク(cross) */
.cross {
  display: flex;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.cross-item {
  flex: 1;
  background: var(--paper);
  padding: 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: background .3s ease;
}
.cross-item:hover { background: var(--bg); }
.cross-item .cnum { font-size: 10px; letter-spacing: .25em; color: var(--sub); margin-bottom: 12px; }
.cross-item .ct   { font-family: var(--serif); font-size: 14px; line-height: 1.9; letter-spacing: .06em; }
@media (max-width: 640px) { .cross { flex-direction: column; } }

/* バッジ */
.badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--sub);
  border: 1px solid var(--line);
  padding: 4px 12px;
  margin-bottom: 28px;
}

/* アウトカムリスト */
.out {
  font-size: 13.5px;
  line-height: 2.2;
  letter-spacing: .05em;
  color: var(--body);
  padding: 14px 0;
  border-bottom: 1px solid #e3ebf1;
}
.out:last-of-type { border-bottom: none; }
.out-note {
  font-family: var(--serif);
  font-size: 13.5px;
  line-height: 2.4;
  color: var(--ink);
  margin-top: 36px;
}

/* =============================================================
   スクロールアニメーション
   ============================================================= */

/*
  data-anim で3パターン切り替え可:
    data-anim="fade"  — ふわっと上から (デフォルト)
    data-anim="slide" — 左からスライドイン
    data-anim="zoom"  — じわっと拡大
  data-stagger 属性を親に付けると子要素が順番にアニメーション
*/

[data-anim] {
  opacity: 0;
  transition: opacity .78s ease;
}

[data-anim].is-inview {
  opacity: 1;
}

/* stagger: 子要素が個別に is-inview を受け取る */
[data-stagger] > * {
  opacity: 0;
  transition: opacity .68s ease;
}
[data-stagger] > *.is-inview {
  opacity: 1;
}

/* 動きが苦手な人への配慮 */
@media (prefers-reduced-motion: reduce) {
  [data-anim],
  [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- CTA リンク（矢印伸長） ---------- */
.cta-link {
  display: inline-block;
  position: relative;
  font-size: 11.5px;
  letter-spacing: .25em;
  color: var(--ink);
  text-decoration: none;
}
.cta-arrow {
  position: absolute;
  left: 100%;
  top: 50%;
  margin-left: 18px;
  transform: translateY(-50%);
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: width .7s cubic-bezier(.25, .8, .25, 1);
}
/* 矢印の上側の斜め線 */
.cta-arrow::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: 1px;
  background: currentColor;
  transform: rotate(38deg);
  transform-origin: right top;
}
/* 矢印の下側の斜め線 */
.cta-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 6px;
  height: 1px;
  background: currentColor;
  transform: rotate(-38deg);
  transform-origin: right bottom;
}
.cta-link:hover .cta-arrow {
  width: 80px;
}
