/*
Theme Name: D Supply Theme
Author: Dサプライ
Description: 株式会社Dサプライ公式サイト用WordPressテーマ
Version: 1.0.0
Text Domain: d-supply
*/

:root {
  --ink: #171717;
  --muted: #666;
  --line: #d9d9d9;
  --paper: #fff;
  --soft: #f2f6f7;
  --accent: #81A4B4;
  --accent-dark: #5F8292;
  --accent-soft: #EEF5F7;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, Arial, sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 700;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.brand-sub {
  font-size: 13px;
  color: var(--accent-dark);
  letter-spacing: .08em;
}

.header-contact {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
  min-width: 230px;
}

.header-contact strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.header-contact strong a {
  overflow-wrap: anywhere;
}

.nav-wrap {
  border-bottom: 3px solid var(--accent);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border-left: 1px solid var(--line);
  padding: 0;
  list-style: none;
}

.nav li {
  list-style: none;
}

.nav a {
  display: block;
  padding: 14px 8px 12px;
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  transition: background .18s ease, color .18s ease;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.nav span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: .06em;
}

.hero {
  min-height: 560px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #0c1114;
  color: #fff;
}

.hero-slides,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-slides {
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-color: #0c1114;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .7s ease, transform 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,0,0,.74) 0%, rgba(0,0,0,.46) 48%, rgba(0,0,0,.10) 100%),
    linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,.28));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 72px 18px 58px;
}

.hero-controls {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hero-nav {
  display: inline-flex;
  gap: 8px;
}

.hero-control,
.hero-dot {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.hero-control {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 8px;
  background: rgba(12, 17, 20, .36);
  font-size: 26px;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease;
}

.hero-control:hover,
.hero-control:focus-visible {
  background: rgba(12, 17, 20, .58);
  border-color: rgba(255, 255, 255, .86);
}

.hero-control:focus-visible,
.hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-dots {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .45);
  transition: width .2s ease, background .2s ease, transform .2s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: var(--accent);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(24px, 3.8vw, 40px);
  line-height: 1.04;
  letter-spacing: 0;
  font-family: Georgia, "Times New Roman", serif;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--accent);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .22);
}

.hero p {
  max-width: 670px;
  margin: 0 0 28px;
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 700;
  color: rgba(224, 236, 240, .96);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.hero-note {
  max-width: 760px;
  margin: -12px 0 26px;
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .16);
}

.hero-notes .hero-note {
  margin: 0 0 6px;
}

.hero-notes .hero-note:last-child {
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid #fff;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.mini-button {
  min-height: 42px;
  padding: 9px 16px;
  border-color: var(--line);
  background: #fff;
  color: #444;
  font-size: 13px;
}

.small-link {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.map-box .small-link {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.small-link a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-small-link {
  color: rgba(255, 255, 255, .82);
}

.coating-hero {
  padding: 88px 18px 78px;
  background:
    linear-gradient(90deg, rgba(15, 20, 23, .84), rgba(49, 71, 80, .55)),
    url("images/IMG_8734.jpg") center / cover;
  color: #fff;
}

.coating-hero-inner {
  max-width: var(--max);
}

.coating-hero .eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, .78);
  font-weight: 700;
  letter-spacing: .08em;
}

.coating-hero h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.03;
  letter-spacing: 0;
}

.coating-hero p {
  max-width: 760px;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
}

.section {
  padding: 58px 18px;
}

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

.inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(129, 164, 180, .45);
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
}

.section-head p {
  margin: 0 0 7px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  background: #fff;
}

.news-list li {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.news-list time {
  color: var(--accent);
  font-weight: 700;
  font-family: Georgia, "Times New Roman", serif;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  width: min(100%, 320px);
  justify-self: start;
}

.about-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(129, 164, 180, .28);
}

.about-copy {
  max-width: 760px;
  padding-top: 4px;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  grid-template-rows: 210px 210px;
  gap: 10px;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid img:first-child {
  grid-row: span 2;
}

.coating-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(129, 164, 180, .35);
}

.lead {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
}

.body-copy {
  margin: 0;
  color: #333;
}

.page-body > * + * {
  margin-top: 16px;
}

.page-body p {
  margin: 0;
}

.page-body img {
  margin: 0;
}

.about-copy .body-copy + .body-copy {
  margin-top: 14px;
}

.stock-grid,
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.stock-card,
.vehicle-card {
  border: 1px solid rgba(129, 164, 180, .35);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.stock-card img,
.vehicle-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.stock-body,
.vehicle-body {
  padding: 16px;
}

.stock-body h3,
.vehicle-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
}

.stock-body p,
.vehicle-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.price,
.vehicle-meta {
  margin-top: 12px;
  display: inline-block;
  color: var(--accent);
  font-size: 20px;
  line-height: 1.25;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.vehicle-spec {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.vehicle-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin-bottom: 30px;
}

.vehicle-side {
  position: sticky;
  top: 86px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 22px;
  border-radius: 4px;
}

.vehicle-price-main {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 700;
}

.vehicle-total {
  margin: 8px 0 18px;
  color: var(--ink);
  font-weight: 700;
}

.vehicle-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

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

.vehicle-table {
  margin-bottom: 32px;
}

.vehicle-contact-box {
  margin-top: 34px;
}

.table-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.service-table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid rgba(129, 164, 180, .45);
}

.service-table th,
.service-table td {
  padding: 15px 16px;
  border: 1px solid rgba(129, 164, 180, .35);
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
}

.service-table th {
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 18px;
}

.service-table th:first-child,
.service-table td:first-child {
  width: 40%;
}

.service-table th:not(:first-child),
.service-table td:not(:first-child) {
  width: 20%;
}

.service-table td:last-child {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.service-item {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(129, 164, 180, .4);
  background: #fff;
  border-radius: 4px;
  text-align: center;
  font-weight: 700;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.flow-intro {
  max-width: 780px;
  margin-bottom: 24px;
}

.flow-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 22px 0 30px;
}

.flow-note,
.faq-item {
  border: 1px solid rgba(129, 164, 180, .28);
  background: #fff;
  border-radius: 4px;
  padding: 18px 18px 16px;
}

.flow-note h3,
.faq-item h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.4;
}

.flow-note ul {
  margin: 0;
  padding-left: 18px;
}

.flow-note li + li {
  margin-top: 6px;
}

.section-narrow {
  max-width: 900px;
  margin-top: 34px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.flow-item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 4px;
}

.flow-item span {
  display: block;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  margin-bottom: 12px;
}

.flow-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.flow-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.shop-visual {
  margin: 18px 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f7f7;
}

.shop-visual img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center center;
}

.shop-page-photo {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f7f7f7;
}

.shop-page-photo img {
  width: 100%;
  min-height: 320px;
  max-height: 420px;
  object-fit: cover;
  object-position: center center;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-top: 1px solid var(--line);
}

.info-table th,
.info-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-size: 15px;
}

.info-table th {
  width: 120px;
  color: var(--muted);
  font-weight: 700;
}

.contact-box {
  background: linear-gradient(135deg, #172025 0%, #314750 100%);
  color: #fff;
  padding: 28px;
  border-radius: 4px;
}

.contact-box h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.3;
}

.contact-box p {
  margin: 0 0 18px;
  color: #e7e7e7;
}

.contact-links {
  display: grid;
  gap: 10px;
}

.x-image-link {
  display: block;
  margin: 8px -28px 0;
  width: calc(100% + 56px);
  overflow: hidden;
  border-radius: 0 0 4px 4px;
}

.x-image-link img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: center center;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.shop-mark {
  margin-top: 18px;
  background: #fff;
  padding: 14px;
  border-radius: 4px;
}

.shop-mark img {
  max-width: 260px;
  margin: 0 auto;
}

.map-box {
  margin-top: 28px;
  border: 1px solid rgba(129, 164, 180, .45);
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.map-box iframe {
  display: block;
  width: 100%;
  min-height: 320px;
}

.entry-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px;
}

.nav-links {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 6px 12px;
}

.nav-links .current {
  background: var(--ink);
  color: #fff;
}

.single-vehicle-image {
  margin-bottom: 24px;
}

.single-vehicle-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.footer {
  padding: 34px 18px;
  background: #0f0f0f;
  color: #fff;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: #ccc;
  font-size: 13px;
}

.footer strong {
  color: #fff;
  font-size: 18px;
}

@media (max-width: 800px) {
  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-contact {
    text-align: left;
    min-width: 0;
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero {
    min-height: 420px;
  }

  .hero-controls {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 18px;
  }

  .split,
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    width: 100%;
    justify-self: stretch;
  }

  .stock-grid,
  .vehicle-grid,
  .flow-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .flow-note-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-detail {
    grid-template-columns: 1fr;
  }

  .vehicle-side {
    position: static;
  }

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

  .photo-grid {
    grid-template-rows: 170px 170px;
  }

  .hero h1 {
    white-space: normal;
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .contact-box {
    padding: 22px;
  }

  .contact-box h3 {
    font-size: 22px;
  }

  .map-box iframe {
    min-height: 280px;
  }

  .shop-page-photo img {
    min-height: 260px;
    max-height: 340px;
  }

  .x-image-link {
    margin-left: -22px;
    margin-right: -22px;
    width: calc(100% + 44px);
  }

  .x-image-link img {
    height: 210px;
  }
}

@media (max-width: 520px) {
  .topbar-inner {
    padding: 12px 14px;
  }

  .brand-name {
    font-size: 30px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .header-contact {
    font-size: 12px;
  }

  .header-contact strong {
    font-size: 21px;
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav a {
    padding: 9px 4px 7px;
    min-height: 58px;
    font-size: 11px;
    line-height: 1.1;
  }

  .nav span {
    font-size: 8px;
  }

  .hero-inner,
  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-inner {
    padding-top: 38px;
    padding-bottom: 28px;
  }

  .hero {
    min-height: 360px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
    margin-bottom: 18px;
  }

  .hero-note {
    font-size: 14px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section-head h1,
  .section-head h2 {
    font-size: 26px;
  }

  .section-head p {
    font-size: 12px;
  }

  .news-list li {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 190px);
  }

  .photo-grid img:first-child {
    grid-row: auto;
  }

  .about-gallery {
    gap: 10px;
  }

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

  .lead {
    font-size: 18px;
  }

  .stock-body,
  .vehicle-body {
    padding: 14px;
  }

  .stock-body h3,
  .vehicle-body h3 {
    font-size: 16px;
  }

  .price,
  .vehicle-meta {
    font-size: 18px;
  }

  .flow-item {
    padding: 16px;
  }

  .flow-item h3 {
    font-size: 17px;
  }

  .contact-box {
    padding: 18px;
  }

  .contact-box h3 {
    font-size: 20px;
  }

  .contact-box p {
    margin-bottom: 14px;
    font-size: 14px;
  }

  .contact-link {
    padding: 11px 12px;
    font-size: 14px;
  }

  .map-box iframe {
    min-height: 220px;
  }

  .shop-page-photo img {
    min-height: 220px;
    max-height: 280px;
  }

  .x-image-link {
    margin-left: -18px;
    margin-right: -18px;
    width: calc(100% + 36px);
  }

  .x-image-link img {
    height: 180px;
  }

  .info-table th,
  .info-table td {
    padding: 12px 0;
    font-size: 14px;
  }
}
