/* リセットCSS（必要に応じて） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.6;
}

header {
  width: 100%;
  background: #fff;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5em 1em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  text-decoration: none;
  color: #333;
  font-size: 1.4em;
  font-weight: bold;
}

.header-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ハンバーガーメニューのCSSは前回のコードをそのまま再利用でOK */
nav {
  position: relative;
}

#menu-btn-check {
  display: none;
}

.menu-btn {
  display: block;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background-color: #333;
  position: absolute;
  transition: 0.3s;
  border-radius: 3px;
}
.menu-btn span {
  top: 50%;
  transform: translateY(-50%);
}
.menu-btn span::before {
  top: -8px;
}
.menu-btn span::after {
  top: 8px;
}
#menu-btn-check:checked ~ .menu-btn span {
  background-color: transparent;
}
#menu-btn-check:checked ~ .menu-btn span::before {
  transform: translateY(8px) rotate(45deg);
}
#menu-btn-check:checked ~ .menu-btn span::after {
  transform: translateY(-8px) rotate(-45deg);
}
.nav-links {
  list-style: none;
  background-color: #fff;
  position: absolute;
  top: 50px;
  right: 0;
  width: 200px;
  display: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.nav-links li {
  border-bottom: 1px solid #eee;
}
.nav-links li:last-child {
  border-bottom: none;
}
.nav-links a {
  display: block;
  padding: 1em;
  color: #333;
  text-decoration: none;
}
#menu-btn-check:checked ~ .nav-links {
  display: block;
}
@media screen and (min-width: 768px) {
  .menu-btn {
    display: none;
  }
  .nav-links {
    position: static;
    display: flex;
    width: auto;
    box-shadow: none;
  }
  .nav-links li {
    border-bottom: none;
  }
  .nav-links a {
    padding: 0.5em 1em;
  }
}

/* メイン全体 */
main {
  max-width: 1200px;
  margin: 2em auto;
  padding: 0 1em;
}

/* お知らせ */
.news {
  margin-bottom: 2em;
}
.news-item {
  margin-bottom: 1em;
  padding: 1em;
  background: #f9f9f9;
  border-left: 4px solid #eee;
}

/* 理念セクション (左右2カラム) */
.philosophy1-wrapper {
  display: flex;
  align-items: center;
  gap: 2em;
  margin-bottom: 2em;
}
/* 画像エリアを最大幅400pxなどに制限する例 */
.philosophy1-image {
  max-width: 200px; /* 必要に応じて変更してみてください */
  flex: 0 0 auto;   /* flexの自動拡大を止める場合は指定しておくと安心 */
}
.philosophy1-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.philosophy1-text {
  flex: 1;
}
.philosophy1-text h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}
.philosophy1-text p {
  line-height: 1.8;
}
/* スマホ対応（画面幅768px以下の場合） */
@media screen and (max-width: 768px) {
  .philosophy1-wrapper {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center;
  }

  .philosophy1-image {
    max-width: 300px; /* 画像サイズを縮小 */
  }

  .controls {
    margin-top: 0.5em; /* 余白を調整 */
  }

  .philosophy1-text {
    text-align: center;
  }
}

/* お客様へ全体 */
.philosophy {
  max-width: 1200px;
  margin: 2em auto;
  padding: 1em;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 2カラムレイアウト */
.philosophy-wrapper {
  display: flex;
  gap: 2em;
  align-items: center;
}

/* 左側: スライダー */
.philosophy-image {
  flex: 1;
  position: relative;
  max-width: 300px; /* 画像の最大幅 */
  margin: auto;
  text-align: center; /* コンテンツを中央揃え */
  overflow: hidden;
}

/* スライド画像コンテナ */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* 各スライド */
.slide {
  flex: 0 0 100%;
  width: 100%;
}

.slide img {
  width: 60%;
  height: auto;
  border-radius: 8px;
}

/* コントロールボタン */
.controls {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-top: 0.5em; /* 画像との間隔を調整 */
}

.control {
  width: 10px;
  height: 10px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.control:hover {
  background-color: #333;
}

input[type="radio"] {
  display: none;
}

#slide1:checked ~ .slides {
  transform: translateX(0%);
}

#slide2:checked ~ .slides {
  transform: translateX(-100%);
}

#slide3:checked ~ .slides {
  transform: translateX(-200%);
}

/* 右側: テキスト */
.philosophy-text {
  flex: 2;
  font-size: 1em;
  line-height: 1.6;
  color: #333;
}

.philosophy-text p {
  margin-bottom: 1em;
}

/* スマホ対応（画面幅768px以下の場合） */
@media screen and (max-width: 768px) {
  .philosophy-wrapper {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center;
  }

  .philosophy-image {
    max-width: 300px; /* 画像サイズを縮小 */
  }

  .controls {
    margin-top: 0.5em; /* 余白を調整 */
  }

  .philosophy-text {
    text-align: center;
  }
}


/* 支払い方法と駐車場案内の2カラム */
.parking-wrapper {
  display: flex;
  flex-wrap: wrap; /* 狭い画面では縦並びに対応 */
  gap: 1em;
  justify-content: space-between;
}

/* 支払い方法セクション */
.payment-methods {
  flex: 1; /* 左右で同じ幅 */
  background-color: #fff; /* 個別セクションの背景色 */
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.payment-methods h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
  text-align: center;
}

.payment-methods ul {
  list-style: none;
  padding-left: 0; /* リストのデフォルト余白を削除 */
}

.payment-methods li {
  margin-bottom: 0.5em;
  font-size: 1em;
  color: #333;
}

/* 駐車場案内全体 */
.parking {
  max-width: 1200px;
  margin: 2em auto;
  padding: 1em;
  background-color: #f9f9f9; /* 全体の背景色 */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 駐車場案内と写真の2カラムレイアウト */
.parking-wrapper {
  display: flex;
  gap: 1em; /* 要素間の隙間 */
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap; /* 狭い画面では縦並び */
}

/* 駐車場案内テキスト */
.parking-text {
  flex: 0.9; /* 均等な幅 */
  font-size: 1em;
  line-height: 1.6;
  color: #333;
  background-color: #fff; /* 背景色 */
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 駐車場写真の横並びスタイル */
.parking-images {
  flex: 1; /* 均等な幅 */
  display: flex;
  gap: 1em; /* 画像間の隙間 */
  justify-content: center;
  align-items: center;
}

.parking-images img {
  max-width: 52%; /* 横並びに収まるサイズ */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応: スマホ用レイアウト */
@media screen and (max-width: 768px) {
  .parking-wrapper {
    flex-direction: column; /* 縦並びに切り替え */
  }

  .parking-images {
    justify-content: space-between; /* スマホでも横並びを維持 */
  }

  .parking-images img {
    max-width: 48%; /* 横並びで収まるサイズ */
  }
}


/* 店舗情報の2店舗を横並び (stores) */
.stores {
  display: flex;
  gap: 2em;
  margin-bottom: 2em;
}

/* 各店舗はさらに左右2カラム (store) */
.store {
  flex: 1;
  display: flex;
  gap: 1em;
  background: #f9f9f9;
  padding: 1em;
  border-radius: 4px;
  /* 必要に応じて影などつけてもOK:
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  */
}

/* 地図領域 */
.map-frame iframe {
  width: 100%;
  max-width: 300px; /* 必要に応じて調整 */
  height: 200px;
  border: 0;
}

/* テキスト領域 */
.map-text {
  font-size: 14px; /* 全体の文字サイズを少し小さめにする例 */
  line-height: 1.6; /* 行間調整 */
}

.map-text h3 {
  font-size: 16px; /* 見出し部分はやや大きめに */
  margin-bottom: 0.5em;
}

.map-text p {
  /* 必要に応じてさらにフォントサイズ調整 */
}


/* Instagramリンク */
.social {
  text-align: center;
  margin-bottom: 2em;
}
.social p {
  margin-bottom: 0.5em;
}
/* ロゴを少しコンパクトにする例 */
.instagram-logo {
  width: 40px;
  height: 40px;
}

/* フッター */
footer {
  text-align: center;
  padding: 1em 0;
  background: #f8f8f8;
  color: #666;
  margin-top: 2em;
}

/* ====================================
   スマホ対応 (768px以下で縦並び)
==================================== */
@media screen and (max-width: 768px) {
  .philosophy-wrapper {
    flex-direction: column;
  }
  .stores {
    flex-direction: column; /* 2店舗を縦並びに切り替え */
  }
  .store {
    flex-direction: column; /* 店舗内の地図・テキストも縦並びに */
  }
  .map-frame iframe {
    max-width: 100%;
    height: 300px; /* スマホ時の高さを確保 */
  }
}
