/* PC用：そのまま */
.sidebar {
  background-color: #fff;
  width: 250px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  margin-right: 40px; /* ← ここを追加！右に余白できる */
  margin-left: 40px;
}

/* ハンバーガーボタン非表示 */
.menu-toggle {
  display: none;
}

.main-layout {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  height: 70vh;
  overflow: hidden;
}

.sidebar {
  width: 300px;
  background-color: #fff;
  padding: 40px 10px;
  text-align: center;
}

.logo {
  width: 230px;
  height: 320px;
  margin: 0 auto;
}

.site-title {
  font-size: 24px;
  font-weight: normal;
  background: linear-gradient(to right, #f39c12, #f39ca3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-top: -20px; /* ←上に持ち上げる */
}

.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav li {
  margin: 20px 0;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
}

/* 画面全体に余白なし */
html, body {
  margin: 0;
  height: 100%;
}

header {
  display: flex;
  align-items: center;
}

/* メイン画像エリア：右側に出す */
.main-image {
  flex: 1;                     /* 残り全部使う */
  display: flex;
  justify-content: center;     /* 横中央 */
  align-items: center;         /* 縦中央 */
  box-sizing: border-box;
}

.main-image img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 15px;
  display: block;
}

.main-layout {
  display: flex;
  align-items: center;
  justify-content: center; /* 横中央にしたい場合 */
  max-width: 1200px;
  margin: 0 auto;
}

/* セクション共通スタイル */
.section-block {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;  /* レスポンシブ対応 */
  padding: 0 20px;
  gap: 20px;
}

/* 2番目のセクションで画像と文章を逆にする */
.section-block.reverse {
  flex-direction: row-reverse;
  padding: 25px;
}

/* 画像スタイル */
.section-image {
  width: 40%;
  max-width: 480px;
  height: auto;
  border-radius: 15px;
  display: block;
}

/* テキスト部分のスタイル */
.text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* ← 中のテキストを縦の中央に */
  width: 40%;
  max-width: 1200px;
  font-size: 1rem;
  color: #333;
  height: 100%;              /* 親に対して全高に */
}

.text-container h2 {
  text-align: center;
}

.text-container h4 {
  text-align: center;
}

.text-container p {
  text-align: center;
  line-height: 1.6;
  margin-bottom: 20px;
}

.section-1 {
  background-color: rgba(255, 165, 0, 0.2); /* Orange */
  padding: 25px 30px;
}

.section-block-1 {
  border-radius: 20px;
  padding: 10px;
  background-color: rgba(255, 165, 0, 0.2);
}

/* 共通スタイル */
.section-block-1 {
  display: flex;
  padding: 20px;
  border-radius: 20px;
  background-color: rgba(255, 165, 0, 0.2);
  align-items: center;
}

.section-block-1.reverse {
  flex-direction: row-reverse;
}

.section-image {
  width: 50%;
  border-radius: 10px;
  order: 0; /* デフォルト */
}

.text-container {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.section-title {
  order: 0; /* デフォルト */
}

.section-text {
  order: 1; /* デフォルト */
}

html {
  scroll-behavior: smooth;
}

.main-image {
  width: 100%;
  max-width: 1960px;
  margin: 50px auto 0;  /* ←ここで上に20pxの余白を追加 */
}


@media (max-width: 768px) {
  .main-layout {
    flex-direction: column;
    height: auto; /* 高さ制限を外す */
  }

  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    background-color: #F19995;
    width: 100%;
    padding: 10px 20px;
    position: relative;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
  }

  .nav {
    display: none;
    margin-top: 60px;
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    list-style: none;
    padding: 15px;
  }

  .nav li {
    margin-bottom: 15px;
    text-align: center;
  }

  .nav a {
    color: #F19995;
    text-decoration: none;
    font-size: 1.1rem;
  }

  .site-title {
    font-size: 24px;
    background: linear-gradient(to right, #f39c12, #f39ca3); /* オレンジ→ピンク */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-top: 10px; /* 少し上に上げる（調整OK） */
  }

  .logo {
    height: 40px;
    vertical-align: middle;
  }

  .main-image {
    height: auto;
  }

  .main-image img {
    height: auto;
    border-radius: 0;
  }
  
  .section-block-1 {
    flex-direction: column;
  }

  .section-image,
  .text-container {
    width: 100%;
    max-width: 100%;
  }

  .section-block-1 {
    border-radius: 20px;
    background-color: rgba(255, 165, 0, 0.2);
  }
  
  .image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
  }
  
  .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
  }
  
  .section-block,
  .section-block.reverse {
    flex-direction: column;
  }

  .section-image,
  .text-container {
    width: 100%;
  }

  /* order指定を個別に */
  .section-title {
    order: -1; /* 一番上に */
  }

  .section-image {
    order: 0; /* 中央 */
  }

  .section-text {
    order: 1; /* 一番下に */
  }

  /* text-containerは順番制御しない */
  .text-container {
    display: contents; /* ←中身だけ使って layout */
  }
}

body {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "游明朝", serif;
}

footer {
  text-align: center;
  padding: 20px;
}

@media (max-width: 768px) {
  header {
    display: block !important;
  }

  .main-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: white;
    padding: 20px;
    box-sizing: border-box;
  }

  .logo {
    max-width: 150px;
    height: auto;
  }

  .menu-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #F19995;
  }

  .main-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }


  ol {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 0;
}

ol li {
    list-style-type: decimal;
}

h4, p {
  text-align: center;
}

.nav {
  position: fixed;
  top: 0;
  right: 0; /* ← 左じゃなくて右から表示 */
  width: 70%;  /* ← 画面の70%に調整（好みで） */
  height: auto;
  background-color: #F19995;
  transform: translateX(100%); /* ← 最初は画面外に右へ隠れる */
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  color: #FFFFFF;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 40px; /* ← 左右だけpadding */
}

.nav.open {
  transform: translateX(0); /* ← 表示されるとき */
}

.nav a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  margin: 10px 0;
}

p {
  font-size: 1rem;
}

/* 初期状態：PC用を表示、モバイル用を非表示 */
.pc-only {
  display: none;
}
.mobile-only {
  display: block;
}

h2 {
  font-size: 1.3rem;
}

}

.menu-toggle {
  font-size: 2rem;
  color: #F19995;
  background: none;
  border: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #F19995;
  cursor: pointer;
}

.pc-only {
  display: block;
}
.mobile-only {
  display: none;
}

.icon-close {
  display: none;
}

.menu-toggle.open .icon-menu {
  display: none;
}

.menu-toggle.open .icon-close {
  display: inline;
}

ol li {
  list-style: none;
}

/* 番号を消すためのクラス */
.no-numbers {
  list-style: none;
  padding-left: 0;
}

/* 初期状態では両方非表示 */
.pc-only,
.mobile-only {
  display: none;
}

/* PC用表示（768px以上） */
@media screen and (min-width: 768px) {
  .pc-only {
    display: block;
  }
}

/* モバイル用表示（767px以下） */
@media screen and (max-width: 767px) {
  .mobile-only {
    display: block;
  }

  .chiro-note {
    font-size: 14px;
  }

  .section-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
  
}


