/* ゼンケイ宮崎：関連会社デザイン踏襲・SEO最適化・レスポンシブ対応 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700;900&display=swap');

:root {
  --primary-red: #E60012;      /* ゼンケイ・レッド */
  --accent-orange: #F39800;    /* お問い合わせ・CTA用 */
  --nav-gray: #4D4D4D;         /* ナビゲーション背景 */
  --dark-navy: #1a2a4a;        /* 見出し・アクセント紺 */
  --bright-red: #FF3333;       /* 警告・強調赤 */
  --text-main: #333333;
  --text-sub: #666666;
  --border-color: #DDDDDD;
  --bg-sidebar: #F8F8F8;
  --bg-light: #F4F4F4;
  --container-width: 1000px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text-main);
  line-height: 1.7;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  transition: color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--container-width);
  width: 95%;
  margin: 0 auto;
  position: relative;
}

/* ===========================
   Header
=========================== */
.header {
  background-color: #fff;
  padding: 20px 0;
  border-top: 5px solid var(--primary-red);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo img {
  height: 55px;
  display: block;
}

.header-contact {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-info {
  display: flex;
  flex-direction: column;
}

.header-sub {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 2px;
}

.header-tel {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary-red);
  line-height: 1;
  text-decoration: none;
}

.header-btn {
  display: inline-block;
  background-color: var(--accent-orange);
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  border-radius: 4px;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.header-btn:hover {
  background-color: #d48400;
  transform: translateY(-2px);
}

/* ===========================
   Global Navigation
=========================== */
.nav-bar {
  background-color: var(--nav-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-container {
  display: flex;
  list-style: none;
}

.nav-item {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.nav-item:first-child { border-left: 1px solid rgba(255,255,255,0.1); }

.nav-item a {
  display: block;
  padding: 18px 0;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  font-size: 15px;
  transition: background-color 0.3s;
}

.nav-item a:hover,
.nav-item a.active {
  background-color: var(--primary-red);
}

/* ===========================
   Hamburger Menu
=========================== */
.menu-trigger {
  display: none;
  cursor: pointer;
  width: 50px;
  height: 50px;
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1001;
  background: var(--nav-gray);
  border-radius: 4px;
}

.menu-trigger span {
  display: inline-block;
  transition: all .4s;
  position: absolute;
  left: 13px;
  height: 3px;
  border-radius: 2px;
  background-color: #fff;
  width: 24px;
}

.menu-trigger span:nth-of-type(1) { top: 15px; }
.menu-trigger span:nth-of-type(2) { top: 23px; }
.menu-trigger span:nth-of-type(3) { top: 31px; }

.menu-trigger.active span:nth-of-type(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.menu-trigger.active span:nth-of-type(2) {
  opacity: 0;
}
.menu-trigger.active span:nth-of-type(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===========================
   Red Tagline Bar
=========================== */
.tagline-bar {
  width: 100%;
  background: var(--primary-red);
  padding: 15px 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tagline-bar p {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
}

/* ===========================
   Breadcrumbs
=========================== */
.breadcrumbs {
  padding: 12px 0 15px;
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.breadcrumbs a {
  color: var(--text-sub);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

/* ===========================
   Layout (Left Sidebar)
=========================== */
.main-layout {
  display: flex;
  margin-top: 40px;
  margin-bottom: 80px;
  gap: 40px;
}

/* Sidebar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
}

.side-nav {
  margin-bottom: 30px;
}

.side-nav-title {
  background-color: var(--nav-gray);
  color: #fff;
  padding: 12px 15px;
  font-weight: bold;
  font-size: 15px;
  border-left: 5px solid var(--primary-red);
}

.side-nav ul {
  list-style: none;
  border: 1px solid var(--border-color);
  border-top: none;
}

.side-nav li a {
  display: block;
  padding: 12px 15px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid #eee;
  transition: all 0.2s;
  background: #fff;
}

.side-nav li a:hover {
  background-color: var(--bg-light);
  color: var(--primary-red);
  padding-left: 20px;
}

.side-banner {
  margin-bottom: 20px;
}

.side-banner img {
  width: 100%;
  border: 1px solid var(--border-color);
  transition: opacity 0.3s;
}

.side-banner img:hover { opacity: 0.8; }

/* Main Content */
.main-content {
  flex-grow: 1;
  min-width: 0;
}

/* ===========================
   Hero Slider
=========================== */
.hero-slider {
  width: 100%;
  height: 420px;
  background-color: #333;
  position: relative;
  overflow: hidden;
}

.hero-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider img.active {
  opacity: 1;
  z-index: 1;
}

/* CSS fallback animation (when JS is off) */
.no-js .hero-slider img:nth-child(1) { opacity: 1; }

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.8);
  transition: background 0.3s;
}

.slider-dot.active {
  background: #fff;
}

/* ===========================
   Section Headers
=========================== */
h2.section-title {
  font-size: 22px;
  font-weight: 900;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-red);
  margin-bottom: 30px;
  color: var(--text-main);
  position: relative;
}

h2.section-title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--nav-gray);
}

h3.section-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  border-left: 5px solid var(--primary-red);
  padding-left: 12px;
  margin: 30px 0 20px;
  line-height: 1.4;
}

/* ===========================
   Content Section
=========================== */
.content-section {
  margin-bottom: 50px;
}

/* ===========================
   News List
=========================== */
.news-list {
  margin-bottom: 50px;
}

.news-item {
  display: flex;
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
  align-items: center;
  gap: 10px;
}

.news-date {
  width: 110px;
  font-size: 14px;
  color: var(--text-sub);
  flex-shrink: 0;
}

.news-cat {
  width: 80px;
  flex-shrink: 0;
}

.news-cat span {
  background: var(--nav-gray);
  color: #fff;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 2px;
  white-space: nowrap;
}

.news-cat.important span { background: var(--primary-red); }
.news-cat.recruit span { background: #2a7a2a; }

.news-text {
  flex: 1;
  font-size: 15px;
}

.news-text a {
  color: var(--text-main);
  text-decoration: none;
}

.news-text a:hover {
  color: var(--primary-red);
  text-decoration: underline;
}

/* ===========================
   Service Grid
=========================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 4px solid var(--primary-red);
  display: block;
}

.service-card-content { padding: 15px; }

.service-card-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--primary-red);
}

.service-card-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* ===========================
   Video Section
=========================== */
.video-section {
  display: flex;
  gap: 30px;
  background: var(--bg-sidebar);
  padding: 30px;
  margin-bottom: 50px;
  border: 1px solid var(--border-color);
}

.video-frame {
  flex: 0 0 400px;
  height: 225px;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-red);
}

/* ===========================
   Image Row (2-column)
=========================== */
.image-row {
  display: flex;
  gap: 15px;
  margin: 25px 0;
}

.image-row img {
  flex: 1;
  width: 50%;
  height: 220px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

/* ===========================
   Image Gallery (4-column)
=========================== */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 25px 0;
}

.image-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

/* ===========================
   Rich Table
=========================== */
.rich-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  font-size: 14px;
}

.rich-table th,
.rich-table td {
  padding: 13px 18px;
  border: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.rich-table th {
  background-color: var(--nav-gray);
  color: #fff;
  font-weight: 700;
  width: 28%;
  white-space: nowrap;
}

.rich-table tr:nth-child(even) td {
  background-color: #fafafa;
}

.rich-table tr:first-child th,
.rich-table tr:first-child td {
  font-weight: bold;
}

/* ===========================
   Q&A Box
=========================== */
.qa-box {
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
}

.qa-q {
  background: var(--nav-gray);
  color: #fff;
  padding: 14px 18px;
  font-weight: bold;
  font-size: 15px;
}

.qa-a {
  background: #fff;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.8;
}

/* ===========================
   Contact Form
=========================== */
.contact-form {
  background: #f9f9f9;
  border: 1px solid var(--border-color);
  padding: 40px;
  border-radius: 4px;
  margin-bottom: 50px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-group label .required {
  background: var(--primary-red);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 8px;
  font-weight: normal;
}

.form-group label .optional {
  background: #888;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 8px;
  font-weight: normal;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
  color: var(--text-main);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(230, 0, 18, 0.1);
}

.form-group textarea {
  min-height: 180px;
  resize: vertical;
}

.form-note {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 6px;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit button {
  background: var(--primary-red);
  color: #fff;
  border: none;
  padding: 18px 70px;
  font-size: 18px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 4px 8px rgba(230,0,18,0.3);
}

.form-submit button:hover {
  background: #b80010;
  transform: translateY(-2px);
}

.privacy-notice {
  background: #f4f4f4;
  border: 1px solid #ddd;
  padding: 20px 25px;
  font-size: 13px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text-sub);
}

.privacy-notice h4 {
  margin-bottom: 10px;
  color: var(--text-main);
}

/* ===========================
   Info Boxes
=========================== */
.info-box {
  background: var(--bg-light);
  border-left: 5px solid var(--primary-red);
  padding: 20px 25px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.8;
}

.info-box h4 {
  margin-bottom: 10px;
  color: var(--dark-navy);
}

.dark-box {
  background: #001a3a;
  color: #fff;
  padding: 30px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.dark-box h4 {
  color: #ff6666;
  margin-bottom: 15px;
  font-size: 18px;
}

/* ===========================
   Page Banner (内部ページ用)
=========================== */
.page-banner {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #2a3a5a 100%);
  color: #fff;
  padding: 40px 0;
  margin-bottom: 0;
  border-bottom: 4px solid var(--primary-red);
}

.page-banner h1 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 2px;
}

.page-banner p {
  font-size: 14px;
  opacity: 0.8;
  margin-top: 8px;
}

/* ===========================
   Footer
=========================== */
.footer {
  background-color: var(--nav-gray);
  color: #fff;
  padding: 60px 0 20px;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-red);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  gap: 40px;
}

.footer-logo img {
  height: 45px;
  filter: brightness(0) invert(1);
}

.footer-info {
  font-size: 14px;
  line-height: 1.9;
}

.footer-info p {
  margin-bottom: 4px;
}

.footer-links {
  font-size: 13px;
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-parent-link {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
}

.footer-parent-link a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}

.footer-parent-link a:hover {
  color: #fff;
}

.copyright {
  text-align: center;
  font-size: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  color: rgba(255,255,255,0.5);
}

/* ===========================
   Responsive Utilities
=========================== */

/* テーブルをスマホで横スクロール可能に */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 30px;
  border: 1px solid var(--border-color);
}
.table-scroll .rich-table {
  margin-bottom: 0;
  min-width: 540px;
  border: none;
}

/* 福利厚生グリッドなど汎用2カラム */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

/* CTAボタン類のタッチ最適化 */
.btn-cta {
  display: inline-block;
  min-height: 48px;
  line-height: 48px;
  padding: 0 28px;
  background: var(--primary-red);
  color: #fff;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}
.btn-cta:hover { background: #b80010; transform: translateY(-2px); }

/* アニメーション設定（アクセシビリティ対応） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-slider img { transition: none; }
}

/* ===========================
   Responsive: Tablet (≤992px)
=========================== */
@media screen and (max-width: 992px) {
  .main-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .video-section { flex-direction: column; }
  .video-frame { flex: none; width: 100%; }
  .image-gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ===========================
   Responsive: Mobile (≤768px)
=========================== */
@media screen and (max-width: 768px) {

  /* ── Header ── */
  .header {
    padding: 14px 0;
  }
  .header .container {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .header-logo img {
    height: 44px;
  }
  .header-contact {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  .header-sub {
    font-size: 11px;
  }
  .header-tel {
    font-size: 22px;
  }
  .header-btn {
    font-size: 13px;
    padding: 10px 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* ── Hamburger Nav ── */
  .nav-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding-top: 70px;
    background: var(--nav-gray);
    z-index: 999;
  }
  .nav-bar.open {
    display: block;
  }
  .nav-container {
    flex-direction: column;
  }
  .nav-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  /* タッチターゲット: 最低48px確保 */
  .nav-item a {
    font-size: 17px;
    padding: 16px 30px;
    text-align: left;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  .menu-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
  }

  /* ── Tagline / Hero ── */
  .tagline-bar p {
    font-size: clamp(13px, 3.5vw, 18px);
    letter-spacing: 1px;
    padding: 0 10px;
  }
  .hero-slider { height: clamp(180px, 45vw, 300px); }

  /* ── Page Banner ── */
  .page-banner { padding: 28px 0; }
  .page-banner h1 { font-size: clamp(18px, 5vw, 26px); letter-spacing: 1px; }
  .page-banner p { font-size: 13px; }

  /* ── Breadcrumbs ── */
  .breadcrumbs { font-size: 12px; }

  /* ── Section Titles ── */
  h2.section-title { font-size: clamp(17px, 4.5vw, 22px); }
  h3.section-subtitle { font-size: clamp(15px, 4vw, 18px); }

  /* ── Service Grid ── */
  .service-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ── Image Row ── */
  .image-row { flex-direction: column; }
  .image-row > div,
  .image-row img { width: 100%; height: 200px; }

  /* ── Image Gallery ── */
  .image-gallery { grid-template-columns: repeat(2, 1fr); }

  /* ── Tables: 横スクロール ── */
  .rich-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    font-size: 13px;
  }
  .rich-table th,
  .rich-table td {
    white-space: normal;
    min-width: 100px;
    padding: 10px 12px;
  }
  .rich-table th {
    min-width: 90px;
    width: auto;
  }

  /* ── Contact Form ── */
  .contact-form { padding: 22px 16px; }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* iOS zoom防止: 16px以上必須 */
    padding: 12px 12px;
  }
  .form-submit button {
    width: 100%;
    padding: 16px;
    font-size: 17px;
    border-radius: 6px;
  }

  /* ── Q&A Box ── */
  .qa-q { font-size: 14px; padding: 12px 14px; }
  .qa-a { font-size: 13px; padding: 12px 14px; }

  /* ── Info / Dark Box ── */
  .dark-box { padding: 22px 18px; }
  .info-box { padding: 16px 18px; }

  /* ── Footer ── */
  .footer { padding: 40px 0 16px; }
  .footer-content {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-logo img { height: 38px; }
  .footer-info { font-size: 13px; }
  .footer-links ul { columns: 2; gap: 10px; }

  /* ── News list ── */
  .news-item { flex-wrap: wrap; gap: 6px; }
  .news-date { width: 100%; font-size: 12px; }
  .news-cat { width: auto; }
  .news-text { font-size: 14px; }

  /* ── Benefit grid (2→1) ── */
  .grid-2col { grid-template-columns: 1fr; }

  /* ── step-flow (recruit) ── */
  .step-flow { flex-direction: column; gap: 10px; }
  .step-flow .step-arrow { transform: rotate(90deg); }

  /* ── Sidebar nav を横スクロールバーに ── */
  .side-nav ul { display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; border: none; border-top: 1px solid var(--border-color); }
  .side-nav li { flex-shrink: 0; }
  .side-nav li a { border-bottom: none; border-right: 1px solid #eee; font-size: 13px; padding: 10px 16px; }
}

/* ===========================
   Responsive: Small Mobile (≤480px)
=========================== */
@media screen and (max-width: 480px) {
  .header-logo img { height: 38px; }

  /* ヘッダーの電話番号を大きく表示 & ボタンを下へ */
  .header-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .header-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-slider { height: clamp(160px, 48vw, 220px); }

  .image-gallery { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }

  /* テーブルのth幅 */
  .rich-table th { min-width: 80px; }

  .contact-form { padding: 18px 12px; }
  .page-banner h1 { font-size: 17px; }
}

/* ===========================
   iOS Safari 対応: safe-area
=========================== */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
  .nav-bar.open {
    padding-bottom: env(safe-area-inset-bottom);
  }
}
