/* ========== Base ========== */
@import url('variables.css'); 

*{ box-sizing:border-box; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Serif JP", serif, "Hiragino Mincho ProN","Hiragino Mincho Pro","Noto Serif JP","Yu Mincho","MS Mincho";
}

a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; height:auto; }

/* 768で改行 */
.br-768{ display:none; }
@media screen and (max-width: 768px){
  .br-768{ display:block; height:0; }
}

/* PCだけで改行（フッター用） */
.br-pc{ display:none; }
@media screen and  (min-width: 769px){
  .br-pc{ display:block; height:0; }
}

/* CTA（トップ「再現プログラムを作る」と同デザイン扱い） */
.cta-link{
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  transition: opacity .5s ease;
  display:inline-block;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}
.cta-link:hover{ opacity: .8; }

/* ========== Header ========== */
.site-header{
  position: sticky;
  top:0; left:0; right:0;
  z-index: 1000;
  background: #000;
  height: 72px;
}

.header-inner{
  width: 100%;
  height: 72px;
  padding: 0 30px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 20px;
}

.header-logo{
  flex: 0 0 auto;
  width: 164px;
  transition: opacity .5s ease, transform .5s ease;
  transform: scale(1);
  will-change: transform;
}
.header-logo:hover{
  opacity: .8;
  transform: scale(1.04);
}
.header-logo img{
  width: 119px;
  padding: 10px;
  height:auto;
  margin: 0 auto;
  flex-shrink: 0;
}


/* PC nav：縮小で折返し */
.header-nav{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 70px;
  row-gap: 16px;
}
.header-nav a{
  transition: opacity .5s ease, background-color .5s ease, color .5s ease, border-color .5s ease;
}

.hn-link{
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}
.hn-link:hover{ opacity: .8; }

.header-right{
  display: none;
}
.hn-en{
  color: #dadada;
  font-size: 20px;
  line-height: 1.4;
  transition: opacity .5s ease;
}
.hn-en:hover{ opacity: .8; }

/* ハンバーガー（SPのみ表示） */
.menu-btn{
  display:inline-flex; 
  align-items:center; 
  justify-content:center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  cursor:pointer;
  padding: 0;
  margin-right: 10px;
}

/* 3本線 */
.menu-icon{
  display:block;
  width: 26px;
  height: 16px;
  position: relative;
}
.menu-icon::before,
.menu-icon::after{
  content:"";
  position:absolute;
  left:0;
  width: 26px;
  height: 2.5px;
  background: #fff;
}
.menu-icon::before{ top: 0; }
.menu-icon::after{ bottom: 0; }
.menu-icon{
  background: transparent;
}
.menu-icon span{ display:none; }
.menu-icon::marker{ content:""; }

.menu-icon i{
  display:none;
}
/* 中段線は box-shadow で描く（確実） */
.menu-icon::before{
  box-shadow: 0 6.8px 0 #fff; /* 2本目（中段） */
}

/* Modal（フェード） */
.menu-modal{
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  overflow: auto; /* スクロール可能 */
}

.menu-modal.is-open{
  opacity: 1;
  pointer-events: auto;
}

.menu-panel{
  min-height: 100%;
  padding: 0 10px 32px;
}

/* モーダルヘッダ */
.menu-modal-head{
  display:flex;
  justify-content: space-between;
  align-items:center;
  height: 72px;
  padding: 0 20px;
}

.header-logo--modal img{
  width: 111px!important;
  height:auto;
}

.menu-close{
  width: 52px;
  height: 52px;
  background-color: initial;
  border:0;
  cursor:pointer;
  padding: 0;
  position: relative;
}
.menu-close:before,
.menu-close:after{
  content:"";
  position:absolute;
  transform-origin: center;
  background: #fff;
  width: 23px;
  height: 3px;
  top: 50%;
  left: 50%;
}
.menu-close:before{
  transform: translate(-50%, -50%) rotate(-45deg);
}
.menu-close:after{
  transform: translate(-50%, -50%) rotate(45deg);
}

/* メニューリスト */
.menu-list{
  margin-top: 32px;
}

/* aタグ指定 */
.menu-list a{
  display:flex;
  justify-content: space-between;
  align-items:center;
  border-bottom: 1px solid #eeeeee;
  padding: 0 24px 12px;
  transition: opacity .5s ease;
  font-weight: 700;
  line-height: 1.4;
  font-size: 24px;
  color: #fff;
}
.menu-list a:hover{ opacity: .8; }
.menu-list a + a{ padding-top: 28px; }

/* arrow：擬似要素 */
.arrow{
  width: 12px;
  height: 12px;
  position: relative;
  flex: 0 0 auto;
}
.arrow::before{
  content:"";
  position:absolute;
  inset: 0;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
  transform-origin: center;
}

/* モーダル内の文字サイズ（480基準） */
@media screen and  (min-width: 481px){
  .menu-list a{ font-size: 28px; }
}

/* Header breakpoint (nav切替は768px) */
@media screen and (max-width: 767px){
  .header-nav{ display:none; }
  .header-right {
    display:flex;
    align-items:center;
  }  
  .hn-en{
    margin-right: 56px;
  }
}
@media screen and (max-width: 480px){
  .hn-en{
    margin-right: 26px;
  }
  .header-logo{
    width: 112px;
  }
  .header-logo img{ 
    width: 100px; 
    padding: initial;
  }
  .menu-list a{
    font-size: 20px;
  }
}

/* ========== Hero（見切れない＝contain） ========== */
/*
  「縦横比維持」「画面サイズによって見切れない」
  → contain（黒帯が出る可能性あり）
*/

.hero{
  padding-top: 2vw;
  padding-bottom: 5vw;
}
.hero-youtube{
  width: 100%;
  aspect-ratio: 12 / 5;
  position: relative;
}

/* 16:9の枠を “必ず画面内に収める” */
.hero-youtube iframe{
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* ========== Footer ========== */
.site-footer{
  padding: 126px 0 64px;
}

.footer-inner{
  width: calc(100% - 60px);
  margin: 0 auto;
  display:flex;
  gap: 36px;
  align-items:flex-start;
  justify-content: center;
}
@media screen and (max-width: 1294px){
  .footer-inner{
    flex-direction: column;
  }
}
/* ブランドは常に左寄せ（ロゴ含む） */
.footer-brand{
  text-align: left;
}
@media screen and (min-width: 481px) and (max-width: 1294px) {
  .footer-brand{
    margin: 0 auto;
  }
}
@media screen and (max-width: 480px){
  .site-footer{
    padding: 112px 0 80px;
  }
}


.footer-logo{
  width: 240px;
  height:auto;
  margin: 0; /* 左寄せ */
}
@media screen and (max-width: 480px){
  .footer-logo{ width: 299px; }
}

.footer-addr,
.footer-tel{
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}

/* Footer nav：縮小で折返し */
.footer-nav{
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items:flex-start;
  gap: 64px;
  text-align: left;
}

.fn-col--events{
  display:flex;
  flex-direction:column;
  gap: 18px;
}

.fn-title{
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
}
@media screen and (max-width: 480px){
  .fn-title{ font-size: 22px; }
}


.fn-title--strong a{
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  transition: opacity .5s ease;
}
.fn-title--strong a:hover{ opacity: .8; }

.footer-nav a {
  transition: opacity .5s ease;
}
.footer-nav a:hover{ opacity: .8; }

.fn-sub{
  display:flex;
  align-items:flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--text);
  font-size: 19px;
  line-height: 1.4;
}
.fn-sub--events{ margin-top: 8px; }
.fn-sub:hover{ opacity: .8; }

.fn-sub::before{
  content:"";
  display:block;
  width: 16px;
  height: 1px;
  background: #EEEEEE;
  margin-top: .65em;
  flex: 0 0 auto;
}
.fn-sub-text{
  display:block;
  flex: 1 1 auto;
  min-width: 0;
}


@media screen and (min-width: 481px){
  /* 書籍リンクだけ 16px */
  .fn-sub--book{
    font-size: 16px;
  }
}
/* SP：全て左配置 + nav gap 22 + お問い合わせ/公式サイト横並び */
@media screen and (max-width: 480px){
  .footer-inner{
    width: calc(100% - 40px);
    flex-direction: column;
    align-items: flex-start;
    gap: 76px;
  }

  .footer-nav{
    justify-content: flex-start;
    gap: 22px; /* 指定 */
    width: 100%;
    flex-direction: column;
  }

  .fn-col--links{
    display:flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 22px;
    width: 100%;
  }

  .fn-title--official{
    margin-top: 0; /* 横並び時は上マージン不要 */
  }
}