/*
 * P-SIX Theme — common.css
 * 全ページ共通スタイル
 */

/* ═══ CSS VARIABLES ═══ */
:root {
  --ink: #0a0f1a;
  --ink-light: #151c2e;
  --ink-mid: #1e2842;
  --slate: #2a3554;
  --steel: #4a5578;
  --mist: #8892ab;
  --cloud: #b8c0d2;
  --pearl: #e4e8f0;
  --snow: #f5f6fa;
  --white: #ffffff;
  --sea-deep: #0b3d4f;
  --sea: #0e6b7a;
  --sea-mid: #1a8a96;
  --sea-bright: #28b5b8;
  --sea-glow: #4ee8d8;
  --warm: #f8f5f0;
  --warm-dark: #ece6db;
  /* NPO */
  --green: #2d8a6e;
  --green-light: #3aab8a;
  --green-glow: #5ee8b8;
  /* 協会 */
  --accent: #2563eb;
  --accent-mid: #3b82f6;
  --accent-glow: #60a5fa;
}

/* ═══ RESET ═══ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══ SCROLL REVEAL ═══ */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.rv.vis { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .24s; }
.d3 { transition-delay: .36s; }
.d4 { transition-delay: .48s; }
.d5 { transition-delay: .6s; }
.d6 { transition-delay: .72s; }

/* ═══ SECTION BASICS ═══ */
section { padding: 140px 60px; }
.sec-inner { max-width: 1100px; margin: 0 auto; }
.sec-label { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 400; letter-spacing: 6px; text-transform: uppercase; color: var(--sea); margin-bottom: 20px; }
.sec-title { font-family: 'Playfair Display', serif; font-size: clamp(26px, 3.5vw, 40px); font-weight: 400; color: var(--ink); line-height: 1.6; margin-bottom: 16px; }
.sec-desc { font-size: 14px; font-weight: 300; color: var(--steel); line-height: 2.2; max-width: 520px; }
.sec-hd { margin-bottom: 72px; }

/* ═══ HEADER ═══ */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 100; transition: all .6s cubic-bezier(.16,1,.3,1); }
.site-header.scrolled { background: rgba(255,255,255,.98); backdrop-filter: blur(24px); box-shadow: 0 1px 0 var(--pearl); }
.hdr { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 24px 60px; transition: padding .6s; }
.site-header.scrolled .hdr { padding: 14px 60px; }

/* Logo */
.logo { text-decoration: none; display: flex; align-items: center; gap: 12px; z-index: 200; }
.logo-text { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: 2px; color: var(--white); transition: color .5s; }
.logo-text small { display: block; font-size: 8px; font-weight: 300; letter-spacing: 3px; opacity: .6; }
.site-header.scrolled .logo-text { color: var(--ink); }
/* Corporate logo */
.logo-main { font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 3px; color: var(--white); transition: color .5s; }
.logo-dot { display: inline-block; width: 6px; height: 6px; background: var(--sea-bright); border-radius: 50%; margin-left: 2px; }
.site-header.scrolled .logo-main { color: var(--ink); }

/* Desktop Nav */
.desk-nav { display: flex; align-items: center; gap: 36px; }
.desk-nav a { text-decoration: none; font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 2px; color: rgba(255,255,255,.55); transition: color .3s; position: relative; }
.desk-nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--sea-bright); transition: width .4s cubic-bezier(.16,1,.3,1); }
.desk-nav a:hover { color: var(--white); }
.desk-nav a:hover::after { width: 100%; }
.site-header.scrolled .desk-nav a { color: var(--steel); }
.site-header.scrolled .desk-nav a:hover { color: var(--ink); }
.nav-rsv { padding: 9px 28px; background: var(--sea) !important; color: #fff !important; border-radius: 2px; font-weight: 500 !important; letter-spacing: 2px !important; transition: all .3s !important; }
.nav-rsv::after { display: none !important; }
.nav-rsv:hover { background: var(--sea-mid) !important; transform: translateY(-1px); }

/* Hamburger */
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); background: transparent; cursor: pointer; z-index: 200; position: relative; transition: all .4s cubic-bezier(.16,1,.3,1); align-items: center; justify-content: center; flex-shrink: 0; }
.burger:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.site-header.scrolled .burger { border-color: var(--pearl); }
.site-header.scrolled .burger:hover { border-color: var(--sea); background: rgba(14,107,122,.04); }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--white); border-radius: 1px; position: absolute; left: 50%; transition: all .4s cubic-bezier(.16,1,.3,1); }
.burger span:nth-child(1) { transform: translate(-50%, -5px); }
.burger span:nth-child(2) { transform: translate(-50%, 0); }
.burger span:nth-child(3) { transform: translate(-50%, 5px); }
.site-header.scrolled .burger span { background: var(--ink); }
/* Open state → × （白背景メニュー上でダーク×） */
.burger.open { border-color: var(--pearl) !important; background: rgba(0,0,0,.03) !important; }
.burger.open span { background: var(--ink) !important; }
.burger.open span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: translate(-50%, 0) scaleX(0); }
.burger.open span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

/* Mobile Menu（白ベース） */
.mob-menu { position: fixed; inset: 0; z-index: 150; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .5s cubic-bezier(.16,1,.3,1); }
.mob-menu::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.mob-menu.open { opacity: 1; pointer-events: auto; }
.mob-menu-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0; width: 100%; max-width: 400px; padding: 0 32px; }
.mob-menu-inner a { text-decoration: none; font-size: 16px; font-weight: 300; color: var(--slate); letter-spacing: 4px; transition: all .4s cubic-bezier(.16,1,.3,1); padding: 18px 0; border-bottom: 1px solid var(--pearl); width: 100%; text-align: center; opacity: 0; transform: translateY(12px); }
.mob-menu.open .mob-menu-inner a { opacity: 1; transform: translateY(0); }
.mob-menu.open .mob-menu-inner a:nth-child(1) { transition-delay: .08s; }
.mob-menu.open .mob-menu-inner a:nth-child(2) { transition-delay: .14s; }
.mob-menu.open .mob-menu-inner a:nth-child(3) { transition-delay: .20s; }
.mob-menu.open .mob-menu-inner a:nth-child(4) { transition-delay: .26s; }
.mob-menu.open .mob-menu-inner a:nth-child(5) { transition-delay: .32s; }
.mob-menu.open .mob-menu-inner a:nth-child(6) { transition-delay: .38s; }
.mob-menu.open .mob-menu-inner a:nth-child(7) { transition-delay: .44s; }
.mob-menu-inner a:first-child { border-top: 1px solid var(--pearl); }
.mob-menu-inner a:hover { color: var(--sea); letter-spacing: 6px; }
.mob-menu .mob-rsv { margin-top: 32px; padding: 16px 48px !important; background: var(--sea); color: var(--white) !important; font-size: 13px !important; font-weight: 500; letter-spacing: 3px !important; border: none !important; border-radius: 2px; box-shadow: 0 4px 24px rgba(40,181,184,.25); transition: all .4s !important; }
.mob-menu .mob-rsv:hover { background: var(--sea-mid); transform: translateY(-2px) !important; box-shadow: 0 8px 32px rgba(40,181,184,.35); }

/* ═══ BUTTONS ═══ */
.btn-primary { display: inline-block; padding: 18px 44px; background: var(--sea); color: var(--white); border: none; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-decoration: none; transition: all .4s; font-family: 'Noto Sans JP', sans-serif; cursor: pointer; }
.btn-primary:hover { background: var(--sea-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,107,122,.25); }
.btn-glow { display: inline-block; padding: 18px 44px; background: var(--sea-bright); color: var(--white); border: none; font-size: 13px; font-weight: 500; letter-spacing: 2px; text-decoration: none; transition: all .4s; font-family: 'Noto Sans JP', sans-serif; cursor: pointer; box-shadow: 0 4px 24px rgba(40,181,184,.3); }
.btn-glow:hover { background: var(--sea-glow); color: var(--ink); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(40,181,184,.4); }
.btn-ghost { display: inline-block; padding: 18px 44px; background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.2); font-size: 13px; letter-spacing: 2px; text-decoration: none; transition: all .4s; font-family: 'Noto Sans JP', sans-serif; cursor: pointer; }
.btn-ghost:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.05); }

/* ═══ CTA (SUP SHOP style) ═══ */
.cta { position: relative; padding: 120px 60px; overflow: hidden; text-align: center; color: var(--white); }
.cta-bg { position: absolute; inset: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg-ov { position: absolute; inset: 0; background: linear-gradient(170deg, rgba(10,20,35,.8), rgba(14,80,100,.65), rgba(10,20,35,.85)); }
.cta-inner { position: relative; z-index: 1; }
.cta-label { font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 6px; text-transform: uppercase; color: var(--sea-glow); margin-bottom: 24px; }
.cta h2 { font-family: 'Playfair Display', serif; font-size: clamp(26px, 3.5vw, 40px); font-weight: 400; margin-bottom: 14px; }
.cta p { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.55); margin-bottom: 44px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* CTA Banner (NPO / 協会 style) */
.cta-banner { padding: 100px 60px; background: var(--ink); text-align: center; color: var(--white); }
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: clamp(24px, 3vw, 36px); font-weight: 400; margin-bottom: 14px; }
.cta-banner p { font-size: 14px; font-weight: 300; color: var(--cloud); margin-bottom: 40px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* CTA Corporate (gradient bg) */
.cta-orb { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); opacity: .12; background: var(--sea); top: -200px; right: -100px; }

/* ═══ FOOTER ═══ */
.site-footer { background: #3a4556; color: var(--cloud); padding: 72px 60px 36px; }
.ft-inner { max-width: 1100px; margin: 0 auto; }
.ft-top, .ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
.ft-brand .logo-text, .ft-brand .logo-main { color: var(--white); font-size: 14px; }
.ft-brand p { margin-top: 14px; font-size: 12px; line-height: 2.2; font-weight: 300; }
.ft-tel { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--white); text-decoration: none; font-family: 'DM Sans', sans-serif; font-size: 18px; letter-spacing: 1px; }
.ft-hd { font-family: 'DM Sans', sans-serif; font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--mist); margin-bottom: 18px; }
.ft-links { list-style: none; }
.ft-links li { margin-bottom: 10px; }
.ft-links a { color: var(--cloud); text-decoration: none; font-size: 12px; font-weight: 300; transition: color .3s; }
.ft-links a:hover { color: var(--white); }
.ft-bot { border-top: 1px solid rgba(255,255,255,.06); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.ft-copy { font-family: 'DM Sans', sans-serif; font-size: 10px; color: var(--mist); letter-spacing: 1px; }
.ft-sns { display: flex; gap: 10px; }
.ft-sns a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: all .3s; text-decoration: none; }
.ft-sns a:hover { border-color: var(--sea-bright); background: rgba(40,181,184,.1); }
.ft-sns svg { width: 12px; height: 12px; fill: var(--cloud); }

/* Floating Reserve */
.float-rsv { position: fixed; bottom: 24px; right: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; background: var(--sea); color: var(--white); font-size: 12px; font-weight: 500; letter-spacing: 2px; text-decoration: none; box-shadow: 0 8px 32px rgba(14,107,122,.35); transition: all .3s; opacity: 0; transform: translateY(20px); pointer-events: none; }
.float-rsv.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-rsv:hover { background: var(--sea-mid); transform: translateY(-2px); }

/* ═══ HEADER SNS ICONS ═══ */
.nav-sns { display: inline-flex; align-items: center; gap: 12px; margin-left: 8px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.1); }
.site-header.scrolled .nav-sns { border-left-color: var(--pearl); }
.nav-sns-icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; transition: opacity .3s; }
.nav-sns-icon svg { width: 14px; height: 14px; fill: rgba(255,255,255,.4); transition: fill .3s; }
.nav-sns-icon:hover svg { fill: var(--white); }
.site-header.scrolled .nav-sns-icon svg { fill: var(--mist); }
.site-header.scrolled .nav-sns-icon:hover svg { fill: var(--ink); }
.nav-sns-icon::after { display: none !important; }

/* Mobile SNS */
.mob-sns { display: flex; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--pearl); opacity: 0; transform: translateY(12px); transition: all .5s cubic-bezier(.16,1,.3,1); }
.mob-menu.open .mob-sns { opacity: 1; transform: translateY(0); transition-delay: .5s; }
.mob-sns a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--pearl); display: flex; align-items: center; justify-content: center; transition: all .3s; text-decoration: none; padding: 0 !important; }
.mob-sns a:hover { border-color: var(--sea); background: rgba(14,107,122,.06); }
.mob-sns svg { width: 16px; height: 16px; fill: var(--steel); }

/* ═══ PAGE HERO (sub pages) ═══ */
.page-hero { position: relative; padding: 180px 60px 80px; min-height: 480px; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background: url('') center/cover no-repeat; }
.page-hero-ov { position: absolute; inset: 0; background: linear-gradient(170deg, rgba(10,20,35,.7) 0%, rgba(14,80,100,.4) 40%, rgba(10,20,35,.75) 100%); }
.page-hero-ct { position: relative; z-index: 2; max-width: 1100px; margin: 0 auto; width: 100%; }
.breadcrumb { font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 2px; color: var(--cloud); margin-bottom: 24px; }
.breadcrumb a { color: var(--cloud); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.page-hero-en { font-family: 'DM Sans', sans-serif; font-size: 10px; letter-spacing: 6px; text-transform: uppercase; color: var(--sea-glow); margin-bottom: 16px; }
.page-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(32px, 5vw, 56px); font-weight: 400; color: var(--white); line-height: 1.3; margin-bottom: 16px; }
.page-hero-title em { font-style: italic; color: var(--sea-glow); }
.page-hero-sub { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.6); line-height: 2.2; max-width: 480px; }

/* ═══ DETAIL TABLE (shared) ═══ */
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table tr { border-bottom: 1px solid var(--pearl); }
.detail-table th { text-align: left; padding: 20px 24px 20px 0; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; vertical-align: top; width: 120px; }
.detail-table td { padding: 20px 0; font-size: 14px; color: var(--steel); line-height: 1.9; font-weight: 300; }

/* ═══ KEYFRAME ═══ */
@keyframes fu { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ═══ WORDPRESS GUTENBERG OVERRIDES ═══ */
.page-content { /* Gutenbergブロックの出力をそのまま表示 */ }
.page-content .wp-block-html { /* カスタムHTMLブロックのラッパー */ }

/* ═══ NPO section color override ═══ */
.is-npo .sec-label { color: var(--green); }
.is-npo .page-hero-en { color: var(--green-glow); }
.is-npo .page-hero-title em { color: var(--green-glow); }
.is-npo .btn-primary { background: var(--green); }
.is-npo .btn-primary:hover { background: var(--green-light); }
.is-npo .nav-rsv { background: var(--green) !important; }
.is-npo .cta-label { color: var(--green-glow); }

/* ═══ Association section color override ═══ */
.is-association .sec-label { color: var(--accent); }
.is-association .page-hero-en { color: var(--accent-glow); }
.is-association .page-hero-title em { color: var(--accent-glow); }
.is-association .btn-primary { background: var(--accent); }
.is-association .btn-primary:hover { background: var(--accent-mid); }
.is-association .cta-label { color: var(--accent-glow); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  section, .notice-sec { padding: 100px 40px; }
  .hdr { padding: 20px 40px; }
  .ft-top, .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
  .desk-nav { display: none; }
  .burger { display: flex; }
  section, .notice-sec { padding: 80px 24px; }
  .hdr { padding: 16px 24px; }
  .ft-top, .ft-grid { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: stretch; text-align: center; }
  .ft-bot { flex-direction: column; gap: 12px; }
  .page-hero { padding: 140px 24px 60px; min-height: 420px; }
  .detail-table th { display: block; padding-bottom: 4px; width: 100%; }
  .detail-table td { display: block; padding-top: 0; padding-bottom: 20px; }
}
