/* ===============================
  共通
================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 100%; /* =16px */
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: sans-serif;
  font-size: 1rem; /* =16px */
  line-height: 1.6;
  background-color: #f5f7fa;
  color: #333;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  color: #0bd;
}
/* ========================================
  Utility CSS 2025（共通ユーティリティクラス）
  - 余白 / フォント / 色 / レイアウト
  - style.css の冒頭に貼り付けて使用
======================================== */

/* === フォント系 === */
p,
.text-base {
  font-size: 1rem;
  text-align: left;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.text-note {
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
}
.text-caption {
  font-size: 0.75rem;
  color: #666;
  text-align: right;
  display: block;
}
.text-bold {
  font-weight: bold;
}
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.heading-xl {
  font-size: 2.4rem; /* ≒38px */
  font-weight: bold;
  padding-bottom: 1.5rem;
}
h2 span {
  font-size: 3rem;
}
h3 span {
  font-size: 2rem;
  /* font-style: italic;
  color: #333; */
  background-color: #f5f7fa;
  border: 1px solid #f5f7fa;
  border-radius: 50%;
}
.heading-lg {
  font-size: 2rem; /* ≒32px */
  font-weight: bold;
  padding-bottom: 1.5rem;
}
.heading-md {
  font-size: 1.5rem; /* ≒24px */
  font-weight: 600;
}
.heading-sm {
  font-size: 1.2rem; /* ≒19px */
  font-weight: normal;
}
/* === レイアウト補助 === */
.w-full {
  width: 100%;
}
.max-w-50 {
  max-width: 50px;
  margin: 0 auto;
}
.max-w-120 {
  max-width: 120px;
  margin: 0 auto;
}
.d-block {
  display: block;
}
.d-inline {
  display: inline;
}
.d-none {
  display: none;
}

/* === 色・背景・装飾 === */
.bg-light {
  background-color: #f5f7fa;
}
.text-main {
  color: #336699;
}
.text-accent {
  color: #0bd;
}

.rounded {
  border-radius: 8px;
}
.shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* === セクション共通設定 === */
main {
  position: relative;
  z-index: 1;
}

section {
  background-color: #f5f7fa;
  padding: 3rem 1rem;
  text-align: center;
}

/* ✅ 背景画像付きセクション（scrollで固定せず使える） */
section.bg-image {
  background: linear-gradient(
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.9)
    ),
    /* ← 白の薄いベール */ url("images/bg.webp") center/cover no-repeat;
  background-attachment: scroll;
  background-size: cover;
}

/* ✅ 背景白バージョン */
section.white-bg {
  background-color: #ffffff;
}

/* ✅ 背景ブルーバージョン（optional） */
section.blue-bg {
  background-color: #336699;
}

/* ✅ 透明なつなぎセクション */
section.transparent-gap {
  background-color: transparent;
  height: 10rem;
  pointer-events: none;
}

h1,
h2,
h3 {
  color: #336699;
}

/* === モーダル === */
#modal-text {
  white-space: pre-line; /* \n を改行として表示 */
  padding: 2rem 1rem;
}
.modal {
  display: none; /* ← 重要 */
  position: fixed;
  z-index: 1000;
  padding: 5%;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}
.modal-content {
  background-color: #fff;
  margin: 0 auto;
  margin-top: 2rem;
  padding: 1rem;
  max-width: 700px;
  max-height: 90vh; /* ← 画面の高さに応じた最大値を指定 */
  overflow-y: auto; /* ← 垂直方向にスクロール可能に */
  border-radius: 8px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 2rem;
  color: #333;
  background-color: #fff;
  cursor: pointer;
  z-index: 1001;
  padding: 0 0.5rem;
}

/* === #loading === */
#loading-screen {
  position: fixed;
  z-index: 9999;
  background: #fff;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease;
  pointer-events: none;
}

.loading-text {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.2rem;
  color: #336699;
  margin-bottom: 20px;
}

.loading-text .char {
  opacity: 0;
  animation: fadeInChar 0.8s forwards;
}

.loading-text .char:nth-child(n) {
  animation-delay: calc(0.1s * var(--i));
}

.loading-logo img {
  opacity: 0;
  width: 120px;
  animation: logoFade 1s ease 2s forwards;
}

@keyframes fadeInChar {
  to {
    opacity: 1;
    transform: translateY(0);
  }
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes logoFade {
  to {
    opacity: 1;
    transform: scale(1);
  }
  from {
    opacity: 0;
    transform: scale(0.95);
  }
}

/* === ハンバーガー === */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  width: 30px;
  height: 21px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
}

.mobile-menu {
  position: fixed;
  right: -100%;
  top: 0;
  width: 80%;
  height: 100%;
  background: #fff;
  z-index: 1500;
  transition: right 0.4s ease;
  padding: 40px 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu .close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

.mobile-logo img {
  max-width: 160px;
  margin: 0 auto 30px;
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
  line-height: 0.6;
}

.mobile-menu li {
  margin-top: 2rem;
}

.mobile-menu a {
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
}

.mobile-menu a span {
  display: block;
  font-weight: bold;
  font-size: 0.75rem;
  color: #336699;
}
.mobile-menu.active ~ .hamburger {
  display: none;
}

.hamburger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

/* ===============================
  Top セクション
================================== */
/* Top セクション */
#top {
  padding: 1rem 1rem;
}
.top-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* gap: 0.5rem; */
}
.top-logo {
  width: 100px;
  height: auto;
}
.top-catch {
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: #333;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 3rem;
}
.top-mainvisual {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  object-fit: cover;
}

/* visualセクション */
.grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 2fr; /* PC: A1 B1 A2 B2 */
  gap: 24px;
  margin: auto;
}

.card {
  height: 300px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  overflow: visible;
  border: none;
}

.card-a {
  align-items: flex-start;
}

.card-b {
  align-items: flex-end;
}

.card img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  box-shadow: -12px 12px 24px rgba(0, 0, 0, 0.3); /* ← 左下に影をつける */
  border-radius: 4px; /* 角を少し丸める（任意） */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  margin: 8px;
}

.card img:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

/* A2/B2 はスマホでは非表示 */
.card.a2,
.card.b2 {
  display: block;
}

@media (max-width: 768px) {
  .grid-wrapper {
    grid-template-columns: 1fr 2fr; /* A1 B1 横並び */
  }

  .card.a2,
  .card.b2 {
    display: none;
  }
}
/* top cardのshakeアニメーション */
/* ▼ 各アニメーション */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-2px);
  }
  40% {
    transform: translateX(2px);
  }
  60% {
    transform: translateX(-2px);
  }
  80% {
    transform: translateX(2px);
  }
}

@keyframes sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(3deg);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes tilt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-3deg);
  }
}

@keyframes jiggle {
  0% {
    transform: skewX(0deg);
  }
  25% {
    transform: skewX(-4deg);
  }
  50% {
    transform: skewX(4deg);
  }
  75% {
    transform: skewX(-4deg);
  }
  100% {
    transform: skewX(0deg);
  }
}

.shake {
  animation: shake 2.6s ease-in-out infinite;
}
.bounce {
  animation: bounce 1s ease-in-out infinite;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ▼ 共通アニメーションクラス */
.shake {
  animation: shake 0.6s ease-in-out infinite;
}
.sway {
  animation: sway 1.2s ease-in-out infinite;
}
.bounce {
  animation: bounce 1s ease-in-out infinite;
}
.float {
  animation: float 2.5s ease-in-out infinite;
}
.rotate {
  animation: rotate 4s linear infinite;
}
.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}
.tilt {
  animation: tilt 1.2s ease-in-out infinite;
}
.jiggle {
  animation: jiggle 0.6s ease-in-out infinite;
}

/* ===============================
  Concept セクション
================================== */
/* ✅ Concept セクション全体にフォント適用 */
section#concept {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 2;
  padding: 4rem 1.5rem;
  text-align: left;
  color: #333;
}

/* ✅ 見出し用（柔らかく、丸みのあるフォント） */
section#concept h2 {
  font-family: "Kosugi Maru", sans-serif;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.8;
  color: #336699;
  margin-bottom: 2rem;
}

/* ✅ 英語部分：小さく手書き風に見せる */
section#concept .note-en {
  font-size: 0.75rem;
  color: #333;
  font-family: "Courier New", monospace;
  letter-spacing: 0.05em;
}

.section-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* レイアウトをFlex化して横並びにする */
.concept-wrap {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* タイトル縦書き */
.concept-title {
  writing-mode: vertical-rl;
  font-size: 2rem;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: #336699;
  white-space: nowrap;
}

/* 本文エリア */
.concept-text {
  max-width: 260px;
  font-size: 1rem;
  color: #333;
  text-align: center;
}
.text-block {
  margin-bottom: 1.5rem;
}

/* アニメーションのベース */
.line {
  display: inline-block;
  opacity: 0;
  transform: translateY(1em);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform; /* iOS対策 */
}

/* アニメーションの演出 */
.line.appear {
  opacity: 1;
  transform: translateY(0);
}
.line.from-left {
  transform: translateX(-2em);
}
.line.from-left.appear {
  transform: translateX(0);
}
.line.zoom {
  transform: scale(0.8);
}
.line.zoom.appear {
  transform: scale(1);
}
.line.from-bottom {
  transform: translateY(2em);
}
.line.from-bottom.appear {
  transform: translateY(0);
}

/* スマホ対応 */
@media (max-width: 600px) {
  .concept-wrap {
    flex-direction: column;
    align-items: center;
  }

  .concept-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }
}

/* 間取り画像グリッド */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  justify-items: center;
  margin-top: 3rem;
}

.concept-grid img {
  width: 100%;
  max-width: 160px;
  height: auto;
}

/* エンドレス横流れ */
.image-scroller {
  overflow: hidden;
  width: 100%;
  height: 500px;
  position: relative;
}

.scroller-track {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  animation: scroll-left 15s linear infinite;
  will-change: transform;
}

.scroller-track img {
  height: auto;
  width: 220px;
  max-height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

/* エンドレス横流れ_上下ランダム風ズレ */
.img-top {
  margin-top: 0;
  margin-bottom: 150px; /* 300pxの50% */
}

.img-bottom {
  margin-top: 150px;
  margin-bottom: 0;
}

/* エンドレス横流れ_ホバー時の拡大 */
.scroller-track img:hover {
  transform: scale(1.05);
}

/* ✅ スマホ対応（幅600px未満） */
@media screen and (max-width: 600px) {
  .image-scroller {
    height: 400px;
  }

  .scroller-track {
    gap: 0.5rem;
    animation-duration: 10s;
  }

  .scroller-track img {
    width: 40vw;
    height: auto;
  }

  .img-top {
    margin-bottom: 80px; /* 200pxの50% */
  }

  .img-bottom {
    margin-top: 80px;
  }
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
/* ===============================
  About セクション
================================== */
#about .section-inner {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem;
}

#about p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

#about .section-inner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 2rem auto 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ▼ 会社概要ボックス */
.company-info {
  text-align: left;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin-top: 2rem;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.info-row {
  margin-bottom: 0.6rem;
}
.info-row .label {
  font-weight: bold;
  color: #336699;
}

/* ===============================
  Service セクション
================================== */
#service {
  padding: 3rem 1rem;
  /* padding-bottom: 15rem; */
  text-align: center;
}
#service h2 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 2rem;
}
#service .card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
}
#service .card-hover {
  max-width: 320px;
  background: #fff;
  padding: 1rem;
}
/* カードが選択されたときに拡大表示 */
#service .card-hover.zoomed {
  transform: scale(1.2); /* 拡大率は調整可 */
  z-index: 10;
  transition: transform 0.3s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  position: relative;
  cursor: zoom-out;
}
/* 他のカードを非表示（または薄く） */
#service .card-hover.hide {
  opacity: 0.3; /* 薄く表示するだけならこのまま */
  pointer-events: none; /* クリック無効化 */
  transition: opacity 0.3s ease;
}

/* ===============================
  Style セクション
================================== */
#style {
  background-color: #f5f7fa;
  padding: 3rem 1rem;
  /* padding-bottom: 15rem; */
  text-align: center;
}
#style h2 {
  font-size: 1.6rem;
  color: #336699;
  margin-bottom: 2rem;
}
#style h3 span {
  font-size: 2rem;
}

#style .card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
#style .card-text {
  display: -webkit-box; /* フレックスボックスに近い表示形式 */
  font-size: 0.875rem;
  line-clamp: 2; /* 最大行数を2に制限 */
  -webkit-line-clamp: 2; /* 最大行数を2に制限 */
  -webkit-box-orient: vertical; /* 縦方向に並べる */
  overflow: hidden; /* はみ出した内容を隠す */
  text-overflow: ellipsis; /* 溢れたら「…」で省略 */
  padding: 0 2rem;
}

/* ===============================
  Build セクション（Flipカード）
================================== */

/* Flipカードを並べるレイアウト設定 */
.flip-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* 1枚のカード全体を包む要素（3D効果の土台） */
.flip-card_04 {
  background-color: transparent;
  width: 280px;
  height: 280px;
  perspective: 1000px; /* 3D効果に必要 */
  cursor: pointer;
}

/* カードの内側。表と裏をひっくり返す領域 */
.flip-card-inner_04 {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d; /* 3D回転を有効にする */
}

/* hover または JS制御で回転 */
.flip-card_04:hover .flip-card-inner_04,
.flip-card-inner_04.auto-flip {
  transform: rotateY(180deg);
}

/* カードの表面 */
.flip-card-front_04 {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden; /* 裏面が透けないようにする */
  border-radius: 8px;
  overflow: hidden;
  z-index: 2; /* 表面を上にする */
}

/* カードの裏面 */
.flip-card-back_04 {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  background-color: #336699;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transform: rotateY(180deg); /* 裏面は最初から回転しておく */
}
/* 画像は表でも裏でもぴったり合わせる */
.flip-card-front_04 img,
.flip-card-back_04 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===============================
  Craft セクション
================================== */
#craft {
  background-color: #f5f7fa;
  padding: 3rem 1rem;
  /* padding-bottom: 5rem; */
  text-align: center;
}
.craft-title {
  font-size: 1.6rem;
  color: #336699;
}
.craft-copy {
  font-size: 1rem;
  margin: 1rem auto 2rem;
  max-width: 600px;
  color: #333;
}
.craft-image img {
  width: 100%;
  max-width: 640px;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* カード表示 */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.card-hover {
  max-width: 300px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: box-shadow 0.3s;
}
.card-hover:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.card-hover img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-heading {
  font-size: 1.1rem;
  color: #336699;
  padding: 1rem;
}
/* モーダル（動画再生） */
#modal-video {
  width: 100%;
  max-width: 640px;
  height: auto;
  display: block;
  margin: auto;
}

/* ===============================
  Search セクション
================================== */
#search {
  padding: 2rem 1rem;
  /* padding-bottom: 15rem; */
}
#search .section-title {
  text-align: center;
  font-size: 1.6rem;
  color: #fff;
}
/* スクロール型（ボタンを中央に配置） */
/* 共通：ボタン横並び */
.category-buttons {
  display: flex;
  gap: 1rem;
  padding: 1rem 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* スマホ（600px以下）＝左寄せ */
@media screen and (max-width: 600px) {
  .category-buttons {
    justify-content: flex-start; /* ← 左寄せ */
  }
}

/* PC（601px以上）＝中央揃え */
@media screen and (min-width: 601px) {
  .category-buttons {
    justify-content: center; /* ← 中央揃え */
  }
}

.category-buttons button {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid #ccc;
  color: #336699;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: scale(1); /* 初期スケール */
}
.category-buttons button.active {
  background: #336699;
  color: #fff;
  transform: scale(1.2); /* 拡大！ */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.property-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}
.property-card {
  background: #fff;
  max-width: 200px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  margin: 0 auto;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}
.property-card:hover {
  transform: scale(1.02);
}
.property-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.property-card .card-title {
  font-size: 1rem;
  color: #336699;
  margin: 0.5rem;
}
.property-card .card-desc {
  font-size: 0.9rem;
  color: #333;
  margin: 0.5rem;
}

/* モーダル */
.modal-slider {
  width: 100%;
  margin-bottom: 1rem;
}
.modal-slider img {
  width: 100%;
  object-fit: cover;
}
.modal-spec {
  width: 100%;
  border-collapse: collapse;
}
.modal-spec td {
  border: 1px solid #ccc;
  padding: 0.5rem;
}

/* ===============================
  Voice セクション
================================== */
#voice {
  background: #f5f7fa;
  padding: 2rem 1rem;
  /* padding-bottom: 5rem; */
}
#voice .section-title {
  text-align: center;
  font-size: 1.8rem;
  color: #336699;
}
.voice-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.voice-content h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}
.voice-copy {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  line-height: 1.6;
}
.voice-image img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 20px;
  margin: 0 auto;
}
.voice-detail {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  padding: 2rem 1rem;
}

/* ===============================
  バナー
================================== */
.main-site-banner {
  text-align: center;
  margin: 0 auto;
  background-color: #f5f7fa;
  padding: 1rem;
}

.main-site-banner img {
  max-width: 100%;
  height: auto;
  border: 2px solid #336699;
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.main-site-banner img:hover {
  transform: scale(1.03);
}

/* ===============================
  Contact セクション
================================== */
#contact {
  padding: 2rem 1rem;
}
.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: #336699;
}
.contact-copy {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.contact-form label {
  margin-top: 1rem;
  font-weight: bold;
  color: #333;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact-form button {
  margin-top: 1.5rem;
  background-color: #336699;
  color: #fff;
  padding: 0.7rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: #0bd;
}
form .form-message,
.contact-form .form-message,
p.form-message {
  font-size: 3rem; /* スマホでも読みやすい大きさに */
  color: #336699; /* 本サイトのアクセントカラーに調整 */
  margin-top: 1em;
  text-align: center;
  font-weight: bold;
}

/* ===============================
  Access セクション
================================== */

#access {
  background: #f5f7fa;
  padding: 2rem 1rem;
}
.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: #336699;
  margin-bottom: 1.5rem;
}
.access-info {
  text-align: center;
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
}
.access-info p {
  margin: 0.5rem 0;
}
.access-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 8px;
}

/* ===============================
  footer
================================== */
.site-footer {
  background-color: #336699;
  padding: 1rem;
  padding-bottom: 5rem;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
}
.footer-logo img {
  width: 120px;
  margin: 0 auto;
  margin-bottom: 1rem;
}
.footer-info p,
.footer-copy p {
  display: inline-block;
  text-align: center;
  margin: 0.3em 0;
}
