/* style.css - 明るいベース（全ページ共通） */
:root{
  --bg:#f7fbff;
  --surface:#ffffff;
  --surface2:rgba(255,255,255,.78);
  --text:#0f172a;
  --muted:#475569;
  --line:rgba(15,23,42,.10);

  --brand:#1b4fd6;
  --brand2:#0ea5e9;
  --accent:#ff5aa5;

  --shadow:0 14px 40px rgba(2,6,23,.10);
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  color:var(--text);
  background: var(--bg);
  line-height:1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; text-underline-offset: 3px; }
img{ max-width:100%; height:auto; display:block; }

.container{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  padding: 12px 16px;
}
.logo{ display:flex; align-items:center; gap: 12px; }
.logo-icon img{ width:44px; height:44px; object-fit:contain; }
.logo-text-main{ font-weight: 900; letter-spacing:.02em; }
.logo-text-sub{ font-size: 12px; color: var(--muted); }

.nav{ display:flex; gap: 12px; align-items:center; }
.nav a{
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  color: rgba(15,23,42,.78);
  transition: background .15s ease, color .15s ease;
}
.nav a:hover{ background: rgba(27,79,214,.08); color: var(--text); text-decoration:none; }
.nav a.is-active{ background: rgba(27,79,214,.12); color: var(--text); text-decoration:none; }

.nav-toggle{
  display:none;
  border:0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 12px;
}
.nav-toggle:hover{ background: rgba(27,79,214,.08); }

/* ===== Hero ===== */
.hero{ position: relative; color: #fff; }
.hero-bg{ position: relative; height: min(78vh, 640px); }
.hero-bg img{
  width:100%;
  height:100%;
  object-fit: cover;
  filter: brightness(1.18) saturate(1.08) contrast(1.02);
}
.hero-inner{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 56px 0;
}
.hero-badge{
  display:inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  font-weight: 900;
  font-size: 13px;
  margin-bottom: 14px;
}
.hero-title{
  margin:0 0 14px;
  font-size: clamp(34px, 4.4vw, 58px);
  line-height:1.12;
  letter-spacing: .01em;
  text-shadow: 0 20px 46px rgba(0,0,0,.40);
}
.hero-lead{
  max-width: 58ch;
  margin:0 0 18px;
  color: rgba(255,255,255,.88);
  text-shadow: 0 16px 30px rgba(0,0,0,.25);
}
.hero-actions{ display:flex; gap: 12px; flex-wrap:wrap; }

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: 0 14px 28px rgba(2,6,23,.14); text-decoration:none; }
.btn-primary{
  background: linear-gradient(135deg, rgba(27,79,214,.98), rgba(14,165,233,.98));
  color:#fff;
  box-shadow: 0 16px 40px rgba(27,79,214,.22);
}
.btn-ghost{
  background: rgba(255,255,255,.14);
  color:#fff;
  border-color: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover{ background: rgba(255,255,255,.18); }

.text-link{
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}
.text-link:hover{ text-decoration: underline; }

/* ===== Sections ===== */
.section{ padding: 60px 0; }
.section-header{ margin-bottom: 18px; }
.section-title{ font-size: 28px; margin:0 0 10px; }
.section-lead{ margin:0; color: var(--muted); }

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: 18px;
}
.card{
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.06);
}
.card-title{ margin: 0 0 6px; font-size: 18px; }
.card-text{ margin: 0; color: rgba(15,23,42,.74); }

/* ===== Footer ===== */
.site-footer{
  background: #ffffff;
  border-top: 1px solid var(--line);
}
.footer-inner{
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
  display:flex;
  justify-content:space-between;
  gap: 16px;
  flex-wrap:wrap;
  color: rgba(15,23,42,.80);
}
.footer-nav{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
}
.footer-nav a{ color: rgba(15,23,42,.86); font-weight: 800; }
.footer-copy{
  text-align:center;
  padding: 10px 0 16px;
  color: rgba(15,23,42,.58);
  font-size: 12px;
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; }
  .hero-inner{ padding: 44px 0; }
}
@media (max-width: 900px){
  .nav{ display:none; }
  .nav-toggle{ display:block; }
}
/* 本文エリアをうっすら透けさせる（背景画像が見える） */
body.page-home {
  background: transparent;
}
/* 背景画像（固定） */
body.page-home::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("hero.png") center 60% / cover no-repeat fixed;
  filter: brightness(1.08) saturate(1.05);
}
/* 読みやすさ用の薄いベール（透け感は残す） */
body.page-home::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(247,251,255,.72);
}
/* 本文（団体紹介以降）をガラス風に */
.page-home .content-fade .container{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(2,6,23,.10);
}
.page-home .content-fade .card{
  background: rgba(255,255,255,.88);
}
@media (max-width: 640px){
  .page-home .content-fade .container{ padding: 16px; }
}
/* ===== Contact page: 2-column layout fixes (PC) ===== */
@media (min-width: 981px){
  /* 2 cards only: avoid "3-column with 1 empty" */
  .cards.cards-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 「メールでのお問い合わせ」左 + 写真右 */
  .cards.contact-split{
    grid-template-columns: 1.25fr 0.75fr;
    align-items: stretch;
  }
}

/* Photo card styling */
.cards.contact-split .contact-photo{
  padding: 0;
  overflow: hidden;
}
.cards.contact-split .contact-photo img{
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}
.cards.contact-split .mini-note{
  padding: 12px 16px 16px;
  margin: 0;
  color: rgba(15,23,42,.74);
  font-weight: 700;
}


/* フッター：YouTubeアイコン */
.footer-sns{
  display:flex;
  align-items:center;
}
.sns-icon{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(2,6,23,.08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.sns-icon:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(2,6,23,.12);
}
.sns-icon:focus-visible{
  outline: 3px solid rgba(27,79,214,.35);
  outline-offset: 3px;
}


/* ===== Page Hero (history/miryoku) ===== */
.page-hero{
  margin: 14px 0 18px;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.page-hero img{
  width:100%;
  height:auto;
  display:block;
}


/* Bottom illustration */
.page-hero--bottom{ margin-top: 22px; }


/* nav: allow wrap when menu items increase */
@media (max-width: 980px){
  .nav{ flex-wrap: wrap; }
}



/* 教場一覧：教場名リンク（ボタン風） */
.policy-dojo-name a{
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .42em .78em;
  border-radius: 999px;
  background: rgba(29,78,216,.10);
  border: 1px solid rgba(29,78,216,.22);
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(29,78,216,.10);
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.policy-dojo-name a::after{
  content: "›";
  font-size: 1.05em;
  line-height: 1;
  transform: translateY(-.02em);
}
.policy-dojo-name a:hover{
  color: #123aa2;
  background: rgba(29,78,216,.16);
  border-color: rgba(29,78,216,.34);
  box-shadow: 0 10px 22px rgba(29,78,216,.16);
  transform: translateY(-1px);
}
.policy-dojo-name a:active{
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(29,78,216,.10);
}
.policy-dojo-name a:visited{
  color: #1d4ed8;
}
.policy-dojo-name a:focus-visible{
  outline: 3px solid rgba(37,99,235,.22);
  outline-offset: 2px;
}

