/* styles.css */

/* 基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;700&display=swap');

body {
  font-family: 'Noto Serif JP', serif;
  background-color: #e6f0ff;
  color: #333;
  line-height: 1.5;
  font-size: 14px;
}
ol {
  margin-left: 3em;
  padding-left: 0;
}
ol li {
  margin-bottom: 0.4em;
  line-height: 1.6;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* ヘッダー */
header {
  background-color: #6bb9c9;
  color: #f8f9fa;
  padding: 10px 30px;
  position: relative;
}
header h1 {
  margin: 0;
  font-size: 36px;
}
header h1 a {
  color: inherit;
  text-decoration: none;
}
header h1 a:hover {
  opacity: 0.8;
}
header h1 img {
  height: 50px;
  width: auto;
  display: block;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header nav ul {
  list-style: none;
  display: flex;
  font-size: 18px;
  gap: 30px;
}
header nav a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}
header nav a:hover {
  opacity: 0.8;
}
.header-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

/* フッター */
footer {
  background-color: #4a99a6cc;
  color: #f8f9fa;
  text-align: center;
  padding: 10px 30px;
}
footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0px;
}
footer nav ul {
  list-style: none;
  display: flex;
  font-size: 14px;
  gap: 30px;
}
footer nav a {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}
footer nav a:hover {
  opacity: 0.8;
}

/* --- ハンバーガーメニュー ボタン --- */
.hamburger {
  display: none;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 30px;
  height: 22px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 4px;
  background-color: #f8f9fa;
  border-radius: 2px;
}

/* ヒーローセクション */
.hero {
  background-image: url("img/フルパーク_バイクシェルタ.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #6bb9c9;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.hero h1 {
  color: #f8f9fa;
  font-size: 2.5rem;
  margin-top: 20px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}
.hero p {
  color: #f8f9fa;
  margin-top: 15px;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.5;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

/* サービス詳細 */
.service {
  padding: 20px 0px;
  background-color: #e6f0ff;
}
.service h2 {
  font-size: 1.6rem;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #222222;
  border-bottom: 2px solid #222222;
  padding-bottom: 8px;
  width: 100%;
}
.service h3 {
  position: relative;
  font-weight: 600;
  font-size: 1.3rem;
  color: #404d5a;
  padding-left: 28px;
  margin-top: 30px;
  margin-bottom: 10px;
  border-bottom: 2px solid #55616d;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.service h3::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #404d5a;
  font-size: 1.4rem;
  font-weight: bold;
}
.service p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333333;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
.service img {
  width: 90%;
  padding: 20px 40px;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.service iframe {
  width: 90%;
  height: 315px;
  border: none;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.service .detail-row {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.service .detail-row strong {
  flex-shrink: 0;
  text-align: right;
  display: inline-block;
}
.service .btn-container {
  width: 90%;
  margin: 1em auto 0;
}

/* 駐輪場リスト */
.search-box {
  margin: 1em 0;
  display: flex;
  gap: 10px;
  max-width: 600px;
  width: 100%;
}
.search-box input {
  flex: 1;
  padding: 0.75em;
  font-size: 0.9rem;
}
.search-box button {
  padding: 0.75em 1.5em;
  font-size: 0.9rem;
}
.parking-list {
  padding: 40px 20px;
  max-width: 100%;
  background-color: #e6f0ff;
}
.parking-item {
  background: #e6f0ff;
  border: 1px solid #a0b8cc;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 10px;
}
.parking-item img {
  max-width: 100%;
  border-radius: 8px;
}
.parking-item h1 {
  margin: 10px 0;
  font-size: 1.7rem;
}
.parking-item h2 {
  margin: 10px 0;
  font-size: 1rem;
}
.btn {
  width: fit-content;
  display: inline-block;
  padding: 14px 28px;
  background-color: #0099bb;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(107, 185, 201, 0.4);
  transition: all 0.25s ease-in-out;
}
.btn:hover {
  background-color: #5aa9b7;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(90, 169, 183, 0.5);
}

/* 駐車場名とステータスを横並び */
.parking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5rem;
  margin: 10px 0;
}
.status {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #fff;
  white-space: nowrap;
}
.status.full {
  background-color: #d9534f;
}
.status.available {
  background-color: #5cb85c;
}


/* 都道府県リンク一覧 */
.area-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}
.area-nav a {
  background-color: #6bb9c9;
  color: #fff;
  padding: 6px 12px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.85rem;
}
.area-nav a:hover {
  background-color: #4a99a6;
}

/* アコーディオン形式の都道府県ごとのセクション */
.area-section {
  margin-bottom: 30px;
}
.area-section h2 {
  background-color: #c5d9e8;
  padding: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  border: 1px solid #a0b8cc;
  border-radius: 5px;
  color: #222222;
}
.area-section .parking-group {
  margin-top: 10px;
  display: none;
}
.area-section.open .parking-group {
  display: block;
}

/* サイドバー */
.sidebar-layout {
  display: flex;
  gap: 20px;
}
.sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #c5d9e8;
  padding: 20px;
  border: 1px solid #a0b8cc;
  border-radius: 10px;
}
.sidebar h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #222222;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
}
.sidebar li {
  margin-bottom: 8px;
}
.sidebar a {
  color: #6bb9c9;
  text-decoration: none;
}
.sidebar a:hover {
  text-decoration: underline;
}

/* アコーディオン */
.prefecture-group {
  margin-bottom: 30px;
  border: 1px solid #a0b8cc;
  border-radius: 10px;
  background: #c5d9e8;
}
.prefecture-header {
  background: #6bb9c9;
  color: #fff;
  padding: 15px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.prefecture-content {
  display: block;
  padding: 15px;
}
.prefecture-content.open {
  display: none;
}

/* 申し込みフォーム */
.application-form {
  padding: 40px 20px;
  background: #e6f0ff;
}
.application-form form {
  display: flex;
  flex-direction: column;
}
.application-form label {
  margin-top: 15px;
  font-weight: bold;
  font-size: 0.9rem;
}
.application-form input,
.application-form select,
.application-form textarea {
  margin-top: 5px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  background-color: #f0f5fb;
}
.application-form input[readonly] {
  background-color: #d5dce4;
  color: #6c757d;
  cursor: not-allowed;
  font-weight: bold;
}
.application-form input:invalid {
  border-color: red;
}
.application-form button {
  margin-top: 20px;
  padding: 10px;
  background-color: #6bb9c9;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.95rem;
}
.application-form button:hover {
  background-color: #4a99a6;
}
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.checkbox-container .checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  box-sizing: border-box;
}
.checkbox-container input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 2px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  background: none;
}
.checkbox-container input:checked + .checkmark {
  background-color: #6bb9c9;
  border-color: #6bb9c9;
}
.checkbox-container input:invalid + .checkmark {
  border-color: red;
}


/* オーナー募集ページ */
.owner-info {
  padding: 40px 20px;
  background-color: #e6f0ff;
}
.owner-info h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #222222;
  
}
.owner-info h3 {
  font-size: 1.1rem;
  margin-top: 30px;
  margin-bottom: 30px;
  border-bottom: 2px solid #222222;
  padding-bottom: 8px;
  width: 100%;
}
.owner-info p {
  font-size: 1rem;
}
.owner-info ul {
  margin-top: 10px;
  padding-left: 20px;
  font-size: 0.9rem;
}
.owner-info ul li {
  margin-bottom: 8px;
}
.owner-info a {
  color: #6bb9c9;
  text-decoration: underline;
}
.owner-info a:hover {
  color: #4a99a6;
}


/* ====== レスポンシブ対応: スマホ・タブレット用メディアクエリ ====== */
@media (max-width: 768px) {
  body {
    font-size: 10px;
  }

  .hamburger {
    display: flex;
  }
  header nav ul {
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #6bb9c9;
    border-radius: 5px;
    padding: 10px 20px;
    width: 180px;
    z-index: 1000;
  }
  header nav ul.open {
    display: flex;
  }
  header nav ul li {
    margin-bottom: 10px;
  }
  header nav a {
    color: #f8f9fa;
    font-size: 14px;
  }
  header h1 img {
    height: 30px;
    width: auto;
    display: block;
  }

  footer nav ul {
    flex-direction: column;
    gap: 10px;
  }
  footer nav a {
    padding: 6px 0;
  }

  .container {
    padding: 10px;
  }

  .hero {
    padding: 20px 10px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 0.8rem;
  }

  .service {
    padding: 20px 10px;
  }

  .sidebar-layout,
  .main-layout {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    flex-shrink: 0;
    margin-bottom: 20px;
    padding: 15px 10px;
    background: #c5d9e8;
  }
  .main-content,
  .main {
    width: 100%;
  }

  .area-nav a {
    font-size: 12px;
    padding: 4px 8px;
  }

  .parking-item {
    padding: 15px;
    font-size: 14px;
  }
  .parking-item img {
    width: 100%;
    height: auto;
  }
  .parking-item h1 {
    margin: 10px 0;
    font-size: 1.3rem;
  }

  .application-form input,
  .application-form select,
  .application-form textarea {
    width: 100%;
  }

  .area-section h2,
  .prefecture-header {
    font-size: 1.1rem;
    padding: 8px 12px;
  }
}
