@charset "UTF-8";

.section-group--gradient {
  background: linear-gradient(
    180deg,
    var(--color-bg-primary) 40%,
    #b6b6b6 70%,
    #efefef 84%,
    var(--color-bg-secondary) 100%
  );
}
/* ========================
  how-to__method
======================== */
.section--how-to {
  background-color: var(--color-bg-secondary);
  position: relative;
}

.how-to__heading,
.parallel-event__heading,
.lantern-faq__heading,
.paper__heading {
  text-align: center;
}

.parallel-event__heading {
  color: var(--color-text);
}

/* how-to__lead / how-to__method* / how-to__annotation-list は style.css に移行済み */

/* ========================
  how-to__flow
======================== */

.how-to__flow-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.how-to__flow-item {
  position: relative;
}

.how-to__flow-item:not(:last-child)::after {
  content: "";
  display: block;
  width: 36px;
  height: 40px;
  background-image: url("../img/common/shape-tri.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  right: 50%; /* 左右の中央へ */
  bottom: -50px; /* カードの下側に配置（gapの値に合わせて調整） */
  transform: translateX(50%) rotate(90deg); /* 半分戻して、90度右回転 */
  z-index: 1;
}

.how-to__flow-card {
  background-color: var(--color-bg-card);
  padding: var(--space-lg);
  overflow: hidden;
}

/* how-to__flow-title / flow-step / flow-step::before は style.css に移行済み */

.how-to__flow-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-lg);
}

.how-to__flow-right {
  width: min(600px, 100%);
  padding-top: var(--space-sm);
}

.how-to__flow-left {
  width: min(470px, 100%);
}

.how-to__flow-text {
  margin-top: var(--space-sm);
}

.how-to__flow-text02 {
  margin-bottom: var(--space-md);
}

.how-to__flow-time {
  color: var(--color-gray-200);
  font-size: var(--fs-body-lg); /* 18→20px */

  border-top: solid 1px currentColor;
  border-bottom: solid 1px currentColor;
  padding: var(--space-xs);
  margin-bottom: var(--space-md);
}

.how-to__flow-price .text-en {
  font-size: var(--fs-3xl);
  font-weight: 400;
  letter-spacing: var(--ls-sm);
}

/* how-to__flow-notice の基本定義は style.css に移行済み */
/* lanternページ固有：notice内 span の色上書き */
.how-to__flow-notice span {
  color: var(--color-gray-100);
}

.how-to__flow-notice-tent {
  margin-block: var(--space-sm);
}

.how-to__flow-sub-title {
  font-size: var(--fs-heading-sm);
  margin-block: var(--space-lg) var(--space-md);
  position: relative;
  padding-left: 48px;
}

.how-to__flow-sub-title::before {
  content: "";
  display: block;
  position: absolute;
  width: 40px;
  height: 1px;
  background-color: currentColor;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.how-to__flow-step-item {
  padding-bottom: var(--space-sm);
}

.how-to__flow-right02 {
  display: flex;
  gap: var(--space-sm);
}

.how-to__flow-right03 {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.how-to__flow-image {
  width: 100%;
  aspect-ratio: 1.618 / 1;
}

/* how-to__flow-image img は style.css に移行済み */

.how-to__flow-image02 {
  /* flex: 0 0 calc(53% - (var(--space-md) / 2)); */
  max-height: 100%;
}

.how-to__flow-image02 img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
}

.how-to__flow-image-terace {
  margin-bottom: var(--space-lg);
}

.how-to__flow-caption {
  padding: var(--space-xs) var(--space-sm) 0;
  font-size: var(--fs-body); /* 16→18px */
}

/* ========================
  parallel-event
======================== */
.section--parallel-event {
  background-color: var(--color-bg-secondary);
  position: relative;
}

.section--parallel-event::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/common/bg-texture.webp");
  opacity: 0.25;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 0;
}

.parallel-event__inner {
  color: var(--color-text);
}

.parallel-event__inner > * {
  position: relative;
  z-index: 1;
}

.parallel-event__content {
  display: grid;
  grid-template-columns: 1fr 370px;
  gap: var(--space-xl);
}

.parallel-event__text {
  margin-bottom: var(--space-md);
}

.parallel-event__img {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: var(--space-lg);
}

.parallel-event__item--bottom .parallel-event__img {
  align-self: end;
}

.parallel-event__img--music {
  width: 220px;
}

.parallel-event__link {
  font-size: var(--fs-body); /* 16→18px */
}

.parallel-event__link--box {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  max-width: 370px;
  width: 100%;
  padding: var(--space-sm);

  background-color: var(--color-gray-100);
  border: 1px solid var(--color-gray-400);
  transition:
    background-color var(--hover-speed) var(--hover-timing),
    border-color var(--hover-speed) var(--hover-timing),
    color var(--hover-speed) var(--hover-timing);
}

.parallel-event__link--box:hover {
  background-color: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-text);
}

.parallel-event__link--tsuguten {
  font-weight: 400;
  margin-top: var(--space-xs);
}

.parallel-event__note {
  font-family: var(--font-mincho);
  font-size: var(--fs-lg); /* 20→24px */
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.parallel-event__annotation-list {
  font-size: var(--fs-body); /* 16→18px */
  color: var(--color-gray-400);
  background-color: var(--color-gray-100);
  padding: var(--space-xs);
  margin-block: var(--space-sm) var(--space-md-lg);
}

.parallel-event__overview {
  border: solid 1px var(--color-gray-300);
  padding: var(--space-sm);
}

.parallel-event__subheading {
  width: 100%;
  background-color: var(--color-gray-400);
  font-size: var(--fs-body); /* 16→18px */
  color: var(--color-gray-100);
  padding:var(--space-xs)  var(--space-sm);
}

.parallel-event__btn {
  margin-top: var(--space-xxl);
}

/* 日時・場所・主催のすべてにインデントを適用 */
.parallel-event__time,
.parallel-event__place,
.parallel-event__host {
  display: block; /* インデントを効かせるためにブロック化 */
  padding-left: 3em; /* 「項目名：」の幅に合わせて調整（3.5〜4em程度） */
  text-indent: -3em; /* 1行目だけ左に戻す */
}

/* リンクが「主催：」の横から落ちるのを防ぐ */
.parallel-event__link--tsuguten.u-link {
  display: inline; /* inline-flexを解除し、普通の文字として扱う */
  width: auto; /* fit-contentを解除 */
  padding-inline: 0; /* 左右の余白をリセットして、文字のすぐ横に配置 */
}

/* アイコンが文字と一緒に改行されるように調整 */
.parallel-event__link--tsuguten.u-link::after {
  display: inline-block;
  transform: translateY(-2px);
  vertical-align: middle;
  margin-left: var(--space-sm);
}

/* ========================
  faq
======================== */
.section__group--texture {
  background-color: var(--color-bg-secondary);
  position: relative;
  padding-bottom: var(--section-padding);
}

.section__group--texture::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/common/bg-texture.webp");
  opacity: 0.25;
  background-repeat: repeat;
  background-size: 800px auto;
  background-position: center top;
  z-index: 0;
}
.lantern-faq__content {
  color: var(--color-text);
  padding-top: var(--space-xl);
}

.lantern-faq__inner > * {
  position: relative;
  z-index: 1;
}

/* ========================
  FAQ コンポーネント lanternページ固有調整
  （基本スタイルは style.css に定義）
======================== */

/* A本文：lanternページのフォントサイズ・行間 */
.faq-answer__text {
  font-size: var(--fs-body); /* 18→20px */
  font-weight: 400;
  line-height: var(--lh-base);
}

/* ========================
  paper
======================== */
.paper__content {
  display: grid;
  /* 1列目: 3/7, 2列目: 4/7 */
  grid-template-columns: 3fr 4fr;
  grid-template-rows: auto auto auto;
  gap: var(--space-md-lg) var(--space-lg);
  align-items: start;
}

/* figureのリセットと設定 */
.paper__visual,
.paper__samples {
  margin: 0; /* ブラウザ標準の余白を削除 */
}

/* 記入写真（左側3行ぶち抜き） */
.paper__visual {
  grid-column: 1 / 2;
  grid-row: 1 / 4;
}

.paper__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* エリアに合わせてトリミング */
  display: block; /* 下の隙間防止 */
}

/* 右側コンテンツ */
.paper__text {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.paper__note {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  font-size: var(--fs-body); /* 16→18px */
}

.paper__samples {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
  justify-self: end;
  max-width: 380px;
}

.paper__samples img {
  width: 100%;
  height: auto;
  display: block;
}

/* Layout & Cards調整のためのレスポンシブ */
@media screen and (max-width: 981px) {
  /* ========================
  how-to-method
  ======================== */
  /* how-to__method-list / how-to__method のSP定義は style.css に移行済み */

  /* lanternページ固有：白エリアのSP padding（topページとは異なる） */
  .how-to__method-info {
    padding: var(--space-lg) var(--space-md);
    flex-grow: 0;
  }

  .how-to__flow-card {
    padding: var(--space-lg) var(--space-md);
  }

  /* ========================
  how-to-flow
  ======================== */
  .how-to__flow-list {
    gap: var(--space-lg);
  }
  .how-to__flow-item {
    width: min(570px, 100%);
    margin-inline: auto;
  }
  .how-to__flow-content {
    flex-direction: column;
  }

  /* 子要素の幅を「横幅いっぱい」に広げる */
  .how-to__flow-left,
  .how-to__flow-right {
    width: 100%;
    max-width: 100%; /* min-widthなどの干渉を防ぐ */
  }

  .how-to__flow-right {
    padding-top: 0;
  }

  .how-to__flow-item:not(:last-child)::after {
    bottom: -2.2em;
    width: 1em;
  }

  /* ========================
  parallel-event
  ======================== */
  .section__heading--parallel-event {
    text-align: center;
  }

  .parallel-event__content {
    margin-inline: auto;
    width: min(630px, 100%);

    grid-template-columns: 1fr;
    gap: var(--space-md-lg);
  }

  /* ========================
  paper
  ======================== */

  .paper__content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md-lg) 0;
  }

  /* SPでの順番をorderで制御 */
  .paper__text {
    order: 1;
  }
  .paper__note {
    order: 2;
    margin-block: var(--space-sm);
  }
  .paper__samples {
    display: none;
  }

  .paper__samples img {
    width: 100%;
    height: auto;
  }

  .paper__visual {
    display: block;
    grid-column: 1 / 2;
    grid-row: auto;
    order: 4; /* 一番下に配置 */
    height: auto;
    width: min(570px, 100%);
    margin-inline: auto;
  }

  .paper__visual img {
    width: 100%;
    height: auto;
  }
}

/* ========================
  固定ボタン（とうろうを流す）を非表示
  -------------------------------------------------------------------
  このページ自体が「とうろうの流し方 / How to Float a Lantern」であり、
  同じページへ誘導する固定ボタンは不要なため非表示にしています。
  ※ lantern.css は lantern.html / en/lantern.html でのみ読み込まれるため、
    この指定は当該2ページにのみ適用されます。
======================== */
.fixed-btn {
  display: none;
}
