/* =========================================================
   Base Reset & Typography
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
 font-family: "Hiragino Mincho ProN", "Hiragino Mincho Pro",
    "Yu Mincho", "YuMincho", "MS PMincho", serif;
  color: #333;
  line-height: 1.8;
  background-color: #ffffff;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
}

h2 {
  font-family: "YuGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN",
    "Meiryo", sans-serif !important;
}

/* =========================================================
   Layout
========================================================= */

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.18em;
  margin-bottom: 40px;
}

.section-title.small {
  font-size: 18px;
}

/* PC/SP 切り替えユーティリティ */
.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }
}


/* PC のときだけ改行する */
.pc-br {
  display: inline;
}

@media (max-width: 768px) {
  .pc-br {
    display: none;
  }
}

/* SP のときだけ改行する */
.sp-br {
  display: none;
}

@media (max-width: 768px) {
  .sp-br {
    display: inline;
  }
}


/* =========================================================
   Buttons
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 32px;
  font-size: 14px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: #b40000;
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.88;
}

/* =========================================================
   Header & Global Navigation
========================================================= */

.site-header {
  position: absolute;              /* ヒーロー画像の上に重ねる */
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;                    /* SPメニューより前面に */
  background: transparent;
  border-bottom: none;
  padding: 20px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header .logo img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.3));
}

/* Gnav (PC) */
.gnav ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.gnav a {
  position: relative;
  color: #222;
  font-weight: 500;
  padding: 8px 12px;
  font-family: "YuGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN",
    "Meiryo", sans-serif !important;
}

.gnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: #b33c3c;
  transition: width 0.2s;
}

.gnav a:hover::after {
  width: 100%;
}

.gnav a:hover {
  opacity: 0.6;
}

/* ハンバーガー：SPのみ表示 */
.hamburger {
  display: none; /* PCでは非表示 */
  width: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 2px;
}

/* SPメニュー：右スライドイン */
.sp-menu {
  position: fixed;
  top: 0;
  right: -100%;           /* 初期状態：画面外 */
  width: 70%;
  height: 100%;
  background: #fff;
  padding: 60px 20px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 100;
}

.sp-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-menu li {
  margin-bottom: 20px;
}

.sp-menu a {
  color: #222;
  font-size: 16px;
  text-decoration: none;
}

/* SPメニュー表示状態 */
.sp-menu.active {
  right: 0;
}

/* メニューが開いている間は、ヘッダー側の当たり判定を無効化 */
.sp-menu.active ~ .site-header,
.site-header:has(+ .sp-menu.active) {
  pointer-events: none;
}

/* メニュー自体はクリックできるようにする */
.sp-menu,
.sp-menu * {
  pointer-events: auto;
}


/* =========================================================
   Hero Section
========================================================= */

.hero,
.section-hero {
  position: relative;
  height: 640px;
  min-height: 640px;
  margin-top: 0;
  color: #fff;
  display: flex;
  align-items: center;
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center/cover no-repeat;
  z-index: -1;
}

.hero-content,
.hero-inner {
  position: relative;
  max-width: 400px;
  margin-left: 10%;
  text-align: center;
}



/* メインキャッチ */
.hero-tagline {
  font-family: inherit;
  color: #222;
  font-size: 48px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

/* リード文 */
.hero-lead {
  font-family: inherit;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  max-width: 420px;
  margin-bottom: 24px;
}

/* ヒーローボタン（やや透過の白・黒枠） */
.hero .btn-primary {
  font-size: 16px;
  width: 130px;
  max-width: 100%;
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.6); /* ← 白を0.8透過 */
  border: 1px solid #000;
  color: #000;
  font-weight: 700;
  border-radius: 0;
  text-align: center;
  display: inline-block;
  margin-top: 24px;
  transition: background 0.3s ease, color 0.3s ease; /* なめらかに */
}

.hero .btn-primary:hover {
  background: #b40000; /* ← ホバー時の赤 */
  color: #fff;
}


/* SP では左寄せ */
@media (max-width: 768px) {
  .hero-content,
  .hero-inner {
   text-align: left;
  }
  /* メインキャッチ */
  .hero-tagline {
  font-family: inherit;
  color: #222;
  font-size: 250%;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
}

/* =========================================================
   Scene Section
========================================================= */

.section#scene {
  background-color: #fff;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.scene-card {
  padding:2%;
  display: flex;
  gap: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-color:#ccc;
}

/* 最後のカードだけセンター配置 */
.scene-card.card-last {
  grid-column: 1 / -1;   /* 2カラムをぶち抜きで1列使う */
  justify-self: center;  /* その列の中で中央寄せ */
  max-width: 520px;      /* お好みで：幅を少し絞るとバランス良い */
}


.scene-thumb {
  flex: 0 0 120px;
  height: 80px;
  background: #ccc;
  background-size: cover;
  background-position: center;
}

.scene-body h3 {
  font-size: 14px;
  margin: 0 0 4px;
}

.scene-body p {
  font-size: 12px;
  margin: 0;
}

/* =========================================================
   Concept Section
========================================================= */

.section-concept{
  background-color: #fffff0;
  font-family: "Hiragino Mincho ProN","游明朝","Yu Mincho","Sawarabi Mincho","Noto Serif JP",serif;
  overflow-x: clip; /* iOSでの横はみ出し対策 */
  padding: 80px 16px; /* 余白はお好みで */
}

.section-concept .container{
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

/* 動画（任意） */
.concept-video-wrap{
  width: 100%;
  max-width: 720px;
  margin: 0 auto 40px;
  aspect-ratio: 16 / 9;
}
.concept-video-wrap iframe{
  width: 100%;
  height: 100%;
  border: none;
}

/* 2カラム（PC） */
.concept-inner{
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

/* 左：縦書きエリア（PC） */
.concept-left{
  flex: 0 0 140px;
  display: flex;
  justify-content: center;
}

/* 縦書きタイトル */
.section-concept .vertical-title{
  writing-mode: vertical-rl;
  font-size: 48px;
  letter-spacing: 0.3em;
  font-weight: 400;
  color: #222;
  line-height: 1.5;
  margin: 0;
}

/* spanで行を分ける（安定） */
.section-concept .vertical-title span{
  display: block;
}

/* 右：本文 */
.concept-right{
  flex: 1;
  max-width: 480px;
}
.section-concept .concept-right p{
  font-size: 15px;
  line-height: 2.2;
  font-weight: 500;
  color: #333;
  margin: 0 0 14px;
}
.section-concept .concept-right p:last-child{
  margin-bottom: 0;
}

/* ---------------------------------------------------------
   SP（iPhone含む）：縦積みにしてタイトルを中央へ
--------------------------------------------------------- */
@media (max-width: 768px){
  .section-concept{
    padding: 64px 16px;
  }

  .concept-inner{
    flex-direction: column; /* ←ここが“中央にならない”問題の決定打 */
    gap: 24px;
    align-items: center;
  }

  .concept-left{
    flex: none;
    width: auto; /* 140px固定を解除 */
  }

  .section-concept .vertical-title{
    font-size: 40px;
    letter-spacing: 0.18em; /* iOSの見た目＆はみ出し対策で少し弱め */
  }

  .concept-right{
    max-width: 560px;
    width: 100%;
  }
}

@media (max-width: 768px){
  .concept-inner{
    flex-direction: column;  /* 縦積み */
    align-items: center;
  }

  .concept-left{
    flex: none;              /* 140px固定の影響を消す */
    width: 100%;
    display: flex;
    justify-content: center; /* タイトルを中央へ */
  }

  .section-concept .vertical-title{
    display: inline-block;
    margin: 0 auto;          /* ← margin:0; が残ってたら上書きされるので重要 */
    font-size: 40px;
    letter-spacing: 0.18em;
  }
}

@media (max-width: 768px){
  .concept-left{ flex: 0 0 auto; }
}


/* =========================================================
   Feature Section
========================================================= */

.section-feature {
  background-color: #e6f0f0;
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  max-width: 820px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  padding: 28px 24px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-icon img {
  max-width: 64px;
  max-height: 64px;
  width: auto;
  height: auto;
  display: block;
}

.feature-card h3 {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 24px;
  margin: 8px 0;
  font-weight: 600;
}

.feature-card p {
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}


/* =========================================================
   Story Section
========================================================= */

.section-story {
  position: relative;
  background: url("../images/story_bg.png") no-repeat center top;
  background-size: contain;
  padding-top: 200px;
  padding-bottom: 200px;
}
@media (max-width: 768px) {
  .section-story {
    background-size: 100% auto;   /* 横幅いっぱい、縦は自然 */
    background-repeat: repeat-y;  /* 縦だけ繰り返す */
    background-position: center top;
    padding-top: 120px;
    padding-bottom: 120px;
  }
}

.story-inner {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  row-gap: 50px;
  grid-auto-rows: minmax(320px, auto);
}

.story-inner .container{
  margin: 0 auto;
}

/* 1段目：タイトル＋本文1（PC） */
.story-row-1 {
  grid-column: 1 / span 2;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr);
  column-gap: 0;
}

/* 本文1を中央寄りに（PC） */
/*.story-block-1 {
  margin-left: auto;
  margin-right: auto;
}*/

/* 2段目・3段目：本文のみセンター寄せ（PC） */
.story-row-2,
.story-row-3 {
  grid-column: 1 / span 2;
  display: flex;
  justify-content: center;
}

/* 縦書き共通（PC） */
.story-title-vertical,
.story-block {
  writing-mode: vertical-rl;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  line-height: 2;
}

/* タイトル（PC） */
.story-title-vertical {
  font-size: 24px;
  letter-spacing: 0.3em;
  margin: 0 auto;
}

/* 本文（PC） */
.story-block {
  font-size: 13px;
  max-height: 400px;
}

.story-block-title {
  font-weight: 500;
  margin-bottom: 12px;
}

.story-block-body {
  font-weight: 400;
  padding-top: 10%;
}

/* =========================================================
   Story Section - SP layout
   スマホでは横書き＆縦積みレイアウトにする
========================================================= */
@media (max-width: 768px) {

  .section-story {
    padding-top: 120px;
    padding-bottom: 120px;
    /*background-size: cover;*/
  }

  .story-inner {
    max-width: 90%;
    display: flex;
    flex-direction: column;
    row-gap: 32px;
  }

  /* 各段を縦に積む */
  .story-row-1,
  .story-row-2,
  .story-row-3 {
    display: block;
  }

  /* タイトル・本文とも横書きに変更 */
  .story-title-vertical,
  .story-block {
    writing-mode: horizontal-tb;
    font-size: 15px;
    line-height: 2;
  }

  /* タイトルは中央寄せ＆少し余白 */
  .story-title-vertical {
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
  }

  /* 本文は制限高さ解除＆余白リセット */
  .story-block {
    max-height: none;
  }

  .story-block-body {
    padding-top: 0;
  }
}


/* =========================================================
   Copy Section
========================================================= */

.section-copy {
  text-align: center;
}

.section-copy .copy-main {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 36px;
  font-weight: 300;
  color: #000;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.section-copy .copy-sub {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: 16px;
  color: #333;
  text-align: center;
  line-height: 2;
}

/* =========================================================
   How To Use Section
========================================================= */

.section-howto {
  background: #fff;
}

/* 2カラムレイアウト */
.howto-layout {
  display: grid;
  grid-template-columns: auto 1fr; /* 左：タイムライン / 右：カード */
  column-gap: 40px;
  max-width: 820px;
  margin: 0 auto;
}

/* 左：縦タイムライン（画像版） */
.howto-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 縦ライン（丸数字の中心） */
.howto-timeline::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: #f2f2f2;
}

/* 各行 */
.howto-timeline li {
  position: relative;
  padding: 20px 0 40px 56px;
}

/* 丸数字アイコン（32x32） */
.howto-num-img {
  width: 32px;
  height: 32px;
  position: absolute;
  left: 0;
  top: 12px;
}

/* ラベル（STEP名） */
.howto-label {
  font-size: 13px;
}

/* 縦ラインの矢印 */
.howto-timeline li::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: 0;
  border-style: solid;
  border-width: 6px 4px 0 4px;
  border-color: #ddd transparent transparent transparent;
}

.howto-timeline li:last-child::after {
  display: none;
}

/* 右：グレーのステップボックス */
.howto-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.howto-step-card {
  background: #f5f5f5;
  padding: 20px 20px;
  font-size: 12px;
}

.howto-step-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.howto-step-card p {
  margin: 0;
  line-height: 1.8;
}

/* CTAボタン */
.howto-cta {
  text-align: center;
  margin-top: 32px;
}

.howto-btn {
  min-width: 200px;
}

/* SP ではタイムラインを非表示（カードのみ） */
@media (max-width: 768px) {
  .howto-layout {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .howto-timeline {
    display: none;
  }
}

/* =========================================================
   Plan Section
========================================================= */

.section-plan {
  background-color: #e6f0f0;
}

.plan-table-wrap {
  max-width: 480px;
  margin: 0 auto;
}

.plan-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
}

.plan-table th,
.plan-table td {
  padding: 10px 14px;
  border: 1px solid #ddd;
  text-align: center;
}

.plan-table th {
  background: #f7f7f7;
  font-weight: 600;
}

.plan-table th,
.plan-table td {
  padding: 10px 14px;
  border: none;                  /* ← いったん全部消す */
  border-bottom: 1px solid #ccc; /* ← 下線だけ細い直線にする */
  text-align: center;
}

.plan-table tr:last-child td {
  border-bottom: none;           /* ← 最後の行は線を消す */
}


/* =========================================================
   FAQ Section
========================================================= */

.section-faq {
  background-color: #fff;
}

.section-faq .container {
  max-width: 760px;
  margin: 0 auto;
}

.faq-list {
  margin: 0 0 32px;
}

.faq-item {
  padding: 28px 0;
  border-bottom: 1px solid #ccc;
}

.faq-item dt {
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
}

.faq-item dd {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  margin-left: 1em;
}

.faq-cta {
  text-align: center;
}

/* =========================================================
   Footer & Pagetop
========================================================= */

.site-footer {
  background: #f8f8f8;
  padding: 40px 0 24px;
  font-size: 11px;
  text-align: center;
}

.footer-logo {
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-info {
  margin: 0 0 8px;
  color: #777;
}

.footer-copy {
  margin: 0;
  color: #aaa;
}

.pagetop {
  position: fixed;
  right: 16px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  border-radius: 2px;
  background: #000;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0.7;
}

.pagetop:hover {
  opacity: 1;
}

.footer-logo-img{
  width: 50px;
}

/* =========================================================
   Responsive (Global)
========================================================= */

@media (max-width: 768px) {
  .hero,
  .section-hero {
    height: 420px;
    min-height: 420px;
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .concept-inner,
  .story-inner {
    flex-direction: column;
    gap: 24px;
  }

  /* 縦書き → 横書きに切り替える場合（必要ならONに） */
  /*
  .vertical-title,
  .story-title-vertical,
  .story-block {
    writing-mode: horizontal-tb;
  }
  */

  /* ナビ：PCナビを隠してハンバーガー表示 */
  .gnav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}


/*20251126 修正*/
/* ▼ PC時：ヒーローの文字位置を少し右へ */
.hero-content,
.hero-inner {
  margin-left: 25%;
}

@media (max-width: 768px) {
  .hero,
  .section-hero {
    align-items: flex-start;   /* 真ん中 → 上寄せに変更 */
    height: 620px;       /* ← ここを好きな値に（おすすめ：600〜720px） */
    min-height: 620px;
    background-size: cover;
  }

  .hero-content,
  .hero-inner {
    margin-left: 8%;          /* SPでは少しだけ左側に寄せる */
    margin-top: 80px;         /* ← ここで“上の余白”を増やす */
  }
}

.story-title-vertical {
    font-size: 48px;
}

.story-block-title {
     font-size: 24px;
}


/* ▼ テーブルの見出し（th）に白い太ボーダー */
.section-plan .plan-table th {
  background: #f7f7f7;
  font-weight: 800;
  border: 10px solid #fff;   /* ← ココ！白い太枠 */
  padding: 20px 0;           /* 少し高さも出すと上品 */
}

/* ▼ データ列（td）に破線の下線 */
.section-plan .plan-table td {
  border: none;                          /* 既存の線をリセット */
  border-bottom: 1px solid #bbb;        /* 破線の下線を付ける */
  padding: 14px 0;
  font-weight: 500;
}

/* ▼ 表の外枠は消す（必要なければ残してOK） */
.section-plan .plan-table {
  border-collapse: separate;
  border-spacing: 0;          /* th の太枠を綺麗に見せる */
  width: 100%;
}

/* ▼ 料金プラン：囲み */
.plan-table-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 3%;
    background-color:#fff;
}

/* video */
.concept-video-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

/* 縦ラインの終点（＞）を少し下げる */
.howto-timeline li::after {
  bottom: -10px;  /* 0 → -8px に。好みで -4〜-12px くらい調整してOK */
}

/* ハンバーガー（通常） */
.hamburger {
  display: none;
  width: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  z-index: 300; /* SPメニューより前へ */
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ▼ ハンバーガーが active（開いている）時：×に変形 */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0; /* 真ん中の線を消す */
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ▼ SP時にハンバーガーを表示、PCナビを非表示にする */
@media (max-width: 768px) {
  .gnav {
    display: none;
  }

  .hamburger {
    display: flex;   /* ← ここで display:none を上書き！ */
  }
}

.hamburger{
  position: relative;
  z-index: 10001;
  pointer-events: auto;
}
.sp-menu{
  /*z-index: 10000;*/
}

/* ハンバーガー本体 */
.hamburger{
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 10002; /* メニューやロゴより前に */
}

/* 3本線 */
.hamburger span{
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: transform .25s ease, top .25s ease, opacity .2s ease;
}

.hamburger span:nth-child(1){ top: 14px; }
.hamburger span:nth-child(2){ top: 21px; }
.hamburger span:nth-child(3){ top: 28px; }

/* × に変形 */
.hamburger.active span:nth-child(1){
  top: 21px;
  transform: rotate(45deg);
}
.hamburger.active span:nth-child(2){
  opacity: 0;
}
.hamburger.active span:nth-child(3){
  top: 21px;
  transform: rotate(-45deg);
}

.hamburger span{ background: #000; }

.hamburger span{ display:block !important; }

