/* ===============================
   基本設定
=============================== */
body {
    margin: 0;
    padding-top: 88px; /* ヘッダーの実高さに合わせる */
    background: #f2f2f2;
    font-family: "Kosugi Maru", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #333;
}

/* ===============================
   fixedヘッダー分の余白調整
=============================== */

/* タブレット（ヘッダーが縦に伸びる） */
@media (max-width: 1199px) {
    body {
        padding-top: 120px;
    }
}

/* スマホ（ロゴ＋TEL＋時間＋ハンバーガー） */
@media (max-width: 767px) {
    body {
        padding-top: 140px;
    }
}





main {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header,
main,
footer {
  position: relative;
  z-index: 1;
}


/* ===============================
   左右装飾（共通）
=============================== */


.decoration {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.decoration img {
    height: 90vh;     /* ← ★ 高さを優先（ここを調整） */
    width: auto;      /* ← 比率維持 */
    opacity: 0.5;     /* ← ★ 濃さ50% */
    display: block;
}


/* 左右位置 */
.decoration.left {
    left: 0;
}

.decoration.right {
    right: 0;
}

/* ===============================
   タブレット（〜1199px）
=============================== */
@media (max-width: 1199px) {
    .decoration img {
        width: 100px;   /* 少し細く */
        opacity: 0.7;
    }
}

/* ===============================
   モバイル（〜767px）
   → 非表示（推奨）
=============================== */
@media (max-width: 767px) {
    .decoration {
        display: block;
    }

    .decoration img {
        width: 25px;     /* 極細 */
        opacity: 0.3;   /* かなり薄く */
    }
}


/* ===============================
   ヘッダー（PC 基本）
=============================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    background: #f2f2f2;
    z-index: 1000;
    border-bottom: 1px solid #dcdcdc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}


.header-inner {
    width: 92%;
    max-width: 1600px;

    margin-left: auto;
    margin-right: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding: 12px 0;
}

/* ロゴ */
.header-logo img {
    height: 62px;
    width: auto;
}

/* PC ナビ */
.header-nav ul {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap; /* 折り返しを許可（既に入っていれば不要） */
}

.header-nav ul li {
    position: relative;
    padding-right: 24px; /* 区切り線の余白 */
}

.header-nav ul li::after {
    content: "｜";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #1b1464;
}

.header-nav ul li:last-child::after {
    content: "";
}


.header-nav a {
    position: relative;
    font-size: 16px;
    color: #1b1464;
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 5px;
}

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0%;
    background: #1b1464;
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

/* TELボタンエリア */
.header-contact {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 240px;
}

.tel-btn {
    background: #1b1464;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    min-width: 210px;
    text-align: center;
    text-decoration: none;
}

.tel-btn:hover {
    background: #81e1ff;
    color: #1b1464;
}

.header-contact .time {
    margin-top: 6px;
    font-size: 14px;
}

/* ハンバーガー */
.hamburger {
    display: none;
    width: 30px;
    height: 22px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    background: #1b1464;
    border-radius: 2px;
}

/* ============================================
   タブレット・スマホ（〜1199px）
   ロゴ → TEL → 時間 の縦並びにする
============================================ */
@media (max-width: 1199px) {

    .header-inner {
        flex-direction: column; /* ← これが核心 */
        align-items: center;    /* 中央揃え */
        position: relative;     /* ハンバーガー配置の基準にする */
        padding: 10px 0;
        gap: 8px;
    }

    /* ハンバーガーは右上に固定しておく */
    .hamburger {
        display: flex;
        position: absolute;
        right: 15px;
        top: 35px;
    }

    /* ロゴ */
    .header-logo img {
        height: 50px;
    }

    /* TEL（中央揃え） */
    .header-contact {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tel-btn {
        font-size: 16px;
        padding: 10px 18px;
        min-width: 200px;
    }

    .header-contact .time {
        font-size: 13px;
    }

    /* PCナビは消す */
    .header-nav {
        display: none;
    }
}




/* ============================================
   スマホ専用（〜767px）
   さらにサイズを調整
============================================ */
@media (max-width: 767px) {

    .header-logo img {
        height: 44px; /* スマホはさらに少し小さく */
    }

    .tel-btn {
        font-size: 15px;
        min-width: 180px;
    }

    .header-contact .time {
        font-size: 12px;
    }
}


/* ================================================
   ドロワーメニュー
================================================ */

/* 横スクロールを物理的に発生させない*/
html, body {
    overflow-x: hidden;
}

/* ドロワー本体 */
.drawer-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 12px rgba(0,0,0,0.15);

    /* ★ 初期状態：少し右に逃がす */
    transform: translateX(100%);
    opacity: 0;

    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.25s ease;

    z-index: 4000;
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
}
/* 開いた状態 */
.drawer-menu.open {
    transform: translateX(0);
    opacity: 1;
}

/* オーバーレイ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3000;
}

.drawer-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ヘッダー（ロゴ＋×） */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.drawer-logo {
    height: 40px;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #1b1464;
    transition: transform 0.2s ease, opacity 0.2s ease;
}


.drawer-close:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}




/* ナビ */
.drawer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.drawer-nav a {
    font-size: 20px;
    font-weight: 600;
    color: #1b1464;
    text-decoration: none;
    display: block;
    padding: 6px 4px;       /* タップ領域を拡張 */
    line-height: 1.5;
}

.drawer-nav li a.is-active::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 0;
    width: 4px;
    height: 100%;
    background: #81e1ff;
    border-radius: 2px;
}

.drawer-nav li a:hover {
    background: #eaf6ff;   /* 薄い水色 */
    color: #1b1464;        /* 文字：紺 */
}


.drawer-nav li a {
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
}


.drawer-nav a.is-active {
    background: #1b1464;
    color: #fff;
    font-weight: bold;
}




/* ===============================
   フッター
=============================== */

/* フッター全体 */
.site-footer {
    background: #81e1ff;
    color: #1b1464;
    font-family: "Kosugi Maru", sans-serif;
    padding: 36px 0 18px;
}

/* 内側ラッパー */
.footer-inner {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/*    1. 会社情報 */
.footer-company {
    flex: 1 1 280px;
}

.footer-logo {
    height: 40px;              /* フッター用に少し小さく */
    margin-bottom: 10px;
}

.company-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 6px;
}

.footer-company p {
    margin: 0 0 4px;
    line-height: 1.6;
    font-size: 14px;
}

/*    2. 地図 */
.footer-map {
    flex: 1 1 320px;
    min-width: 280px;
}

.footer-map iframe {
    width: 100%;
    height: 240px;
    border: 0;
}

/*    3. メニュー（2列） */
.footer-links {
    flex: 1 1 260px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: #1b1464;            /* ヘッダーと同じ濃紺 */
    text-decoration: none;
    font-size: 15px;
}

.footer-links ul li a:hover {
    text-decoration: underline;
}

/*    コピーライト */
.footer-copy {
    text-align: center;
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1.6;

    color: #1b1464;              /* 濃紺（本文より一段落ち着いた色） */
    background: rgba(255,255,255,0.25); /* うっすら白背景で可読性UP */
    border-radius: 6px;

    /* アクセシビリティ補助 */
    letter-spacing: 0.02em;
}
/* ===============================
   タブレット（〜991px）
=============================== */
@media (max-width: 991px) {

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        justify-content: center;
        gap: 60px;
    }

    .footer-map {
        max-width: 520px;
    }
}

/* ===============================
   モバイル（〜767px）
   B配置：
   会社情報 → 地図 → メニュー → コピー
=============================== */
@media (max-width: 767px) {

  .site-footer {
    padding: 20px 0 12px;
  }



  /* gapを使わない */
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;   /* ← これが決定打 */
  }

  /* 会社情報 */
  .footer-company {
    text-align: center;
    margin-bottom: 12px;
  }

  .footer-company p {
    margin: 0 0 4px;
  }

  /* 地図：余白を最小化 */
  .footer-map {
    width: 100%;
    max-width: 500px;
    margin: 0 0 8px; /* ← 下だけ */
  }

  .footer-map iframe {
    height: 180px;
    display: block; /* iframe下の謎余白対策 */
  }

  /* メニュー（2列） */
  .footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    margin-bottom: 8px;
  }

  .footer-links ul {
    margin: 0;
    padding: 0;
  }

  .footer-links li {
    margin: 0;
  }

  /* コピーライト */
  .footer-copy {
    padding-top: 4px;
    font-size: 13px;
    text-align: center;
  }

   .footer-company,
  .footer-map,
  .footer-links {
    flex: none;          /* basis / grow / shrink を全解除 */
  }
}


/* ===============================
   HERO
=============================== */
.hero {
  background: #f2f2f2;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  height: 520px;
}

/* 水玉（左・背景） */
.hero-bg {
   position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg img {
  width: 420px;
  height: auto;
}

/* コピー */
.hero-copy {
  
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  max-width: 90%;
  position: absolute;
  z-index: 4; /* ← バスより前 */
}

.hero-copy h2 {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  color: #1b1464;
}

/* サービス選択エリア */
.hero-services {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;

  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 4;
}


/* 各サービスボタン */

/* ===============================
   HERO サービスボタン hover
=============================== */



.hero-service {
  display: flex;
  align-items: center;
  gap: 10px;

  width: 100%;
  padding: 10px 18px;

  border: 2px solid #1b1464;
  border-radius: 999px;

  color: #1b1464;
  text-decoration: none;
  font-weight: 500;
  background: #fff;
 box-sizing: border-box;
  min-width: 0;          /* ← Gridでの重なり防止の定石 */
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.hero-service:hover {
  background: rgba(27,20,100,0.05);  /* ほんのり */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27,20,100,0.18);
  border-color: #1b1464;
}

.hero-service:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(27,20,100,0.15);
}

.hero-service .icon {
  font-size: 18px;
  line-height: 1;
}

/* バス */
.hero-bus {
  position: absolute;   /* ← PCでは absolute */
  right: -100px;
  bottom: 0;
  z-index: 2;
}


/* 斜線（バスの背後） */
.hero-bus-bg {
  position: absolute;
  top: -30%;
  right: -80%;
  width: 200%;
  height: 200%;
  z-index: 1;
  pointer-events: none;
}

.hero-bus-bg img {
  width: 900px;
  opacity: 0.8;
}

/* バス画像本体 */
.hero-bus > img {
  display: block;
  position: relative;
  z-index: 2;
  width: 820px;
  max-width: none;
  height: auto;

  animation: bus-float 6s ease-in-out infinite;
}

@keyframes bus-float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}


/* ===============================
   HERO サービスボタン（PC強化）
=============================== */

@media (min-width: 992px) {

  .hero-service {
    padding: 14px 26px;      /* ← 高さと横幅をしっかり */
    font-size: 16px;
    font-weight: 600;        /* ← 視認性アップ */
  }

  .hero-service .icon {
    font-size: 20px;
  }
}


/* ===============================
   HERO タブレット
=============================== */


@media (max-width: 991px) {

  .hero-inner {
    height: 460px;
  }

  .hero-copy {
    left: 40px;
    width: 440px;
  }

  .hero-copy h2 {
    font-size: 30px;
  }

  .hero-bus > img {
    width: 680px;
  }
}

/* ===============================
   HERO モバイル
=============================== */
 @media (max-width: 767px) {

  /* HERO全体：縦積み＋中央寄せ */
  .hero-inner {
    height: auto;                 /* ← 固定高さを解除 */
    padding: 16px 12px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;           /* ← 横中央 */
    justify-content: center;       /* ← 縦中央 */
    text-align: center;
  }

  /* コピー */
  .hero-copy {
    position: relative;            /* ← absoluteをやめる */
    left: auto;
    top: auto;
    transform: none;

    width: 100%;
    max-width: 360px;
    margin: 0 auto 12px;
  }

  .hero-copy h2 {
    font-size: 22px;               /* ← 小さくしすぎない */
    line-height: 1.3;
  }

  /* サービスボタン */
  .hero-services {
    width: 100%;
    max-width: 360px;
    margin: 0 auto 16px;           /* ← バスとの距離 */
    display: flex;
    flex-direction: column;        /* ← 縦一列 */
    gap: 10px;
  }

  .hero-service {
    width: 100%;
    padding: 14px 18px;            /* ← 押しやすさ維持 */
    font-size: 15px;               /* ← 元に戻す */
    justify-content: flex-start;
  }

  .hero-service .icon {
    font-size: 18px;
  }

  /* バス */
  .hero-bus {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .hero-bus > img {
    width: 100%;
    max-width: 420px;              /* ← しっかり大きく */
    margin: 0 auto;
    transform: translateX(-4%);    /* ← PNG重心補正 */
    animation: none;
  }

  /* 斜線はモバイルでは非表示 */
  .hero-bus-bg {
    display: none;
  }
}


/* ===============================
   SAFETY
=============================== */
.safety {
  position: relative;
  background: #f2f2f2;
  padding: 80px 0;
  overflow: hidden;
}

.safety-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

/* テキスト */
.safety-title {
  display: inline-block;
  padding: 12px 36px;       /* ← 余白アップ */
  border: 2px solid #1b1464;
  border-radius: 999px;
  font-size: 22px;          /* ← 少し大きく */
  font-weight: 700;
  letter-spacing: 0.04em;  /* ← 公的感 */
  color: #1b1464;
  margin-bottom: 28px;
}

.safety-lead {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;   /* ← ここ重要 */
  margin-bottom: 18px;
}

.safety-body {
  font-size: 15px;
  line-height: 1.9;   /* ← 公共系は少し広めが正解 */
  margin-bottom: 28px;
}

/* ボタン */
.safety-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 28px;
  background: #1b1464;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(27,20,100,0.15);
}
.safety-btn:hover {
  background: #2a2390;
}


/* PDFアイコン風 */
.safety-btn .pdf-icon {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  background: #fff;
  color: #1b1464;
  line-height: 1;
}

/* スライダー */
.safety-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
}

.safety-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.safety-slider img.is-active {
  opacity: 1;
}
/* 背景の水玉 */
.safety-bg {
  position: absolute;
  left: -120px;
  bottom: -80px;
  z-index: 0;
  opacity: 0.35;
}

.safety-bg img {
  width: 420px;
}

/* 画像＋キャプション全体 */
.safety-figure {
  margin: 0;
}

/* キャプション */
.safety-caption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  text-align: center;

  /* ほんのり上品に */
  letter-spacing: 0.02em;
}




/* ===============================
   SAFETY タブレット
=============================== */
@media (max-width: 991px) {
  .safety-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ===============================
   SAFETY モバイル
=============================== */
@media (max-width: 767px) {
  .safety {
    padding: 56px 0;
  }

  .safety-title {
    font-size: 18px;
  }

  .safety-lead {
    font-size: 16px;
  }

  .safety-body {
    font-size: 14px;
  }

  .safety-btn {
    display: block;        /* a / button をブロック化 */
    margin: 24px auto 0;   /* ← 中央寄せ */
    width: fit-content;    /* 文字幅に合わせる */
    text-align: center;
  }

    .safety-caption {
    font-size: 12px;
    margin-top: 8px;
  }
}



/* ===============================
   LINK BANNER
=============================== */

.link-banner {
  padding: 48px 16px;
  background: #f2f2f2; /* 他セクションと合わせるなら調整 */
}

.link-banner-inner {
  max-width: 1000px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* 各バナー */
.link-banner-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.link-banner-item img {
  width: 100%;
  height: auto;          /* ← 比率維持（452×141） */
  display: block;
}

/* hover（やりすぎない） */
.link-banner-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* ===============================
   モバイル（〜767px）
=============================== */

@media (max-width: 767px) {

  .link-banner {
    padding: 32px 12px;
  }

  .link-banner-inner {
    grid-template-columns: 1fr; /* 縦並び */
    gap: 16px;
  }

}


/* ===============================
   PAGE TOP
=============================== */

.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;

  width: 48px;
  height: 48px;

  border: none;
  border-radius: 12px;
  background: #1b1464;
  color: #fff;

  font-size: 18px;
  font-weight: bold;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* 表示状態 */
.page-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* hover（やりすぎない） */
.page-top:hover {
  box-shadow: 0 8px 20px rgba(27,20,100,0.35);
  transform: translateY(-2px);
}

/* モバイル微調整 */
@media (max-width: 767px) {
  .page-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    font-size: 16px;
  }
}


/* ===============================
   右上固定：輸送の安全に関する情報（PCのみ）
=============================== */
.side-safety-link {
  position: fixed;
  top: 120px;          /* ヘッダー下に来る位置 */
  right: 0;
  z-index: 1000;
}

.side-safety-link a {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;

  padding: 16px 12px;
  background: #1b1464;
  color: #fff;

  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.1em;

  border-radius: 12px 0 0 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);

  transition: background .25s ease, padding .25s ease;
}

.side-safety-link a:hover {
  background: #0f0b45;
  padding-right: 18px; /* hoverで少し出る */
}


@media (max-width: 767px) {
  .side-safety-link {
    display: none;
  }
}
