@charset "UTF-8";

/* ==========================================================================
   変数
   ========================================================================== */
:root {
  --color-red: #d9351a;
  --color-blue: #0a4bc4;
  --color-purple: #4e336c;
  --color-purple-dark: #3a1a5d;
  --color-beige: #f7f3ea;
  --color-text: #1c1b1f;
  --color-line: #d5dad1;

  --column-width: 800px;
  --notice-height: 55px;
  /* Figmaの行間「Auto」の実測値 */
  --leading-auto: 1.172;
}

/* ==========================================================================
   ベース
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* 固定しているお知らせ帯の分だけアンカーの着地点を下げる */
  scroll-padding-top: var(--notice-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--color-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul,
figure,
address,
hr {
  margin: 0;
}

h1,
h2,
h3 {
  font-size: inherit;
  font-weight: inherit;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  flex-shrink: 0;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

address {
  font-style: normal;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   固定背景
   画面に固定し、中央カラムだけがその上をスクロールする
   ========================================================================== */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #fff;
}

/* Figma上の表示比率（1920×1245）を保ったまま、上端を基準に画面全体を覆う */
.page-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: max(100vw, 100vh * 1920 / 1245);
  height: max(100vh, 100vw * 1245 / 1920);
  background: url("../assets/images/bg-page.jpg") center / 100% 100% no-repeat;
  opacity: 0.8;
  transform: translateX(-50%);
}

/* ==========================================================================
   1 お知らせ帯（画面上部に固定）
   ========================================================================== */
.notice {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 14px 20px;
  background: var(--color-red);
  color: #fff;
  font-size: 18px;
}

.notice__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice__item--clone {
  display: none;
}

/* 800px未満で文字を流すためのアニメーション。1組ぶんの幅だけ左へ送って繰り返す */
@keyframes notice-marquee {
  to {
    transform: translateX(-100%);
  }
}

/* ==========================================================================
   中央カラム
   ========================================================================== */
.page {
  position: relative;
  z-index: 1;
  width: var(--column-width);
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
}

/* ==========================================================================
   2 ファーストビュー
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 66px 30px 73px;
  background: var(--color-beige);
}

/* 写真＋紺の重ね。上から600pxで切れる（カードの上端に少しかかる）。
   高さと写真の収め方は指示による調整で、Figmaの配置とは異なる */
.hero__bg {
  position: absolute;
  inset: 0 0 auto;
  height: 600px;
  background: url("../assets/images/photo-street-sign.png") no-repeat;
  background-size: cover;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(78, 51, 108, 0.7);
}

.hero__inner {
  position: relative;
}

.hero__target {
  width: fit-content;
  padding: 8px 22px 8px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-purple);
  font-size: 18px;
}

.hero__title {
  margin-top: 35px;
  color: #fff;
  font-size: 48px;
  line-height: 1.45;
}

/* 「青ルート」だけ青文字＋白縁にして、写真の上でも目立たせる（縁は白い影を全方向に重ねている） */
.hero__route {
  color: var(--color-blue);
  text-shadow:
    0.080em 0.000em 0 #fff,
    0.078em 0.016em 0 #fff,
    0.074em 0.031em 0 #fff,
    0.067em 0.044em 0 #fff,
    0.057em 0.057em 0 #fff,
    0.044em 0.067em 0 #fff,
    0.031em 0.074em 0 #fff,
    0.016em 0.078em 0 #fff,
    0.000em 0.080em 0 #fff,
    -0.016em 0.078em 0 #fff,
    -0.031em 0.074em 0 #fff,
    -0.044em 0.067em 0 #fff,
    -0.057em 0.057em 0 #fff,
    -0.067em 0.044em 0 #fff,
    -0.074em 0.031em 0 #fff,
    -0.078em 0.016em 0 #fff,
    -0.080em 0.000em 0 #fff,
    -0.078em -0.016em 0 #fff,
    -0.074em -0.031em 0 #fff,
    -0.067em -0.044em 0 #fff,
    -0.057em -0.057em 0 #fff,
    -0.044em -0.067em 0 #fff,
    -0.031em -0.074em 0 #fff,
    -0.016em -0.078em 0 #fff,
    -0.000em -0.080em 0 #fff,
    0.016em -0.078em 0 #fff,
    0.031em -0.074em 0 #fff,
    0.044em -0.067em 0 #fff,
    0.057em -0.057em 0 #fff,
    0.067em -0.044em 0 #fff,
    0.074em -0.031em 0 #fff,
    0.078em -0.016em 0 #fff;
}

.hero__lead {
  margin-top: 29.6px;
  color: #fff;
  font-size: 20px;
  line-height: 1.8;
}

.hero__cards {
  display: flex;
  gap: 24px;
  margin: 51px -2px 0;
}

.summary-card {
  display: flex;
  flex: 0 0 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 293px;
  padding: 30px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 31, 77, 0.14);
}

.summary-card--blue {
  --card-color: var(--color-blue);
  --card-tint: #e6eeff;
}

.summary-card--red {
  --card-color: var(--color-red);
  --card-tint: #fde9e4;
}

.summary-card__title {
  color: var(--card-color);
  font-size: 30px;
  line-height: 1.3;
}

.summary-card__text {
  align-self: stretch;
  font-size: 17px;
  line-height: 1.6;
}

.summary-card__link {
  display: flex;
  gap: 10px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--card-tint);
  color: var(--card-color);
  font-size: 16px;
}

/* ==========================================================================
   5 う回推奨マップ
   ========================================================================== */
.detour {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 20px 20px 100px;
  background: var(--color-beige);
}

.detour__title {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 40px;
  line-height: 1.3;
}

.detour__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

/* 地図カード */
.map-card {
  display: flex;
  flex-direction: column;
  gap: 15.58px;
  width: 759.41px;
  max-width: 100%;
  padding: 15.58px 15.58px 19.47px;
  border-radius: 23.37px;
  background: #fff;
  box-shadow: 0 9.74px 27.26px rgba(10, 31, 77, 0.12);
}

/* 地図は切らずに全体を見せるため、画像そのものの縦横比で表示する（Figmaの枠は横長のまま） */
.map-card__map {
  width: 100%;
  height: auto;
  border: 1px solid #e6dfd0;
  border-radius: 13.63px;
}

.map-card__caption {
  color: #202020;
  font-size: 12.66px;
}

/* 凡例 */
.legend {
  width: 100%;
  padding: 0 50px;
}

.legend__routes {
  border-right: 1px solid var(--color-line);
}

.legend__route {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  border-top: 1px solid var(--color-line);
  background: #fff;
  line-height: var(--leading-auto);
}

.legend__route--blue {
  --route-color: #175bc5;
}

.legend__route--orange {
  --route-color: #d45b1c;
}

.legend__route--green {
  --route-color: #22854c;
}

.legend__bar {
  flex-shrink: 0;
  align-self: stretch;
  width: 8px;
  background: var(--route-color);
}

.legend__name {
  flex-shrink: 0;
  width: 295px;
  color: #25332f;
  font-size: 23px;
}

.legend__desc {
  flex: 1;
  min-width: 0;
  color: #0f1010;
  font-size: 14px;
}

.legend__note {
  padding: 19px 0 20px;
  border-top: 1px solid var(--color-line);
  color: #0f1010;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.legend__warning {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 10px;
  background: var(--color-red);
  color: #fff;
}

.legend__warning-title {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 102px;
  font-size: 12px;
  line-height: var(--leading-auto);
}

.legend__warning-text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

/* 6 Googleマップのボタン */
.map-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 36px 22px 40px;
  border-radius: 999px;
  background: var(--color-purple);
  box-shadow: 0 10px 28px rgba(10, 31, 77, 0.12);
  color: #fff;
  font-size: 20px;
}

/* 7 道路交通情報 */
.jartic {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-height: 282px;
  padding: 24px 36px;
  border-radius: 20px;
  background: #fff;
}

.jartic__header {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 32px;
}

.jartic__logo {
  width: 72px;
  height: 32px;
  object-fit: contain;
}

.jartic__label {
  color: #222;
  font-size: 13px;
  font-weight: 500;
  line-height: var(--leading-auto);
}

.jartic__rule {
  width: 100%;
  height: 1px;
  border: 0;
  background: #d3ddd5;
}

.jartic__body,
.jartic__source {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jartic__title {
  color: #000;
  font-size: 26px;
  line-height: 1.4;
}

.jartic__text {
  color: #363636;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
}

.jartic__source-name {
  color: #000;
  font-size: 12px;
  font-weight: 500;
  line-height: var(--leading-auto);
}

.jartic__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 9px;
  border-bottom: 1px solid #004ea2;
  color: #004ea2;
  font-size: 17px;
  line-height: var(--leading-auto);
}

/* ==========================================================================
   8 交通規制の詳しい内容
   ========================================================================== */
.regulation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  padding-bottom: 20px;
  background: #fff;
}

/* 見出しの帯 */
.regulation__head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10.13px;
  width: 100%;
  height: 345px;
  padding: 0 32px;
  overflow: hidden;
  color: #fff;
  font-weight: 900;
}

/* Figma上の配置をそのまま再現している（写真は縦に約1.28倍引き伸ばされた状態で置かれている） */
.regulation__photo {
  position: absolute;
  top: -160.8px;
  left: 0;
  width: 100%;
  height: 680.6px;
}

.regulation__head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90.05deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 67.368%);
}

.regulation__title,
.regulation__date {
  position: relative;
  z-index: 2;
}

.regulation__title {
  font-size: 25.33px;
  line-height: 1.3;
}

/* 実施日は修正指示により大きくしている（Figmaは12.67px）。
   文字が写真の明るい部分（右側のバス）にかかるため、下地を暗くして読みやすくしている */
.regulation__date {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  font-size: 18px;
}

.regulation__date img {
  width: 20px;
  height: 20px;
}

/* 規制図 */
.regulation__maps {
  display: flex;
  flex-direction: column;
  gap: 23.03px;
  width: 100%;
  padding: 0 20px;
}

.reg-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13.43px;
  width: 100%;
}

.reg-area__title {
  padding: 6.72px 21.11px;
  border-radius: 999px;
  background: var(--color-red);
  color: #fff;
  font-size: 19.19px;
}

/* 規制図はPCでは2列（1枚ずつ約368px幅）。押すと元の画像を別タブで開いて拡大できる */
.reg-area__figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 23.03px;
  width: 100%;
}

.reg-figure {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid #e6dfd0;
  border-radius: 15.35px;
  background: #fff;
  cursor: zoom-in;
}

.reg-figure > img {
  width: 100%;
  height: auto;
}

/* 「タップで拡大」の表示（800px未満のみ） */
.reg-figure__zoom {
  display: none;
}

/* 報道発表資料へのリンク */
.regulation__press {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  color: var(--color-blue);
  font-size: 18px;
}

.regulation__press span {
  text-decoration: underline;
  text-underline-position: from-font;
}

/* ==========================================================================
   9-10 パーク＆ライド案内
   ========================================================================== */
.park-ride {
  display: flex;
  justify-content: center;
  padding: 50px 0 40.75px;
}

.park-ride__card {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 762px;
  max-width: 100%;
  padding: 31px 32px;
  border: 1px solid #e9e0e7;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(65, 40, 67, 0.08);
}

.park-ride__logo {
  width: 458.3px;
  height: 46px;
}

.park-ride__illust {
  width: 100%;
  height: auto;
  aspect-ratio: 696 / 350.75;
  border-radius: 20px;
  object-fit: cover;
}

.park-ride__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.park-ride__title {
  color: #332d33;
  font-size: 26px;
  line-height: 1.4;
}

.park-ride__text {
  color: #191719;
  font-size: 18px;
  line-height: 1.7;
}

.park-ride__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
  border-radius: 16px;
  background: #621e63;
  color: #fff;
  font-size: 22px;
}

.park-ride__button-label {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   11 お問い合わせ先
   ========================================================================== */
/* 背景は修正指示により、庁舎の写真ではなく無地の紫にしている */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 20px;
  background: var(--color-purple);
  color: #fff;
}

.contact__info {
  text-align: center;
}

.contact__title {
  margin-bottom: 22px;
  font-size: 30px;
  line-height: 1.4;
}

.contact__address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 17px;
}

.contact__org {
  font-size: 18px;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 20px;
  background: var(--color-purple-dark);
  color: #fff;
  font-size: 13px;
}

.footer__links {
  display: flex;
  gap: 30px;
}

/* 絵文字ではなく文字の三角として表示する */
.footer__links a::before {
  content: "\25B6\FE0E";
}

/* ==========================================================================
   800px未満（Figmaにデザインがないための暫定レイアウト）
   ========================================================================== */
@media (max-width: 799px) {
  :root {
    --notice-height: 41px;
  }

  /* お知らせ帯：1行にして、文字を右から左へ流し続ける */
  .notice {
    justify-content: flex-start;
    padding: 10px 0;
    overflow: hidden;
    font-size: 14px;
  }

  /* 2組を横に並べ、どちらも自分の幅ぶん左へ動かすと切れ目なくつながる。
     右の余白が次の周回との間隔になる */
  .notice__item {
    flex-shrink: 0;
    gap: 8px;
    min-width: 100%;
    padding: 0 40px 0 16px;
    white-space: nowrap;
    animation: notice-marquee 12s linear 1s infinite;
  }

  .notice__item--clone {
    display: flex;
  }

  .notice__icon {
    width: 20px;
    height: 20px;
  }

  .hero {
    padding: 40px 20px 48px;
  }

  .hero__bg {
    /* 写真は1枚目のカードの途中までにして、引きで見せる */
    inset: 0 0 400px;
    height: auto;
    background-position: 66% center;
    background-size: cover;
  }

  .hero__target {
    font-size: 13px;
  }

  .hero__title {
    margin-top: 24px;
    font-size: clamp(22px, 7.2vw, 48px);
  }

  .hero__lead {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero__lead br {
    display: none;
  }

  .hero__cards {
    flex-direction: column;
    gap: 16px;
    margin: 32px 0 0;
  }

  .summary-card {
    flex: none;
    height: auto;
    padding: 24px 20px;
  }

  .summary-card__title {
    font-size: 24px;
  }

  .summary-card__text {
    font-size: 15px;
  }

  .summary-card__link {
    padding: 10px 18px;
    font-size: 14px;
  }

  .detour {
    padding: 20px 16px 64px;
  }

  .detour__title {
    gap: 12px;
    font-size: 26px;
  }

  .detour__body {
    gap: 24px;
  }

  .map-card {
    gap: 10px;
    padding: 10px 10px 12px;
    border-radius: 16px;
  }

  .map-card__map {
    border-radius: 10px;
  }

  .map-card__caption {
    font-size: 11px;
  }

  .legend {
    padding: 0;
  }

  .legend__route {
    display: grid;
    grid-template-areas:
      "bar name dir"
      "bar desc dir";
    grid-template-columns: 8px 1fr 44px;
    align-content: center;
    column-gap: 12px;
    height: auto;
    min-height: 60px;
  }

  .legend__bar {
    grid-area: bar;
  }

  .legend__name {
    grid-area: name;
    width: auto;
    padding-top: 8px;
    font-size: 17px;
  }

  .legend__desc {
    grid-area: desc;
    padding-bottom: 8px;
    font-size: 12px;
  }

  .legend__dir {
    grid-area: dir;
  }

  .legend__note {
    font-size: 13px;
  }

  .legend__warning {
    gap: 12px;
    padding: 16px;
  }

  /* 見出し「車両集中エリア」（7文字）が1行に収まる幅 */
  .legend__warning-title {
    width: 92px;
    white-space: nowrap;
  }

  .legend__warning-text {
    font-size: 14px;
  }

  .map-button {
    gap: 8px;
    max-width: 100%;
    padding: 16px 20px;
    font-size: 14px;
  }

  .jartic {
    min-height: 0;
    padding: 20px;
  }

  .jartic__title {
    font-size: 20px;
  }

  .jartic__text {
    font-size: 14px;
  }

  .jartic__link {
    gap: 8px;
    font-size: 15px;
  }

  .regulation__head {
    height: 240px;
    padding: 0 20px;
  }

  .regulation__photo {
    top: 0;
    height: 100%;
    object-fit: cover;
  }

  .regulation__title {
    font-size: 22px;
  }

  .regulation__date {
    align-items: flex-start;
    gap: 6px;
    padding: 6px 10px;
    font-size: 14px;
  }

  .regulation__date img {
    width: 16px;
    height: 16px;
    margin-top: 2.5px;
  }

  .regulation__maps {
    padding: 0 16px;
  }

  .reg-area__figures {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  /* 図の文字を隠さないよう、図に重ねず下に置く */
  .reg-figure__zoom {
    display: flex;
    width: fit-content;
    margin: 8px 8px 8px auto;
    align-items: center;
    gap: 4px;
    padding: 3px 10px 3px 8px;
    border-radius: 999px;
    background: rgba(28, 27, 31, 0.75);
    color: #fff;
    font-size: 12px;
  }

  .reg-figure__zoom img {
    width: 14px;
    height: 14px;
  }

  .reg-area__title {
    font-size: 17px;
  }

  .regulation__press {
    align-items: flex-start;
    padding: 0 16px;
    font-size: 15px;
  }

  .park-ride {
    padding: 40px 16px;
  }

  .park-ride__card {
    gap: 20px;
    padding: 20px;
    border-radius: 20px;
  }

  .park-ride__logo {
    width: 100%;
    height: auto;
  }

  .park-ride__illust {
    border-radius: 14px;
  }

  .park-ride__title {
    font-size: 20px;
  }

  .park-ride__text {
    font-size: 15px;
  }

  .park-ride__text br {
    display: none;
  }

  .park-ride__button {
    height: 56px;
    padding: 0 16px;
    font-size: 16px;
  }

  .park-ride__button-label {
    gap: 8px;
  }

  .contact {
    padding: 48px 16px;
  }

  .contact__title {
    margin-bottom: 16px;
    font-size: 24px;
  }

  .contact__address {
    font-size: 14px;
  }

  .contact__org {
    font-size: 15px;
  }

  .footer {
    flex-direction: column;
    gap: 12px;
    padding: 24px 16px;
    font-size: 12px;
  }

  .footer__links {
    gap: 20px;
  }
}

/* 端末側で「動きを減らす」設定にしている場合は流さず、折り返して全文を表示する */
@media (max-width: 799px) and (prefers-reduced-motion: reduce) {
  :root {
    --notice-height: 62px;
  }

  .notice {
    padding: 10px 16px;
  }

  .notice__item {
    flex-shrink: 1;
    align-items: flex-start;
    min-width: 0;
    padding: 0;
    white-space: normal;
    animation: none;
  }

  .notice__item--clone {
    display: none;
  }
}
