/*
Theme Name: 育星舎グループ リニューアル
Theme URI: https://ikuseisha.co.jp/
Description: 育星舎グループ本部HP リニューアル（Cocoon子テーマ）。紺×金×明朝の新デザイン。
Author: 育星舎グループ
Template: cocoon-master
Version: 0.1.0
*/

/* ===== 共通デザインCSS（トッププロトより） ===== */
  :root{
    --navy:#1f2a52; --navy-d:#161f3d; --gold:#b8963f; --gold-l:#d8be84;
    --ivory:#faf7f0; --ivory-d:#f2ece0; --ink:#2c2f3a; --line:#e7e1d4;
  }
  *{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{ margin:0; font-family:"Noto Sans JP",sans-serif; color:var(--ink);
    background:var(--ivory); line-height:1.9; letter-spacing:.02em; -webkit-font-smoothing:antialiased; }
  .mincho{ font-family:"Shippori Mincho",serif; }
  .wrap{ max-width:1120px; margin:0 auto; padding:0 24px; }
  a{ color:inherit; }
  .preview-bar{ background:var(--navy-d); color:#fff; font-size:.78rem; text-align:center; padding:7px 12px; letter-spacing:.04em; }
  .preview-bar b{ color:var(--gold-l); }

  /* ===== Header ===== */
  header.site{ position:sticky !important; top:0; z-index:100 !important; background:rgba(250,247,240,.97) !important;
    backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
  header.site .row{ display:flex !important; align-items:center; justify-content:space-between; height:68px; }
  header.site nav.gnav a{ color:var(--ink) !important; }
  .brand{ font-family:"Shippori Mincho",serif; font-weight:800; font-size:1.32rem; color:var(--navy); letter-spacing:.06em; }
  .brand small{ display:block; font-family:"Noto Sans JP"; font-weight:500; font-size:.6rem; letter-spacing:.34em; color:var(--gold); margin-top:1px; }
  nav.gnav{ display:flex; gap:30px; font-size:.86rem; font-weight:500; }
  nav.gnav a{ text-decoration:none; color:var(--ink); padding:6px 0; position:relative; }
  nav.gnav a::after{ content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background:var(--gold); transition:width .25s; }
  nav.gnav a:hover::after{ width:100%; }
  .nav-cta{ display:inline-flex; align-items:center; white-space:nowrap; flex:0 0 auto; width:auto; line-height:1; background:var(--navy); color:#fff !important; padding:9px 20px; border-radius:999px; font-size:.82rem; font-weight:700; text-decoration:none; letter-spacing:.04em; }
  /* hamburger */
  .burger{ display:none; flex-direction:column; justify-content:center; gap:5px; width:44px; height:44px; border:0; background:transparent; cursor:pointer; padding:0; margin-left:6px; }
  .burger span{ display:block; width:26px; height:2px; background:var(--navy); border-radius:2px; transition:transform .3s, opacity .2s; }
  .burger.open span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2){ opacity:0; }
  .burger.open span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
  /* mobile drawer */
  .m-nav{ position:fixed; inset:0 0 0 auto; width:min(82vw,340px); background:var(--navy-d); z-index:60;
    transform:translateX(100%); transition:transform .32s cubic-bezier(.4,0,.2,1); display:flex; flex-direction:column;
    padding:88px 30px 40px; box-shadow:-10px 0 40px rgba(0,0,0,.3); }
  .m-nav.open{ transform:translateX(0); }
  .m-nav a{ color:#e8e3d6; text-decoration:none; font-size:1.06rem; font-weight:600; padding:16px 0; border-bottom:1px solid rgba(255,255,255,.1); letter-spacing:.04em; }
  .m-nav a:last-of-type{ border-bottom:0; }
  .m-nav .m-cta{ margin-top:22px; background:var(--gold); color:var(--navy-d); text-align:center; border-radius:999px; padding:14px; font-weight:700; border-bottom:0; }
  .m-overlay{ position:fixed; inset:0; background:rgba(22,31,61,.5); z-index:55; opacity:0; visibility:hidden; transition:opacity .3s; }
  .m-overlay.open{ opacity:1; visibility:visible; }
  @media(max-width:820px){ nav.gnav{ display:none; } .nav-cta{ display:none; } .burger{ display:flex; } }

  /* ===== Hero ===== */
  /* カバー仕様: 動画を全画面背景にして文字をオーバーレイ（文字なしのカバー用動画前提） */
  .hero{ position:relative; overflow:hidden; color:#fff; background:#161f3d;
    min-height:600px; display:flex; align-items:center; }
  .hero-bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:0; transition:opacity 4.5s ease-in-out; }
  /* 動画終了後に背景でじわっと現れる 大きな透かしロゴ（カバー＝tint/textの後ろ） */
  .hero-logo{ position:absolute; inset:0; z-index:0; display:flex; align-items:center; justify-content:center;
    padding:24px; opacity:0; transition:opacity 4.5s ease-in-out; pointer-events:none; }
  .hero-logo .crest{ width:clamp(300px,48vw,640px); height:auto; max-height:80%; filter:drop-shadow(0 10px 40px rgba(0,0,0,.35)); }
  .hero.video-done .hero-bg{ opacity:0; }
  .hero.video-done .hero-logo{ opacity:.22; }
  .hero-tint{ transition:background 4.5s ease-in-out; }
  .hero.video-done .hero-tint{ background:linear-gradient(180deg, rgba(18,26,52,.8) 0%, rgba(18,26,52,.7) 45%, rgba(18,26,52,.83) 100%); }
  @media(max-width:600px){ .hero-logo .crest{ width:clamp(190px,62vw,340px); } }
  .hero-tint{ position:absolute; inset:0; z-index:1; pointer-events:none;
    background:linear-gradient(180deg, rgba(18,26,52,.85) 0%, rgba(18,26,52,.75) 45%, rgba(18,26,52,.88) 100%); }
  .hero .wrap{ position:relative; z-index:2; width:100%; padding:80px 24px; }
  @media(max-width:600px){
    .hero{ min-height:0; max-height:none; }
    .hero .wrap{ padding:48px 20px; }
    .hero .eyebrow{ margin-bottom:13px; font-size:.62rem; letter-spacing:.16em; }
    .hero h1{ font-size:1.5rem; line-height:1.5; margin-bottom:14px; }
    .hero p.lead{ font-size:.86rem; line-height:1.8; margin-bottom:22px; }
    .hero .cta-row{ gap:10px; }
    .hero .btn{ padding:12px 20px; font-size:.82rem; }
    .hero .stats{ gap:20px; margin-top:26px; padding-top:18px; }
    .hero .stats .s b{ font-size:1.6rem; }
    .hero .stats .s span{ font-size:.68rem; }
  }
  .hero .eyebrow{ display:inline-flex; align-items:center; gap:10px; font-size:.78rem; letter-spacing:.3em;
    color:var(--gold-l); margin-bottom:26px; }
  .hero .eyebrow::before{ content:""; width:34px; height:1px; background:var(--gold-l); }
  .hero h1{ font-family:"Shippori Mincho",serif; font-weight:800; font-size:clamp(2.1rem,5vw,3.5rem);
    line-height:1.5; margin:0 0 24px; letter-spacing:.04em; }
  .hero h1 .amp{ color:var(--gold-l); }
  /* 日本語の改行制御: 文節を inline-block で区切り、意味の切れ目だけで折り返す（全体共通） */
  .ln{ display:inline-block; }
  .hero h1{ word-break:normal; overflow-wrap:anywhere; }
  .hero p.lead{ font-size:1.06rem; max-width:640px; line-height:2.1; color:#ede9df; margin:0 0 40px; }
  .hero .cta-row{ display:flex; flex-wrap:wrap; gap:16px; }
  .btn{ display:inline-block; padding:15px 34px; border-radius:999px; font-weight:700; text-decoration:none;
    letter-spacing:.05em; font-size:.95rem; transition:transform .18s, box-shadow .18s; }
  .btn-gold{ background:var(--gold); color:#fff; box-shadow:0 8px 22px rgba(184,150,63,.34); }
  .btn-gold:hover{ transform:translateY(-2px); box-shadow:0 12px 26px rgba(184,150,63,.45); }
  .btn-ghost{ border:1.5px solid rgba(255,255,255,.55); color:#fff; }
  .btn-ghost:hover{ background:rgba(255,255,255,.1); }
  .hero .stats{ display:flex; gap:46px; flex-wrap:wrap; margin-top:64px; padding-top:38px; border-top:1px solid rgba(255,255,255,.16); }
  .hero .stats .s b{ font-family:"Shippori Mincho",serif; font-size:2.4rem; color:#fff; display:block; line-height:1.1; }
  .hero .stats .s span{ font-size:.78rem; letter-spacing:.12em; color:#cfd3e0; }
  .hero .stats .s b em{ font-style:normal; font-size:1.1rem; color:var(--gold-l); margin-left:3px; }

  /* ===== Section base ===== */
  section{ padding:90px 0; }
  .sec-head{ text-align:center; margin-bottom:56px; }
  .sec-head .en{ font-size:.72rem; letter-spacing:.34em; color:var(--gold); font-weight:700; }
  .sec-head h2{ font-family:"Shippori Mincho",serif; font-weight:700; font-size:clamp(1.6rem,3.4vw,2.2rem);
    color:var(--navy); margin:.5em 0 0; letter-spacing:.05em; }
  .sec-head p{ color:#6d6a60; font-size:.95rem; margin:.9em auto 0; max-width:600px; }

  /* ===== 理念メッセージ ===== */
  .message{ background:var(--ivory); }
  .manifesto{ max-width:780px; margin:0 auto; text-align:center; font-family:"Shippori Mincho",serif; }
  .manifesto .blk{ margin:0 0 1.7em; font-size:clamp(1.02rem,2.1vw,1.24rem); line-height:2.35; color:#3a3b44; letter-spacing:.04em; }
  .manifesto .blk:last-of-type{ margin-bottom:0; }
  .manifesto .l{ display:block; }
  .manifesto .em{ color:var(--navy); font-weight:700; }
  .manifesto .hot{ color:var(--gold); font-weight:700; }
  .manifesto .close{ margin-top:2.3em; font-size:clamp(1.35rem,3.2vw,1.85rem); font-weight:700; color:var(--navy); letter-spacing:.06em; line-height:1.8; }
  .manifesto .close::before{ content:""; display:block; width:48px; height:2px; background:var(--gold); margin:0 auto 1em; }
  @media(max-width:600px){ .manifesto .blk{ font-size:.9rem; line-height:2.05; letter-spacing:.01em; } .manifesto .close{ font-size:1.18rem; } }

  /* ===== 塾長紹介 ===== */
  .leaders{ background:var(--ivory-d); }
  .leader-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
  @media(max-width:900px){ .leader-grid{ grid-template-columns:repeat(2,1fr); } }
  @media(max-width:480px){ .leader-grid{ grid-template-columns:repeat(2,1fr); gap:16px; } }
  .leader{ background:#fff; border:1px solid var(--line); border-radius:16px; padding:28px 20px 24px; text-align:center; box-shadow:0 8px 22px rgba(31,42,82,.06); position:relative; }
  .leader .ph{ width:104px; height:104px; border-radius:50%; margin:0 auto 16px; background:var(--ivory-d); border:3px solid var(--accent,#1f2a52); display:flex; align-items:center; justify-content:center; overflow:hidden; }
  .leader .ph svg{ width:62px; height:62px; opacity:.32; }
  .leader .ph img{ width:100%; height:100%; object-fit:cover; }
  .leader .cat{ font-size:.72rem; font-weight:700; color:var(--accent,#1f2a52); letter-spacing:.06em; }
  .leader .nm{ font-family:"Shippori Mincho",serif; font-size:1.18rem; color:var(--navy); margin:4px 0 2px; font-weight:700; }
  .leader .nm small{ font-size:.66rem; color:#9a958a; font-weight:500; letter-spacing:.08em; display:block; margin-top:3px; }
  .leader .badge{ display:inline-block; background:var(--gold); color:#fff; font-size:.64rem; font-weight:700; border-radius:999px; padding:2px 10px; margin-bottom:8px; letter-spacing:.06em; }
  .leader .msg{ font-size:.82rem; color:#6d6a60; margin:10px 0 0; line-height:1.85; min-height:2.4em; }
  .leader .msg.ph-txt{ color:#bdb8ab; font-style:normal; }

  /* ===== 選ばれる理由 ===== */
  .reasons{ background:var(--ivory-d); }
  .reason-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
  .reason{ background:#fff; border:1px solid var(--line); border-radius:14px; padding:38px 30px; text-align:center;
    transition:transform .2s, box-shadow .2s; }
  .reason:hover{ transform:translateY(-4px); box-shadow:0 16px 34px rgba(31,42,82,.1); }
  .reason .ic{ width:60px; height:60px; margin:0 auto 22px; border-radius:50%; background:linear-gradient(135deg,#2c396b,#1f2a52);
    display:flex; align-items:center; justify-content:center; color:var(--gold-l); font-size:1.5rem; }
  .reason h3{ font-family:"Shippori Mincho",serif; font-size:1.18rem; color:var(--navy); margin:0 0 12px; letter-spacing:.03em; }
  .reason p{ font-size:.9rem; color:#615e57; margin:0; line-height:1.95; }
  @media(max-width:760px){ .reason-grid{ grid-template-columns:1fr; } }

  /* ===== 部門紹介（統一カード） ===== */
  .dept-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
  .dept{ background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; text-decoration:none;
    color:inherit; display:flex; flex-direction:column; transition:transform .2s, box-shadow .2s; }
  .dept:hover{ transform:translateY(-5px); box-shadow:0 20px 40px rgba(31,42,82,.14); }
  .dept .photo{ height:158px; position:relative; display:flex; align-items:flex-end; padding:16px;
    background-size:cover; background-position:center; }
  .dept .photo::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.5)); }
  .dept .photo .cat{ position:relative; z-index:2; color:#fff; font-size:.72rem; letter-spacing:.1em;
    background:rgba(0,0,0,.28); backdrop-filter:blur(2px); padding:4px 12px; border-radius:999px; }
  .dept .body{ padding:24px 24px 26px; flex:1; display:flex; flex-direction:column; border-top:4px solid var(--accent,#1f2a52); }
  .dept .dept-cat{ display:inline-block; font-size:.68rem; font-weight:700; color:var(--accent,#1f2a52); letter-spacing:.14em; margin:0 0 7px; position:relative; padding-left:20px; }
  .dept .dept-cat::before{ content:""; position:absolute; left:0; top:50%; width:13px; height:2px; background:var(--accent,#1f2a52); transform:translateY(-50%); }
  .dept h3{ font-family:"Shippori Mincho",serif; font-size:1.3rem; color:var(--navy); margin:0 0 4px; letter-spacing:.04em; }
  .dept .tag{ font-size:.78rem; color:var(--accent,#1f2a52); font-weight:700; letter-spacing:.06em; margin-bottom:12px; }
  .dept .grades{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 16px; }
  .dept .grades .g{ font-size:.66rem; font-weight:700; letter-spacing:.04em; color:var(--accent,#1f2a52);
    border:1px solid currentColor; padding:3px 10px; border-radius:999px; line-height:1.05; opacity:.85; }
  .dept p{ font-size:.88rem; color:#615e57; margin:0 0 18px; line-height:1.9; flex:1; }
  .dept .more{ font-size:.82rem; font-weight:700; color:var(--navy); display:inline-flex; align-items:center; gap:7px; }
  .dept .more::after{ content:"→"; transition:transform .2s; }
  .dept:hover .more::after{ transform:translateX(5px); }
  /* マスコットカード（8部門で余る1枠を埋める） */
  .dept.dept-mascot{ background:linear-gradient(160deg,#fbf8f1,#f1ead9); border:1px dashed #d8cdae;
    align-items:center; justify-content:center; text-align:center; padding:30px 26px; }
  .dept.dept-mascot:hover{ box-shadow:0 18px 36px rgba(184,150,63,.18); }
  .dept.dept-mascot img{ width:180px; height:auto; margin:2px auto 16px;
    filter:drop-shadow(0 10px 16px rgba(31,42,82,.2)); transform-origin:50% 92%;
    animation:ikuFloat 3.2s ease-in-out infinite; }
  .dept.dept-mascot:hover img{ animation-duration:1.4s; }
  @keyframes ikuFloat{ 0%,100%{ transform:translateY(0) rotate(-2deg); } 50%{ transform:translateY(-11px) rotate(2deg); } }
  @media(prefers-reduced-motion:reduce){ .dept.dept-mascot img{ animation:none; } }
  .dept.dept-mascot h3{ font-family:"Shippori Mincho",serif; font-size:1.18rem; color:var(--navy); margin:0 0 8px; letter-spacing:.04em; }
  .dept.dept-mascot p{ font-size:.84rem; color:#6a6557; line-height:1.95; margin:0 0 16px; }
  .dept.dept-mascot .more{ justify-content:center; }
  .dept.dept-mascot .name-sub{ display:block; font-size:.64rem; letter-spacing:.18em; color:var(--gold); font-weight:700; margin-bottom:10px; }
  @media(max-width:900px){ .dept-grid{ grid-template-columns:repeat(2,1fr); } }
  @media(max-width:600px){ .dept-grid{ grid-template-columns:1fr; } }

  /* ===== 教場マップ ===== */
  #kyojo-map{ background:var(--ivory-d); }
  #mapwrap2{ background:#efe7d6; border:1px solid var(--line); border-radius:18px; padding:8px; box-shadow:0 14px 34px rgba(31,42,82,.1); }
  #map2{ height:540px; border-radius:12px; background:#f4efe4; }
  @media(max-width:600px){ #map2{ height:420px; } }
  .leaflet-container{ background:#f4efe4; font-family:"Noto Sans JP",sans-serif; }
  .ward-tip{ font-size:12px; font-weight:700; color:#3b3a36; text-align:center; white-space:nowrap; background:none!important; border:none!important; box-shadow:none!important; text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 3px #fff; }
  .pop-ttl{ font-family:"Shippori Mincho",serif; font-weight:700; color:var(--navy); font-size:1.02rem; }
  .pop-sta{ font-size:.74rem; color:var(--gold); font-weight:700; margin:2px 0 7px; }
  .pop-list{ font-size:.82rem; color:#444; margin:0 0 9px; padding:0; list-style:none; }
  .pop-list li{ padding-left:13px; position:relative; }
  .pop-list li::before{ content:"・"; position:absolute; left:0; }
  .pop-link{ display:inline-block; background:var(--navy); color:#fff !important; text-decoration:none; font-size:.78rem; font-weight:700; padding:6px 14px; border-radius:999px; }

  /* ===== 帯CTA ===== */
  .band{ background:linear-gradient(135deg,#1f2a52,#161f3d); color:#fff; text-align:center; padding:74px 0; position:relative; overflow:hidden; }
  .band::before{ content:"育星舎"; position:absolute; font-family:"Shippori Mincho",serif; font-size:18rem; color:rgba(255,255,255,.03);
    top:50%; left:50%; transform:translate(-50%,-50%); white-space:nowrap; pointer-events:none; }
  /* マーク付きウォーターマーク(講師募集の帯) */
  .band-mark::before{ content:none; }
  .band-mark .wm{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:.06em; pointer-events:none; z-index:0; }
  .band-mark .wm-mark{ width:13.5rem; height:13.5rem; flex:0 0 auto; opacity:.09; }
  .band-mark .wm-txt{ font-family:"Shippori Mincho",serif; font-size:18rem; line-height:1; color:rgba(255,255,255,.05); white-space:nowrap; }
  .band-mark .wrap{ position:relative; z-index:1; }
  .band h2{ font-family:"Shippori Mincho",serif; font-size:clamp(1.5rem,3.5vw,2.1rem); margin:0 0 14px; letter-spacing:.05em; position:relative; }
  .band p{ color:#d3d6e2; margin:0 0 34px; position:relative; }

  /* ===== お知らせ ===== */
  .news-list{ max-width:760px; margin:0 auto; }
  .news-item{ display:flex; gap:22px; padding:20px 4px; border-bottom:1px solid var(--line); align-items:center; text-decoration:none; color:inherit; transition:background .15s; }
  .news-item:hover{ background:var(--ivory-d); }
  .news-item time{ font-size:.8rem; color:#9a958a; min-width:96px; font-weight:500; }
  .news-item .tg{ font-size:.68rem; color:#fff; background:var(--gold); padding:3px 11px; border-radius:999px; white-space:nowrap; }
  .news-item .ttl{ font-size:.94rem; font-weight:500; }
  /* 重要なお知らせ(先頭固定・アイキャッチ) */
  .news-feat{ max-width:760px; margin:0 auto 26px; display:grid; gap:16px; }
  .news-feat a{ display:flex; gap:0; text-decoration:none; color:inherit; background:#fff; border:1px solid var(--gold-l); border-radius:14px; overflow:hidden; box-shadow:0 10px 30px rgba(184,150,63,.16); transition:transform .15s, box-shadow .15s; }
  .news-feat a:hover{ transform:translateY(-2px); box-shadow:0 16px 36px rgba(184,150,63,.24); }
  .news-feat .img{ flex:0 0 220px; background-size:cover; background-position:center; background-color:var(--ivory-d); min-height:140px; }
  .news-feat .bd{ padding:20px 24px; display:flex; flex-direction:column; justify-content:center; }
  .news-feat .pin{ display:inline-block; align-self:flex-start; background:var(--gold); color:#fff; font-size:.66rem; font-weight:700; border-radius:999px; padding:3px 12px; letter-spacing:.06em; margin-bottom:8px; }
  .news-feat time{ font-size:.78rem; color:#9a958a; }
  .news-feat h3{ font-family:"Shippori Mincho",serif; font-size:1.14rem; color:var(--navy); margin:4px 0 0; line-height:1.6; }
  @media(max-width:600px){ .news-feat a{ flex-direction:column; } .news-feat .img{ flex-basis:auto; width:100%; height:170px; } }

  /* ===== Footer ===== */
  footer.site{ background:var(--navy-d); color:#cfd2dd; padding:60px 0 28px; font-size:.86rem; }
  footer .cols{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:36px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.12); }
  footer .brand2{ font-family:"Shippori Mincho",serif; font-size:1.4rem; color:#fff; letter-spacing:.06em; }
  footer .brand2 small{ display:block; font-family:"Noto Sans JP"; font-size:.62rem; letter-spacing:.3em; color:var(--gold-l); margin-top:6px; }
  footer .links{ display:flex; gap:50px; flex-wrap:wrap; }
  footer .links h4{ color:#fff; font-size:.8rem; letter-spacing:.1em; margin:0 0 14px; }
  footer .links a{ display:block; color:#cfd2dd; text-decoration:none; padding:4px 0; font-size:.82rem; }
  footer .links a:hover{ color:var(--gold-l); }
  footer .dept-grid{ display:grid; grid-template-columns:auto auto; column-gap:40px; }
  footer .copy{ text-align:center; padding-top:24px; font-size:.74rem; color:#8b8fa0; letter-spacing:.06em; }

  .reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s ease, transform .8s cubic-bezier(.22,.61,.36,1); }
  .reveal.in{ opacity:1; transform:none; }
  @media(prefers-reduced-motion:reduce){ .reveal{ opacity:1; transform:none; } }
