/* =========================================
   5つの工場見学とものづくり体験ツアー
   Responsive LP stylesheet
   ========================================= */
/* 1. 基本設定 */
:root {
  --ink: #191914;
  --black: #11110f;
  --gold: #c99a27;
  --gold-light: #e0bd61;
  --cream: #fbf8e6;
  --cream-deep: #f2edcf;
  --green: #55763b;
  --green-dark: #38552a;
  --green-light: #dce8c9;
  --orange: #ef6b2c;
  --orange-light: #fff0df;
  --text: #292b24;
  --muted: #68695f;
  --white: #ffffff;
  --border: #d9d6c3;
  --shadow: 0 5px 18px rgba(38, 38, 25, 0.08);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}
a {
  color: inherit;
}
button, a {
  -webkit-tap-highlight-color: transparent;
}
main {
  width: 100%;
  overflow: hidden;
}
.section {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 64px;
}

/* =========================================
   2. ファーストビュー
   ========================================= */
section.hero#top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 160px 24px 180px;
  color: var(--white);
  background-color: #11100f;
  background-image: url("../images/hero-factory.JPG");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
section.hero#top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 15, 0.50);
  z-index: -1;
}
section.hero#top .hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  grid-template-areas:
    "heading details"
    "description details";
  column-gap: 40px;
  row-gap: 36px;
  align-items: center;
  width: min(1200px, 100%);
  margin-inline: auto;
}
section.hero#top .hero-heading {
  grid-area: heading;
  min-width: 0;
}
section.hero#top .eyebrow {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 0 16px;
  background: var(--gold);
  color: #111;
  font-size: 24px;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
section.hero#top .hero-title {
  margin: 0;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.3;
  letter-spacing: 0.025em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
}
section.hero#top .title-line {
  display: block;
}
section.hero#top .hero-details {
  grid-area: details;
  min-width: 0;
  max-width: 420px;
  margin-left: auto;
  padding: 22px;
  background: rgba(17, 17, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 154, 39, 0.4);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
section.hero#top .event-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
section.hero#top .detail-row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  padding: 10px 0;
}
section.hero#top .detail-row::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(217, 214, 195, 0.15);
}
section.hero#top .detail-row:last-of-type::after {
  display: none;
}
section.hero#top .detail-label {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 72px;
  min-height: 24px;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(201, 154, 39, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
section.hero#top .detail-value {
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #fbf8e6;
}
section.hero#top .detail-value > strong {
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.2;
  color: #fff;
}
section.hero#top .detail-value small {
  font-size: 0.7em;
  color: #d9d6c3;
}
section.hero#top .note {
  display: inline-block;
  margin-left: 3px;
  font-size: 10px;
  color: #d9d6c3;
}
section.hero#top .detail-compact {
  font-size: 12px;
}
section.hero#top .apply-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--gold);
  color: #111;
  font-weight: 800;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 15px rgba(201, 154, 39, 0.35);
}
section.hero#top .apply-button:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
section.hero#top .hero-description {
  grid-area: description;
  max-width: 560px;
  margin: 0;
  color: #ffffff;
  font-size: 14.5px;
  line-height: 1.9;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
}

/* =========================================
   3. 見学施設カード（完全修正：高さ統一・デザイン保持）
   ========================================= */
.facilities-section {
  background-color: var(--cream);
  padding: 64px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.facilities-section .section-heading h2 {
  color: var(--green-dark);
}
.facilities-section .section-heading > span {
  background: currentColor;
}
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.facility-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #e2ddc4;
  border-radius: 12px;
  padding: 24px;
  color: var(--text);
  box-shadow: 0 4px 16px rgba(40, 50, 25, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* カードの高さを揃える土台 */
}
.facility-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(40, 50, 25, 0.1);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.facility-num {
  font-family: "Georgia", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--green);
}
.category-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid var(--green);
}
.facility-name {
  margin: 0 0 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.4;
}
.facility-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  flex-grow: 1; /* 説明文の高さを可変にして下部フッターの位置を揃える */
}

/* ★改善：見学施設の写真の高さを完全に均一に揃える設定 */
.facility-image {
  margin-bottom: 18px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  width: 100%;
  aspect-ratio: 16 / 10; /* 写真のアスペクト比を固定 */
  background: #f0ede2;
}
.facility-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 12px;
  margin-top: auto; /* フッターをカード下部にきれいに押し付ける */
}
.footer-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-weight: 600;
}
.footer-label .icon {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}
.visit-day {
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
}
.visit-day.highlight-gold {
  color: var(--gold);
}

/* =========================================
   4. 体験プログラム（選択式であることが一目で伝わるよう改善）
   ========================================= */
.experience-section {
  position: relative;
  width: 100%;
  padding: 48px 24px;
  background: var(--cream);
}
.experience-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(780px, 100%);
  margin: 0 auto;
  padding: 24px 20px 20px;
  border: 1.5px solid #d7c58b;
  border-radius: 12px;
  background: #fffdf7;
  color: var(--text);
  box-shadow: 0 4px 20px rgba(40, 50, 25, 0.04);
}

/* 上部案内エリアのスタイル */
.experience-header-note {
  text-align: center;
  margin-bottom: 4px;
}
.experience-notice-badge {
  display: inline-block;
  padding: 4px 14px;
  margin-bottom: 8px;
  background: var(--gold);
  color: #111;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 20px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(201, 154, 39, 0.3);
}
.experience-header-note p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}
.experience-header-note strong {
  color: var(--orange);
}

/* 2枚のカードを並べるグリッド */
.experience-grid-cards {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  width: 100%;
}

.experience-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #b9953c;
  border-radius: 9px;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.experience-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--ink);
}
.experience-price {
  margin: 0 0 12px;
  color: #8d3423;
  font-size: 17px;
  font-weight: 800;
}
.experience-price small {
  font-size: 11px;
  font-weight: 500;
}
.experience-img-wrap {
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e2ddc4;
}
.experience-card img {
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  display: block;
}

/* 「または」バッジの調整 */
.or-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid #d8b750;
  border-radius: 50%;
  background: #24231d;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  transform: translate(-50%, -50%);
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* スマホ対応 */
@media (max-width: 600px) {
  .experience-grid-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .or-badge {
    top: auto;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
  }
  .experience-panel {
    padding-bottom: 30px;
  }
}

/* 5. セクション見出し・共通 */
.section-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  color: var(--green-dark);
  text-align: center;
}
.section-heading > span {
  width: clamp(35px, 10vw, 120px);
  height: 2px;
  background: currentColor;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  white-space: nowrap;
}
.itinerary-section {
  padding: 48px 30px;
  background: var(--cream);
  border: 1px solid #d5e0c8;
  border-radius: 10px;
}

/* 6. 食事案内 */
.meals-section {
  padding-top: 50px;
  padding-bottom: 64px;
}
.orange-heading {
  color: var(--orange);
}
.section-intro {
  margin: -10px auto 28px;
  text-align: center;
  font-size: 14px;
}
.meal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.meal-card {
  position: relative;
  min-width: 0;
  padding: 25px 16px 16px;
  border: 1.5px solid #f19a62;
  border-radius: 5px;
  background: #fffdf7;
  text-align: center;
}
.meal-day {
  position: absolute;
  top: -13px;
  left: 50%;
  max-width: calc(100% - 24px);
  padding: 2px 15px;
  border-radius: 20px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}
.meal-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
}
.meal-card p {
  margin: 0 0 12px;
  font-size: 12px;
}
.meal-card img {
  aspect-ratio: 1.25 / 1;
  border-radius: 5px;
  object-fit: cover;
}

/* 7. 行程表 */
.itinerary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.day-card {
  min-width: 0;
  padding: 20px;
  border: 1.5px solid #9dbb8b;
  border-radius: 15px;
  background: #fff;
}
.day-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.day-heading > span {
  padding: 4px 14px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.day-heading h3 {
  margin: 0;
  font-size: 18px;
}
.timeline {
  display: grid;
  gap: 14px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.timeline-item time {
  color: #34392e;
  font-size: 14px;
  font-weight: 800;
}
.timeline-item p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.timeline-item small {
  display: block;
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
}
.highlight-group {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 18px 0;
  padding: 16px 8px 8px;
  border: 1.5px solid #ef8d56;
  border-radius: 12px;
}
.group-label {
  display: table;
  width: fit-content;
  margin: 0 auto 5px;
  padding: 3px 14px;
  border-radius: 20px;
  background: var(--orange);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.highlight-group > .group-label {
  position: absolute;
  top: -13px;
  left: 50%;
  white-space: nowrap;
  transform: translateX(-50%);
}
.visit-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 9px;
  border-radius: 5px;
  background: #fbf8df;
  text-align: center;
}
.visit-stop strong {
  font-size: 13px;
}
.visit-stop small {
  font-size: 11px;
}
.standalone-stop {
  margin: 10px 0;
}
.course-box {
  margin: 12px 0;
  padding: 12px;
  border: 1.5px solid #f18e55;
  border-radius: 12px;
  background: #fffdf8;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.course-option {
  padding: 10px 6px;
  border: 1px solid #f2b08b;
  border-radius: 6px;
  text-align: center;
}
.course-option > strong {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--orange);
  font-size: 12px;
}
.course-option p {
  margin: 0 0 7px;
  color: #b34b22;
  font-size: 12px;
  font-weight: 800;
}
.free-time {
  margin: 12px 0;
  font-size: 12px;
  font-weight: 600;
}

/* 8. 注意事項・CTA・フッター */
.information-section {
  padding-top: 52px;
}
.information-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
  align-items: start;
}
.information-card {
  padding: 22px;
  border: 1.5px solid #6e6e64;
  border-radius: 6px;
  background: #fff;
}
.information-card h2 {
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 1px solid #d9d7ce;
  font-size: 17px;
  text-align: center;
}
.information-card p,
.information-card li {
  font-size: 12px;
  line-height: 1.9;
}
.information-card ul {
  margin: 0;
  padding-left: 1.3em;
}
.information-card li + li {
  margin-top: 8px;
}
.cta-banner-section {
  position: relative;
  background: linear-gradient(135deg, #1b3b6f 0%, #112240 100%);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-top: 4px solid var(--gold);
  border-bottom: 4px solid var(--gold);
}
.cta-banner-container {
  width: min(900px, 100%);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-badge {
  display: inline-block;
  padding: 4px 16px;
  background: var(--gold);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  border-radius: 20px;
}
.cta-banner-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: #fff;
}
.cta-banner-desc {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: #e2e8f0;
}
.footer-big-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: min(540px, 100%);
  padding: 18px 32px;
  background: linear-gradient(135deg, #ffe033 0%, #ffb703 50%, #e68a00 100%);
  color: #11110f !important;
  font-weight: 900;
  font-size: 18px;
  text-decoration: none;
  border: 2px solid #fff;
  border-radius: 60px;
  box-shadow: 0 8px 25px rgba(255, 183, 3, 0.5);
  transition: all 0.3s ease;
}
.footer-big-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(255, 183, 3, 0.7);
}
.site-footer {
  padding: 50px 16px 30px;
  background: var(--black);
  color: #e9dfc4;
}
.footer-container {
  width: min(1000px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.footer-info-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(217, 214, 195, 0.2);
}
.footer-contact h3,
.footer-company h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--gold-light);
}
.footer-contact p,
.footer-company p {
  margin: 0 0 5px;
  font-size: 12.5px;
  color: #f8f6ee;
}
.footer-bottom {
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

/* =========================================
   レスポンシブ対応（タブレット・スマートフォン用）
   ========================================= */

@media (max-width: 600px) {

  /* ファーストビュー全体 */
  section.hero#top {
    position: relative;
    isolation: isolate;
    padding: 72px 16px 40px;
    background: #fff;
    overflow: hidden;
  }

  /* 背景画像を上部のメインビジュアル領域だけに表示 */
  section.hero#top::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 430px;
    background:
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.18) 65%,
        rgba(0, 0, 0, 0)
      ),
      url("../images/hero-factory.JPG") center / cover no-repeat;
  }

  /* タイトルを写真の上に配置 */
  section.hero#top .hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "details"
      "description";
    row-gap: 24px;
  }

  section.hero#top .hero-heading {
    grid-area: heading;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0px; 
    transform: translateY(-30px);
  }

/* 市長紹介文を一行にする */
  section.hero#top .hero-heading .eyebrow {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(12px, 3.5vw, 16px);
  }

  section.hero#top .hero-title {
    font-size: clamp(28px, 7.5vw, 40px);
    line-height: 1.4;
  }

  /* 開催情報は写真の下の白い領域へ */
  section.hero#top .hero-details {
    grid-area: details;
    max-width: 100%;
    margin: 0;
    padding: 16px 14px;
    color: #17202a;
  }

  /* 説明文も白い領域へ */
  section.hero#top .hero-description {
    grid-area: description;
    max-width: 100%;
    margin: 0;
    color: #333;
    font-size: 13.5px;
    line-height: 1.8;
    text-shadow: none;
  }

  /* 以下、既存のスマホ用レイアウトを維持 */
  .facility-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .facility-card {
    padding: 18px;
  }

  .facility-name {
    font-size: 18px;
  }

  .meal-grid,
  .itinerary-grid,
  .information-grid,
  .footer-info-box {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-big-button {
    font-size: 15px;
    padding: 15px 20px;
  }
}
