/*
Theme Name: HikaTsuba Theme
Theme URI: https://example.com/hikatsuba-theme
Description: 光の翼 〜Ailes de Lumière〜
Author: Ryo
Version: 1.0.0
Text Domain: hikatsuba-theme
*/

/* =========================================================
   基本設定
========================================================= */
:root{
  --gold:#C9A227;
  --maxw:1100px;
  --header-h-pc:94px;
}

html,body{
  margin:0;
  padding:0;
  width:100%;
  overflow-x:hidden;
  font-family:"Noto Serif JP",serif;
  background:transparent;
}

.container{
  max-width:var(--maxw);
  margin:0 auto;
  padding:0 40px; /* ←左右余白を増やしてブランド感 */
}

.section{ padding:120px 0; } /* ←縦余白を大きく */

/* =========================================================
   背景
========================================================= */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background:center / cover no-repeat
    url('/wp-content/themes/hikatsuba-theme/images/hero_light_6_pc.png');
}

body.home{
  background:#000;
}

body.home::before{ display:none; }

/* =========================================================
   ヘッダー（ゴールド仕様：復元）
========================================================= */
.site-header{
  background:#000;
  border-bottom:1px solid rgba(255,255,255,.1);
  box-shadow:0 2px 10px rgba(0,0,0,.6);
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  height:var(--header-h-pc);
  display:flex;
  align-items:flex-start; /* ←上寄せ復元 */
  padding-top:14px;      /* ←上余白復元 */
}

.site-main{ padding-top:var(--header-h-pc); }

.site-header .container{
  display:flex;
  justify-content:center;
  align-items:center;
}

.site-brand-text{ text-align:center; }

.site-title a{
  display:inline-block;
  font-size:clamp(28px,5vw,46px);
  font-weight:800;
  letter-spacing:.06em;
  text-decoration:none;
  white-space:nowrap;
  background:linear-gradient(90deg,#b9932f,#fff8d6,#b9932f);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:
    0 0 10px rgba(255,240,200,.6),
    0 0 20px rgba(255,230,140,.4),
    0 0 40px rgba(255,220,100,.3);
}

/* ←タイトル下線 復元 */
.site-title a::after{
  content:"";
  display:block;
  width:220px;
  height:2px;
  margin:8px auto 0;
  background:linear-gradient(90deg,transparent,#ffef9a,#fff5c4,#ffef9a,transparent);
}

.site-sub{
  margin:.2em 0 0;
  font-size:clamp(13px,3vw,18px);
  color:#fff;
}

/* =========================================================
   ヒーロー
========================================================= */
.hero{
  position:relative;
  width:100vw;
  margin-left:calc(50% - 50vw);
  aspect-ratio:4/3;
  min-height:720px;
  background:center center / contain no-repeat
    url('/wp-content/themes/hikatsuba-theme/images/hero_light_4_3.png');
  background-color:#000;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(
    to bottom,
    rgba(0,0,0,0) 45%,
    rgba(0,0,0,0.55) 75%,
    rgba(0,0,0,0.75) 100%
  );
}

/* =========================================================
   主役キャッチ（孤高：上下余白をしっかり確保）
========================================================= */
.top{
  position:relative;
  overflow:hidden;
  text-align:center;
  padding-top:calc(var(--header-h-pc) + 220px); /* ←上余白はしっかり */
  padding-bottom:120px; /* ←下（プロフィール下）を増やしすぎない */
}

.top__title--front{
  position:relative;
  margin:0 0 140px 0; /* ←キャッチ下（＝光の翼の考え上）を増やす */
  line-height:1.18;
  z-index:2;
  isolation:isolate;
  max-width:1100px;
  margin-left:auto;
  margin-right:auto;
}

/* 霧光（復元） */
.top__title--front::before{
  content:"";
  position:absolute;
  inset:-20% -30%;
  pointer-events:none;
  z-index:0;
  mix-blend-mode:screen;

  background:
    conic-gradient(from -90deg at 50% 35%,
      rgba(255,255,255,.05) 0deg,
      rgba(255,255,255,.10) 6deg,
      rgba(255,255,255,.05) 12deg,
      rgba(255,255,255,0) 18deg,
      rgba(255,248,214,.06) 26deg,
      rgba(255,255,255,0) 40deg,
      rgba(201,162,39,.05) 60deg,
      rgba(255,255,255,0) 90deg,
      rgba(255,255,255,.05) 120deg,
      rgba(255,255,255,0) 180deg,
      rgba(255,255,255,.05) 240deg,
      rgba(255,255,255,0) 360deg
    ),
    radial-gradient(circle at 50% 35%,
      rgba(255,255,255,.65) 0%,
      rgba(255,255,255,.40) 18%,
      rgba(255,248,214,.28) 35%,
      rgba(201,162,39,.18) 55%,
      rgba(201,162,39,.08) 70%,
      rgba(201,162,39,0) 85%);

  filter:blur(25px);
  opacity:.9;
}

.top__title--front::after{
  content:"";
  position:absolute;
  inset:-18% -28%;
  pointer-events:none;
  z-index:0;
  background:radial-gradient(circle at 50% 38%,
    rgba(255,255,255,.08) 0%,
    rgba(255,248,230,.06) 40%,
    rgba(255,255,255,0) 85%);
  filter:blur(45px);
  opacity:.7;
}

.top__title-line{
  display:block;
  font-size:clamp(2.2rem,4.3vw,3.6rem); /* ←2行に収まりやすい元のバランスへ */
  font-weight:900;
  letter-spacing:.05em;
  background:linear-gradient(120deg,#fdfcf8,#f6eddc,#e8d7a5,#fdfcf8);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:
    0 0 6px rgba(255,255,255,.35),
    0 0 18px rgba(255,240,210,.25),
    0 0 24px rgba(201,162,39,.20),
    0 12px 40px rgba(0,0,0,.55);
  white-space:nowrap; /* ←PCで2行固定（1行目/2行目） */
}

@media (max-width:640px){
  .top__title-line{ white-space:normal; } /* ←スマホだけ自然改行 */
}

.top__title-line + .top__title-line{
  margin-top:22px;
}

/* =========================================================
   ボタン（光の翼の考え / プロフィール）
   ※front-page.php 側で is-top / is-bottom を付けて制御
========================================================= */
.top-simple-links{
  display:flex;
  justify-content:center;
  margin:0;              /* ←変な余白をリセット */
}

/* キャッチ → 光の翼の考え：ここを“もっと空けたい” */
.top-simple-links.is-top{
  margin-top:0;
  margin-bottom:120px;   /* ←カードとの間は広め */
}

/* カード → プロフィール：ここは“増やしすぎない” */
.top-simple-links.is-bottom{
  margin-top:40px;
  margin-bottom:0;
}

.top-simple-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;

  padding:16px 60px;
  font-size:18px;
  font-weight:700;
  letter-spacing:.1em;
  text-decoration:none;
  border-radius:999px;

  border:1px solid rgba(201,162,39,.6);
  background:rgba(0,0,0,.35);
  color:#fff8d6;
  box-shadow:0 0 25px rgba(201,162,39,.15);
  transition:.3s ease;
}

.top-simple-link:hover{
  background:rgba(201,162,39,.15);
  box-shadow:0 0 35px rgba(201,162,39,.3);
}

/* =========================================================
   3×3 カード（余白広め）
========================================================= */
.menu-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px; /* ←広く */
  margin-bottom:140px; /* ←プロフィールまで広く */
}

@media (max-width:1024px){
  .menu-grid{ grid-template-columns:repeat(2,1fr); gap:30px; }
}

@media (max-width:640px){
  .menu-grid{ grid-template-columns:1fr; gap:24px; }
}

.menu-card{
  position:relative; /* ←これが無いと『準備中』が別の枠に飛びます */
  min-height:190px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  border-radius:16px;
  background:rgba(0,0,0,.28);
  border:1px solid rgba(201,162,39,.35);
  box-shadow:0 20px 50px rgba(0,0,0,.5);
  transition:.3s ease;
  overflow:hidden;
}

.menu-card:hover{
  transform:translateY(-6px);
  border-color:rgba(201,162,39,.7);
  box-shadow:0 30px 70px rgba(0,0,0,.6);
}

/* バッジはカード内に固定 */
.menu-card__badge{
  position:absolute;
  top:16px;
  right:16px;
  z-index:2;
  font-size:12px;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(120deg,#fdfcf8,#f3e6c2);
  color:#2f2616;
}

/* 既存の重複定義が下にある場合に備えて“最後に上書き” */
.menu-card__badge{ position:absolute; }

/* hoverブロック開始 */

.menu-card:hover{

  transform:translateY(-6px);
  border-color:rgba(201,162,39,.7);
  box-shadow:0 30px 70px rgba(0,0,0,.6);
}

.menu-card__title{
  font-size:18px;
  font-weight:700;
  letter-spacing:.08em;
  background:linear-gradient(120deg,#fdfcf8,#f6eddc,#e8d7a5);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.menu-card.is-soon{
  opacity:.6;
  cursor:not-allowed;
}

.menu-card__badge{
  position:absolute;
  top:16px;
  right:16px;
  font-size:12px;
  padding:6px 12px;
  border-radius:999px;
  background:linear-gradient(120deg,#fdfcf8,#f3e6c2);
  color:#2f2616;
}

/* =========================================================
   下部ボタン（プロフィール）
   ※ last-of-type での制御はやめて is-bottom で制御します
========================================================= */


/* =========================================================
   フッター（復元）
========================================================= */
.footer{
  background:#111;
  color:#fff;
  padding:60px 0 30px;
  text-align:center;
}

.footer-title-main{
  display:inline-block;
  font-size:clamp(18px,3vw,28px);
  font-weight:800;
  letter-spacing:.06em;
  background:linear-gradient(90deg,#b9932f,#fff8d6,#b9932f);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.footer-title-main::after{
  content:"";
  display:block;
  width:220px;
  height:2px;
  margin:8px auto 0;
  background:linear-gradient(90deg,transparent,#ffef9a,#fff5c4,#ffef9a,transparent);
}

.footer-subtitle{
  font-size:clamp(13px,3vw,18px);
  color:#fff;
}

.footer-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:30px;
}

.footer-links a{
  color:#bbb;
  text-decoration:none;
}

.footer-links a:hover{
  color:var(--gold);
}

.footer-copy{
  margin-top:25px;
  font-size:13px;
  color:#aaa;
}
