/* 全体 */
body {
  background-color: #fbfafc;
  color: #292524;
  font-family: "Noto Sans JP", sans-serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px;
}

/* ヘッダー */
.header {
  width: 100%;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 15px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* タイトル全体 */
.site-title {
  justify-self: start;
}

/* メインタイトル */
.logo {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* サブタイトル */
.subtitle {
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* ナビ */
.nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

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

.nav a:hover {
  color: #3d7c54;
}

/* ヘッダーボタン */
.header-buttons {
  justify-self: end;
  display: flex;
  gap: 12px;
}

.login-btn,
.register-btn,
.logout-btn {
  padding: 10px 15px;
  border-radius: 20px;
  font-weight: bold;
}

.login-btn {
  border: 3px solid #83b094;
}

.register-btn,
.logout-btn {
  background-color: #2e8b57;
  color: white;
}

.user-name {
  font-weight: bold;
  color: #292524;
  line-height: 3;
}

/* ヒーローエリア */
.hero {
  position: relative;
  height: 300px;
  background-image: url('/images/tennis_court.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 15px 50px 30px 80px;
}

.hero-card {
  position: relative;
  z-index: 1;
  width: 270px;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-card h1 {
  font-size: 21px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 10px;
}

.hero-card p {
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 10px;
}

/* 予約ボタン */
.hero a {
  display: inline-block;
  background-color: #2e8b57;
  color: #ffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: .2s;
}

.hero a:hover {
  background-color: #246b43;
}


/* コート利用状況 */
.usage {
  width: 90%;
  max-width: 1100px;
  padding: 0 40px;
  margin: 30px auto;
  text-align: center;
}

/* セクションヘッダー */
.usage-header,
.information-header {
  display: flex;
  justify-content: space-between;
}

.usage h2,
.information h2 {
  font-size: 21px;
  margin: 10px 0 10px 0;
}

/* 予約関連 */
.reservation-action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-right: 20px;
}

.date-select label {
  margin-right: 15px;
  font-weight: bold;
}

.date-select input {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.reserve-link {
  display: inline-block;
  padding: 10px 20px;
  margin-left: 20px;
  background-color: #2e8b57;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.reserve-link:hover {
  background-color: #246b43;
}

/* 予約テーブル */
.court-table {
  width: 100%;
  margin: 10px auto 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #e8f5e9;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.court-table th,
.court-table td {
  border-bottom: 1px solid #c8dccb;
  padding: 18px;
  text-align: center;
}

.court-table tbody tr:last-child th,
.court-table tbody tr:last-child td {
  border-bottom: none;
}

.court-table thead th {
  background: #83b094;
  color: #ffff;
  font-weight: bold;
}

.court-table tbody th {
  background: #dcedd8;
  font-weight: bold;
  width: 120px;
}

.court-table td {
  font-size: 22px;
  font-weight: bold;
}

.available {
  color: #d32f2f;
  font-weight: bold;
}

.reserved {
  color: #222;
  font-weight: bold;
}

.court-note {
  width: 100%;
  margin-top: 12px;
  margin-left: 10px;
  text-align: left;
  font-size: 12px;
}

.court-note span:first-child {
  margin-right: 20px;
}

/* コート情報 */
.court-list {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 20px;
}

.court-card {
  flex: 1;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  overflow: hidden;
  text-align: center;
}

.court-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.court-card h3 {
  margin: 10px 0 10px;
  font-size: 18px;
}

.court-card p {
  padding: 0 20px 25px;
  line-height: 1.8;
  text-align: left;
  font-size: 13px;
}

/* 基本情報 */
.information {
  width: 90%;
  max-width: 1100px;
  margin: 30px auto;
  background: #e8f5e9;
  border-radius: 16px;
  padding: 10px 40px;
}

.information-header {
  display: flex;
  justify-content: space-between;
}

.information-inner {
  padding-bottom: 10px
}

.information h2 {
  font-size: 21px;
  margin-bottom: 10px;
}

.information-list {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.information-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.information-card img {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.information-card h3 {
  margin-bottom: 20px;
  font-size: 18px;
}

.information-card p {
  line-height: 1.8;
  font-size: 13px;
}

.supplement {
  text-align: left;
  padding-top: 10px;
}

.information-card ul {
  list-style: disc;
  list-style-position: outside;
  width: fit-content;
  margin: 10px auto 0;
  padding-left: 20px;
  text-align: left;
  line-height: 1.8;
  font-size: 12px;
}

/* アクセス */
.access {
  width: 90%;
  max-width: 1100px;
  margin: 30px auto;
}

.access h2 {
  font-size: 21px;
  margin-bottom: 10px;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  align-items: center;
}

.access-map {
  grid-column: span 4;
  height: 100%;
}

.access-map iframe {
  width: 100%;
  height: 100%;
}

.access-info {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #e8f5e9;
  border-radius: 18px;
  margin: 0 20px 20px 0;
  padding-bottom: 20px;
}

.access-info img {
  width: 40px;
  margin: 0 auto 20px;
}

.access-info h3 {
  margin: 20px;
}

.access-info p {
  line-height: 1.8;
  font-size: 12px;
  margin-left: 20px;
}

.parking-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 40px;
  background: #e8f5e9;
  border-radius: 16px;
  padding: 20px;
}

.parking-image {
  grid-column: span 3;
  width: 55%;
}

.parking-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
}

.parking-info {
  grid-column: span 3;
  width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.parking-info h3 {
  font-size: 22x;
  margin-bottom: 20px;
}

.parking-info p {
  line-height: 1.8;
  margin-bottom: 10px;
}

.parking-detail {
  font-weight: bold;
}

.parking-desc {
  font-size: 11px;
}

/* モバイル版をPC画面で表示しない */
.menu-button,
.mobile-menu,
.court-cards {
  display: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header {
    height: 65px;
  }

  .header-inner {
    padding: 0 16px;
  }

  /* 共通操作 */
  /* 縦並び(共通) */
  .court-cards,
  .court-list,
  .information-list,
  .access-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  /* サイズ */
  .court-card,
  .information-card,
  .access-info,
  .parking-card {
    width: 100%;
    box-sizing: border-box;
  }

  /* タイトル */
  .logo {
    font-size: 14px;
  }

  .subtitle {
    font-size: 10px;
  }

  .header .nav,
  .header .header-buttons,
  .court-table {
    display: none;
  }

  /* ヘッダーメニュー */
  .menu-button {
    display: flex;
    width: 40px;
    height: 40px;
    padding: 7px;
    border: none;
    background: transparent;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #292524;
  }

  .mobile-menu {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background-color: #fbfafc;
    border-top: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .mobile-menu.open {
    display: block;
  }

  .mobile-menu > a {
    display: block;
    padding: 6px 5px;
    border-bottom: 1px solid #ddd;
    color: #2563eb;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  .mobile-menu .user-name {
    display: block;
    padding: 6px 5px;
    font-size: 11px;
  }

  .mobile-menu .logout-btn {
    width: 100%;
    margin-top: 5px;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
  }

  .container {
    padding: 0;
  }

  /* コート利用状況 */
  .usage {
    width: 100%;
    padding: 0 15px;
    margin: 25px auto;
  }

  .usage-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 15px;
  }

  .usage h2 {
    font-size: 20px;
    margin: 0;
    text-align: left;
  }

   .reservation-action {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin: 0;
  }

   .reservation-action form:first-child {
    flex: 1;
  }

  .reservation-action input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #bbb;
    border-radius: 6px;
  }

   .reserve-link {
    margin-left: 0;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* コートカード */
  .court-status-card {
    width: 100%;
    background-color: #edf8ee;
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  }

  .court-status-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: bold;
  }

  .court-time-list {
    display: flex;
    flex-direction: column;
  }

  .court-time-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 70px 0 30px;
    border-top: 1px solid #cfd8cf;
    font-size: 14px;
  }

  .court-time {
    font-weight: normal;
  }

  .court-time-row .available,
  .court-time-row .reserved {
    font-size: 18px;
    font-weight: bold;
  }

  /* コート説明 */
  .court-card {
    flex: none;
  }

  .court-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .court-card h3 {
    margin: 12px 0 10px;
    font-size: 17px;
  }

  .court-card p {
    padding: 0 15px 20px;
    margin: 0;
    line-height: 1.7;
    font-size: 12px;
  }

   /* 基本情報 */
  .information {
    width: 100%;
    margin: 25px auto;
    padding: 15px;
    border-radius: 12px;
  }

  .information-inner {
    padding-bottom: 5px;
  }

  .information-header {
    display: block;
  }

  .information h2 {
    font-size: 20px;
    margin: 0 0 15px;
    text-align: left;
  }

  .information-card {
    flex: none;
    padding: 20px 15px;
    border-radius: 10px;
  }

  .information-card img {
    width: 55px;
    height: 55px;
    margin: 0 auto 12px;
  }

  .information-card h3 {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .information-card p {
    line-height: 1.7;
    font-size: 12px;
  }

  .information-card .supplement {
    margin-top: 8px;
    padding-top: 8px;
    text-align: center;
    font-size: 11px;
  }

  .information-card ul {
    margin: 8px auto 0;
    padding-left: 20px;
    font-size: 12px;
    line-height: 1.8;
  }

  /* アクセス */
  .access {
    width: 100%;
    margin: 25px auto;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .access h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }

  .access-map {
    width: 100%;
    height: 250px;
  }

  .access-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
  }

  .access-info {
    margin: 0;
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
  }

  .access-info img {
    width: 40px;
    margin: 0 auto 10px;
  }

  .access-info h3 {
    margin: 5px 0 15px;
    font-size: 17px;
  }

  .access-info p {
    margin: 0 0 5px;
    font-size: 12px;
    line-height: 1.7;
  }

  /* 駐車場 */
  .parking-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
  }

  .parking-image,
  .parking-info {
    width: 100%;
  }

  .parking-image img {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    object-fit: cover;
  }

  .parking-info {
    display: block;
  }

  .parking-info p {
    margin-bottom: 8px;
    line-height: 1.7;
  }
}