/* =========================================================
   歯科成功大全 共通CSS
   ヘッダー・フッター共通スタイル

   想定ファイル名：
   /assets/css/ssk-header-footer.css

   注意：
   CSSファイルに入れる場合、<style>タグは不要です。
   このファイルは、ヘッダー4種類＋共通フッターで使い回す前提です。
========================================================= */


/* =========================================================
   1. 共通カラー設定
========================================================= */

:root{
  --ssk-white:#FFFFFF;
  --ssk-blue:#3498DB;
  --ssk-mint:#A8E6CE;
  --ssk-yellow:#FFD93D;
  --ssk-gray:#4A4A4A;
}



/* =========================================================
   2. ヘッダー共通スタイル
========================================================= */

.ssk-header-wrap,
.ssk-header-wrap *,
.ssk-header-wrap *::before,
.ssk-header-wrap *::after{
  box-sizing:border-box;
}

/* 
   ヘッダーの標準色設定。
   ブランド別クラスが付いていない場合は、歯科成功大全カラーになる。
*/
.ssk-header-wrap{
  --ssk-header-main:#3498DB;

  position:fixed;
  top:0;
  left: 0;
  right: 0;
  z-index:9999;
  width:100%;
  background:rgba(255,255,255,0.96);
  backdrop-filter: none !important;
  /* backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px); */
  border-bottom:1px solid rgba(74,74,74,0.10);
}

/* =========================
   ヘッダー：ブランド別カラー設定
========================= */

/* 歯科成功大全：水色 */
.ssk-header--shikaseikou{
  --ssk-header-main:#3498DB;
}

/* 歯科医院経営大全：歯科成功大全と同じ水色 */
.ssk-header--management{
  --ssk-header-main:#3498DB;
}

/* AYM-D：臨床・学術系のブルー */
.ssk-header--aymd{
  --ssk-header-main:#1E88E5;
}

/* AYM-S：経営サポート系のグリーン */
.ssk-header--ayms{
  --ssk-header-main:#2E7D32;
}


/* =========================
   ヘッダー最上部 H1帯
========================= */

.ssk-header-topbar{
  width:100%;
  background:var(--ssk-header-main);
  border-bottom:1px solid rgba(255,255,255,0.35);
}

.ssk-header-topbar__inner{
  max-width:1280px;
  margin:0 auto;
  padding:4px 24px;
}

.ssk-header-topbar h1{
  margin:0;
  color:#FFFFFF;
  font-size:12px;
  font-weight:600;
  line-height:1.5;
  letter-spacing:0.03em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

@media (max-width:1040px){
  .ssk-header-topbar__inner{
    padding:4px 16px;
  }

  .ssk-header-topbar h1{
    font-size:11px;
  }
}

/* =========================
   ヘッダー最上部 H1帯：ここまで
========================= */

/* =========================================================
   ここから下は通常ヘッダー本体
========================================================= */

.ssk-header{
  max-width:1280px;
  margin:0 auto;
  padding:14px 24px;
  display:flex;
  align-items:center;
  gap:24px;
}

.ssk-header__logo{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  text-decoration:none;
  min-width:0;
}

.ssk-header__logo img{
  display:block;
  width:min(320px, 30vw);
  min-width:180px;
  height:auto;
}

.ssk-nav-toggle{
  display:none;
}

.ssk-header__hamburger{
  display:none;
}

.ssk-nav{
  margin-left:auto;
  min-width:0;
}

.ssk-nav__list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:18px;
}

.ssk-nav__item{
  position:relative;
  flex:0 0 auto;
}

.ssk-nav__item > a{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:6px 2px;
  color:var(--ssk-gray);
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  letter-spacing:0.01em;
  transition:color .25s ease;
}

.ssk-nav__item > a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-3px;
  width:0;
  height:3px;
  border-radius:999px;
  background:var(--ssk-yellow);
  transition:width .25s ease;
}

.ssk-nav__item > a:hover,
.ssk-nav__item > a:focus{
  color:var(--ssk-blue);
  outline:none;
}

.ssk-nav__item > a:hover::after,
.ssk-nav__item > a:focus::after{
  width:100%;
}


/* =========================================================
   3. ヘッダー内 ブランド一覧メガメニュー
========================================================= */

.ssk-mega{
  position:relative;
}

.ssk-mega__summary{
  list-style:none;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  padding:8px 14px;
  border-radius:999px;
  color:var(--ssk-gray);
  background:var(--ssk-white);
  border:1px solid transparent;
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  letter-spacing:0.01em;
  cursor:pointer;
  transition:
    color .25s ease,
    background-color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.ssk-mega__summary::-webkit-details-marker{
  display:none;
}

.ssk-mega__summary::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  background:rgba(168,230,206,0);
  transition:background-color .25s ease;
  z-index:0;
}

.ssk-mega__summary::after{
  content:"▼";
  position:relative;
  z-index:1;
  font-size:10px;
  color:var(--ssk-blue);
  transform:translateY(-1px);
  transition:transform .25s ease, color .25s ease;
}

.ssk-mega__summary span,
.ssk-mega__summary{
  z-index:1;
}

.ssk-mega__summary:hover,
.ssk-mega__summary:focus{
  color:var(--ssk-blue);
  border-color:rgba(52,152,219,0.20);
  box-shadow:0 8px 20px rgba(74,74,74,0.06);
  outline:none;
}

.ssk-mega__summary:hover::before,
.ssk-mega__summary:focus::before{
  background:rgba(168,230,206,0.18);
}

.ssk-mega[open] > .ssk-mega__summary{
  color:var(--ssk-blue);
  border-color:rgba(52,152,219,0.24);
  box-shadow:0 10px 22px rgba(74,74,74,0.08);
}

.ssk-mega[open] > .ssk-mega__summary::before{
  background:rgba(168,230,206,0.24);
}

.ssk-mega[open] > .ssk-mega__summary::after{
  transform:translateY(-1px) rotate(180deg);
}

.ssk-mega__panel{
  position:absolute;
  top:calc(100% + 18px);
  left:0;
  right:auto;
  width:500px;
  padding:22px;
  background:var(--ssk-white);
  border:1px solid rgba(74,74,74,0.10);
  border-radius:22px;
  box-shadow:
    0 22px 44px rgba(74,74,74,0.10),
    0 6px 14px rgba(74,74,74,0.04);
  opacity:0;
  transform:translateY(10px);
  transform-origin:top left;
  animation:sskMegaFadeIn .24s ease forwards;
  overflow:hidden;
}

.ssk-mega__panel::before{
  content:"";
  position:absolute;
  top:0;
  left:22px;
  right:22px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(
    90deg,
    var(--ssk-blue) 0%,
    var(--ssk-mint) 64%,
    var(--ssk-yellow) 100%
  );
}

@keyframes sskMegaFadeIn{
  from{
    opacity:0;
    transform:translateY(10px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.ssk-mega__head{
  margin:6px 0 16px;
  padding:0 2px;
  font-size:12px;
  font-weight:700;
  line-height:1.5;
  letter-spacing:0.08em;
  color:var(--ssk-blue);
}

.ssk-mega__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.ssk-mega__link{
  position:relative;
  display:block;
  padding:16px 18px 16px 20px;
  text-decoration:none;
  color:var(--ssk-gray);
  background:var(--ssk-white);
  border:1px solid rgba(74,74,74,0.08);
  border-radius:16px;
  transition:
    transform .22s ease,
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.ssk-mega__link::before{
  content:"";
  position:absolute;
  top:14px;
  bottom:14px;
  left:0;
  width:4px;
  border-radius:0 999px 999px 0;
  background:transparent;
  transition:background-color .22s ease;
}

.ssk-mega__link:hover,
.ssk-mega__link:focus{
  background:rgba(168,230,206,0.16);
  border-color:rgba(52,152,219,0.26);
  box-shadow:0 10px 24px rgba(74,74,74,0.08);
  transform:translateY(-2px);
  outline:none;
}

.ssk-mega__link:hover::before,
.ssk-mega__link:focus::before{
  background:var(--ssk-blue);
}

.ssk-mega__label{
  display:block;
  margin-bottom:6px;
  font-size:15px;
  font-weight:700;
  line-height:1.45;
  color:var(--ssk-gray);
}

.ssk-mega__desc{
  display:block;
  font-size:13px;
  line-height:1.75;
  color:var(--ssk-gray);
  opacity:0.88;
}


/* =========================================================
   4. ヘッダーCTAボタン
========================================================= */

.ssk-nav__cta{
  margin-left:2px;
}

.ssk-nav__cta a{
  position:relative;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:6px 18px;
  border-radius:999px;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  line-height:1.25;
  letter-spacing:0.01em;
  color:var(--ssk-white);
  background:linear-gradient(135deg, var(--ssk-blue) 0%, #2f8bcc 100%);
  box-shadow:0 10px 22px rgba(52,152,219,0.20);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    background .25s ease,
    color .25s ease;
}

/* hover時は水色×黄色グラデーションではなく、単色の黄色 */
.ssk-nav__cta a:hover,
.ssk-nav__cta a:focus{
  transform:translateY(-2px);
  box-shadow:0 14px 26px rgba(255,217,61,0.28);
  background:#FFD93D;
  color:#4A4A4A;
  outline:none;
}

.ssk-nav__cta-main{
  display:block;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}

.ssk-nav__cta-sub{
  display:block;
  margin-top:2px;
  font-size:12px;
  font-weight:700;
  line-height:1.2;
  white-space:nowrap;
}


/* =========================================================
   5. アクセシビリティ補助
========================================================= */

.ssk-sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}


/* =========================================================
   6. ヘッダー：タブレット対応
========================================================= */

@media (max-width:1180px){
  .ssk-header{
    padding:12px 18px;
    gap:16px;
  }

  .ssk-header__logo img{
    width:min(270px, 42vw);
  }

  .ssk-nav__list{
    gap:14px;
  }

  .ssk-nav__item > a,
  .ssk-mega__summary,
  .ssk-nav__cta a{
    font-size:13px;
  }

  .ssk-nav__cta a{
    padding:6px 15px;
  }

  .ssk-nav__cta-main{
    font-size:12px;
  }

  .ssk-nav__cta-sub{
    font-size:11px;
  }
}


/* =========================================================
   7. ヘッダー：スマホ対応
========================================================= */

@media (max-width:1040px){
  .ssk-header{
    padding:14px 16px;
    gap:14px;
    flex-wrap:wrap;
  }

  .ssk-header__logo img{
    width:min(250px, 62vw);
    min-width:160px;
  }

  .ssk-header__hamburger{
    margin-left:auto;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border:1px solid rgba(74,74,74,0.10);
    border-radius:14px;
    background:var(--ssk-white);
    cursor:pointer;
    position:relative;
    box-shadow:0 6px 16px rgba(74,74,74,0.04);
  }

  .ssk-header__hamburger span{
    position:absolute;
    width:20px;
    height:2px;
    background:var(--ssk-gray);
    transition:transform .25s ease, opacity .25s ease, top .25s ease;
  }

  .ssk-header__hamburger span:nth-child(2){ top:16px; }
  .ssk-header__hamburger span:nth-child(3){ top:22px; }
  .ssk-header__hamburger span:nth-child(4){ top:28px; }

  .ssk-nav-toggle:checked + .ssk-header__hamburger span:nth-child(2){
    top:22px;
    transform:rotate(45deg);
  }

  .ssk-nav-toggle:checked + .ssk-header__hamburger span:nth-child(3){
    opacity:0;
  }

  .ssk-nav-toggle:checked + .ssk-header__hamburger span:nth-child(4){
    top:22px;
    transform:rotate(-45deg);
  }

  .ssk-nav{
    display:none;
    width:100%;
    order:3;
    margin-left:0;
    padding-top:8px;
  }

  .ssk-nav-toggle:checked ~ .ssk-nav{
    display:block;
  }

  .ssk-nav__list{
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:16px 0 8px;
    border-top:1px solid rgba(74,74,74,0.10);
  }

  .ssk-nav__item > a,
  .ssk-mega__summary{
    width:100%;
    justify-content:space-between;
    min-height:auto;
    padding:14px 16px;
    border:1px solid rgba(74,74,74,0.10);
    border-radius:14px;
    background:var(--ssk-white);
  }

  .ssk-nav__item > a::after{
    display:none;
  }

  .ssk-mega__summary::before{
    border-radius:14px;
  }

  .ssk-mega[open] > .ssk-mega__summary{
    box-shadow:none;
  }

  .ssk-mega__panel{
    position:static;
    width:100%;
    margin-top:12px;
    padding:16px;
    border-radius:16px;
    box-shadow:none;
    border:1px solid rgba(74,74,74,0.10);
    opacity:1;
    transform:none;
    animation:none;
  }

  .ssk-mega__panel::before{
    left:16px;
    right:16px;
  }

  .ssk-mega__head{
    margin:6px 0 12px;
  }

  .ssk-mega__grid{
    gap:10px;
  }

  .ssk-mega__link{
    padding:14px 14px 14px 16px;
    border-radius:14px;
  }

  .ssk-mega__link:hover,
  .ssk-mega__link:focus{
    transform:none;
    box-shadow:none;
  }

  .ssk-nav__cta{
    margin-left:0;
  }

  .ssk-nav__cta a{
    width:100%;
    min-height:54px;
    border-radius:14px;
    justify-content:center;
    box-shadow:none;
  }

  .ssk-nav__cta a:hover,
  .ssk-nav__cta a:focus{
    transform:none;
  }

  .ssk-nav__cta-main{
    font-size:14px;
  }

  .ssk-nav__cta-sub{
    font-size:13px;
  }
}


/* =========================================================
   8. フッター共通スタイル
========================================================= */

.ssk-footer-wrap,
.ssk-footer-wrap *,
.ssk-footer-wrap *::before,
.ssk-footer-wrap *::after{
  box-sizing:border-box;
}

/* 
   フッターの標準色設定。
   ブランド別クラスが付いていない場合は、歯科成功大全カラーになる。
*/
.ssk-footer-wrap{
  --ssk-footer-main:#3498DB;
  --ssk-footer-sub:#A8E6CE;

  background:#FFFFFF;
  color:#4A4A4A;
  border-top:1px solid var(--ssk-footer-sub);
}

.ssk-footer-inner{
  width:min(1280px,calc(100% - 32px));
  margin:0 auto;
  padding:0 0 34px;
}


/* =========================================================
   9. フッター：ブランド別カラー設定
   footerタグに以下のクラスを付けることで色を切り替える。

   例：
   <footer class="ssk-footer-wrap ssk-footer--shikaseikou">
   <footer class="ssk-footer-wrap ssk-footer--management">
   <footer class="ssk-footer-wrap ssk-footer--aymd">
   <footer class="ssk-footer-wrap ssk-footer--ayms">
========================================================= */

/* 歯科成功大全：水色 */
.ssk-footer--shikaseikou{
  --ssk-footer-main:#3498DB;
  --ssk-footer-sub:#A8E6CE;
}

/* 歯科医院経営大全：歯科成功大全と同じ水色 */
.ssk-footer--management{
  --ssk-footer-main:#3498DB;
  --ssk-footer-sub:#A8E6CE;
}

/* AYM-D：臨床・学術系のブルー */
.ssk-footer--aymd{
  --ssk-footer-main:#1E88E5;
  --ssk-footer-sub:#BBDEFB;
}

/* AYM-S：経営サポート系のグリーン */
.ssk-footer--ayms{
  --ssk-footer-main:#2E7D32;
  --ssk-footer-sub:#C8E6C9;
}


/* =========================================================
   10. フッター上段：LINEブロック
========================================================= */

.ssk-footer-lineblock{
  position:relative;
  overflow:hidden;
  padding:64px 0 40px;
  border-bottom:1px solid var(--ssk-footer-sub);
  background:#FFFFFF;
}

.ssk-footer-lineblock::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url('https://shikaseikou.com/wp-content/uploads/2026/04/kv2.jpg');
  background-size:cover;
  background-position:center center;
  opacity:0.10;
  filter:grayscale(100%);
  pointer-events:none;
}

.ssk-footer-lineblock::after{
  content:"";
  position:absolute;
  inset:0;
  background:#FFFFFF;
  opacity:0.94;
  pointer-events:none;
}

.ssk-footer-lineinner{
  position:relative;
  z-index:1;
  max-width:1040px;
  margin:0 auto;
  text-align:center;
}

/* 
   ヘッダーCTAからフッターLINE案内へ飛ぶための透明アンカー。
   top:-120px にすることで、固定ヘッダーに隠れず少し上から表示される。
*/
.ssk-footer-anchor{
  display:block;
  height:1px;
  position:relative;
  top:-120px;
}

.ssk-footer-linelead{
  max-width:1040px;
  margin:0 auto;
}

.ssk-footer-linelead h2{
  margin:0 0 14px;
  font-size:clamp(24px,3vw,34px);
  line-height:1.5;
  font-weight:800;
  color:#4A4A4A;
  text-align:center;
}

.ssk-footer-linelead p{
  margin:0 0 8px;
  font-size:16px;
  line-height:1.9;
  font-weight:700;
  color:#4A4A4A;
  text-align:center;
}

.ssk-footer-linegift{
  margin:18px 0 0;
  font-size:15px;
  line-height:1.9;
  font-weight:800;
  color:var(--ssk-footer-main);
  text-align:center;
}

.ssk-footer-linecards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  justify-content:center;
  max-width:560px;
  margin:26px auto 0;
}

.ssk-footer-linecard{
  background:#FFFFFF;
  border:1px solid var(--ssk-footer-sub);
  border-radius:8px;
  padding:18px 16px 16px;
}

.ssk-footer-linecard h3{
  margin:0 0 14px;
  font-size:22px;
  line-height:1.4;
  font-weight:800;
  color:#4A4A4A;
  text-align:center;
}

.ssk-footer-linecard img{
  display:block;
  width:min(100%,120px);
  height:auto;
  margin:0 auto;
}

@media (min-width:768px){
  .ssk-footer-linelead h2{
    white-space:nowrap;
  }
}


/* =========================================================
   11. フッター下段：フッター本体
========================================================= */

.ssk-footer-main{
  padding:46px 0 0;
  background:#FFFFFF;
}

.ssk-footer-main-inner{
  width:min(1280px,calc(100% - 32px));
  margin:0 auto;
  padding:0;
}

.ssk-footer-main-grid{
  display:grid;
  grid-template-columns:minmax(260px,0.85fr) minmax(0,1.15fr);
  gap:34px 38px;
  margin-bottom:28px;
}

.ssk-footer-brand{
  min-width:0;
}

.ssk-footer-logo{
  margin:0 0 16px;
}

.ssk-footer-logo img{
  display:block;
  width:min(250px,100%);
  height:auto;
}

.ssk-footer-brand p{
  margin:0 0 10px;
  font-size:14px;
  line-height:1.9;
  color:#4A4A4A;
}

.ssk-footer-toplink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  color:var(--ssk-footer-main);
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  line-height:1;
  margin-top:8px;
  background:#FFFFFF;
  border:1px solid var(--ssk-footer-main);
  border-radius:4px;
}

.ssk-footer-toplink:hover,
.ssk-footer-toplink:focus{
  background:#FFD93D;
  color:#4A4A4A;
  border-color:#FFD93D;
  outline:none;
}

.ssk-footer-right{
  min-width:0;
  display:grid;
  gap:26px;
}

.ssk-footer-row{
  display:grid;
  gap:28px;
}

.ssk-footer-row--top{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.ssk-footer-row--bottom{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.ssk-footer-col{
  min-width:0;
  padding-left:18px;
  border-left:1px solid var(--ssk-footer-main);
}

.ssk-footer-col h3{
  margin:0 0 14px;
  font-size:18px;
  line-height:1.5;
  font-weight:800;
  color:#4A4A4A;
}

.ssk-footer-links{
  list-style:none;
  margin:0;
  padding:0;
}

.ssk-footer-links li{
  margin:0 0 10px;
}

.ssk-footer-links a{
  color:#4A4A4A;
  text-decoration:none;
  font-size:14px;
  line-height:1.8;
  transition:color .2s ease;
}

.ssk-footer-links a:hover,
.ssk-footer-links a:focus{
  color:var(--ssk-footer-main);
  outline:none;
}


/* =========================================================
   12. フッター最下段：ブランドカラー帯
========================================================= */

.ssk-footer-meta{
  margin-top:10px;
  padding:18px 18px 14px;
  background:var(--ssk-footer-main);
  border-top:1px solid #FFFFFF;
}

.ssk-footer-meta-super{
  margin:0 0 8px;
  font-size:13px;
  line-height:1.8;
  color:#FFFFFF;
}

.ssk-footer-meta-right{
  display:flex;
  flex-wrap:wrap;
  gap:6px 18px;
  align-items:flex-start;
  margin:0;
}

.ssk-footer-meta-right a{
  color:#FFFFFF;
  text-decoration:none;
  font-size:13px;
  line-height:1.8;
}

.ssk-footer-meta-right a:hover,
.ssk-footer-meta-right a:focus{
  color:#FFD93D;
  outline:none;
}

.ssk-footer-copy{
  margin:6px 0 0;
  font-size:12px;
  line-height:1.8;
  color:#FFFFFF;
  text-align:center;
}


/* =========================================================
   13. フッター：タブレット対応
========================================================= */

@media (max-width:1024px){
  .ssk-footer-main-grid{
    grid-template-columns:1fr;
  }

  .ssk-footer-row--top{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ssk-footer-row--bottom{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}


/* =========================================================
   14. フッター：スマホ対応
========================================================= */

@media (max-width:767px){
  .ssk-footer-lineblock{
    padding:52px 0 32px;
  }

  .ssk-footer-linelead h2{
    font-size:clamp(24px,7vw,30px);
    line-height:1.55;
    white-space:normal;
  }

  .ssk-footer-linelead p{
    font-size:15px;
    line-height:1.95;
  }

  .ssk-footer-linecards{
    grid-template-columns:1fr;
    max-width:260px;
    gap:18px;
    margin:22px auto 0;
  }

  .ssk-footer-main{
    padding:34px 0 0;
  }

  .ssk-footer-row--top,
  .ssk-footer-row--bottom{
    grid-template-columns:1fr;
    gap:22px;
  }

  .ssk-footer-col{
    padding-left:0;
    border-left:none;
  }

  .ssk-footer-meta-right{
    flex-direction:column;
    gap:0;
  }
}