:root {
  --text: #222222;
  --rule-strong: #222222;
  --rule: #dddddd;
  --bg: #ffffff;
  --bg-muted: #fafafa;
  --field-border: #eeeeee;
  --required: #f23a3c;
  --content: 700px;
  --gutter: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Poppins, "Noto Sans JP", sans-serif;
  font-weight: 400;
}

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

a { color: inherit; }

/* ---- ヘッダー ---- */
.header {
  height: 120px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img { width: 143px; height: 75px; object-fit: contain; }

.header__toggle { display: none; }

.nav ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.4px;
  line-height: 19.6px;
  text-decoration: none;
}

/* ---- ヒーロー ---- */
.hero {
  height: 500px;
  margin: 0 0 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero img { width: 35%; height: auto; }

@media screen and (max-width: 990px) {
  .hero { height: 360px; margin-bottom: 80px; }
}

@media screen and (max-width: 690px) {
  .hero { height: 240px; margin-bottom: 60px; }
}

@media screen and (max-width: 360px) {
  .hero { height: 160px; }
}

/* ---- セクション見出し ---- */
.section__title {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 3.6px;
  line-height: 43.2px;
  text-align: center;
}

.section__rule {
  width: 20px;
  height: 1px;
  margin: 0 auto 40px;
  background: var(--rule-strong);
}

/* ---- COMPANY ---- */
.company {
  padding: 40px var(--gutter);
  margin: 0 0 80px;
}

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

.company__row { display: flex; }

.company__row dt,
.company__row dd {
  margin: 0;
  font-size: 14px;
  line-height: 28px;
}

.company__row dt {
  flex: 0 0 auto;
  width: 140px;
  max-width: 20%;
  padding: 14px 12px 14px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--rule-strong);
}

.company__row dd {
  flex: 1;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

@media screen and (max-width: 990px) {
  .company { margin-bottom: 60px; }
}

@media screen and (max-width: 690px) {
  .company { margin-bottom: 20px; }

  .company__row { display: block; }

  .company__row dt {
    width: auto;
    max-width: none;
    padding: 14px 0 0;
    border-bottom: 0;
  }

  .company__row dd { padding: 14px 0; }
}

/* ---- CONTACT ---- */
.contact { padding: 0 var(--gutter); }

.contact__box {
  padding: 80px 60px;
  border-radius: 12px;
  background: var(--bg-muted);
}

.contact__lead {
  max-width: var(--content);
  margin: 0 auto;
  font-size: 14px;
  line-height: 28px;
}

.form {
  max-width: var(--content);
  margin: 60px auto 0;
}

.field { margin: 0 0 20px; }

.field__label {
  display: flex;
  align-items: center;
  margin: 0 0 13px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.3px;
  line-height: 18.2px;
}

.field__required {
  margin-left: 5px;
  font-size: 15px;
  color: var(--required);
}

.field__input {
  display: block;
  width: 100%;
  height: 50px;
  padding: 10px;
  border: 1px solid var(--field-border);
  border-radius: 4px;
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 21px;
}

.field__input--area {
  height: 160px;
  resize: vertical;
}

.form__hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.agree {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 20px;
}

.agree input { width: 13px; height: 13px; margin: 0 10px 0 0; }

.form__policy {
  display: block;
  width: fit-content;
  font-size: 12px;
  line-height: 16.8px;
  text-decoration: underline;
}

.form__submit {
  display: block;
  width: 100%;
  height: 46px;
  margin: 40px 0 0;
  padding: 15px;
  border: 0;
  border-radius: 4px;
  background: var(--text);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.4px;
  cursor: pointer;
}

.form__submit[disabled] { opacity: 0.6; cursor: default; }

.form__status {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 28px;
}

.form__status:empty { display: none; }

.form__status[data-state="error"] { color: var(--required); }

@media screen and (max-width: 990px) {
  .contact { padding: 0; }

  .contact__box { border-radius: 0; }
}

@media screen and (max-width: 690px) {
  .contact__box { padding: 50px 30px; }
}

/* ---- フッター ---- */
.footer {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 1.2px;
}

.footer a { text-decoration: none; }

/* ---- 本文ページ ---- */
.doc {
  max-width: calc(480px + var(--gutter) * 2);
  margin: 0 auto;
  padding: 40px var(--gutter) 80px;
}

.doc__title {
  margin: 0 0 40px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 1.8px;
  line-height: 25.2px;
  text-align: center;
}

.doc h2 {
  margin: 40px 0 20px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1.8px;
  line-height: 25.2px;
}

.doc p {
  margin: 0 0 40px;
  font-size: 13px;
  letter-spacing: 1.3px;
  line-height: 26px;
}

.doc ul {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.doc li {
  font-size: 13px;
  letter-spacing: 1.3px;
  line-height: 26px;
}

.doc address {
  margin: 0;
  font-size: 13px;
  font-style: normal;
  letter-spacing: 1.3px;
  line-height: 26px;
}

/* ---- 990px以下: ナビをハンバーガーに ---- */
@media screen and (max-width: 990px) {
  .header__toggle {
    display: flex;
    position: relative;
    z-index: 20;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .header__toggle span {
    display: block;
    width: 32px;
    height: 1px;
    background: var(--text);
  }

  .nav {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    z-index: 10;
  }

  .nav[data-open="true"] { display: flex; }

  .nav ul { flex-direction: column; gap: 32px; text-align: center; }
}

/* ---- 690px以下: 余白とヘッダーを縮める ---- */
@media screen and (max-width: 690px) {
  :root { --gutter: 30px; }

  .header { height: 90px; }

  .section__title { font-size: 28px; letter-spacing: 2.8px; }
}

/* ---- 360px以下 ---- */
@media screen and (max-width: 360px) {
  .header { height: 70px; }

  .header__logo img { width: 120px; height: 63px; }
}
