@charset "UTF-8";

:root {
  --text: #1d2a30;
  --accent: #129ab9;
  --accent-dark: #0b6f86;
  --accent-pale: #eef7fa;
  --line: #d9dde0;
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .04em;
  font-feature-settings: "palt" 0;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 30px; }
.container--sm { max-width: 760px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
  min-height: var(--header-h);
}
.header-logo img { width: 280px; }
.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  line-height: 1.5;
}
.header-telbox { text-align: right; }
.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent-dark);
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 2px;
}
.header-tel-label {
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  letter-spacing: .1em;
}
.header-hours { font-weight: 500; }
.header-note {
  padding: 8px 14px;
  border-left: 3px solid var(--accent);
  background: var(--accent-pale);
  color: #444;
  line-height: 1.6;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 50px 0 70px;
  background: linear-gradient(180deg, #fff 0, #fff 18%, var(--accent-pale) 18%, var(--accent-pale) 100%);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}
.hero-img {
  flex: 0 0 64%;
  position: relative;
  box-shadow: 0 20px 40px -20px rgba(11, 60, 75, .45);
}
.hero-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-box {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  margin-left: -80px;
  padding: 48px 44px;
  background: #fff;
  border-top: 5px solid var(--accent);
  box-shadow: 0 16px 40px -18px rgba(11, 60, 75, .35);
}
.hero-box::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 2px solid var(--accent);
  pointer-events: none;
}
.hero-label {
  margin-bottom: 18px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--accent);
}
.hero-copy {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.7;
}
.hero-copy strong {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--accent-dark);
  background: linear-gradient(transparent 68%, #cdeaf2 68%);
}

/* ---------- text sections ---------- */
.section { padding: 60px 0; }
.section p + p { margin-top: 1.7em; }
.text-lg { font-size: 24px; line-height: 1.6; }
.text-md { font-size: 22px; line-height: 1.6; }

/* ---------- gallery（高さを揃えて整列） ---------- */
.gallery ul {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}
.gallery li { aspect-ratio: 4 / 3; overflow: hidden; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- company ---------- */
.company-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.company table { width: 100%; border-collapse: collapse; }
.company th, .company td {
  padding: 18px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.company th { width: 130px; font-weight: 700; }
.company td a { text-decoration: none; }

/* ---------- history ---------- */
.history { padding-top: 20px; }
.section-title {
  margin: 0 0 30px;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}
.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--accent);
}
.history-list { margin: 0; }
.history-list > div {
  display: flex;
  gap: 20px;
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
}
.history-list > div:first-child { border-top: 1px solid var(--line); }
.history-list dt { flex: 0 0 230px; font-weight: 700; }
.history-list dd { margin: 0; }

/* ---------- footer ---------- */
.site-footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 12px;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-box { margin-left: -60px; padding: 36px 30px; }
  .hero-copy { font-size: 20px; }
  .header-logo img { width: 230px; }
  .header-note { display: none; }
}

@media (max-width: 900px) {
  .gallery ul { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .header-inner { padding: 8px 16px; }
  .header-inner { gap: 10px; }
  .header-logo img { width: 170px; }
  .header-tel { font-size: 15px; margin: 0; gap: 5px; letter-spacing: .02em; }
  .header-tel-label { font-size: 10px; padding: 1px 6px; }
  .header-hours { font-size: 10px; letter-spacing: 0; white-space: nowrap; }

  .container { padding: 0 16px; }
  .hero { padding: 16px 0 40px; background: linear-gradient(180deg, #fff 0, #fff 30%, var(--accent-pale) 30%); }
  .hero-inner { flex-direction: column; padding: 0 16px; }
  .hero-img { flex: none; width: 100%; }
  .hero-box { width: calc(100% - 24px); margin: -40px 0 0; align-self: flex-start; padding: 28px 22px; }
  .hero-box::after { inset: 10px -10px -10px 10px; }
  .hero-label { margin-bottom: 10px; font-size: 11px; }
  .hero-copy { font-size: 18px; }

  .section { padding: 40px 0; }
  .text-lg, .text-md { font-size: 17px; line-height: 1.8; }

  .gallery ul { grid-template-columns: repeat(2, 1fr); }

  .company-tables { grid-template-columns: 1fr; gap: 0; }
  .company th { width: 110px; }

  .history-list > div { flex-direction: column; gap: 4px; }
  .history-list dt { flex: none; }
}

/* 個人向け非対応の注記：ヘッダーに収まらない幅では画面下に固定表示 */
.fixed-note { display: none; }
@media (max-width: 1024px) {
  body { padding-bottom: 64px; }
  .fixed-note {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--accent-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, .12);
  }
}
