/* styles.css
   基調カラー: 水色系
   シンプルで読みやすいスタイル（レスポンシブ対応）
*/

/* ------------------------------
   リセット（軽め）
------------------------------ */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family:"Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #073642;
    background-color: #E8F9FF;
}

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

/* ------------------------------
   カラーパレット
------------------------------ */
:root {
  --blue-100: #E8F9FF;
  --blue-200: #BFEFFF;
  --blue-300: #87D7FF;
  --blue-400: #19AEEF;
  --muted: #6b7a86;
  --accent: #1e50a2;
  --success: #2a9d8f;
  --danger: #e76f51;
}

/* ==============================
   ヘッダー
============================== */
.site-header {
  background-color: #ffffff;
  padding: 0px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background-color: #ffffff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* ---- ナビゲーション ---- */
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

.main-nav a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--blue-400);
}

/* ---- ハンバーガー ---- */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 200;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 28px;
  height: 2px;
  background: var(--accent);
  display: block;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle.active .hamburger {
  background: transparent;
}
.nav-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}
.nav-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* ---- スマホ時のメニュー（スライドダウン） ---- */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--blue-200);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 150;
  }

  .main-nav.active {
    transform: translateY(0);
    opacity: 1;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
  }
}

/* ---- PCでは常に横並び ---- */
@media (min-width: 901px) {
  .main-nav {
    position: static;
    transform: none;
    opacity: 1;
    background: none;
    border: none;
  }

  .main-nav ul {
    flex-direction: row;
  }

  .nav-toggle {
    display: none;
  }
}
/* ------------------------------
   ヒーロー
------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--blue-100));
  padding: 2rem 0;
}

.hero-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.hero-text h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.6rem;
  color:#073642
}

.hero-text p {
  margin: 0 0 1rem 0;
  color:#073642;
}

.hero-actions .btn {
  margin-right: 0.6rem;
}

/* ------------------------------
   ボタン
------------------------------ */
.btn {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight:400;
  border: px solid transparent;
}

.btn.primary {
  display: block;
  background-color:#1e50a2;
  color: white;
  box-shadow: 0 6px 18px rgba(10, 161, 230, 0.12);
  width: fit-content;
}

.btn.ghost {
  background: #ffffff;
  border: 1px solid rgba(10, 161, 230, 0.12);
  color: var(--accent);
}

/* ------------------------------
   ヒーローメタデータ
------------------------------ */
.hero-meta {
  min-width: 180px;
  text-align: center;
  padding: 1rem;
  background-color: transparent;
  box-shadow: 0 4px 10px rgba(10, 161, 230, 0.04);
}

.clock {
  font-size: 1.3rem;
  font-weight: 700;
  color:#ffffff;
}

.weather-placeholder {
  margin-top: 0.6rem;
  color:#ffffff;
  font-size: 0.9rem;
}

/* ------------------------------
   フライト情報
------------------------------ */
.flights {
  padding: 1.2rem 0;
}

.flight-controls {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.flight-controls input[type="search"] {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #dbeef8;
  min-width: 220px;
  background: white;
}

.flight-controls select {
  padding: 0.45rem;
  border-radius: 8px;
}

/* ------------------------------
   テーブル
------------------------------ */
.table-wrap {
  overflow: auto;
  border-radius: 8px;
  background: white;
  box-shadow: 0 6px 20px rgba(18, 52, 78, 0.03);
}

.flight-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.flight-table th,
.flight-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #f1f6fb;
  text-align: left;
  font-size: 0.95rem;
}

.flight-table thead th {
  background: linear-gradient(90deg, #ffffff, #ffffff);
  position: sticky;
  top: 0;
}

.status.ontime {
  color: var(--success);
  font-weight: 700;
}

.status.delayed {
  color: var(--danger);
  font-weight: 700;
}

.status.boarding {
  color: #e9a200;
  font-weight: 700;
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

/* ------------------------------
   アクセス・施設
------------------------------ */
.access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.6rem;
  border: #1e50a2 1px solid;
  border-radius: 5px;
  margin-right: -20px;
}

.access-grid h3{
    background-color: #ffffff;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 5px;
    margin-left: 10px;
}

.access-grid p {
    padding: 10px;
    border-radius: 8px;
}

.services-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

/* ------------------------------
   フォーム
------------------------------ */
.contact-form {
  display: grid;
  gap: 0.6rem;
  max-width: 520px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.6rem;
  border-radius: 8px;
  border: 1px solid #e6f6ff;
  background: white;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ------------------------------
   フッター
------------------------------ */
.site-footer {
  border-top: 1px solid rgba(10, 161, 230, 0.06);
  background: #ffffff;
  padding: 1rem 0;
  margin-top: 2rem;
  color: rgb(0, 0, 0);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

/* ------------------------------
   アクセシビリティ用
------------------------------ */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ------------------------------
   レスポンシブ
------------------------------ */
@media (max-width: 900px) {
/* ハンバーガーメニュー：初期状態は非表示 */
.main-nav {
  position: absolute;
  right: 1rem;
  top: 64px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(3, 20, 40, 0.08);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s ease; /* ←ふわっとアニメーション */
}

/* 表示時 */
.main-nav.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 中のリスト */
.main-nav ul {
  flex-direction: column;
  padding: 0.6rem 1rem;
  margin: 0;
}

  .main-nav ul {
    flex-direction: column;
    padding: 0.6rem;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-inner {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .table-wrap {
    min-width: unset;
  }
}

/* ------------------------------
   天気セクションの背景画像
------------------------------ */
.weather-section {
  background-image: url("./img/IMG_0976.JPG"); /* 自分の写真 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 80px 20px;
  max-height: 1000px;
  position: relative; /* ::beforeレイヤー用 */
  
}


.weather-section > * {
  position: relative;
  z-index: 1;
}

.facility-categories {
  display: flex;
  justify-content: center; /* 真ん中揃え */
  align-items: center;
  gap: 0; /* ボタン間の余白はborderで調整 */
  margin-bottom: 1rem;
  flex-wrap: wrap;
  background-color: #eeeeee;
  border-radius: 5px;
}

.facility-categories .category-btn {
  background: none;
  border: none;
  color: var(--blue-400);
  font-weight: 600;
  padding: 0 1rem;
  cursor: pointer;
  position: relative;
  font-size: 1rem;
}

.facility-categories .category-btn:not(:last-child)::after {
  content: "|";           /* 縦線 */
  position: absolute;
  right: 0;
  color: var(--muted);
  font-weight: lighter;
}

.flights table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff; /* 水色の背景 */
  border-radius: 12px;
  overflow: hidden;
}

.flights th, .flights td {
  padding: 0.8rem 1rem;
  text-align: center;
}

.flights thead {
  background-color: #b0e0ff;
  color: #003366;
  font-weight: bold;
}


.logo {
  max-height: 50px;
  border-radius: 8px;
  object-fit: contain;
  margin: 0px;
  padding: 0px;
}

.a-kaku {
    display: block;
    text-align: center;
}

.a-kaku:hover {
    text-decoration: underline;
}

.access-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(18, 52, 78, 0.03);
    margin: 20px;
}

.h1h2p h1 {
    color: #003366;
    text-align: center;
}

.h1h2p h2 {
    color: #1e50a2;
    font-size: medium;
}

.h1h2p p {
    color: #4f565b;
}

.h1h2p ul {
    color: #4f565b;
}

.h1h2p li {
    margin-bottom: 8px;
}

.flightnav tbody {
    font-size: small;
}

.flightnav th {
    font-size: x-small;
}

/* ==============================
   天気と時刻の横並び配置（右下）
============================== */
.weather-section {
  position: relative;
  background-image: url("./img/IMG_0997.JPG");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 80px 20px;
  height: 400px; /* 背景の高さを適度に固定（調整OK） */
  display: flex;
  align-items: flex-end;   /* 下寄せ */
  justify-content: flex-end; /* 右寄せ */
}

.hero-meta {
  position: absolute;         /* ←これを追加！ */
  bottom: 20px;               /* 下から20pxの位置（もっと下げたければ10pxなどに） */
  right: 25px;                /* 右から25pxの位置（もっと右なら15pxなどに） */
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  text-align: left;
  min-width: 300px;
}

@media (max-width: 800px) {
  .weather-section {
    height: 350px; /* スマホでは高さを少し低く */
  }
}


.hero-meta h2{
  font-size: 1.2rem;
  color: #ffffff;
  margin: 0;
  font-weight: 200;
}

.hero-meta .clock {
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  font-weight: normal;
}

.weather-placeholder {
  color: #ffffff;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* スマホ対応 */
@media (max-width: 600px) {
  .hero-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    text-align: right;
    padding: 0.8rem 1rem;
  }
}

.flight-btn {
    padding: 8px 12px;
    background-color: #1e50a2;
    margin: 10px auto;
    border-radius: 5px;
    border: 1.5px #00ccff solid;
    transition: 0.3s;
}
.flight-btn a {
    color: white;
    text-decoration: none;
    font-weight:normal;
}

.flight-btn a:hover {
    font-weight: 550;
}

.flight-btn:hover {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.269);
    transform: translateY(-2px);
}

.flight-btn2 {
    padding: 8px 12px;
    background-color: #ffffff;
    margin: 10px auto;
    border-radius: 5px;
    border: 1.5px #00ccff solid;
    transition: 0.3s;
}
.flight-btn2 a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-weight:normal;
}

.flight-btn2 a:hover {
    font-weight: 550;
}

.flight-btn2:hover {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.269);
    transform: translateY(-2px);
}

.flight-btn3 {
    padding: 8px 12px;
    background-color: #1e50a2;
    margin: 10px auto;
    border-radius: 5px;
    border: 1.5px #00ccff solid;
    transition: 0.3s;
}
.flight-btn3 a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight:normal;
}

.flight-btn3 a:hover {
    font-weight: 550;
}

.flight-btn3:hover {
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.269);
    transform: translateY(-2px);
}