:root {
  --red: #e80000;
  --yellow: #ffdf00;
  --cream: #fff8cc;
  --ink: #111;
  --white: #fff;
  --shadow: 0 18px 0 rgba(0, 0, 0, .08);
  --round: 8px;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Luckiest Guy", "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  width: min(1180px, calc(100% - 28px));
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .94);
  border: 2px solid var(--red);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  font-size: 13px;
}

.brand img {
  width: 132px;
}

.global-nav {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: center;
  gap: 4px;
}

.global-nav a {
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--round);
  transition: background .2s ease, transform .2s ease;
}

.global-nav a:hover {
  background: #fff2a5;
  transform: translateY(-2px);
}

.global-nav strong {
  display: block;
  font-family: var(--font-en);
  color: var(--red);
  font-size: 18px;
  line-height: 1;
  letter-spacing: .04em;
}

.global-nav span {
  display: block;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.4;
}

.menu-button {
  display: none;
}

.hero {
  overflow: hidden;
  min-height: 840px;
  padding: 120px 20px 80px;
  background:
    radial-gradient(circle at 8% 18%, #fff 0 6px, transparent 7px 100%),
    radial-gradient(circle at 82% 28%, #fff 0 8px, transparent 9px 100%),
    linear-gradient(180deg, var(--yellow) 0 74%, var(--cream) 74% 100%);
}

.hero-inner {
  position: relative;
  width: min(1180px, 100%);
  min-height: 660px;
  margin: 0 auto;
}

.hero-brand {
  position: relative;
  z-index: 3;
}

.hero-brand img {
  width: min(330px, 58vw);
}

.hero-brand p {
  margin: 8px 0 0;
  font-size: clamp(18px, 3vw, 34px);
  font-weight: 900;
}

.hero-bubble {
  position: absolute;
  z-index: 4;
  top: 105px;
  right: 12%;
  margin: 0;
  padding: 16px 22px;
  font-weight: 900;
  color: var(--red);
  background: var(--white);
  border: 3px solid var(--red);
  border-radius: 999px;
  transform: rotate(-7deg);
}

.hero h1 {
  position: relative;
  z-index: 5;
  max-width: 520px;
  margin: 52px 0 0;
  font-size: clamp(36px, 4.9vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
  color: var(--red);
  font-weight: 900;
  text-shadow: 3px 3px 0 #000, -2px -2px 0 #000, 6px 6px 0 #fff;
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(460px, 100%);
  margin: 22px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.primary-button {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 22px;
  padding: 0 30px;
  border: 2px solid #000;
  border-radius: 999px;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
  box-shadow: 0 6px 0 #000;
}

.hero-car {
  position: absolute;
  z-index: 2;
  right: -8px;
  bottom: 0;
  width: min(560px, 48vw);
  filter: drop-shadow(0 18px 0 rgba(0, 0, 0, .08));
}

.hero-person {
  position: absolute;
  z-index: 1;
  width: clamp(100px, 14vw, 210px);
}

.hero-person-a {
  right: 27%;
  bottom: 158px;
}

.hero-person-b {
  right: 1%;
  top: 170px;
}

.hero-person-c {
  right: 14%;
  top: 318px;
}

.section {
  padding: 100px 20px;
  scroll-margin-top: 120px;
}

.section-heading {
  width: min(1040px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.section-kicker {
  margin: 0;
  font-family: var(--font-en);
  font-size: clamp(50px, 9vw, 82px);
  line-height: .95;
  color: var(--red);
  letter-spacing: .04em;
  text-shadow: 2px 2px 0 #000;
}

h2 {
  margin: 12px 0;
  font-size: clamp(25px, 4vw, 40px);
  line-height: 1.35;
}

.panel {
  width: min(1080px, 100%);
  margin: 0 auto;
  background: var(--white);
  border: 3px solid #000;
  border-radius: var(--round);
  box-shadow: var(--shadow);
}

.message {
  background: var(--cream);
}

.message-panel {
  display: grid;
  grid-template-columns: 1fr 46%;
  gap: 34px;
  padding: clamp(26px, 5vw, 56px);
}

.message-panel p {
  font-weight: 700;
}

.message-panel img {
  height: 100%;
  object-fit: cover;
  border-radius: var(--round);
}

.signature {
  margin-top: 28px;
  text-align: right;
}

.about {
  background:
    linear-gradient(135deg, rgba(255, 223, 0, .4) 25%, transparent 25%) 0 0 / 24px 24px,
    #fffdf0;
}

.parts-visual {
  width: min(1080px, 100%);
  margin: 0 auto 40px;
  padding: 34px;
  background: var(--white);
  border: 3px solid var(--red);
  border-radius: var(--round);
}

.part-tags,
.benefit-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.part-tags span,
.benefit-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 18px;
  border: 2px solid #000;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 5px 0 #000;
  transition: transform .2s ease, box-shadow .2s ease;
}

.benefit-list button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 0 #000;
}

.stats-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px;
}

.stats-grid article {
  min-height: 170px;
  padding: 22px;
  text-align: center;
  background: var(--white);
  border: 3px solid #000;
  border-radius: var(--round);
  box-shadow: 0 8px 0 rgba(232, 0, 0, .25);
}

.stats-grid span,
.stats-grid em {
  display: block;
  font-style: normal;
  font-weight: 900;
}

.stats-grid strong {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: clamp(42px, 7vw, 70px);
  line-height: 1.1;
  color: var(--red);
}

.works {
  background: var(--cream);
}

.work-grid,
.voice-grid {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.work-grid article,
.voice-grid article {
  overflow: hidden;
  background: var(--white);
  border: 3px solid #000;
  border-radius: var(--round);
  box-shadow: var(--shadow);
}

.work-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-grid span {
  display: inline-block;
  margin: 18px 18px 0;
  font-family: "Poppins", sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--red);
}

.work-grid h3,
.work-grid p,
.voice-grid h3,
.voice-grid p {
  margin-left: 18px;
  margin-right: 18px;
}

.work-grid h3,
.voice-grid h3 {
  margin-top: 2px;
  margin-bottom: 6px;
  font-size: 22px;
}

.work-grid p,
.voice-grid p {
  margin-bottom: 22px;
  font-weight: 700;
}

.benefit {
  color: var(--white);
  background:
    linear-gradient(rgba(232, 0, 0, .88), rgba(232, 0, 0, .88)),
    url("https://contents.tiw.co.jp/hs/img/works-image02.jpg") center / cover;
}

.benefit .section-kicker {
  color: var(--yellow);
}

.benefit-list {
  width: min(980px, 100%);
  margin: 0 auto;
}

.benefit-list button {
  color: var(--ink);
  background: var(--white);
}

.environment {
  background:
    linear-gradient(180deg, #e8f3ff 0%, #f7fbff 100%);
}

.chat-phone {
  position: relative;
  width: min(390px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 12px solid #111;
  border-radius: 34px;
  background: #8fb6d9;
  box-shadow: 0 18px 0 rgba(0, 0, 0, .12), 0 18px 40px rgba(0, 0, 0, .18);
}

.chat-phone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 118px;
  height: 22px;
  border-radius: 0 0 16px 16px;
  background: #111;
  transform: translateX(-50%);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 18px 14px;
  color: #fff;
  background: #06c755;
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #06c755;
  background: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
}

.chat-header strong,
.chat-header small {
  display: block;
  line-height: 1.3;
}

.chat-header small {
  opacity: .85;
}

.chat-list {
  display: grid;
  gap: 18px;
  min-height: 520px;
  padding: 20px 14px 24px;
}

.chat-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.chat-row.outgoing {
  justify-content: flex-end;
}

.chat-row img {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--yellow);
}

.chat-bubble {
  position: relative;
  max-width: calc(100% - 66px);
  padding: 10px 13px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .12);
}

.incoming .chat-bubble::before,
.outgoing .chat-bubble::after {
  content: "";
  position: absolute;
  bottom: 14px;
  border: 8px solid transparent;
}

.incoming .chat-bubble::before {
  left: -14px;
  border-right-color: #fff;
}

.outgoing .chat-bubble {
  background: #dcf8c6;
}

.outgoing .chat-bubble::after {
  right: -14px;
  border-left-color: #dcf8c6;
}

.chat-bubble span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 900;
  color: #39728f;
}

.chat-bubble p {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 16px;
  background: rgba(255, 255, 255, .82);
}

.chat-input span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #5c6f7e;
  background: #fff;
  font-weight: 900;
}

.chat-input .chat-placeholder {
  justify-content: start;
  flex: 1;
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
  color: #8a969e;
  font-size: 13px;
  font-weight: 700;
}

.benefit-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 22px;
}

.benefit-modal.is-open {
  display: grid;
}

.benefit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .56);
}

.benefit-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  padding: clamp(28px, 5vw, 46px);
  border: 3px solid #000;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 0 rgba(255, 223, 0, .88);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #000;
  border-radius: 50%;
  background: var(--yellow);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-label {
  margin: 0;
  font-family: var(--font-en);
  font-size: 38px;
  line-height: 1;
  color: var(--red);
  text-shadow: 1px 1px 0 #000;
}

.benefit-dialog h2 {
  margin-right: 42px;
}

.benefit-dialog p:last-child {
  margin-bottom: 0;
  font-weight: 700;
}

.faq {
  background: #fff7b5;
}

.faq-list {
  width: min(900px, 100%);
  margin: 0 auto;
}

details {
  margin-bottom: 14px;
  background: var(--white);
  border: 3px solid #000;
  border-radius: var(--round);
  box-shadow: 0 8px 0 rgba(0, 0, 0, .08);
}

summary {
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  font-weight: 900;
  list-style: none;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 30px;
  color: var(--red);
}

details[open] summary::after {
  content: "-";
}

details p {
  margin: 0;
  padding: 0 24px 22px;
  font-weight: 700;
}

.contact {
  background: var(--cream);
}

.contact-box {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  text-align: center;
  background: var(--white);
  border: 3px solid var(--red);
  border-radius: var(--round);
  box-shadow: var(--shadow);
}

.contact-box p:not(.section-kicker) {
  font-weight: 700;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 34px 20px;
  color: var(--white);
  background: var(--red);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .hero-person {
    display: block;
    width: clamp(92px, 15vw, 150px);
  }

  .hero-person-a {
    right: 16%;
    bottom: 104px;
  }

  .hero-person-b {
    right: 2%;
    top: 270px;
  }

  .hero-person-c {
    right: 9%;
    top: 448px;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    border-radius: 28px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    margin-left: auto;
    width: 48px;
    height: 48px;
    border: 2px solid #000;
    border-radius: 50%;
    background: var(--yellow);
  }

  .menu-button span {
    display: block;
    width: 22px;
    height: 3px;
    background: #000;
  }

  .global-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    padding: 12px 0 18px;
    grid-template-columns: repeat(2, 1fr);
    background: var(--white);
    border-top: 2px dashed #000;
  }

  body.nav-open .global-nav {
    display: grid;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-inner {
    min-height: 690px;
  }

  .hero h1 {
    margin-top: 46px;
  }

  .hero-bubble {
    top: 170px;
    right: 4%;
  }

  .hero-car {
    width: min(580px, 92vw);
    right: 0;
    bottom: 30px;
  }

  .hero-person {
    width: 108px;
  }

  .hero-person-a {
    right: 34%;
    bottom: 94px;
  }

  .hero-person-b {
    display: block;
    right: 4%;
    top: 330px;
  }

  .hero-person-c {
    right: 12%;
    top: auto;
    bottom: 188px;
    width: 100px;
    z-index: 3;
  }

  .message-panel,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brand span {
    display: none;
  }

  .brand img {
    width: 150px;
  }

  .hero {
    min-height: 900px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    min-height: 860px;
  }

  .hero-person-c {
    right: 18px;
    bottom: 68px;
    width: 82px;
  }

  .hero-person-a {
    display: block;
    right: auto;
    left: 18px;
    bottom: 62px;
    width: 78px;
    z-index: 3;
  }

  .hero-person-b {
    display: block;
    right: 92px;
    top: auto;
    bottom: 114px;
    width: 72px;
    z-index: 3;
  }

  .hero-car {
    width: 470px;
    max-width: none;
    right: -90px;
    bottom: 0;
  }

  .hero h1 {
    max-width: 100%;
    margin-top: 26px;
    font-size: clamp(38px, 12vw, 50px);
  }

  .hero-copy {
    width: 100%;
    font-size: 16px;
  }

  .hero-bubble {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    margin-top: 24px;
  }

  .section {
    padding: 72px 16px;
  }

  .message-panel,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }

  .stats-grid article {
    min-height: 138px;
    padding: 14px 10px;
  }

  .stats-grid strong {
    font-size: clamp(30px, 10vw, 44px);
  }

  .stats-grid span,
  .stats-grid em {
    font-size: 13px;
  }

  .chat-row img {
    width: 42px;
    height: 42px;
  }

  .chat-bubble {
    max-width: calc(100% - 58px);
    padding: 12px 14px;
  }

  .parts-visual {
    padding: 18px;
  }

  .section-kicker {
    font-size: 48px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}
