/* ============================================
   株式会社ガルス サイト共通スタイル
   構成:
     1. Variables & Base
     2. Layout / Header / Buttons / Common
     3. Sections (page-hero, section, cta-panel)
     4. Home page (.home-modern)
     5. Services page
     6. Company page
     7. Contact page
     8. Footer
     9. Media queries
   ============================================ */

/* ============================================
   1. Variables & Base
   ============================================ */
:root {
  --blue-900: #12395c;
  --blue-700: #0f5f9f;
  --blue-600: #1976b8;
  --blue-050: #eef7fc;
  --ink: #1f2a33;
  --muted: #5f6d78;
  --line: #d8e2ea;
  --bg: #ffffff;
  --soft: #f6f8fa;
  --accent: #f4b23b;
  --shadow: 0 18px 40px rgba(18, 57, 92, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

img,
iframe {
  max-width: 100%;
}

a {
  color: inherit;
}

/* ============================================
   2. Layout / Header / Buttons / Common
   ============================================ */
.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.home-modern .modern-header {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(18, 57, 92, 0.06);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue-700);
  border-radius: 8px;
  font-weight: 700;
}

.brand-name {
  display: block;
  font-weight: 700;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--blue-700);
  background: var(--blue-050);
}

.nav-toggle {
  display: none;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  color: #fff;
  background: var(--blue-700);
}

.btn-primary:hover {
  background: var(--blue-900);
}

.btn-outline {
  color: var(--blue-700);
  background: #fff;
  border-color: var(--blue-700);
}

.btn-light {
  color: var(--blue-900);
  background: #fff;
}

.btn-line-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-glass {
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 95, 159, 0.38);
}

/* --- Common elements --- */
.eyebrow {
  margin: 0 0 8px;
  color: var(--blue-700);
  font-size: 0.92rem;
  font-weight: 700;
}

.image-placeholder {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: #547086;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(15, 95, 159, 0.08), rgba(244, 178, 59, 0.08)),
    #f3f7fa;
  border: 1px dashed #9eb5c5;
  border-radius: 8px;
}

.small-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.text-link {
  color: var(--blue-700);
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

/* ============================================
   3. Sections (page-hero, section, cta-panel)
   ============================================ */
.section {
  padding: 52px 0;
}

.section-muted {
  background: var(--soft);
}

.section-blue {
  color: #fff;
  background: var(--blue-900);
}

.section-blue .eyebrow,
.section-blue p {
  color: rgba(255, 255, 255, 0.82);
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 22px;
}

.section-heading h2,
.company-grid h2,
.contact-aside h2,
.form-card h2,
.detail-copy h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.35;
}

.section-heading p,
.company-grid p,
.detail-copy p {
  color: var(--muted);
}

.page-hero {
  padding: 40px 0;
  background: var(--blue-050);
}

.page-hero h1 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  line-height: 1.2;
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-panel h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.4;
}

/* ============================================
   4. Home page (.home-modern)
   ============================================ */
.home-modern {
  background: #f8fcff;
}

/* --- Hero --- */
.modern-hero {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 58px 0 44px;
  color: var(--blue-900);
  background: #edf8fe;
  isolation: isolate;
}

.modern-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(249, 253, 255, 0.98) 0%, rgba(244, 251, 255, 0.94) 35%, rgba(237, 248, 253, 0.64) 53%, rgba(230, 246, 253, 0.18) 76%, rgba(230, 246, 253, 0.04) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.14) 100%),
    url("../images/hero-seagulls.jpg") center 28% / cover no-repeat;
}

.hero-photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center end;
  padding-right: max(7vw, 80px);
  color: transparent;
  text-align: center;
}

.hero-photo-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 47%, rgba(255, 255, 255, 0.16) 47% 48%, transparent 48% 100%);
  opacity: 0.34;
}

.hero-photo-placeholder span {
  position: relative;
  width: min(36vw, 520px);
  min-height: 360px;
  display: grid;
  place-items: center;
  opacity: 0;
  border: 1px dashed transparent;
  border-radius: 6px;
  background: transparent;
}

.modern-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 320px);
  gap: 40px;
  align-items: center;
}

.modern-hero-copy {
  max-width: 620px;
  padding: 4px 0;
}

.modern-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 10px;
  color: var(--blue-700);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(25, 118, 184, 0.16);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(18, 57, 92, 0.05);
}

.modern-hero h1 {
  margin: 0;
  max-width: 560px;
  color: var(--blue-900);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.2;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.modern-hero h1 span {
  display: block;
}

.modern-lead {
  max-width: 560px;
  margin: 18px 0 0;
  color: #334652;
  font-size: 1rem;
  line-height: 1.65;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.38);
}

.modern-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.home-modern .modern-cta-row .btn {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.95rem;
}

.hero-contact-card {
  padding: 18px;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(190, 218, 232, 0.92);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(18, 57, 92, 0.12);
  backdrop-filter: blur(3px);
}

.hero-contact-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 700;
}

.hero-phone {
  display: inline-block;
  color: var(--blue-700);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-contact-card dl {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
}

.hero-contact-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.hero-contact-card dt {
  color: var(--muted);
}

.hero-contact-card dd {
  margin: 0;
  font-weight: 700;
}

/* --- Service overview --- */
.modern-service-overview {
  padding: 52px 0;
  background: #fff;
}

.modern-section-head {
  width: min(760px, 100%);
  margin-bottom: 22px;
}

.modern-section-head h2,
.modern-area-grid h2,
.modern-final-panel h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.35;
}

.modern-section-head p,
.modern-area-grid p,
.modern-final-panel p {
  color: var(--muted);
  font-size: 0.95rem;
}

.modern-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.modern-service-card {
  overflow: hidden;
  display: grid;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modern-service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 54px rgba(18, 57, 92, 0.13);
}

.modern-card-photo {
  min-height: 165px;
  display: grid;
  place-items: center;
  color: #4e7189;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(14, 95, 159, 0.12), rgba(255, 255, 255, 0.28)),
    #eaf4f9;
  border-bottom: 1px dashed #b3c6d5;
}

.modern-card-body {
  display: grid;
  gap: 7px;
  padding: 18px;
}

.modern-card-label {
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.modern-card-body strong {
  color: var(--blue-900);
  font-size: 1.1rem;
}

.modern-card-body span:last-child {
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- Area --- */
.modern-area-band {
  padding: 34px 0;
  background: #eef8fd;
  border-top: 1px solid #d9edf7;
  border-bottom: 1px solid #d9edf7;
}

.modern-area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 30px;
  align-items: center;
}

.modern-area-grid h2,
.modern-section-head.compact h2 {
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
}

.modern-area-grid p,
.modern-section-head.compact p {
  margin: 12px 0 0;
  line-height: 1.7;
}

.modern-area-visual {
  padding: 0;
  background: transparent;
}

.modern-area-photo-placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  color: #547086;
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(222, 241, 249, 0.7)), #f6fbfe;
  border: 1px dashed #a9c9d9;
  border-radius: 8px;
  font-weight: 700;
}

.modern-area-tags,
.modern-industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modern-area-visual .modern-area-tags {
  margin-top: 12px;
}

.modern-area-tags span,
.modern-industry-list span {
  padding: 8px 12px;
  color: var(--blue-900);
  background: #f8fcff;
  border: 1px solid #cfe2ee;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 700;
}

/* --- Industry --- */
.modern-industry-section {
  padding: 34px 0 36px;
  background: #fff;
}

.modern-industry-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.modern-section-head.compact {
  margin-bottom: 0;
}

.modern-industry-list {
  align-content: center;
  gap: 9px;
}

/* --- Final CTA --- */
.modern-final-cta {
  padding: 36px 0 42px;
  background: #f3fbff;
  border-top: 1px solid #d9edf7;
}

.modern-final-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.modern-final-panel .modern-cta-row {
  margin-top: 0;
}

/* ============================================
   5. Services page
   ============================================ */
.service-detail-list {
  display: grid;
  gap: 24px;
}

.detail-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 26px;
  align-items: start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-photo {
  min-height: 200px;
  margin-bottom: 14px;
}

.check-list {
  padding-left: 1.2em;
  color: var(--ink);
}

.check-list li + li {
  margin-top: 6px;
}

.size-table,
.outline-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.size-table caption {
  padding: 8px 0;
  color: var(--blue-900);
  font-weight: 700;
  text-align: left;
}

.size-table th,
.size-table td,
.outline-table th,
.outline-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.size-table th,
.outline-table th {
  color: var(--blue-900);
  background: #f4f8fb;
  font-weight: 700;
}

.size-table tr:last-child td,
.outline-table tr:last-child th,
.outline-table tr:last-child td {
  border-bottom: 0;
}

.note-box {
  padding: 14px 16px;
  background: var(--blue-050);
  border-left: 4px solid var(--blue-700);
  border-radius: 6px;
}

/* ============================================
   6. Company page
   ============================================ */
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  gap: 40px;
  align-items: center;
}

.company-photo {
  min-height: 300px;
}

.equipment-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.equipment-item {
  padding: 14px 16px;
  background: var(--blue-050);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.equipment-item strong,
.equipment-item span {
  display: block;
}

.equipment-item span {
  margin-top: 4px;
  color: var(--blue-700);
  font-size: 1.25rem;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
}

.outline-table th {
  width: 210px;
}

.map-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.map-wrap iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
}

.map-link-row {
  margin: 12px 0 0;
  text-align: right;
}

/* ============================================
   7. Contact page
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.contact-aside,
.form-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-method-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-method-card {
  display: block;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
  background: var(--blue-050);
  border-left: 4px solid var(--blue-700);
  border-radius: 6px;
}

.contact-method-card span,
.contact-method-card strong {
  display: block;
}

.contact-method-card span {
  color: var(--muted);
}

.contact-method-card strong {
  margin-top: 2px;
  color: var(--blue-900);
  font-size: 1.18rem;
  line-height: 1.3;
}

.office-hours {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.office-hours div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.office-hours dt {
  color: var(--muted);
}

.office-hours dd {
  margin: 0;
  color: var(--blue-900);
  font-weight: 700;
}

.form-note {
  padding: 10px 12px;
  color: #75530e;
  background: #fff6df;
  border: 1px solid #f4d487;
  border-radius: 6px;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-form label,
.contact-form fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
}

.contact-form fieldset {
  padding: 0;
  border: 0;
}

.contact-form span,
.contact-form legend {
  color: var(--blue-900);
  font-weight: 700;
}

.contact-form em {
  color: #b6402a;
  font-style: normal;
  font-size: 0.82rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b8c7d2;
  border-radius: 6px;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(25, 118, 184, 0.18);
  border-color: var(--blue-700);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--soft);
  border-radius: 6px;
}

.checkbox-grid input {
  width: auto;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--blue-700);
  font-weight: 700;
}

/* ============================================
   8. Footer
   ============================================ */
.site-footer {
  padding: 24px 0;
  color: #dceaf4;
  background: #172836;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  margin: 6px 0 0;
}

.footer-contact {
  text-align: right;
}

/* ============================================
   9. Media queries
   ============================================ */
@media (max-width: 920px) {
  /* Header */
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 14px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  /* Grids collapse to 1 column */
  .company-grid,
  .contact-grid,
  .detail-block,
  .modern-hero-inner,
  .modern-area-grid,
  .modern-industry-grid,
  .modern-service-grid {
    grid-template-columns: 1fr;
  }

  /* Stack flex panels */
  .cta-panel,
  .footer-inner,
  .modern-final-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    text-align: left;
  }

  /* Home hero */
  .modern-hero {
    min-height: auto;
    padding: 42px 0;
  }

  .modern-hero-bg {
    background:
      linear-gradient(180deg, rgba(249, 253, 255, 0.92) 0%, rgba(249, 253, 255, 0.84) 56%, rgba(236, 248, 253, 0.42) 100%),
      url("../images/hero-seagulls.jpg") 55% 18% / cover no-repeat;
  }

  .hero-photo-placeholder {
    place-items: center;
    padding: 0 28px;
  }

  .hero-photo-placeholder span {
    width: min(100%, 520px);
    min-height: 240px;
  }

  .modern-hero-copy {
    max-width: 620px;
  }

  .hero-contact-card {
    max-width: 390px;
  }

  .modern-area-visual {
    max-width: none;
  }

  /* Home sections */
  .modern-area-band,
  .modern-industry-section {
    padding: 32px 0;
  }

  .modern-area-grid,
  .modern-industry-grid {
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 42px 0;
  }

  .header-inner {
    min-height: 60px;
  }

  .site-nav {
    top: 60px;
  }

  .brand-sub {
    display: none;
  }

  .equipment-row,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .detail-block,
  .contact-aside,
  .form-card {
    padding: 20px;
  }

  .outline-table th,
  .outline-table td {
    display: block;
    width: 100%;
  }

  .outline-table th {
    padding-bottom: 4px;
  }

  .outline-table td {
    padding-top: 4px;
  }

  .btn {
    width: 100%;
  }

  /* Home hero */
  .modern-hero {
    padding: 42px 0;
  }

  .modern-hero-bg {
    background:
      linear-gradient(180deg, rgba(249, 253, 255, 0.94) 0%, rgba(249, 253, 255, 0.88) 64%, rgba(236, 248, 253, 0.5) 100%),
      url("../images/hero-seagulls.jpg") 54% 12% / cover no-repeat;
  }

  .modern-kicker {
    margin-bottom: 12px;
    padding: 6px 11px;
    font-size: 0.78rem;
    max-width: 100%;
    white-space: normal;
  }

  .modern-hero h1 {
    max-width: 100%;
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1.16;
  }

  .modern-lead {
    margin-top: 16px;
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .modern-cta-row {
    margin-top: 20px;
  }

  .home-modern .modern-cta-row .btn {
    width: 100%;
    min-height: 42px;
    padding: 9px 14px;
  }

  .hero-contact-card,
  .modern-final-panel {
    padding: 18px;
  }

  .hero-phone {
    font-size: 1.42rem;
  }

  /* Home sections */
  .modern-service-overview,
  .modern-final-cta {
    padding: 42px 0;
  }

  .modern-area-band,
  .modern-industry-section {
    padding: 30px 0;
  }

  .modern-area-photo-placeholder {
    min-height: 190px;
  }

  .modern-card-photo {
    min-height: 150px;
  }

  .modern-area-grid {
    gap: 22px;
  }

  .modern-area-visual .modern-area-tags {
    gap: 8px;
  }

  .modern-area-visual .modern-area-tags span {
    padding: 7px 10px;
    font-size: 0.84rem;
  }
}
