@charset "utf-8";
/* =========================================
   Layout Utilities
========================================= */
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.cols{
  display: grid;
  gap: var(--gap, 24px);
  grid-template-columns: var(--cols, 1fr);
}
.cols-2{ --cols: repeat(2, 1fr); }
.cols-3{ --cols: repeat(3, 1fr); }
.cols-4{ --cols: repeat(4, 1fr); }
.cols-25-75{ --cols: 1fr 3fr; }
.cols-75-25{ --cols: 3fr 1fr; }
.cols-33-66{ --cols: 1fr 2fr; }
.cols-66-33{ --cols: 2fr 1fr; }

/* =========================================
   Sections
========================================= */
section{
  padding: 30px 0 50px 0;
}
.section-title{
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 500;
  text-align: center;
  margin: 0 0 35px;
  letter-spacing: .02em;
}

/* =========================================
   コンテンツ区切り　hr
========================================= */
hr.simple-border{
  width: 100%;
  max-width: 1200px;
  border: none;
  border-top: 1px solid #666;
  margin: 30px auto 60px;
}
@media (max-width: 1100px){
  hr.simple-border{
    max-width: calc(100% - 40px);
    margin: 0 auto;
  }
}

/* =========================================
   Header (fixed)
========================================= */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: transparent;
  z-index: 1100;
}
/* 背景レイヤーだけスライド */
.site-header::before{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(255,255,255,.9);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
  will-change: transform;
}
.site-header.has-bg::before{
  transform: translateY(0);
  opacity: 1;
}

.site-header.has-bg{
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
}
.site-header .header-inner{
  position: relative;
  z-index: 1;
}
.header-inner{
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand__logo{
  width: 240px;
  height: auto;
  display: block;
}
.header-nav-wrap{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
}
.sub-nav{
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  font-size: 15px;
  color: #222;
  line-height: 25px;
  white-space: nowrap;
}
.sub-nav li a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 27px;
  line-height: 1;
  background: #fff;
  border: 1px solid rgba(0,0,0,0);
  border-radius: 4px;
}
.site-header.has-bg .sub-nav li a{
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
}
.sub-nav li a:hover,
.site-header.has-bg .sub-nav li a:hover{
  color: #fff;
  background: var(--hover);
}
.global-nav{
  display: flex;
  gap: 0;
  justify-content: flex-end;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.global-nav li a{
  color: var(--text);
  display: inline-block;
  padding: 0 1.7em;
  border-right: 1px solid #000;
}
.global-nav li:first-child a{
  border-left: 1px solid #000;
}
.global-nav li a:hover{
  color: var(--hover);
}

/* =========================================
   Hamburger (fixed, above drawer)
========================================= */
.hamburger{
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #28998b;
  background: rgba(255,255,255,.1);
  position: relative;
}
.hamburger span{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 2px;
  background: #28998b;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease;
}

.hamburger span:nth-child(1){ transform: translate(-50%, calc(-50% - 8px)) rotate(0deg); }
.hamburger span:nth-child(2){ opacity: 1; }
.hamburger span:nth-child(3){ transform: translate(-50%, calc(-50% + 8px)) rotate(0deg); }

.hamburger-fixed{
  position: fixed;
  top: calc(14px + env(safe-area-inset-top));
  right: calc(14px + env(safe-area-inset-right));
  z-index: 2000;
  backdrop-filter: blur(6px);
}

.hamburger.is-active span:nth-child(1){ transform: translate(-50%, -50%) rotate(45deg); }
.hamburger.is-active span:nth-child(2){ opacity: 0; }
.hamburger.is-active span:nth-child(3){ transform: translate(-50%, -50%) rotate(-45deg); }

/* ドロワー中はヘッダーを“触れない”だけにする（ロゴは消さない） */
html.is-drawer-open .site-header,
html.is-drawer-closing .site-header{
  z-index: 1000;
  pointer-events: none;
}

/* =========================================
   Drawer (SP menu)
========================================= */
html.is-locked,
html.is-locked body{
  overflow: hidden;
}
.drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1200;
  opacity: 0;
  transition: opacity .32s var(--drawer-ease);
}
.drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(92vw, 380px);
  background: #fff;
  z-index: 1300;
  transform: translateX(100%);
  opacity: .98;
  filter: blur(2px);
  transition:
    transform var(--drawer-dur) var(--drawer-ease),
    opacity   var(--drawer-dur) var(--drawer-ease),
    filter    var(--drawer-dur) var(--drawer-ease);
  will-change: transform, opacity, filter;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
/* open state */
html.is-drawer-open .drawer{
  transform: translateX(0);
  opacity: 1;
  filter: blur(0);
}
html.is-drawer-open .drawer-overlay{
  opacity: 1;
}
.drawer__inner{ padding: 25px 20px 20px 20px; }
.drawer__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  margin: 12px 0;
}
.drawer__title{
  margin: 0;
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 14px;
}
.drawer__nav a{
  display: block;
  padding: 12px 8px;
  font-size: 15px;
}
.drawer__sep{
  border: none;
  border-top: 1px solid rgba(0,0,0,.15);
  margin: 10px 0;
}
.drawer__cta{
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  background: rgba(40,153,139,.12);
  border: 1px solid rgba(40,153,139,.25);
  font-size: 18px;
  font-weight: 700;
}
/* ===== SP: Drawer fullscreen ===== */
@media (max-width: 1100px){
  .drawer{
    left: 0;
    right: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
}
/* 背面は触れない */
html.is-drawer-open .page,
html.is-drawer-closing .page{
  pointer-events: none;
}
/* でもドロワー＆ハンバーガー＆オーバーレイは触れる */
html.is-drawer-open .drawer,
html.is-drawer-open .drawer-overlay,
html.is-drawer-open .hamburger-fixed,
html.is-drawer-closing .drawer,
html.is-drawer-closing .drawer-overlay,
html.is-drawer-closing .hamburger-fixed{
  pointer-events: auto;
}
@media (min-width: 1101px){
  .drawer, .drawer-overlay{ display:none !important; }
}

/* =========================================
   CTA Bar
========================================= */
/* bar (scroll appear) */
.cta-bar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1150;
  /* PC padding */
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  background: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.cta-bar.is-visible{
  opacity: 1;
  transform: translateY(0);
}
/* 押せる部分だけ有効化 */
.cta-bar__inner,
.cta-bar__btn{
  pointer-events: auto;
}
/* inner */
.cta-bar__inner{
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
/* ★ right group (X/IG/totop) */
.cta-bar__right{
  display: flex;
  align-items: center;
  gap: 8px; /* 右側ボタン同士の間隔 */
}
/* common button base */
.cta-bar__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* =========================
   Free trial
========================= */
.freetrial__btn{
  justify-self: end;
  width: 240px;
  height: 44px;
  max-width: 100%;
  min-height: 0;
  padding: 10px 12px;
  padding-right: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: var(--aqua-green);
  box-sizing: border-box;
}
/* left text */
.cta-bar__text{
  display: grid;
  gap: 2px;
  text-align: left;
}
.cta-bar__text.freetrial{
  min-height: 40px;
  align-content: center;
  padding-left: 2.4em;
  background: url("../images/common/freetrial_icon.png") no-repeat center left;
  background-size: 2.0em;
  background-position: left center;
}
.cta-bar__text{
  transform: translateY(-1px);
}
.cta-bar__label{
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
  line-height: 1.2;
  white-space: nowrap;
}
/* arrow always */
.freetrial__btn::after{
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

/* =========================
   SNS icons (X / IG)  ★追加
   - totopと同じ「丸ボタン」サイズに揃える
========================= */
.cta-bar__icon{
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  padding: 0;
}
.cta-bar__icon img{
  width: 30px;
  height: 30px;
  display: block;
}
/* hover（任意） */
.cta-bar__icon:hover{ background: #dedede; }

/* =========================
  ToTop (always circle)
========================= */
.totop__btn{
  /* ★ gridのjustify-selfは効かない（totopはright内）ので削除してもOK */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111;
  display: grid;
  place-items: center;
  padding: 0;
}
/* arrow */
.totop__btn .cta-bar__text{
  position: relative;
  width: 100%;
  height: 100%;
}
.totop__btn .cta-bar__text::before{
  content: "";
  position: absolute;
  top: 55%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: translate(-50%, -40%) rotate(45deg);
}

/*アイコン間隔*/
.cta-bar__right{
  display:flex;
  align-items:center;
}
.cta-bar__icon{ margin-right:8px; }
.totop__btn{ margin-left:8px; }
/* hover */
.freetrial__btn:hover{ background: var(--light-green); }
.totop__btn:hover{ background: #555; }
/* drawer中は隠す */
html.is-drawer-open .cta-bar,
html.is-drawer-closing .cta-bar{
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

/* =========================
  1100px
========================= */
@media (max-width: 1100px){
  .cta-bar{
    background: var(--aqua-green);
  }
  .cta-bar__inner{
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .freetrial__btn{
    justify-self: start;
    border: 1px solid #fff;
    border-radius: 4px;
    background: transparent;
  }
}
/* =========================
  540px
========================= */
@media (max-width: 540px){
  .cta-bar{
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .cta-bar__inner{
    grid-template-columns: 1fr auto; /* ★right auto */
    gap: 15px;
  }
  .freetrial__btn{
    width: 205px;
    min-height: 40px;
    padding: 8px 10px;
    padding-right: 24px;
  }
  .freetrial__btn::after{
    right: 14px;
  }
  .cta-bar__right{
    gap: 4px;
  }
  .totop__btn{
    width: 28px;
    height: 28px;
  }
  .cta-bar__label{
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cta-bar{ padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .cta-bar__inner{ gap: 12px; }
  .cta-bar__right{ gap: 3px; }
  .cta-bar__icon,
  .totop__btn{
    width: 28px;
    height: 28px;
    min-height: 0;
    padding: 0;
    flex: 0 0 28px;
    border-radius: 6px;
  }
  /* 画像の縦横も固定 */
  .cta-bar__icon img{
    width: 28px;
    height: 28px;
    display: block;
  }
  .freetrial__btn{
    width: 205px;
    min-height: 38px;
    padding: 8px 10px;
    padding-right: 24px;
    /* ★統一：28px前提で計算（360用は不要） */
    max-width: calc(100vw - (12px * 2) - 8px - (28px * 3) - (4px * 2));
  }
}

@media (max-width: 360px){
  .cta-bar__inner {
    gap: 10px;
  }
  .freetrial__btn{
    width: 188px;
    max-width: calc(100vw - 28px - 8px - (26px * 3) - (6px * 2));
    padding: 6px 2px 6px 6px;
  }
  .cta-bar__label {
    font-size: 15px;
  }
  .cta-bar__icon,
  .totop__btn{
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
  }
  .cta-bar__icon img{
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 320px){
  .cta-bar__right{
    gap: 0;
  }
  .totop__btn{
    margin-left: 4px;
  }
}

/* =========================================
   Footer
========================================= */
.site-footer{
  width: 100vw;
  background:#eef3f1;
  margin-left: calc(50% - 50vw);
  padding: 40px 0;
  overflow-x: clip;
}
.footer-top{
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 30px;
}
.footer-brand{
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
}
.footer-logo{
  width: 300px;
  height: 60px;
}
.footer-logo img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.footer-tel{
  margin: 10px 0 0;
}
.footer-hours{
  display: block;
  margin-top: 2px;
  font-size: 14px;
}
.footer-hours .em{
  color: #c00;
}
.footer-tel a{
  display: block;
  font-size: 24px;
  font-weight: 900;
  padding-left: 28px;
  background: url("../images/common/icon_tel.svg") no-repeat;
  background-size: 20px 20px;
  background-position: left calc(50% + 2px);
}
.footer-tel a:hover{
  color: var(--hover);
}
.footer-sns{
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.footer-sns img{
  width: 32px;
  height: 32px;
  display: block;
}
.footer-sns img:hover{
  opacity: .7;
}
.footer-links h5{
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: .06em;
}
.footer-links h5 > a{
  color: var(--text);
}
.footer-links > a{
  display: block;
  padding: 10px 0;
  padding-left: 2em;
  text-indent: -1em;
  font-size: 13px;
  color: var(--text);
}
.footer-links h5 > a{
  padding-left: 0;
  text-indent: 0;
}
.footer-links > a.branch{
  position: relative;
  padding-left: 2em;
  text-indent: 0;
}
.footer-links > a.branch::before{
  content: "─";
  position: absolute;
  left: 1em;
}
.footer-links a:hover{
  color: var(--hover);
}
.copyright{
  margin: 50px 0 0;
  text-align: center;
  color: var(--text);
  font-size: 12px;
}

/* R2会員専用*/
.login-btn, .login-btn a { display: none; }


/* =========================================
   Responsive (共通)
========================================= */
@media (max-width: 1100px){
  :root{ --header-h: 88px; }
  .header-nav-wrap{ display:none; }
  .hamburger{ display:block; }
  .brand__logo{ width: 200px; }
  section{ padding: 50px 0 65px 0; }
  .site-footer{ padding-bottom: 85px; }
  .login-btn {
    display: block;
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    right: calc(80px + env(safe-area-inset-right));
    z-index: 2000;
  }
  .login-btn a{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: var(--aqua-green);
    border: 1px solid var(--aqua-green);
    border-radius: 4px;
  }
  .login-btn a:hover{
    color: #fff;
    background: var(--hover);
  }
}
@media (max-width: 900px){
  section{ padding: 50px 0; }
}
@media (max-width: 768px){
  .brand__logo{ width: 30vw; }
  .cols-2, .cols-3, .cols-4,
  .cols-25-75, .cols-75-25, .cols-33-66, .cols-66-33{
    --cols: 1fr;
  }
  .section-title{ font-size: 24px; }
  .footer-nav-grid{ grid-template-columns: repeat(2, 1fr); }
  /* 未就学児・小学生セクション共通 */
  #child .cols.cols-2,
  #kids .cols.cols-2,
  #junior .cols.cols-2,
  #trial .cols.cols-2 {
    display: flex;
    flex-direction: column;
  }
  /* 画像を先に */
  #child .cols.cols-2 .ph,
  #kids .cols.cols-2 .ph,
  #junior .cols.cols-2 .ph,
   #trial .cols.cols-2 .ph {
    order: 1;
  }
  /* テキストを後に */
  #child .cols.cols-2 .card,
  #kids .cols.cols-2 .card,
  #junior .cols.cols-2 .card,
   #trial .cols.cols-2 .card {
    order: 2;
  }
}
@media (max-width: 540px){
  .brand__logo{ width: 45vw; }
  .container{ padding: 0 20px; }
  .footer-top{
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .site-footer { padding-bottom: 80px; }
  .footer-sns{ justify-content: center; }
  .footer-logo{ width: 240px; height: auto; }
  .footer-tel a{ font-size: 22px; }
  .footer-links h5{
    padding-bottom: .7em;
    border-bottom: 1px solid #ccc;
  }
  .footer-nav-grid{ grid-template-columns: 1fr; }
  .copyright{ margin-top: 30px; }
  .section-title { font-size: 22px; }
  section{ padding: 25px 0; }
}
@media (max-width: 425px){
  :root{ --header-h: 72px; }
  .hamburger, .login-btn a{ width: 40px; height: 40px; }
  .login-btn { right: calc(76px + env(safe-area-inset-right)); }
  .footer-sns img{
    width: 26px;
    height: 26px;
  }
}
