/*
Theme Name: Nostalight9 Theme
Theme URI: https://nostalight9.com/
Author: Masanobu Ozawa & Sally
Author URI: https://nostalight9.com/
Description: Official theme for Nostalight9 website. React + Tailwind integrated.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nostalight9
*/

/* ================================
   Google Fonts（暫定：CSS内@import）
   ※ 後で functions.php で読み込みに変更してもOK
=================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600;700&family=Playfair+Display:wght@600;700&display=swap');

/* ================================
   CSS Variables（テーマカラー）
=================================== */
:root{
  --bg: #0a192f;           /* 深い紺 */
  --bg-soft: #0d223f;      /* 少し明るい紺 */
  --fg: #ffffff;           /* 文字：白 */
  --muted: #cbd5e1;        /* サブ文字 */
  --link: #7dd3fc;         /* リンク水色 */
  --accent: #22d3ee;       /* 強調シアン */
  --border: rgba(255,255,255,.15);
  --card: rgba(255,255,255,.04);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* ================================
   Reset（軽量）
=================================== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
img,svg,video,canvas{display:block;max-width:100%;height:auto}
button,input,select,textarea{font:inherit}
a{color:inherit}

/* ================================
   Base
=================================== */
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--fg);
  font-family:'Noto Sans JP', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

h1,h2,h3,h4{
  color:var(--fg);
  line-height:1.25;
  margin:0 0 .6em;
}
h1{font-size:clamp(28px, 4vw, 48px); font-family:'Playfair Display', serif; font-weight:700;}
h2{font-size:clamp(22px, 3vw, 32px); font-weight:700;}
h3{font-size:clamp(18px, 2.2vw, 24px); font-weight:600;}
p{margin:0 0 1.1em; color:var(--fg); opacity:.95;}
small, .text-muted{color:var(--muted)}
ul,ol{margin:0 0 1.1em 1.25em}

a{color:var(--link);text-decoration:none;transition:opacity .2s ease, filter .2s ease}
a:hover{opacity:.85}
a:focus-visible{outline:2px solid var(--accent); outline-offset:2px; border-radius:4px}

/* ================================
   Layout utilities
=================================== */
.container{ width:min(1100px, 92%); margin-inline:auto; }
.section{padding:64px 0}
.section--tight{padding:36px 0}

.grid{ display:grid; gap:20px; }
.grid--2{grid-template-columns:repeat(2,1fr)}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--auto{grid-template-columns:repeat(auto-fill, minmax(240px,1fr))}
@media (max-width:920px){ .grid--3{grid-template-columns:repeat(2,1fr)} }
@media (max-width:640px){ .grid--2,.grid--3{grid-template-columns:1fr} }

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  box-shadow:var(--shadow);
  backdrop-filter:saturate(120%) blur(6px);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover{
  transform:translateY(-3px);
  border-color:rgba(125, 211, 252, .45);
  box-shadow:0 12px 36px rgba(34,211,238,.22);
}

/* ================================
   Global Header / Nav （header.php 対応）
=================================== */
.nl9-header{
  position:sticky; top:0; left:0; width:100%;
  background:rgba(10,25,47,.65);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(255,255,255,.12);
  z-index:100;
}
.nl9-header__inner{
  width:min(1100px, 92%); margin-inline:auto;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:12px 0;
}
.nl9-logo{display:flex; align-items:center; gap:10px; text-decoration:none}
.nl9-logo__img{width:28px;height:28px;border-radius:6px}
.nl9-logo__text{color:#fff; font-weight:700; letter-spacing:.03em}
/* WordPressの wp_nav_menu 出力が <ul class="nl9-menu"> … となる前提 */
.nl9-menu{list-style:none; display:flex; gap:22px; margin:0; padding:0}
.nl9-menu li{margin:0; padding:0}
.nl9-menu a{
  color:rgba(255,255,255,.92); text-decoration:none; padding:8px 10px; border-radius:10px;
  transition:color .2s ease, background .2s ease, border-color .2s ease;
  border:1px solid transparent;
}
.nl9-menu a:hover{
  color:#7dd3fc;
  background:rgba(125,211,252,.08);
  border-color:rgba(125,211,252,.3);
}

/* ================================
   Global Footer （footer.php 対応）
=================================== */
.nl9-footer{
  margin-top:56px;
  border-top:1px solid rgba(255,255,255,.12);
  background:linear-gradient(0deg, rgba(10,25,47,.9), rgba(10,25,47,.6));
  text-align:center; padding:28px 0 24px;
}
.nl9-footer__logo{
  width:56px; height:auto; display:block; margin:0 auto 10px;
  opacity:.9; transition:opacity .3s ease;
}
.nl9-footer__logo:hover{opacity:1}
.nl9-footer__copy{color:rgba(255,255,255,.6); font-size:.85rem}

/* ================================
   Article / Page Base (Blog/News/Goods) 
   - 文字サイズ/余白/画像レスポンシブ
=================================== */
.entry-content, .post, .page .entry-content, .page-content{
  width:min(1100px, 92%); margin:24px auto 0;
}
.entry-content h1, .entry-content h2, .entry-content h3{
  line-height:1.25; margin:.6em 0 .4em; color:#fff;
}
.entry-content p{ color:#fff; opacity:.95; margin:0 0 1.1em; }
.entry-content ul, .entry-content ol{ margin:0 0 1.1em 1.25em; }
.entry-content a{ color:var(--link); }
.entry-content img, .wp-block-image img{
  max-width:100%; height:auto; border-radius:12px;
  box-shadow:0 10px 28px rgba(0,0,0,.35);
}

/* ================================
   Buttons（汎用）
=================================== */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 16px; border-radius:12px; border:1px solid var(--border);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  color:var(--fg); cursor:pointer; transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
  text-decoration:none; font-weight:600;
}
.btn:hover{
  transform:translateY(-2px);
  border-color:rgba(125, 211, 252, .45);
  box-shadow:0 10px 26px rgba(34,211,238,.18);
  filter:drop-shadow(0 0 10px rgba(125,211,252,.25));
}
.btn--primary{
  background:linear-gradient(180deg, rgba(34,211,238,.25), rgba(34,211,238,.08));
  border-color:rgba(34,211,238,.45);
}
.btn--ghost{ background:transparent; }

/* ================================
   Helpers / Utilities
=================================== */
.visually-hidden{
  position:absolute!important; height:1px;width:1px; overflow:hidden;
  clip:rect(1px,1px,1px,1px); white-space:nowrap;
}
.center{display:grid;place-items:center}
.mt-0{margin-top:0}.mt-1{margin-top:6px}.mt-2{margin-top:12px}.mt-3{margin-top:18px}.mt-4{margin-top:24px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:6px}.mb-2{margin-bottom:12px}.mb-3{margin-bottom:18px}.mb-4{margin-bottom:24px}
.py-0{padding-block:0}.py-1{padding-block:8px}.py-2{padding-block:16px}.py-3{padding-block:24px}.py-4{padding-block:32px}

/* ================================
   AOS フォールバック（AOS無効時の保険）
=================================== */
[data-aos]{opacity:1; transform:none}

/* ================================
   Responsive tweaks
=================================== */
@media (max-width:860px){
  .nl9-header__inner{padding:12px 0}
  .nl9-footer{padding:22px 0 18px}
}
@media (max-width:560px){
  .nl9-menu{gap:12px}
  .btn{padding:9px 14px}
}