*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Shippori Mincho", serif;
  background: linear-gradient(to bottom, #fafaf9 0%, #ffffff 50%, #fafaf9 100%);
  color: #333;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px calc(8.33% + 35px);
  background: transparent;
}

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

nav {
  display: flex;
  gap: 32px;
}
nav a {
  font-size: 14px;
  letter-spacing: 0.05em;
  color: #000;
  text-decoration: none;
  font-weight: 400;
}

/* ── HERO ── */
.hero {
  position: relative;
  padding-block: 120px;
}

.hero-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-waves svg {
  position: absolute;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

.hero-brand {
  margin-right: 40px;
}

.hero-brand img {
  height: 40px;
  display: block;
}

.hero-image {
  width: 460px;
  height: 500px;
  background: linear-gradient(132.61deg, #e7e5e4 0%, #f5f5f4 50%, #e7e5e4 100%);
  border-radius: 4px;
}

/* ── SERVICE ── */
.service-section {
  padding-top: 80px;
  padding-bottom: 120px;
  position: relative;
}

.section-heading {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  margin-bottom: 60px;
}

.section-heading .ja {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #333;
}

.section-heading .en {
  display: block;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #333;
}

/* Service card list */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* Each service row is a relative container */
.service-row {
  position: relative;
  height: 295px;
}

/* The floating section label (GOODS, EVENT CONSULTING, etc.) */
.service-label {
  position: absolute;
  top: 0;
  background: white;
  padding: 0 16px;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 60px;
  color: #000;
  z-index: 2;
}

/* Odd rows: card on right, label on left */
.service-row.odd .service-label {
  left: calc(26.74% + 28px);
}
.service-row.odd .service-card {
  left: 26.74%;
  right: 0;
  border-radius: 4px 0 0 4px;
  justify-content: flex-start;
}

/* Even rows: card on left, label on right */
.service-row.even .service-label {
  right: calc(26.74% + 28px);
}
.service-row.even .service-card {
  left: 0;
  right: 26.74%;
  border-radius: 0 4px 4px 0;
  justify-content: flex-end;
  align-items: flex-end;
}

.service-card {
  position: absolute;
  top: 35px;
  bottom: 0;
  background: white;
  border: 1px solid #e7e5e4;
  padding: 44px 28px 27px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.service-card--link {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card--link:hover {
  border-color: #b0adaa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.service-row.even .service-card--link {
  align-items: center;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 73%;
}

.service-card-arrow {
  width: 47px;
  height: 8px;
  flex-shrink: 0;
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-icon {
  height: 80px;
  flex-shrink: 0;
}

.service-icon img {
  width: auto;
  height: 100%;
}

.service-num {
  font-size: 80px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1;
  color: #333;
}

.service-title-ja {
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #333;
  width: 100%;
}

.service-row.even .service-title-ja {
  margin-left: auto;
}

.service-desc {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.6;
  color: #000;
  width: 100%;
}

.service-row.even .service-desc {
  margin-left: auto;
}

/* ── COMPANY ── */
.company-section {
  padding: 0 0 120px;
}

.company-wave {
  width: 100%;
  height: 54px;
  margin-bottom: 80px;
}

.company-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.company-inner {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.company-label {
  flex-shrink: 0;
  width: 345px;
}

.company-label .ja {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #000;
}

.company-label .en {
  display: block;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #000;
}

.company-table {
  flex: 1;
  max-width: 805px;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.company-row {
  display: flex;
  gap: 68px;
  align-items: flex-start;
  padding: 24px 18px;
  border-top: 1px solid #d1d1d1;
  border-bottom: 1px solid #d1d1d1;
  line-height: 36px;
}

.company-row + .company-row {
  border-top: none;
}

.company-row dt {
  flex-shrink: 0;
}
.company-row dd {
  line-height: 24px;
  padding-top: 6px;
}

/* ── RESPONSIVE: tablet (≤1024px) ── */
@media (max-width: 1024px) {
  header {
    padding: 20px 24px;
  }

  /* Hero */
  .hero {
    padding-block: 100px 60px;
  }

  .hero-content {
    max-width: calc(100% - 48px);
  }

  .hero-image {
    width: 360px;
    height: 380px;
  }

  /* Section heading */
  .section-heading {
    padding-inline: 24px;
    max-width: 100%;
  }

  /* Service: switch absolute layout → stacked flow */
  .service-list {
    padding-inline: 24px;
    gap: 48px;
  }

  .service-row {
    height: auto;
  }

  .service-label {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    margin-bottom: 10px;
  }

  .service-card,
  .service-row.odd .service-card,
  .service-row.even .service-card {
    position: static;
    border-radius: 4px;
  }

  .service-card-top,
  .service-row.even .service-card-top {
    width: 100%;
    margin-left: 0;
  }

  .service-title-ja,
  .service-row.even .service-title-ja,
  .service-desc,
  .service-row.even .service-desc {
    width: 100%;
    margin-left: 0;
  }

  /* Company */
  .company-inner {
    max-width: 100%;
    padding-inline: 24px;
  }
}

/* ── RESPONSIVE: mobile (≤640px) ── */
@media (max-width: 640px) {
  header {
    padding: 16px;
  }

  .header-logo img {
    height: 24px;
  }

  nav {
    gap: 20px;
  }

  nav a {
    font-size: 12px;
  }

  /* Hero */
  .hero {
    padding-block: 80px 48px;
  }

  .hero-content {
    flex-direction: column-reverse;
    gap: 28px;
    max-width: calc(100% - 32px);
  }

  .hero-brand {
    margin-right: 0;
  }

  .hero-brand img {
    height: 28px;
  }

  .hero-image {
    width: 100%;
    height: 220px;
  }

  /* Section heading */
  .section-heading {
    padding-inline: 16px;
    margin-bottom: 40px;
  }

  .section-heading .ja {
    font-size: 28px;
  }

  .section-heading .en {
    font-size: 18px;
  }

  /* Service */
  .service-section {
    padding-top: 56px;
    padding-bottom: 80px;
  }

  .service-list {
    padding-inline: 16px;
    gap: 36px;
  }

  .service-label {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .service-card {
    padding: 24px 20px 20px;
    gap: 10px;
  }

  .service-card--link {
    flex-direction: column;
    align-items: stretch;
  }

  .service-card-body {
    width: 100%;
  }

  .service-card-arrow {
    align-self: flex-end;
  }

  .service-icon {
    width: 56px;
    height: 56px;
  }

  .service-num {
    font-size: 56px;
  }

  .service-title-ja {
    font-size: 18px;
  }

  .service-desc {
    font-size: 13px;
  }

  /* Company */
  .company-section {
    padding-bottom: 72px;
  }

  .company-wave {
    height: 40px;
    margin-bottom: 48px;
  }

  .company-inner {
    flex-direction: column;
    gap: 28px;
    padding-inline: 16px;
  }

  .company-label {
    width: auto;
  }

  .company-label .ja {
    font-size: 28px;
  }

  .company-label .en {
    font-size: 18px;
  }

  .company-table {
    max-width: 100%;
    font-size: 14px;
  }

  .company-row {
    gap: 24px;
    padding: 16px 0;
  }
}

/* ── FOOTER ── */
footer {
  padding: 28px;
  text-align: center;
}

footer small {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #333;
}
