/*
 * httpdocs/public/assets/css/public.css
 * Bootstrap 5を前提に公開サイトのAERO TECH JAPANらしい黒基調UIを定義します。
 */

:root {
  --aero-bg: #050505;
  --aero-surface: #111;
  --aero-surface-2: #181818;
  --aero-line: #2b2b2b;
  --aero-text: #f4f4f4;
  --aero-muted: #a8a8a8;
  --aero-cyan: #4dd8ff;
  --aero-red: #e12d2d;
}

body.site-body {
  background: var(--aero-bg);
  color: var(--aero-text);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.65;
}

.site-body a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: 72px;
  background: rgba(5, 5, 5, .94);
  border-bottom: 1px solid var(--aero-line);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  min-height: 72px;
  padding-inline: clamp(18px, 4vw, 56px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--aero-text);
  font-weight: 800;
}

.brand:hover,
.brand:focus {
  color: var(--aero-text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--aero-red);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

.brand-text {
  font-size: clamp(15px, 3.8vw, 22px);
  white-space: nowrap;
}

.nav-toggle {
  display: grid;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--aero-line);
  border-radius: 8px;
  box-shadow: none;
}

.nav-toggle span {
  height: 2px;
  background: #fff;
}

.nav-toggle:focus {
  box-shadow: 0 0 0 .2rem rgba(77, 216, 255, .2);
}

.site-nav {
  border-top: 1px solid var(--aero-line);
}

.site-nav .navbar-nav {
  padding-block: 12px;
}

.site-nav .nav-link {
  color: var(--aero-muted);
  border-bottom: 1px solid #202020;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .lang-link {
  color: var(--aero-cyan);
}

.hero {
  min-height: calc(100svh - 72px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .08), rgba(0, 0, 0, .76)),
    linear-gradient(90deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .24));
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(22px, 4vw, 42px);
  width: min(100%, 1480px);
  min-height: calc(100svh - 72px);
  align-content: end;
  padding: clamp(88px, 14vw, 140px) clamp(18px, 4vw, 56px) 48px;
}

.hero-copy {
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--aero-cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-body h1,
.site-body h2,
.site-body h3 {
  line-height: 1.15;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 12vw, 108px);
}

.hero p {
  max-width: 720px;
  color: #e8e8e8;
  font-size: clamp(15px, 2.2vw, 19px);
}

.hero-calendar {
  width: min(100%, 430px);
  padding: clamp(14px, 2vw, 20px);
  color: var(--aero-text);
  background: linear-gradient(180deg, rgba(9, 9, 9, .78), rgba(9, 9, 9, .62));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .42);
  backdrop-filter: blur(12px);
}

.hero-calendar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.hero-calendar-head .eyebrow {
  margin-bottom: 6px;
  font-size: 11px;
}

.hero-calendar-head h2 {
  margin: 0;
  font-size: clamp(22px, 4vw, 34px);
}

.hero-calendar-head > span {
  color: var(--aero-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.hero-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.hero-calendar-weekday {
  color: #d8d8d8;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.hero-calendar-day {
  display: grid;
  min-height: 38px;
  align-content: center;
  justify-items: center;
  gap: 1px;
  padding: 5px 2px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
}

.hero-calendar-day.is-blank {
  visibility: hidden;
}

.hero-calendar-number {
  font-weight: 900;
  line-height: 1;
}

.hero-calendar-status {
  color: #ffd0d0;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.hero-calendar-day.status-closed {
  background: rgba(225, 45, 45, .25);
  border-color: rgba(225, 45, 45, .58);
}

.hero-calendar-day.status-am_closed,
.hero-calendar-day.status-pm_closed {
  background: rgba(77, 216, 255, .16);
  border-color: rgba(77, 216, 255, .5);
}

.hero-calendar-day.is-today {
  outline: 2px solid var(--aero-cyan);
  outline-offset: 1px;
}

.hero-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  color: #d0d0d0;
  font-size: 11px;
}

.hero-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.hero-calendar-legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.legend-open {
  background: rgba(255, 255, 255, .45);
}

.legend-closed {
  background: var(--aero-red);
}

.legend-half {
  background: var(--aero-cyan);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: #fff;
  background: var(--aero-red);
  border: 1px solid var(--aero-red);
  border-radius: 8px;
  cursor: pointer;
}

.button:hover,
.button:focus {
  color: #fff;
  background: #f13b3b;
  border-color: #f13b3b;
}

.button.secondary {
  color: var(--aero-cyan);
  background: transparent;
  border-color: var(--aero-cyan);
}

.button.secondary:hover,
.button.secondary:focus {
  color: #031014;
  background: var(--aero-cyan);
  border-color: var(--aero-cyan);
}

.section {
  padding: clamp(44px, 8vw, 86px) clamp(18px, 4vw, 56px);
}

.narrow {
  max-width: 960px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(26px, 5vw, 48px);
}

.muted {
  color: var(--aero-muted);
}

.category-chip {
  display: block;
  padding: 14px;
  color: var(--aero-muted);
  background: var(--aero-surface);
  border: 1px solid var(--aero-line);
  border-radius: 8px;
}

.category-chip:hover,
.category-chip:focus {
  color: var(--aero-text);
  border-color: var(--aero-cyan);
}

.category-chip strong {
  display: block;
  color: var(--aero-text);
}

.product-card,
.news-card {
  height: 100%;
  color: var(--aero-text);
  background: var(--aero-surface);
  border: 1px solid var(--aero-line);
  border-radius: 8px;
  overflow: hidden;
}

.card-link {
  display: grid;
  height: 100%;
  color: inherit;
}

.card-link:hover,
.card-link:focus {
  color: inherit;
}

.product-card .card-img-top {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #151515;
}

.news-card .card-img-top {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #151515;
}

.card-body {
  padding: 15px;
}

.card-meta {
  color: var(--aero-cyan);
  font-size: 12px;
  font-weight: 700;
}

.card-title {
  margin-top: 6px;
  font-size: 17px;
}

.gallery-main {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(72svh, 760px);
  margin: 0 auto;
  object-fit: contain;
  background: #111;
  border: 1px solid var(--aero-line);
  border-radius: 8px;
}

.gallery-thumbs {
  margin-top: 8px;
}

.gallery-thumbs button {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 1px solid var(--aero-line);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #111;
}

.spec-table {
  margin-top: 18px;
  --bs-table-bg: var(--aero-surface);
  --bs-table-color: var(--aero-text);
  --bs-table-border-color: var(--aero-line);
  --bs-table-hover-bg: #1b1b1b;
  --bs-table-hover-color: var(--aero-text);
}

.spec-table th {
  width: 44%;
  color: var(--aero-muted);
  font-weight: 600;
}

.rich-content {
  display: grid;
  gap: 22px;
}

.rich-content h2 {
  margin-top: 10px;
  color: var(--aero-cyan);
  font-size: clamp(22px, 4vw, 34px);
}

.rich-content a {
  color: var(--aero-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-content table {
  width: 100%;
  color: var(--aero-text);
  background: var(--aero-surface);
  border: 1px solid var(--aero-line);
}

.rich-content th,
.rich-content td {
  padding: 10px;
  border-bottom: 1px solid var(--aero-line);
  text-align: left;
  vertical-align: top;
}

.rich-content th {
  width: 34%;
  color: var(--aero-muted);
}

.rich-content img {
  border: 1px solid var(--aero-line);
  border-radius: 8px;
}

.price-list-groups,
.business-calendar-months {
  display: grid;
  gap: 24px;
}

.price-list-group,
.business-calendar-section {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.price-list-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.price-list-brand img {
  width: min(180px, 48vw);
  max-height: 80px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

.price-list-card {
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 18px;
  background: var(--aero-surface);
  border: 1px solid var(--aero-line);
  border-radius: 8px;
}

.price-list-card:hover,
.price-list-card:focus {
  color: var(--aero-text);
  border-color: var(--aero-cyan);
}

.price-list-card span {
  font-weight: 800;
}

.price-list-card time {
  color: var(--aero-muted);
  font-size: 13px;
}

.business-calendar-month {
  display: grid;
  gap: 12px;
}

.business-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.calendar-weekday,
.calendar-day {
  min-height: 54px;
  padding: 7px;
  background: var(--aero-surface);
  border: 1px solid var(--aero-line);
  border-radius: 6px;
}

.calendar-weekday {
  min-height: auto;
  color: var(--aero-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  display: grid;
  align-content: start;
  gap: 2px;
}

.calendar-day.is-blank {
  visibility: hidden;
}

.calendar-day-number {
  font-weight: 800;
}

.calendar-day-status,
.calendar-day-note {
  color: var(--aero-muted);
  font-size: 11px;
  line-height: 1.25;
}

.calendar-day.status-closed {
  background: rgba(225, 45, 45, .22);
  border-color: rgba(225, 45, 45, .64);
}

.calendar-day.status-am_closed,
.calendar-day.status-pm_closed {
  background: rgba(77, 216, 255, .13);
  border-color: rgba(77, 216, 255, .48);
}

.calendar-day.is-today {
  outline: 2px solid var(--aero-cyan);
  outline-offset: 1px;
}

.field label {
  color: var(--aero-muted);
  font-size: 13px;
}

.site-body .form-control {
  min-height: 44px;
  color: var(--aero-text);
  background: #0d0d0d;
  border-color: var(--aero-line);
}

.site-body .form-control:focus {
  color: var(--aero-text);
  background: #101010;
  border-color: var(--aero-cyan);
  box-shadow: 0 0 0 .2rem rgba(77, 216, 255, .18);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--aero-muted);
  border-top: 1px solid var(--aero-line);
}

.site-footer div,
.site-footer nav {
  display: grid;
  gap: 4px;
}

.site-footer a {
  color: var(--aero-cyan);
}

.notice {
  padding: 10px 12px;
  color: #062c19;
  background: #d9fbea;
  border: 1px solid #9be2bb;
  border-radius: 8px;
}

.error-box {
  padding: 10px 12px;
  color: #3b0a0a;
  background: #fff0f0;
  border: 1px solid #e6a2a2;
  border-radius: 8px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
    align-items: end;
  }

  .hero-calendar {
    justify-self: end;
    margin-bottom: 10px;
  }

  .site-nav {
    border-top: 0;
  }

  .site-nav .navbar-nav {
    align-items: center;
    gap: 22px;
    padding-block: 0;
  }

  .site-nav .nav-link {
    padding: 0;
    border-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .hero-content {
    gap: 18px;
    padding-top: 72px;
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 46px);
  }

  .hero p {
    font-size: 14px;
    line-height: 1.55;
  }

  .actions {
    margin-top: 20px;
  }

  .hero-calendar {
    width: 100%;
    padding: 12px;
  }

  .hero-calendar-head {
    align-items: start;
    margin-bottom: 10px;
  }

  .hero-calendar-head .eyebrow {
    font-size: 10px;
  }

  .hero-calendar-head h2 {
    font-size: 22px;
  }

  .hero-calendar-head > span {
    max-width: 120px;
    font-size: 11px;
  }

  .hero-calendar-day {
    min-height: 28px;
    padding-block: 3px;
    border-radius: 5px;
  }

  .hero-calendar-status {
    font-size: 9px;
  }

  .hero-calendar-legend {
    gap: 8px;
    margin-top: 10px;
    font-size: 10px;
  }
}
