/* ======================================
   Y2KHOME Pro - main.css（完全置き換え）
   ・リセット
   ・PC/SP切替
   ・ヘッダー
   ・フッター
   ・固定ページ共通
====================================== */

/* ---------- リセット ---------- */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans JP", sans-serif;
  background: #ffffff;
  color: #111827;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* PC / SP 切り替え */
.pc-only {
  display: block;
}
.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
}

/* ======================================
   ヘッダー（元デザイン完全維持）
====================================== */

.y2k-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

.y2k-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.y2k-logo a {
  font-weight: 700;
  font-size: 20px;
  color: #1e3a8a;
  text-decoration: none;
}

.y2k-logo img {
  height: 40px;
  width: auto;
}

/* =========================
   PCメニュー（① 下線アニメ）
========================= */
.y2k-nav-pc {
  display: flex;
}

.y2k-nav-list-pc {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.y2k-nav-list-pc a {
  font-size: 13px;
  font-weight: 800;
  color: #111827;
  text-decoration: none;
  padding: 4px 0;
  position: relative;
  white-space: nowrap;
}

.y2k-nav-list-pc a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width 0.18s ease-out;
}

.y2k-nav-list-pc a:hover::after,
.y2k-nav-list-pc .current-menu-item > a::after {
  width: 100%;
}

/* =========================
   ハンバーガー
========================= */
.y2k-burger {
  display: none;
  width: 42px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  cursor: pointer;
  border: none;
}

.y2k-burger span {
  height: 3px;
  width: 100%;
  background: #0f172a;
  border-radius: 3px;
  transition: 0.25s;
}

.y2k-burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.y2k-burger.active span:nth-child(2) {
  opacity: 0;
}
.y2k-burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 959px) {
  .y2k-nav-pc {
    display: none;
  }
  .y2k-burger {
    display: flex;
  }
}

/* =========================
   SPメニュー（全画面・薄青・区切り線・親子開閉）
========================= */
.y2k-nav-sp {
  position: fixed;
  inset: 0;
  background: #eff6ff;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;
}

.y2k-nav-sp.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* リスト全体 */
.y2k-nav-list-sp {
  list-style: none;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 各項目（白線を太め） */
.y2k-nav-list-sp > li {
  padding: 18px 0;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.95);
}

.y2k-nav-list-sp > li:last-child {
  border-bottom: none;
}

/* リンク共通（中央） */
.y2k-nav-list-sp a {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  display: inline-block;
  position: relative;
}

/* =========================
   親子メニュー（重要：横並びにならない形）
   - 親liは block
   - 親リンクは中央
   - ＋は右端 absolute
========================= */
.y2k-nav-list-sp .menu-item-has-children {
  position: relative;
}

/* 親リンクはクリックでページ遷移できるように普通のaのまま */
.y2k-nav-list-sp .menu-item-has-children > a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0 56px; /* 右の＋ボタン分の余白 */
}

/* ＋ボタン（JSが挿入する .y2k-subtoggle） */
.y2k-subtoggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.y2k-subtoggle::before {
  content: "+";
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

.menu-item-has-children.open > .y2k-subtoggle::before {
  content: "−";
}

/* 子メニュー（下に縦で出す） */
.y2k-nav-list-sp .sub-menu {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;

  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;

  text-align: center;
}

.y2k-nav-list-sp .sub-menu li {
  padding: 10px 0;
}

.y2k-nav-list-sp .sub-menu a {
  font-size: 18px;
  font-weight: 700;
  color: #1e3a8a;
  text-decoration: none;
  display: inline-block;
}

.y2k-nav-list-sp .menu-item-has-children.open > .sub-menu {
  max-height: 520px;
}

/* =========================
   SPメニュー：右上 × ボタン
========================= */
.y2k-nav-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.y2k-nav-close::before {
  content: "×";
  font-size: 26px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}


/* =========================
   SP フッターボタン（維持）
========================= */
.y2k-sp-line-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px 0;
  background: #06c755;
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  z-index: 1100;
  box-shadow: 0 -3px 18px rgba(0, 0, 0, 0.12);
}

@media (min-width: 960px) {
  .y2k-sp-line-btn {
    display: none;
  }
}

/* ======================================
   フッター（元デザイン維持）
====================================== */

.y2k-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 24px 16px 32px;
  margin-top: 40px;
}

.y2k-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.y2k-footer-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin: 0;
  padding: 0;
}

.y2k-footer-list a {
  font-size: 13px;
  color: #bfdbfe;
  text-decoration: none;
}

.y2k-footer-copy {
  margin-top: 6px;
  font-size: 12px;
  color: #9ca3af;
}

/* ======================================
   固定ページ 共通デザイン
====================================== */

/* ▼ ヒーロー帯（100vw・背景画像共通） */
.y2k-page-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  padding: 96px 20px 48px;
  text-align: center;
  color: #ffffff;

  background-image: linear-gradient(
      120deg,
      rgba(15, 23, 42, 0.88),
      rgba(37, 99, 235, 0.88)
    ),
    url("https://y2khome.jp/wp-content/uploads/2025/12/hero-2.jpg");
  background-size: cover;
  background-position: center;
}

/* ページ側で style="" を書けば個別差し替え可 */

.y2k-page-hero-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.y2k-page-hero-en {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: #facc15;
  margin-bottom: 10px;
}

/* タイトル（.y2k-page-hero-title 互換） */
.y2k-page-title,
.y2k-page-hero-title {
  font-size: 40px;
  font-weight: 800;
  position: relative;
  padding-left: 20px;
  letter-spacing: 0.06em;
  display: inline-block;
}

.y2k-page-title::before,
.y2k-page-hero-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 44px;
  background: #facc15;
  border-radius: 999px;
  transform: translateY(-50%);
}

.y2k-page-hero-lead {
  max-width: 820px;
  margin: 16px auto 0;
  font-size: 17px;
  line-height: 2;
  color: #e5e7eb;
}

/* 備考（注意書き）をボックス化：HTMLはそのままでOK */
.clog-note {
  max-width: 920px;
  margin: 16px auto 0;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-left: 6px solid #2563eb;
  border-radius: 8px; /* 四角寄り */
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.clog-note p {
  margin: 0;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.9;
  color: #0f172a;
}

.clog-note p + p {
  border-top: 1px dashed #e5e7eb;
}

/* ======================================
   セクション見出し（全ページ統一）
   ・--deep 濃紺ストライプ帯（白文字）
   ・--soft 薄青ストライプ帯（濃紺文字）
====================================== */

/* ベース構造 */
.y2k-sec-head {
  width: 100%;
  padding: 32px 0 26px;
  text-align: center;
  margin: 0 0 28px;
  position: relative;
}

.y2k-sec-eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: inherit;
  opacity: 0.85;
  margin-bottom: 4px;
}

/* 大見出し */
.y2k-sec-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
  margin: 0;
  color: inherit;
}

.y2k-sec-title .y2k-sec-key {
  color: #2563eb;
  font-weight: 900;
}

/* 濃い青ストライプ帯 --- deep（色を写真寄りに調整） */
.y2k-sec-head--deep {
  color: #ffffff;
  background-color: #07172b; /* ← もっと深い紺色に */
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.09) 0px,
      rgba(255, 255, 255, 0.09) 22px,
      rgba(0, 0, 0, 0.02) 22px,
      rgba(0, 0, 0, 0.02) 44px
    );
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.24);
}

/* 薄い青ストライプ帯 --- soft（背景をもっと白寄り＆文字くっきり） */
.y2k-sec-head--soft {
  color: #06111f; /* ← 文字色を少し濃く */
  background-color: #f7f9ff; /* ← 白寄りの淡い青 */
  background-image: repeating-linear-gradient(
    90deg,
    rgba(96, 165, 250, 0.06) 0px,
    /* ← 青ストライプをかなり薄く */ rgba(96, 165, 250, 0.06) 22px,
    rgba(255, 255, 255, 1) 22px,
    /* ← 白部分はほぼベタ白 */ rgba(255, 255, 255, 1) 44px
  );
  background-repeat: repeat;
  background-size: auto;
  box-shadow: inset 0 -2px 0 rgba(96, 165, 250, 0.28);
}

/* ======================================
   セクション背景（SOFT / WHITE）
====================================== */

/* 薄青ストライプ背景セクション本体（本文側も同じ世界観に） */
.y2k-page-section--soft {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;

  background-color: #f7f9ff; /* ← こっちも白寄りに合わせる */
  background-image: repeating-linear-gradient(
    90deg,
    rgba(96, 165, 250, 0.06) 0px,
    rgba(96, 165, 250, 0.06) 22px,
    rgba(255, 255, 255, 1) 22px,
    rgba(255, 255, 255, 1) 44px
  );
  background-repeat: repeat;
  background-size: auto;
}

/* soft セクション内では見出し帯を透明化して背景と一体化 */
.y2k-page-section--soft .y2k-sec-head--soft {
  background-color: transparent;
  background-image: none;
  box-shadow: none;
}

/* white セクションでは deep 見出し帯を必ず濃紺ストライプで表示 */
.y2k-page-section--white .y2k-sec-head--deep {
  background-color: #07172b; /* ← 上の deep と揃える */
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05),
      rgba(255, 255, 255, 0.05)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.09) 0px,
      rgba(255, 255, 255, 0.09) 22px,
      rgba(0, 0, 0, 0.02) 22px,
      rgba(0, 0, 0, 0.02) 44px
    );
  color: #ffffff;
}

/* ======================================
   MESSAGEタイプ専用の見出し（y2k-soft-sec-*）
====================================== */

.y2k-soft-sec-head {
  text-align: center;
  margin-bottom: 28px;
}

.y2k-soft-sec-title {
  font-size: 14px;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: #facc15;
  margin-bottom: 6px;
  text-transform: uppercase;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.25);
}

.y2k-soft-sec-sub {
  font-size: 30px;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.35), 0 0 8px rgba(0, 0, 0, 0.25);
}

.y2k-soft-sec-key {
  color: #2563eb;
  font-weight: 700;
}

/* ======================================
   スクロールアニメーション
====================================== */

[data-anim] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-anim].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================
   レスポンシブ調整
====================================== */

@media (max-width: 960px) {
  .y2k-page-title,
  .y2k-page-hero-title {
    font-size: 32px;
  }
}

@media (max-width: 640px) {
  .y2k-page-title,
  .y2k-page-hero-title {
    font-size: 26px;
  }
  .y2k-page-hero-lead {
    font-size: 15px;
  }
  .y2k-page-section-inner {
    padding: 24px 18px;
  }
  .y2k-soft-sec-sub {
    font-size: 24px;
  }
}
/* ===== Y2K Preloader（安定版：デフォルト非表示） ===== */

body.y2k-preload-lock {
  overflow: hidden;
  touch-action: none;
}

/* デフォルトは非表示（←チラつき防止の核心） */
.y2k-preloader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #ffffff;
  place-items: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* 初回だけJSで is-active を付けたら表示 */
.y2k-preloader.is-active {
  display: grid;
}

.y2k-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.y2k-preloader.is-gone {
  display: none;
}

.y2k-preloader-inner {
  text-align: center;
  padding: 18px 16px;
}

.y2k-preloader-mark {
  width: min(520px, 86vw);
  height: auto;
  color: #0f172a;
}

.y2k-preloader .y2k-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.y2k-preloader .y2k-drop {
  stroke-width: 6;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: y2k-draw 0.9s ease forwards;
}

.y2k-preloader .y2k-drop-hi {
  stroke-width: 4;
  opacity: 0.85;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: y2k-draw 0.75s ease forwards;
  animation-delay: 0.12s;
}

.y2k-preloader .y2k-word {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Noto Sans JP", sans-serif;
  font-weight: 900;
  font-size: 56px;
  letter-spacing: 2px;
  stroke-width: 4;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: y2k-draw 0.95s ease forwards;
  animation-delay: 0.18s;
}

.y2k-preloader-meta {
  margin-top: 10px;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.y2k-preloader-percent {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #0f172a;
}

.y2k-preloader-sub {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

@keyframes y2k-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 768px) {
  .y2k-preloader .y2k-word {
    font-size: 46px;
  }
}
