/* =======================================================================
   REM CONVERSION CHEATSHEET (1rem = 16px)
   - 基本式: rem = px / 16
   - ユーティリティ命名例（あなたの方式）:
       0.25rem -> 025 / 1rem -> 100 / 1.25rem -> 125 / 1.5rem -> 150 …等
   -----------------------------------------------------------------------
   |  px  |   rem   | code |  px  |   rem   | code |  px  |   rem   | code |
   |------|---------|------|------|---------|------|------|---------|------|
   |   4  | 0.25rem | 025  |  36  | 2.25rem | 225  |  80  | 5.00rem | 500  |
   |   8  | 0.50rem | 050  |  40  | 2.50rem | 250  |  96  | 6.00rem | 600  |
   |  12  | 0.75rem | 075  |  48  | 3.00rem | 300  | 112  | 7.00rem | 700  |
   |  16  | 1.00rem | 100  |  56  | 3.50rem | 350  | 128  | 8.00rem | 800  |
   |  20  | 1.25rem | 125  |  64  | 4.00rem | 400  |      |         |      |
   |  24  | 1.50rem | 150  |  72  | 4.50rem | 450  |      |         |      |
   |  28  | 1.75rem | 175  |      |         |      |      |         |      |
   |  32  | 2.00rem | 200  |      |         |      |      |         |      |
   -----------------------------------------------------------------------
   よく使う値:
     20px=1.25rem(125), 28px=1.75rem(175), 36px=2.25rem(225), 40px=2.5rem(250),
     48px=3rem(300), 64px=4rem(400)
   補足:
     ・ユーティリティ例: .u-mb-125 { margin-bottom: 1.25rem !important; }
     ・細かい値が必要なときは 062=0.625rem(10px) などを個別に追加
   ======================================================================= */

@charset "UTF-8";
:root {
  --color-base: #fff;
  --color-main: #938060;
  --color-accent: #cf5444;
  --color-main-char: #131313;
  --color-light-gray: #f2f2f2;
  --max-width-pc: 750px;
}
/*------------------------------------------------------------------------------
共通設定
------------------------------------------------------------------------------*/
html,
body {
  font-family: "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", Arial, sans-serif;
  font-style: normal;
  line-height: 1.75;
  /* letter-spacing: -0.04em; */
  background-color: var(--color-base);
  scroll-behavior: smooth;
  color: var(--color-main-char);
  width: 100%;
  letter-spacing: 0.06em;
}
/* PC専用設定（769px以上） */
@media screen and (min-width: 769px) {
  html,
  body {
    /* 横スクロールバーは出さないが、Stickyのために領域は確保 */
    overflow-x: clip;

    /* 縦はヒートマップ計測のために常に出す */
    overflow-y: visible !important;

    /* 高さ制限解除 */
    height: auto !important;

    /* 幅の確保 */
    max-width: 100vw;
  }
}
/* スマホ専用設定（768px以下） */
@media screen and (max-width: 768px) {
  html,
  body {
    /* 横スクロールを物理的に禁止 */
    overflow-x: hidden !important;

    /* 縦は通常通りスクロール */
    overflow-y: auto;

    /* スマホ特有の調整 */
    position: relative;
    width: 100vw;
    height: auto;
    font-size: 52%; /* 750pxデザイン → 375px実機の縮尺 */

    /* iPhoneでの慣性スクロールを有効化 */
    -webkit-overflow-scrolling: touch;
  }
}
@media screen and (max-width: 768px) {
  body {
    min-width: inherit;
  }
}
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  /* overflow-x: hidden; */
  position: relative;
  background-color: var(--color-base);
}
@media screen and (max-width: 768px) {
  .container {
    box-shadow: none;
  }
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
/* h1に対してサイズを明示的に指定する */
h1 {
  font-size: 2rem;
}
img {
  width: 100%;
  height: auto;
}
/*------------------------------------------------------------------------------
Negative margin（utilには用意していないため、使用するもののみ個別に定義）
------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------
ボタン効果
------------------------------------------------------------------------------*/
.btn:hover {
  opacity: 0.7;
}
/* ボタンのサイズを変化させるアニメーション */
.btn-poyopoyo {
  animation: poyopoyo 2s ease-out infinite;
  opacity: 1;
  position: relative;
  overflow: hidden;
}
@keyframes poyopoyo {
  0%,
  40%,
  60%,
  80% {
    transform: scale(1);
  }
  50%,
  70% {
    transform: scale(0.95);
  }
}
.btn-shine::after {
  animation: 2s 0s shine-btn linear infinite;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 100%);
  content: "";
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transform: skewX(-25deg);
  width: 50%;
}
@keyframes shine-btn {
  0% {
    left: -100%;
  }
  20% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}
/*------------------------------------------------------------------------------
ファーストビューエリア
------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------
CTAエリア
------------------------------------------------------------------------------*/
.cta-area-container {
  position: relative;
}
.cta-btn-line {
  position: absolute;
  top: 83%;
  left: 5%;
  width: 90%;
}
.cta-btn-assessment img {
  width: 100%;
}
@media screen and (max-width: 768px) {
  .cta-btn-assessment {
    top: 69%;
    left: 5%;
    width: 90%;
  }
}
/*------------------------------------------------------------------------------
症例エリア
------------------------------------------------------------------------------*/
.portfolio-content {
  position: relative;
}
.portfolio-content-bf {
  position: absolute;
  top: 23%;
  left: 5%;
  width: 90%;
  height: 50%;
  background-color: #f6f5ed;
  border-radius: 2rem;
  padding: 3rem 0;
  box-sizing: border-box;
}
.portfolio-bf-slider {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.portfolio-bf-slider-main-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.portfolio-bf-slider-viewport {
  width: 76%;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.portfolio-bf-slider-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.portfolio-bf-slider-track::-webkit-scrollbar {
  display: none;
}
.portfolio-content-bf-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-content-bf-slide img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.portfolio-bf-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-base);
  background-color: var(--color-main);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portfolio-bf-slider-btn:hover:not(:disabled) {
  opacity: 0.85;
}
.portfolio-bf-slider-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.portfolio-bf-slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.portfolio-bf-slider-btn--prev {
  left: 0.35rem;
}
.portfolio-bf-slider-btn--next {
  right: 0.35rem;
}
.portfolio-bf-slider-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  padding: 0.65rem 0.5rem 0;
  box-sizing: border-box;
}
.portfolio-bf-slider-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background-color: rgba(19, 19, 19, 0.22);
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.portfolio-bf-slider-dot:hover,
.portfolio-bf-slider-dot:focus-visible {
  background-color: rgba(19, 19, 19, 0.4);
}
.portfolio-bf-slider-dot:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.portfolio-bf-slider-dot.is-active {
  background-color: var(--color-main);
  transform: scale(1.2);
}
@media screen and (max-width: 768px) {
  .portfolio-bf-slider-dots {
    gap: 0.4rem;
    padding-top: 0.5rem;
  }
  .portfolio-bf-slider-dot {
    width: 0.6rem;
    height: 0.6rem;
  }
  .portfolio-bf-slider-btn {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 3rem;
  }
  .portfolio-bf-slider-btn--prev {
    left: 0.15rem;
  }
  .portfolio-bf-slider-btn--next {
    right: 0.15rem;
  }
}
/*------------------------------------------------------------------------------
悩みエリア
------------------------------------------------------------------------------*/
.worry-area {
  position: relative;
  z-index: 2;
}
/*------------------------------------------------------------------------------
技術エリア
------------------------------------------------------------------------------*/
.technical-area {
  position: relative;
  margin-top: -4rem;
  z-index: 1;
}
/*------------------------------------------------------------------------------
卒業生の声エリア
------------------------------------------------------------------------------*/
.voice-area {
  background-color: var(--color-light-gray);
  padding: 4rem 0 6rem;
}
.voice-ttl {
  margin-bottom: 2rem;
}
.voice-container {
  margin: 0 2rem;
}
.voice-content {
  background-color: var(--color-base);
  display: flow-root;
  padding-bottom: 4rem;
  margin-top: 6rem;
}
.voice-content-ttl {
  margin-top: -3rem;
  margin-bottom: 3rem;
}
.voice-details {
  margin: 0;
  --voice-summary-label-open: "口コミを見る";
  --voice-summary-label-close: "口コミを閉じる";
}
.voice-content-button {
  display: block;
  width: 100%;
  max-width: 14rem;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  font: inherit;
  font-size: 1.5rem;
  letter-spacing: inherit;
  line-height: 1.5;
  color: var(--color-main-char);
  background-color: #f9f9f9;
  border: none;
  border-radius: 10rem;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-align: center;
  list-style: none;
}
.voice-content-button::-webkit-details-marker {
  display: none;
}
.voice-content-button:hover {
  opacity: 0.85;
}
.voice-content-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.voice-content-button-label {
  display: block;
}
.voice-content-button-label::before {
  content: var(--voice-summary-label-open);
  display: block;
}
.voice-details[open] .voice-content-button-label::before {
  content: var(--voice-summary-label-close);
}
.voice-content-text {
  margin-top: 3rem;
}
/*------------------------------------------------------------------------------
選ばれる理由エリア
------------------------------------------------------------------------------*/
.reason-ttl {
  margin-bottom: 1rem;
}
.reason-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  margin-bottom: 6rem;
}
.reason-content-background-gray {
  background-color: var(--color-light-gray);
  padding: 4rem 0 5rem;
}
/*------------------------------------------------------------------------------
コースエリア
------------------------------------------------------------------------------*/
.course-area {
  margin-bottom: 6rem;
}
.course-ttl {
  margin-bottom: 4rem;
}
.course-container {
  margin: 0 2rem;
}
.course-content {
  background-color: var(--color-base);
  margin-bottom: 3rem;
}
.course-content-inner {
  border: 0.75px solid var(--color-main);
  padding: 3rem 0;
  border-top-style: none;
  /* margin-top: -5.2rem; */
}
.course-content-price {
  padding: 0 2rem;
  margin-bottom: 3rem;
}
.course-details {
  margin: 0;
  padding: 0 2rem;
  --course-summary-label-open: "受講内容を見る";
  --course-summary-label-close: "受講内容を閉じる";
}
.course-content-button {
  display: block;
  width: 100%;
  max-width: 16rem;
  margin: 1rem auto 0;
  padding: 0.75rem 1rem;
  padding-right: 2.5rem;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: inherit;
  line-height: 1.5;
  color: var(--color-base);
  background-color: var(--color-main);
  border: none;
  /* border-radius: 10rem; */
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-align: center;
  list-style: none;
  position: relative;
}
.course-content-button::after {
  content: "＞";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.course-details[open] .course-content-button::after {
  transform: translateY(-50%) rotate(90deg);
}
.course-content-button::-webkit-details-marker {
  display: none;
}
.course-content-button:hover {
  opacity: 0.85;
}
.course-content-button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.course-content-button-label {
  display: block;
}
.course-content-button-label::before {
  content: var(--course-summary-label-open);
  display: block;
}
.course-details[open] .course-content-button-label::before {
  content: var(--course-summary-label-close);
}
.course-content-text {
  margin-top: 3rem;
}
/*------------------------------------------------------------------------------
流れエリア
------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------
よくある質問エリア
------------------------------------------------------------------------------*/
.faq-area {
  margin-bottom: 6rem;
  padding: 4rem 0 0;
}
.faq-ttl {
  margin-bottom: 4rem;
}
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.faq-list {
  overflow-anchor: none;
}
.qa-box {
  border-top: 1px solid rgba(51, 51, 51, 0.3);
  padding: 1rem 0;
}
.qa-box:first-child {
  margin-top: 0;
}
.qa-box:last-child {
  border-bottom: 1px solid rgba(51, 51, 51, 0.3);
}
.acd-check {
  display: none;
}
.acd-label {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: flex-start;
  padding: 0.5em 2em 0.5em 1em;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  /* font-weight: 600; */
  position: relative;
  text-align: justify;
  color: var(--color-main-char);
}
@media screen and (max-width: 768px) {
  .acd-label {
    font-size: 1.75rem;
    line-height: 1.5;
  }
  /* A列と同様、先頭1行目の見かけにQアイコンを合わせる（全体中央揃えはしない） */
  .acd-label:before {
    margin-top: 0.2em;
  }
}
.acd-label:before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  margin-right: 0.5rem;
  background: url("../images/icon_q.png") no-repeat center / contain;
}
.acd-label:after {
  content: "＋";
  position: absolute;
  right: 0.5em;
  top: 50%;
  transform: translateY(-50%);
  height: auto;
  display: block;
  box-sizing: border-box;
  transition: transform 0.3s ease-out;
}
.acd-content {
  display: grid;
  /* ← 横並び：1列目=回答アイコン 2列目=本文 */
  grid-template-columns: 2.5rem 1fr;
  /* ← 閉じてる間は中身の行を0frで潰す（高さ可変でもアニメ可） */
  grid-template-rows: 0fr;
  align-items: start;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows 0.3s ease-out, padding-block 0.3s ease-out, opacity 0.3s ease-out, font-size 0.3s ease-out, line-height 0.3s ease-out, margin-bottom 0.3s ease-out;
  font-size: 0;
  line-height: 0;
  letter-spacing: 0.06em;
  /* font-weight: 600; */
  /* 閉じている間は縦パディング0で"上ずれ感"を抑える */
  padding: 0 2em 0 1em;
  text-align: justify;
}
@media screen and (max-width: 768px) {
  .acd-content {
    padding: 0 2em 0 1em;
  }
}
/* デフォルト（閉じているとき）は table を非表示にしてしまう */
.acd-content table {
  display: none;
  width: 100%;
  border-collapse: collapse; /* 線をキレイに */
  font-size: 1.5rem;
  margin: 2rem auto;
}
@media screen and (max-width: 768px) {
  .acd-content table {
    font-size: 1.75rem;
  }
}
.acd-content table th,
.acd-content table td {
  border: 1px solid var(--color-main-char);
  padding: 1rem 1.5rem;
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
}
/* 開いたときだけ table を表示する */
.acd-check:checked ~ .acd-content table {
  display: table;
}
/* gridの0frを機能させるため、中身はoverflow:hiddenに */
.acd-content > * {
  grid-column: 2;
  min-height: 0; /* 0fr時のつぶれ対策 */
  overflow: hidden;
}
/* 1行目とQアイコン列の縦位置を揃える（既定の p 上マージンで本文だけ下にずれるのを防ぐ） */
.acd-content > *:first-child {
  margin-top: 0;
}
/* 開いた状態 */
.acd-check:checked ~ .acd-content {
  grid-template-rows: 1fr; /* 実高までなめらかに展開 */
  opacity: 1;
  visibility: visible;
  padding-top: 1em;
  font-size: 1.25rem;
  line-height: 1.5;
  transition: grid-template-rows 0.3s ease-out, padding-block 0.3s ease-out, opacity 0.3s ease-out, font-size 0.3s ease-out, line-height 0.3s ease-out, margin-bottom 0.3s ease-out;
}
.acd-content:before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  width: 2rem;
  height: 2rem;
  align-self: start;
  background: url("../images/icon_a.png") no-repeat center / contain;
  display: none;
}
@media screen and (max-width: 768px) {
  .acd-check:checked ~ .acd-content {
    font-size: 1.75rem;
    line-height: 1.5;
  }
  /* 本文1行目のキャップ高付近にAアイコンを合わせる */
  .acd-content:before {
    margin-top: 0.2em;
  }
}
/* 開いたときだけ回答アイコンを表示する */
.acd-check:checked ~ .acd-content::before {
  display: block;
}
.acd-check:checked + .acd-label:after {
  content: "ー";
}
.acd-content p {
  margin-bottom: 0.75em;
}
.acd-content ul {
  list-style: disc;
  padding-left: 2em;
  margin-bottom: 0.75em;
}
/*------------------------------------------------------------------------------
会社概要エリア
------------------------------------------------------------------------------*/
.company-area {
  padding: 6rem 0;
  background-color: #fbfaf6;
}
.company-ttl {
  margin-bottom: 4rem;
}
.company-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}
.company-access-map {
  width: 90%;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.company-access-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
/*------------------------------------------------------------------------------
フッターエリア
------------------------------------------------------------------------------*/
.footer-area {
  padding: 3rem 0 2rem;
}
.footer-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media screen and (max-width: 768px) {
  .footer-layout {
    gap: 2rem;
  }
}
.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
@media screen and (max-width: 768px) {
  .footer-menu {
    flex-direction: column;
    gap: 2rem;
  }
}
.footer-menu a {
  text-decoration: none;
}
.footer-menu a:hover {
  text-decoration: underline;
}
.footer-menu li {
  font-size: 1.25rem;
  /* font-weight: 600; */
  color: var(--color-main-char);
}
@media screen and (max-width: 768px) {
  .footer-menu li {
    font-size: 1.5rem;
  }
}
.copyright {
  font-size: 1.25rem;
  /* font-weight: 600; */
  color: var(--color-main-char);
}
@media screen and (max-width: 768px) {
  .copyright {
    font-size: 1.5rem;
  }
}
/*------------------------------------------------------------------------------
追従ボタン（表示制御は fixed_button.js / SPは全幅・PCは中央カラム幅に合わせる）
------------------------------------------------------------------------------*/
.fixed-buttons {
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  bottom: 0;

  /* 常時レイアウトに存在させる */
  /* display: flex;
  justify-content: center;
  align-items: center; */

  /* 初期は画面下に退避＆非表示 */
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  /* ニョキっと出るトランジション */
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0s linear 0.55s; /* 非表示へ戻るときに visibility を遅延で切る */

  will-change: transform, opacity;
}
.fixed-buttons.visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, visibility 0s linear 0s;
}
.fixed-buttons img {
  width: 90%;
  margin: 0 auto;
  display: block;
}
/* PC: 追従バーの幅を .main-column と同じにし、img の 90% が「中央コンテンツ幅の90%」になる */
@media screen and (min-width: 769px) {
  .fixed-buttons {
    left: calc(50vw - min(var(--max-width-pc), 100vw) / 2);
    right: calc(50vw - min(var(--max-width-pc), 100vw) / 2);
  }
}
/*------------------------------------------------------------------------------
   3カラム固定フレーム（PCのみ）
------------------------------------------------------------------------------*/
.layout-frame {
  /* 背景（任意）：全体に敷く */
  /* 画像を使う場合 */
  /* background: url("../images/bg_main.webp") center/cover fixed no-repeat; */
  /* 単色＋グラデ（例） */
  /* background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06)), var(--color-ultralight-orange); */
  background-color: var(--color-base);
  height: auto !important;
  overflow: visible !important;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start; /* 縦方向の位置揃えを上端に */
  gap: 2rem;
}
/* 中央カラム（3カラムレイアウトの中央部分） */
.main-column {
  overscroll-behavior: contain;

  /* 左右だけ */
  box-shadow: 8px 0 16px rgba(0, 0, 0, 0.1), -8px 0 16px rgba(0, 0, 0, 0.1);
  scrollbar-width: auto;

  /* レイアウト調整（左右のレールに押しつぶされないように） */
  flex: 1 1 var(--max-width-pc);
  width: 100%;
  min-width: 0;
  max-width: var(--max-width-pc);
}
/* 左右レール（追従   ） */
.rail {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  align-self: start;

  /* 画面の高さ分だけ確保し、その中でレール自体が長ければスクロールさせる */
  height: 100vh;
  overflow-y: auto;

  /* レイアウト調整 */
  width: 14rem;
  flex-shrink: 0; /* 縮まないように固定 */

  /* レールの中身を中央寄せにする場合 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  pointer-events: auto;

  /* レール自体のスクロールバーを消す */
  scrollbar-width: none;
}
/* Chrome/Safari用 スクロールバー非表示 */
.rail::-webkit-scrollbar {
  display: none;
}
/* スマホは従来どおり1カラム（レール非表示・全体スクロール） */
@media screen and (max-width: 768px) {
  .layout-frame {
    display: block;
    height: auto;
    background: var(--color-white); /* モバイルはシンプル背景に戻す */
    padding: 0;
  }
  .main-column {
    height: auto;
    overflow: visible;
  }
  .rail {
    display: none;
  }
}
/* 3カラム合計幅(1200 + 14rem*2 + gap2rem*2 = 1712px)を下回ると左右レールを隠す */
@media screen and (max-width: 1712px) {
  .layout-frame {
    gap: 0;
  }
  .rail {
    display: none;
  }
}
