/* =========================
   Header
========================= */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 500;
    white-space: nowrap;
}

.logo-img {
    width: 50px;        /* 好きな幅に変更 */
    height: auto;       /* 縦横比を保つ */
    margin-right: 10px; /* ロゴと文字の隙間 */
}

/* =========================
   Global Navigation (PC)
========================= */
.global-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}


/* =========================
   Close Button (PC hidden)
========================= */
/* PCでは閉じるボタンを非表示 */

.close-btn {
    display: none;
}

/* =========================
   Global Navigation Links
========================= */
/*メニューへアンダーライン表示*/

.global-nav a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

/* Hover underline animation */
.global-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px; /* 文字の下に少し余白 */
    width: 0;
    height: 2px;
    background: #333; /* スマホメニューが白文字なら白に変更 */
    transition: width 0.3s ease;
}

.global-nav a:hover::after {
    width: 100%;
}

/* =========================
   Sub Menu (hidden by default)
========================= */
.sub-menu {
    position: absolute;
    top: 120%;
    left: 0;

    display: block;         /* 縦並びの基本 */
    flex-direction: column; /* 親の flex の影響を受けない */

    background: #fff;
    border: 1px solid #0055aa;
    padding: 10px 0;
    min-width: 100px;
    z-index: 1000;

    /* アニメーション用（display は使わない） */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

/* =========================
   Sub Menu Items
========================= */
.sub-menu li {
    display: block;      /* 縦並びを強制 */
    padding: 4px 10px;
    line-height: 0.5;
    white-space: nowrap;
}

.sub-menu li a {
    color: #333;
    text-decoration: none;
}

/* =========================
   Hover to Show Sub Menu
========================= */
.has-sub {
    position: relative;
}

.has-sub:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* PCでは非表示 */
.hamburger {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger {
  z-index: 9999;
}

/* スマホで表示 */
@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }
}

/* =========================
 .hero全体
========================= */

.hero {
  color: #0055aa;
  padding: 80px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeOnly 1.6s ease forwards;
}

/* テキスト（前面） */
.hero-content {
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(20px);
  animation: heroContentFade 1.2s ease forwards;
  animation-delay: 0.3s;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}

@keyframes heroContentFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 左側のバス画像 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/main/bus.png") left center/contain no-repeat;
  z-index: 1;
  mask-image: linear-gradient(to right,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0) 30%
  );
}

/* 右側の画像 */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/main/top.png") right center/contain no-repeat;
  z-index: 2;
  mask-image: linear-gradient(to left,
    rgba(0,0,0,1) 0%,
    rgba(0,0,0,0) 30%
  );
}

/* =========================
   リボン本体
========================= */
.ribbon {
  position: absolute;
  z-index: 4;
  top: 60px;
  right: -30px;

  background: #ff3333;
  color: #fff;
  padding: 12px 70px;
  font-size: 22px;
  font-weight: bold;

  transform: rotate(10deg);
  transform-origin: right center;
  will-change: transform;

  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
}

/* ニュース・セクション共通余白 */
.news,
.section {
  padding-left: 100px;
  padding-right: 80px;
}

.news {
  margin-top: 40px;
}

/* セクションのフェードイン */
.section {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.show {
  opacity: 1;
  transform: translateX(0);
}

/* 背景グラデーション */
main {
  margin: 0;
  padding: 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #e6f7ff 10%,
    #e6f7ff 90%,
    #ffffff 100%
  );
}

/* =========================
  トップへスクロール
========================= */
.pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background: #007bff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 24px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

/* スクロールしたら表示 */
.pagetop.show {
  opacity: 1;
  pointer-events: auto;
}


/* スマホ調整 */
@media (max-width: 768px) {
  .news,
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

body {
  max-width: 1200px;  /* PCでの見栄えが良くなる */
  margin: 0 auto;
}

/* ホームページテーブルCSS */
.feature-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #0055aa; /* 外枠を青に */
  margin-left: auto;
  margin-right: auto;
  table-layout: fixed; /* 列幅が安定する（任意） */
  background: rgba(255, 255, 255, 0.8);

  /* アニメーション */
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* テーブルを包む枠（ボタン配置用） */
.table-wrap {
  position: relative;
  width: 90%; /* テーブルと同じ幅 */
  margin: 0 auto;
  padding-bottom: 80px;
}

/* 右下のボタン */
.table-btn {
  position: absolute;
  right: 0;
  bottom: 10px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  z-index: 10;
}

.office-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.fbox {
  display: flex;
  gap: 20px; /* 文字と地図の間の余白 */
  align-items: flex-start; /* 上揃え */
}

.office-text {
  flex: 1; /* 文字側を広く */
}

.office-map {
  flex: 0 0 auto; /* 地図の幅を固定 */
}
.office_img li {
  list-style: none;
}
.office_add dd {
  margin-left: 0;
}


/* 見出し */
.feature-table th {
  width: 180px;
  background: #e0f3ff;
  border: 2px solid #0055aa;
  padding: 15px;
  text-align: center;
  font-weight: 700;
  color: #0055aa;
}

/* アニメーション後の状態 */
.feature-table.show {
  opacity: 1;
  transform: translateX(0);
}

/* 本文セル */
.feature-table td {
  border: 2px solid #0055aa;
  padding: 15px 20px;
  line-height: 1.7;
  color: #333;
}

/* ニュース全体 */
.news ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 各ニュース項目 */
.news li {
  padding: 12px 0;
  border-bottom: 1px solid #ccc;
  display: flex;
  gap: 20px;
  align-items: center;
}

/* 日付 */
.news .date {
  color: #0055aa;
  font-weight: 600;
  min-width: 110px; /* 揃えて読みやすく */
}

/* タイトル（リンク） */
.news a {
  color: #333;
  text-decoration: none;
  flex: 1;
  transition: color 0.2s ease;
}

.news a:hover {
  color: #0055aa;
  text-decoration: underline;
}


/* ------------------------------
本文見出し（h2）
------------------------------ */
.h2 {
  　margin-left: auto;
  　margin-right: auto;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #E6E6E6;
    border-left: 4px solid #ff8800;
    border-radius: 4px;
    font-size: 130%;
    font-weight: bold;
    line-height: 1.4;
}


/* ------------------------------
   フッターCSS
------------------------------ */
.footer {
  background: #FFFFFF;
  color: #000;
  padding: 40px 0 10px;
  margin-top: 80px;
}

/* 中央寄せ＋横並び */
.footer-inner {
  width: 80%;              /* ← ここが重要：中央寄せの幅 */
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;   /* ← これが高さ中央揃え */
  gap: 10px;
}

.footer-right {
  margin-left: 5px;
}

.footer-right p {
  margin: 0;
  line-height: 1.4;
  font-size: 15px;
}

.footer-logo {
  width: 300px;
  height: auto;
}

/* コピーライト */
.footer-copy {
  background: #00053a;
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  margin-top: 10px;
  opacity: 0.85;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;   /* ← 縦並び */
    align-items: center;
    text-align: center;
    gap: 20px;
  }

.fbox {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* スマホで折り返し */
}

  .footer-logo {
    width: 70%;               /* スマホで自然なサイズ */
  }

  .footer-right {
    margin-left: 0;
  }
}

/* フローCSS */
.flow {
  width: 80%;
  margin: 0 auto;
  margin-bottom: 60px;
  opacity: 1; /* ← 親は透明にしない */
  transform: none; /* ← transform を消す */

}

.flow-item {
  background: #f0f4ff;
  border: 0.5px solid #0033cc;
  border-left: 6px solid #0033cc;
  padding: 10px;
  margin: 10px 0;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.flow-item h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #0033cc;
}

.flow-item p {
  margin: 0;
  line-height: 1.6;
}

.flow-arrow {
  text-align: center;
  font-size: 28px;
  color: #0033cc;
  margin: 0;
  line-height: 1;
}

/* flow のフェードイン */
.flow.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.flow.section.show {
  opacity: 1;
  transform: translateY(0);
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 20px 30px;
  background:#ff8800;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
  font-size: 20px;
  position: relative;
  z-index: 9;
}

.flow-btn {
   margin-top: 30px;
  display: flex;
  justify-content: center;
}


/* フッターバナー全体 */
.footer-banner {
  display: flex;
  justify-content: flex-start; /* ← left の正しい書き方 */
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-top: 60px;
}

/* 画像 */
.banner-img {
  width: 80%;          /* 画像とボタンの幅を揃える */
  max-width: 300px;
  display: block;
  margin: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.25));
}

/* ============================
   フッターバナー
============================ */
.footer-banner-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 80%;          /* ← 画像と同じ幅に統一 */
  max-width: 300px;    /* ← 画像と同じ最大幅に統一 */
  margin: 0;
  padding: 25px 0;
  background: #007bff;
  color: #fff;
  border-radius: 6px;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  text-decoration: none;
}

/* スマホでは縦並びに */
@media (max-width: 768px) {
  .footer-banner {
    flex-direction: column;
    align-items: center;
  }

  .banner-img,
  .footer-banner-btn {
    width: 100%;
    max-width: 300px;
  }
}

/* ▼ 社員ログインだけ青色ボタンにする */
.global-nav ul li.login-link a {
  display: block;              /* 他のリンクと高さを揃える */
  padding: 12px 16px;          /* 他のメニューと同じくらいの余白 */
  background: #007bff;         /* 青色 */
  color: #fff;                 /* 白文字 */
  border-radius: 4px;          /* 少し丸み */
  font-weight: 600;
  text-align: center;
  transition: 0.2s;
}

/* ▼ ホバー時 */
.global-nav ul li.login-link a:hover {
  background: #0056cc;         /* 少し濃い青 */
}

/* ============================
   スマホ用メディアクエリ
============================ */
@media (max-width: 768px) {
  h1 {
    font-size: 20px;
  }

  .site-header img {
    width: 250px;   /* ← 好きなサイズに調整 */
    height: auto;
  }

  .table-btn {
    display: flex;
    justify-content: center;
  }

  .office-box {
    flex-direction: column; /* ← これで縦並びになる */
  }

  .office-map iframe {
    width: 100%;   /* スマホでは横幅いっぱいに */
    height: 200px;
  }

  /* 閉じるボタン */
  .close-btn {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    user-select: none;
  }

.teble-btn {
  display: flex;
  justify-content: center;
}

  /* テーブル全体をスマホ幅にフィット */
  .feature-table {
    table-layout: auto;   /* ← 固定を解除 */
    width: 100%;
  }

  /* th の幅を可変にする */
  .feature-table th {
    width: auto;
    white-space: nowrap;  /* 改行させない（任意） */
  }

  /* iframe（地図）をスマホ幅に合わせる */
  .office-map iframe {
    width: 100% !important;
    height: 200px;
  }

  /* 横並びを縦並びにする（あなたの希望） */
  .office-box {
    flex-direction: column;
  }

  .ribbon {
    font-size: 15px;         /* ← 少し小さくして自然に */
    padding: 6px 26px;       /* ← 本体を細くして三角とバランス調整 */
    top: 30px;               /* ← 上に飛びすぎない位置に修正 */
    right: -10px;              /* ← 右端に寄せすぎない */
    transform: rotate(6deg);
  }

  .ribbon::before,
  .ribbon::after {
    border-top-width: 10px;  /* ← 本体に合わせて細く */
    border-bottom-width: 10px;
  }

  .ribbon::before {
    border-right-width: 10px;
    left: -10px;
  }

  .ribbon::after {
    border-left-width: 10px;
    right: -10px;
  }

  .close-btn:hover {
    opacity: 0.7;
  }

  /* フッター縦並び */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-right {
    margin-top: 20px;
  }

  /* メニューのアンダーライン色 */
  .global-nav a::after {
    background: #fff;
  }

  /* メニュー右からスライドイン */
  .global-nav.active {
    right: 0;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;   /* ← 最初は隠す */
    width: 250px;
    height: 100vh;
    background: rgba(3, 216, 230, 0.80); /* LightBlue + 透明度80% */
    transition: right 0.3s ease;
    padding-top: 60px;
    z-index: 999;
  }

  .global-nav.active {
    right: 0;       /* ← 開く */
  }

  /* メニュー縦並び */
  .global-nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .global-nav a {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 28px;
    height: 22px;
  }

  .hamburger span {
    height: 3px !important;
    margin: 0 !important;
  }
}

/* ============================
   ハンバーガー開閉アニメ（PC/スマホ共通）
============================ */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


