@charset "utf-8";

/* ページ説明（画面上部）のメインタイトル h1：2.5rem・装飾なし・中央 */
body.first-time-page .first-time-page-intro .container > h1 {
  font-size: var(--font-h1);
  line-height: 1.35;
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  letter-spacing: normal;
}

body.first-time-page .first-time-page-intro .first-time-page-lead {
  max-width: 42em;
  margin: 0 auto;
  font-size: var(--font-lead);
  line-height: 2;
  color: #444;
  text-align: center;
}

/* セクション見出し（各ブロックのメインタイトル h2） */
body.first-time-page .section > .container > h2 {
  font-size: var(--font-h2);
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  letter-spacing: normal;
}

/* はじめての方へ：清元院ものがたり（横書き・読みやすいレイアウト） */
.first-time-monogatari {
  background: #fdf1ef;
}

.first-time-monogatari .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.first-time-monogatari-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 38%);
  gap: 2.5rem 2rem;
  align-items: start;
}

.first-time-monogatari-text {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.first-time-monogatari-text p {
  font-size: inherit;
  line-height: var(--line-body);
  color: #333;
  margin: 0 0 1.25rem;
  text-align: justify;
}

.first-time-monogatari-text p:last-child {
  margin-bottom: 0;
}

.first-time-monogatari-figure {
  margin: 0;
  position: sticky;
  top: 88px;
}

.first-time-monogatari-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

@media screen and (max-width: 900px) {
  .first-time-monogatari-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .first-time-monogatari-figure {
    position: static;
    order: -1;
    max-width: 560px;
    margin: 0 auto;
  }

  .first-time-monogatari-text p {
    font-size: 1rem;
    line-height: 1.9;
  }
}

/* はじめての方へ：清元院のおもい（画像なし・横書き） */
.first-time-omoi .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.first-time-omoi-inner {
  max-width: 42em;
  margin: 0 auto;
  font-size: inherit;
  line-height: var(--line-body);
  color: #333;
  writing-mode: horizontal-tb;
}

.first-time-omoi-inner p {
  margin: 0 0 1.25rem;
  text-align: justify;
}

.first-time-omoi-inner p:last-child {
  margin-bottom: 0;
}

/* 本文（.first-time-omoi-inner）より少し大きく・太字（親の font-size 基準） */
.first-time-omoi-inner .first-time-omoi-lead {
  font-size: 150%;
  font-weight: bold;
  margin: 0 0 1.5rem;
  text-align: center;
}

.first-time-omoi-sign {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0;
  letter-spacing: 0.15em;
}

@media screen and (max-width: 900px) {
  .first-time-omoi-inner {
    font-size: 1rem;
    line-height: 1.9;
  }
}

/* はじめての方へ：スタッフ紹介（style.css の #main .list と同等。#main 外のため別セレクタ） */
.first-time-staff .list {
  width: auto;
  margin: 0 3% 15px;
  border: 1px solid #ccc;
  padding: 3%;
  background: #fff;
  background: linear-gradient(#fff, #f1f1f1);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.first-time-staff .list figure img {
  float: left;
  background: #fff;
  padding: 0.8%;
  border: 1px solid #ccc;
  width: 30%;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.15);
}

.first-time-staff .list h4 {
  font-size: 16px;
  border-bottom: 2px dotted #ff97d5;
  margin-bottom: 10px;
  margin-left: 34%;
  color: #ff97d5;
}

.first-time-staff .list h4::first-letter {
  border-left: 3px solid #ff97d5;
  padding-left: 10px;
}

.first-time-staff .list p {
  padding: 0;
  margin-left: 34%;
}

@media screen and (max-width: 480px) {
  .first-time-staff .list {
    margin: 0 0 15px;
  }

  .first-time-staff .list figure img {
    float: none;
    padding: 0;
    border: none;
    width: 100%;
  }

  .first-time-staff .list h4,
  .first-time-staff .list p {
    margin-left: 0;
  }
}

/* はじめての方へ：庭園（teien と同一インクルード。#main 外のため .list を別セレクタで） */
.first-time-teien-embed section {
  margin-bottom: 2.5rem;
}

.first-time-teien-embed section:last-child {
  margin-bottom: 0;
}

/* 庭園ブロック内の小見出し（はじめての方へ専用・teien ページには影響しない） */
.first-time-teien-embed h2 {
  font-size: clamp(1.28rem, 2.8vw, 1.65rem);
  font-weight: bold;
  line-height: 1.45;
  margin: 0 0 1.25rem;
  padding: 0.7rem 1rem 0.7rem 1.1rem;
  text-align: left;
  color: #3d3329;
  border-left: 5px solid #ff97d5;
  background: linear-gradient(90deg, rgba(255, 151, 213, 0.18), rgba(255, 255, 255, 0));
  border-radius: 0 6px 6px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.first-time-teien-embed section + section h2 {
  margin-top: 2.25rem;
}

.first-time-teien-embed p {
  line-height: 1.9;
  color: #333;
}

.first-time-teien-embed .teien-yt iframe {
  max-width: 100%;
  width: 100%;
  height: auto;
  min-height: 200px;
  aspect-ratio: 16 / 9;
}

.first-time-teien-embed .teien-yt img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.first-time-teien .list {
  width: auto;
  margin: 0 3% 15px;
  border: 1px solid #ccc;
  padding: 3%;
  background: #fff;
  background: linear-gradient(#fff, #f1f1f1);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.first-time-teien .list figure img {
  float: left;
  background: #fff;
  padding: 0.8%;
  border: 1px solid #ccc;
  width: 30%;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.15);
}

.first-time-teien .list h4 {
  font-size: 16px;
  border-bottom: 2px dotted #ff97d5;
  margin-bottom: 10px;
  margin-left: 34%;
  color: #ff97d5;
}

.first-time-teien .list h4::first-letter {
  border-left: 3px solid #ff97d5;
  padding-left: 10px;
}

.first-time-teien .list p {
  padding: 0;
  margin-left: 34%;
}

@media screen and (max-width: 480px) {
  .first-time-teien-embed h2 {
    font-size: 1.22rem;
    padding: 0.55rem 0.75rem 0.55rem 0.85rem;
    border-left-width: 4px;
  }

  .first-time-teien .list {
    margin: 0 0 15px;
  }

  .first-time-teien .list figure img {
    float: none;
    padding: 0;
    border: none;
    width: 100%;
  }

  .first-time-teien .list h4,
  .first-time-teien .list p {
    margin-left: 0;
  }
}

/* はじめての方へ：諸堂案内（syodou と同一インクルード。syodou.css の 48%/54% を #main 外で再現） */
/* 諸堂案内：小見出し h2（シンプル・共通クラス syodou-section-h2） */
.first-time-syodou-embed .syodou-main-content {
  padding-top: 0.35rem;
}

.first-time-syodou-embed h2.syodou-section-h2 {
  clear: both;
  margin-top: 0;
  margin-bottom: 14px;
  padding: 0 0 8px 0;
  color: #333;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.4;
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid #ccc;
}

/* 各ブロックの直後に続く見出しの上余白 */
.first-time-syodou-embed .list + h2.syodou-section-h2,
.first-time-syodou-embed .list + h3.syodou-section-h3 {
  margin-top: 2.25rem;
}

.first-time-syodou-embed h3.syodou-section-h3 {
  clear: both;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 0 0 6px 0;
  color: #444;
  font-size: 1.65rem;
  font-weight: bold;
  line-height: 1.45;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px dotted #bbb;
}

.first-time-syodou .list {
  width: auto;
  margin: 0 3% 22px;
  border: 1px solid #ccc;
  padding: 3%;
  background: #fff;
  background: linear-gradient(#fff, #f1f1f1);
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.first-time-syodou .list figure img {
  float: left;
  background: #fff;
  padding: 0.8%;
  border: 1px solid #ccc;
  width: 48%;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.15);
}

.first-time-syodou .list p {
  padding: 0;
  margin-left: 54%;
}

@media screen and (max-width: 800px) {
  .first-time-syodou .list figure img {
    float: none;
    width: 100%;
  }

  .first-time-syodou .list p {
    margin-left: 0;
    margin-top: 3%;
  }
}

@media screen and (max-width: 480px) {
  .first-time-syodou-embed h2.syodou-section-h2 {
    font-size: var(--font-h3-mobile);
    padding-bottom: 6px;
  }

  .first-time-syodou-embed h3.syodou-section-h3 {
    font-size: 0.95rem;
    padding-bottom: 5px;
  }

  .first-time-syodou .list {
    margin: 0 0 15px;
  }

  .first-time-syodou .list figure img {
    padding: 0;
    border: none;
  }
}
