@charset "UTF-8";

/* =========================================
   基本設定 (Variables & Reset)
   ========================================= */
:root {
  /* ▼ テーマカラー */
  --main-color: #2F3E46; 
  --bg-pale: #F4F6F7; 
  
  /* ▼ フォント設定 */
  --font-mincho: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --font-gothic: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  
  /* ▼ アニメーション速度 */
  --transition-speed: 0.4s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  color: var(--main-color);
  font-family: var(--font-gothic);
  line-height: 1.8;
  background-color: #fff;
  padding: 20px; 
  min-height: 100vh;
}

.layout-frame {
  border: 1px solid var(--main-color);
  width: 100%;
  min-height: calc(100vh - 40px);
  position: relative;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.inner-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* =========================================
   2. ヘッダー & ナビゲーション
   ========================================= */
header {
  padding: 30px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  position: relative;
}
.header-icon-item { display: flex; align-items: center; }
.header-sns-link { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    transition: opacity 0.3s; 
}
.header-sns-link:hover { opacity: 0.7; }
.icon-x-header { fill: var(--black); width: 20px; height: 20px; }

/* ▼▼▼ ロゴ画像用のCSSを追加 ▼▼▼ */
.logo {
  z-index: 201;
  line-height: 0; /* 画像の下の隙間を消す */
}

.logo a {
  display: block;
}

.logo img {
  height: 30px; /* 必要に応じてサイズ調整 */
  width: auto;
  display: block;
}
/* ▲▲▲ 追加ここまで ▲▲▲ */

/* PC用ナビゲーション */
.header-nav {
  position: static; 
  transform: none;
}

.nav-list { display: flex; }

.nav-list a {
  color: var(--main-color);
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.nav-list a:hover { opacity: 1; }

/* ハンバーガーボタン (PC非表示) */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 200;
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--main-color);
  position: absolute;
  transition: all var(--transition-speed);
}
.hamburger-menu .bar:nth-child(1) { top: 0; }
.hamburger-menu .bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu .bar:nth-child(3) { bottom: 0; }

/* =========================================
   共通パーツ：見出し & アニメーション
   ========================================= */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}
.section-title .jp {
  display: block;
  font-family: var(--font-mincho);
  font-size: 1.8rem;
  letter-spacing: 0.2em;
  margin-bottom: 15px;
}
.section-title .en {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding: 0 40px;
  opacity: 0.7;
}
.section-title .en::before, .section-title .en::after {
  content: ""; position: absolute; top: 50%; width: 30px; height: 1px;
  background-color: var(--main-color);
}
.section-title .en::before { left: 0; }
.section-title .en::after { right: 0; }

.js-scroll-trigger {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}
.js-scroll-trigger.is-visible { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-block; padding: 15px 50px;
  border: 1px solid var(--main-color); color: var(--main-color);
  text-decoration: none; letter-spacing: 0.2em; font-size: 0.9rem;
  transition: all 0.3s; background: transparent;
}
.btn:hover { background: var(--main-color); color: #fff; }

/* =========================================
   各セクション
   ========================================= */

/* --- Hero (横書き・中央揃え) --- */
.hero {
  height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-pale);
  position: relative;
  overflow: hidden;
  text-align: center; /* 横書き中央揃え */
}

.hero-content {
  width: 100%;
}

.hero-message {
  font-family: var(--font-mincho);
  font-size: 3rem;
  letter-spacing: 0.2em;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* 水平方向の区切り線 */
.hero-divider {
  width: 1px;
  height: 60px;
  background-color: var(--main-color);
  margin: 0 auto 30px; /* 中央に配置 */
}

.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  opacity: 0.8;
  font-family: var(--font-mincho);
}

/* 透かし文字 (背景) */
.hero::before {
  content: "VISION";
  position: absolute;
  font-family: var(--font-mincho);
  font-size: 20vw;
  opacity: 0.03;
  color: var(--main-color);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Vision (Concept) --- */
.section-vision { padding: 100px 0; background-color: #fff; }
.vision-content { max-width: 800px; margin: 0 auto; text-align: center; }
.vision-text { margin: 4rem 0 1rem 0; text-align: justify; }

/* --- About (Concept) --- */
.section-about { padding: 100px 0; background-color: #fff; }
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-text { margin-bottom: 2rem; text-align: justify; }

/* About内 書籍グリッド */
.about-books { margin-top: 60px; }
.book-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; align-items: center; }
.book-item img { width: 100%; height: auto; transition: transform 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.book-item:hover img { transform: translateY(-5px); }

/* --- Problem (お悩み) --- */
.section-problem {
  padding: 100px 0;
  background-color: #fafafa;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px; max-width: 900px; margin: 0 auto 50px;
}
.problem-item {
  background: #fff; padding: 30px;
  border-left: 3px solid var(--main-color); box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.prob-head { font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; color: var(--main-color); }
.prob-text { font-size: 0.9rem; line-height: 1.6; opacity: 0.8; }
.problem-outro { text-align: center; font-family: var(--font-mincho); font-size: 1.2rem; letter-spacing: 0.1em; margin-top: 60px; }

/* --- Environment (環境) --- */
.section-environment {
  padding: 100px 0; background-color: var(--bg-pale);
  border-top: 1px solid rgba(0,0,0,0.05);
}
.environment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.env-item { text-align: center; background: #fff; padding: 40px 30px; border: 1px solid rgba(0,0,0,0.05); }
.env-num { display: block; font-family: var(--font-mincho); font-size: 2.5rem; color: var(--main-color); opacity: 0.15; margin-bottom: 10px; line-height: 1; }
.env-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 20px; line-height: 1.5; }
.env-text { font-size: 0.9rem; opacity: 0.8; text-align: justify; }

/* --- Service --- */
.section-service {
  padding: 100px 0; background-color: #fff;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px;
}
.service-item {
  background: #fff; padding: 40px; border: 1px solid rgba(0,0,0,0.1); transition: transform 0.3s ease;
}
.service-item:hover { transform: translateY(-5px); border-color: var(--main-color); }
.service-num {
  display: block; font-family: var(--font-mincho); font-size: 3rem; line-height: 1; margin-bottom: 20px; opacity: 0.2;
}
.service-name { font-size: 1.1rem; font-weight: bold; margin-bottom: 15px; letter-spacing: 0.1em; }
.service-desc { font-size: 0.9rem; opacity: 0.8; }

/* --- Curriculum --- */
.section-curriculum { padding: 100px 0; background-color: #fff; border-top: 1px solid rgba(0,0,0,0.05); }
.curriculum-container { max-width: 800px; margin: 0 auto; border-top: 1px solid rgba(0,0,0,0.1); }
.curriculum-item { display: flex; padding: 40px 0; border-bottom: 1px solid rgba(0,0,0,0.1); align-items: flex-start; }
.curriculum-head { width: 35%; padding-right: 20px; }
.c-month { display: block; font-family: var(--font-mincho); font-size: 0.8rem; opacity: 0.6; margin-bottom: 5px; }
.c-title { font-size: 1.2rem; font-weight: bold; line-height: 1.4; }
.curriculum-body { width: 65%; font-size: 0.95rem; opacity: 0.9; text-align: justify; }

/* --- Instructors --- */
.section-instructor {
  padding: 100px 0; background-color: var(--bg-pale); border-top: 1px solid rgba(0,0,0,0.05);
}
.instructor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px 40px; }
.instructor-item { display: flex; flex-direction: column; }

/* imgタグ用のスタイル */
.instructor-img {
  width: 100%; 
  height: 300px; 
  object-fit: cover; 
  margin-bottom: 25px; 
}

.inst-name { font-family: var(--font-mincho); font-size: 1.4rem; margin-bottom: 5px; letter-spacing: 0.1em; }
.inst-role {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.6;
  margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid rgba(0,0,0,0.1); display: inline-block;
}
.inst-bio { font-size: 0.9rem; line-height: 1.8; opacity: 0.8; text-align: justify; }

/* --- Flow --- */
.section-flow { padding: 100px 0; background-color: #fff; }
.flow-container { display: flex; justify-content: space-between; margin-bottom: 60px; }
.flow-step { width: 22%; position: relative; padding-top: 20px; }
.flow-step::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
  background-color: var(--main-color); opacity: 0.2;
}
.flow-num {
  display: block; font-family: var(--font-mincho); font-size: 3rem; line-height: 1;
  opacity: 0.15; margin-bottom: 10px;
}
.flow-title { font-size: 1.1rem; margin-bottom: 15px; font-weight: bold; }
.flow-text { font-size: 0.85rem; opacity: 0.8; }
.flow-cta { text-align: center; margin-top: 60px; }

/* --- Promise (返金保証) --- */
.section-promise { padding: 100px 0; background-color: #fff; }
.promise-box {
  border: 1px solid var(--main-color); padding: 80px 40px; text-align: center;
  max-width: 800px; margin: 0 auto; position: relative;
}
.promise-box::before, .promise-box::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%); width: 1px; height: 30px;
  background-color: var(--main-color); opacity: 0.3;
}
.promise-box::before { top: 0; }
.promise-box::after { bottom: 0; }
.promise-label {
  display: block; font-family: var(--font-gothic); font-size: 0.9rem; letter-spacing: 0.2em;
  margin-bottom: 20px; color: var(--main-color); opacity: 0.6; font-weight: bold;
}
.promise-title { font-family: var(--font-mincho); font-size: 2rem; margin-bottom: 40px; letter-spacing: 0.1em; }
.promise-text { font-size: 1.1rem; line-height: 2; margin-bottom: 30px; font-weight: bold; }
.text-highlight { background: linear-gradient(transparent 70%, #eee 70%); padding: 0 5px; }
.promise-sub { font-size: 0.9rem; opacity: 0.8; line-height: 1.8; }

/* --- Info Session --- */
.section-info { padding: 100px 0; border-top: 1px solid rgba(0,0,0,0.05); }
.bg-pale { background-color: var(--bg-pale); }
.info-content { max-width: 700px; margin: 0 auto; text-align: center; }
.info-content p { margin-bottom: 2rem; text-align: justify; font-size: 0.95rem; line-height: 1.9; }
.info-content p:last-of-type { text-align: center; }
.info-cta { margin-top: 50px; text-align: center; }

/* --- FAQ --- */
.section-faq {
  padding: 100px 0; background-color: #fff; border-top: 1px solid rgba(0,0,0,0.05);
}
.faq-container { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.1); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 25px 0;
  font-family: var(--font-gothic); font-size: 1rem; color: var(--main-color);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.icon-plus { position: relative; width: 12px; height: 12px; }
.icon-plus::before, .icon-plus::after {
  content: ""; position: absolute; background-color: var(--main-color);
  top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform 0.3s;
}
.icon-plus::before { width: 100%; height: 1px; }
.icon-plus::after { width: 1px; height: 100%; }
.faq-answer { display: none; height: 0; overflow: hidden; transition: height 0.3s ease; opacity: 0; }
.answer-inner { padding: 10px 0 30px; font-size: 0.9rem; opacity: 0.8; }
.faq-item.active .faq-answer { display: block; height: auto; opacity: 1; }
.faq-item.active .icon-plus::after { transform: translate(-50%, -50%) rotate(90deg); }

/* --- Footer --- */
footer {
  padding: 60px 0; text-align: center; background-color: var(--main-color);
  color: #fff; margin-top: auto;
}
.footer-nav { margin-bottom: 30px; }
.footer-nav a { color: #fff; text-decoration: none; margin: 0 15px; font-size: 0.8rem; letter-spacing: 0.1em; opacity: 0.7; }
.copyright { font-size: 0.7rem; opacity: 0.5; letter-spacing: 0.1em; }

/* =========================================
   メディアクエリ (スマホ・タブレット対応)
   ========================================= */
@media (max-width: 1024px) {
  /* メニュー切り替え */
  .header-inner { justify-content: space-between; }
  .header-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--main-color); z-index: 150;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all var(--transition-speed);
  }
  .header-nav.active { opacity: 1; visibility: visible; }
  .nav-list { display: flex; flex-direction: column; text-align: center; }
  .nav-list a { color: #fff; margin: 20px 0; font-size: 1.2rem; font-family: var(--font-mincho); }
  .hamburger-menu { display: block; z-index: 200; }
  body:has(.header-nav.active) .hamburger-menu .bar { background-color: #fff; }
  body:has(.header-nav.active) .hamburger-menu .bar:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
  body:has(.header-nav.active) .hamburger-menu .bar:nth-child(2) { opacity: 0; }
  body:has(.header-nav.active) .hamburger-menu .bar:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
}

@media (max-width: 768px) {
  body { padding: 10px; }
  .inner-container { padding: 0 20px; }
  
  /* Hero */
  .hero-message { font-size: 1.5rem; }
  .hero-sub { font-size: 0.8rem; }
  
  /* About Books */
  .book-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }

  /* Problem & Environment */
  .problem-list { grid-template-columns: 1fr; }
  .environment-grid { grid-template-columns: 1fr; gap: 20px; }

  /* Curriculum */
  .curriculum-item { flex-direction: column; }
  .curriculum-head, .curriculum-body { width: 100%; }
  .curriculum-head { margin-bottom: 15px; }

  /* Instructor */
  .instructor-grid { grid-template-columns: 1fr; gap: 50px; }
  .instructor-img { height: 250px; }

  /* Flow */
  .flow-container { flex-direction: column; gap: 40px; }
  .flow-step { width: 100%; padding-top: 0; padding-left: 20px; border-left: 1px solid rgba(0,0,0,0.1); }
  .flow-step::before { display: none; }
  .flow-num { font-size: 2rem; }

  /* Promise & Info */
  .promise-box { padding: 40px 20px; }
  .promise-title { font-size: 1.5rem; }
  .promise-text { font-size: 1rem; text-align: left; }
  .info-content p { text-align: left; }
  .sp-only { display: block; }
}

@media (min-width: 769px) {
  .sp-only { display: none; }
}

/* =========================================
   SPのみ改行するクラス
   ========================================= */

/* デフォルト（PC）では非表示にする */
.sp-br {
  display: none;
}

/* スマホ（768px以下）のときだけ表示する */
@media (max-width: 768px) {
  .sp-br {
    display: block; /* 改行として機能させる */
  }
}