/* 全体の基本設定 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  background-color: #f5fdf8;
  color: #333;
}

/* セクションごとの共通設定 */
section {
  padding: 3rem 1.5rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* セクションタイトル */
h1, h2 {
  color: #2e7c5e;
  margin-bottom: 1rem;
  text-align: center;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

/* リード文 */
.lead {
  font-size: 1.1rem;
  color: #444;
  text-align: center;
  margin-bottom: 2rem;
}

.intro-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.intro-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.intro-text {
  max-width: 500px;
}


/* 各セクション */
.story-section,
.dream-section,
.family-section {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

/* セクション内画像 */
.section-image {
  text-align: center;
  margin-bottom: 2rem;
}

.section-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 家族紹介リスト */
.family-section ul {
  list-style-type: none;
  padding: 0;
}

.family-section li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.family-section li:last-child {
  border-bottom: none;
}


.text-photo-block .photo img {
  max-width: 100%;
  width: 320px; /* もしくは400pxなど調整可能 */
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 写真→テキストの縦並び（常に上→下） */
.text-photo-block .container {
  display: block;
  text-align: center;
}

.text-photo-block .photo {
  margin-bottom: 2rem;
}

/* 写真のサイズ調整（任意） */
.text-photo-block .photo img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  gap: 2em;
}

.text-photo-block .text {
  text-align: left;
  padding: 0 1rem;
  margin-bottom: 40px;
}

/* テキストと写真の幅を調整 */
.text-photo-block .text,
.text-photo-block .photo {
  flex: 1 1 45%;}



/* ---------------------
   ヘッダー
---------------------- */

/* ヘッダー全体 */
.site-header {
  display: block;
  background-color: #ffffff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
  border-bottom: 2px solid rgba(46, 124, 94, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  text-align: center;
}


/* 内部レイアウト */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  position: relative;
}

/* ロゴエリア */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo {
  height: 50px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo-area {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .site-logo {
    height: 55px; /* ← 少し大きく */
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
  }

  .tagline {
    font-size: 0.85rem;
    color: #444;
  }
}

.tagline {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
  white-space: nowrap;
}

/* ナビメニュー */
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #2e7c5e;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #2e7c5e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}

/* ハンバーガーボタン */
/* ナビメニュー */
.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-menu a:hover {
  color: #2e7c5e;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: #2e7c5e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-menu a:hover::after {
  transform: scaleX(1);
}


/* ハンバーガーボタン */
.menu-toggle {
  position: relative;
  width: 30px;
  height: 22px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1002;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #2e7c5e;
  transition: 0.3s ease;
  border-radius: 2px;
}

.menu-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-toggle::before {
  top: 0;
}

.menu-toggle::after {
  bottom: 0;
}

/* open時に×に変形 */
.menu-toggle.open span {
  opacity: 0;
}

.menu-toggle.open::before {
  transform: rotate(45deg);
  top: 50%;
}

.menu-toggle.open::after {
  transform: rotate(-45deg);
  top: 50%;
  bottom: auto;
}

/* オーバーレイ背景 */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(46, 124, 94, 0.95);
  z-index: 1;
}

.overlay.active {
  display: block;
}

/* スクロール防止用 */
.noscroll {
  overflow: hidden;
}

/* レスポンシブ（スマホ対応） */
@media (max-width: 930px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    z-index: 1002; /* メニューより上に表示 */
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 88px;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(46, 124, 94, 0.95); /* ← 背景色を設定！ */
    padding: 5rem 2rem 2rem;
    z-index: 1001;
  }

  .nav-menu.open {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .nav-menu a {
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: none;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
  }

  .site-logo {
    height: 40px;
  }

  .tagline {
    font-size: 0.75rem;
    color: #eee;
    white-space: nowrap;
  }
}
.tagline {
  font-size: 0.85rem;
  color: #555 !important; /* ← ここで色をしっかり指定 */
  font-style: italic;
  white-space: nowrap;
}


/* PC用メニュー */
@media (min-width: 931px) {
  .overlay {
    display: none !important;
  }

  .menu-toggle {
    display: none;
  }
}