:root {
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --color-accent: #0f766e;
  --color-accent-dark: #115e59;
  --color-bg: #f8fafc;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
  --color-error: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
}

a {
  color: var(--color-accent);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
}

.site-header__logo {
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__user {
  color: var(--color-muted);
  font-size: 14px;
}

.site-header__logout button {
  border: none;
  background: none;
  color: var(--color-accent);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}

.site-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 24px 16px;
  text-align: center;
  color: var(--color-muted);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 8px;
}

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

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--color-accent);
}

.hero .sub {
  color: var(--color-muted);
  margin-top: 8px;
}

/* ツール一覧 */
.tools__list {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tool {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tool-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.tool .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #e8f4f1;
  color: var(--color-accent);
  border-radius: 9px;
}

.tool .tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  color: var(--color-accent);
  background: #eaf5f1;
  font-weight: 650;
}

.tool p {
  font-size: 13px;
  margin-bottom: 22px;
  color: var(--color-muted);
}

.tool .primary {
  margin-top: auto;
  display: inline-block;
  text-decoration: none;
  border: 0;
  color: white;
  background: var(--color-accent);
  padding: 11px 19px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
}

.tool--coming {
  background: #fbfcfc;
  color: #839094;
}

.tool--coming .tag {
  background: #edf0f1;
  color: #718087;
}

.tool--coming .icon {
  background: #edf0f1;
  color: #829198;
}

.tool--coming .wait {
  font-size: 12px;
  color: #7c888d;
  margin-top: auto;
}

.tool--more {
  background: #fbfcfc;
  border-style: dashed;
  color: #7c888d;
}

.tool--more .icon {
  background: #edf0f1;
  color: #829198;
}

.tool--more p {
  margin-bottom: 0;
}

.bridge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #82928f;
  font-size: 11px;
  letter-spacing: 1px;
  margin: 31px 0 22px;
}

.bridge::before,
.bridge::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--color-border);
}

/* 他サービスの紹介 */
.offer {
  background: #eaf3ef;
  border: 1px solid #dbe9e2;
  border-radius: 15px;
  padding: 30px;
}

.offer-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.offer h2 {
  color: #21483f;
  font-size: 25px;
  margin: 5px 0 10px;
}

.offer p {
  color: #526d63;
  font-size: 13px;
}

.offer-head .primary {
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
  border: 0;
  color: white;
  background: var(--color-accent);
  padding: 11px 19px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  margin-top: 30px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin-top: 24px;
}

.product {
  background: #fff;
  border-radius: 8px;
  padding: 22px 18px;
  border: 1px solid #dfebe5;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product__logo {
  height: 24px;
  width: auto;
  margin-bottom: 12px;
  align-self: flex-start;
}

.product .category {
  align-self: flex-start;
  color: var(--color-accent);
  background: #eaf5f1;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 15px;
}

.product__link {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 650;
}

.product h3 {
  font-size: 17px;
  color: #264d41;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.product .promise {
  font-size: 19px;
  font-weight: 750;
  color: #096f59;
  line-height: 1.6;
  min-height: 61px;
  letter-spacing: -0.5px;
  margin-bottom: 15px;
}

.product .sales-highlight {
  background: #fff2a5;
  border-radius: 8px;
  padding: 15px 12px;
  margin: 0 0 14px;
  color: #235c46;
}

.product .sales-highlight > span {
  display: block;
  font-size: 12px;
  font-weight: 650;
}

.product .sales-highlight > strong {
  display: block;
  font-size: 46px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
  color: #067b5b;
}

.product .sales-highlight > strong > span {
  font-size: 22px;
  letter-spacing: 0;
}

.product .sales-highlight p {
  font-size: 11px;
  color: #345c45;
  margin-top: 5px;
  font-weight: 650;
}

.product .sales-highlight {
  container-type: inline-size;
}

.product .sales-highlight .media-title {
  font-size: min(26px, 11cqw);
  line-height: 1.2;
  font-weight: 800;
  color: #067b5b;
  margin: 4px 0 6px;
}

.product .sales-highlight .feature-copy {
  font-size: 17px;
  line-height: 1.8;
  margin: 0;
  color: #285a3d;
  letter-spacing: -0.4px;
}

.product .proof-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.product .proof-badges span {
  border: 1px solid #b4d8c1;
  border-radius: 5px;
  background: #f2faf3;
  color: #276347;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
}

.product .features {
  padding-bottom: 8px;
  margin-top: auto;
}

.product ul {
  margin: 0;
  padding-left: 18px;
  color: #5c7068;
  font-size: 12px;
  line-height: 1.85;
}

.product li {
  padding-left: 2px;
  margin-bottom: 8px;
}

.product .source-detail {
  font-size: 10px;
  line-height: 1.7;
  color: #7a847f;
  margin-top: auto;
}

.other-consult {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-top: 1px solid #cddfd4;
  padding-top: 23px;
  margin-top: 24px;
}

.other-consult .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: white;
  color: var(--color-accent);
  border-radius: 9px;
}

.other-consult h3 {
  font-size: 17px;
  color: #264d41;
  margin-bottom: 5px;
}

.other-consult p {
  font-size: 12px;
  color: #526d63;
}

/* 商談予約 */
.booking {
  margin-top: 35px;
  scroll-margin-top: 16px;
}

.booking-head {
  margin-bottom: 20px;
}

.booking .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.booking .meta span {
  font-size: 11px;
  color: #456358;
  background: #eaf2ee;
  border-radius: 20px;
  padding: 3px 10px;
}

.booking .sub {
  font-size: 13px;
  color: var(--color-muted);
}

.meetings-iframe-container {
  min-height: 480px;
}

.booking .note {
  font-size: 11px;
  color: #71817d;
  text-align: center;
  margin-top: 14px;
}

@media (max-width: 650px) {
  .tools__list,
  .products {
    grid-template-columns: 1fr;
  }

  .offer {
    padding: 22px;
  }

  .offer-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .offer-head .primary {
    margin-top: 0;
  }

  .offer h2 {
    font-size: 22px;
  }
}

.auth-form,
.feature {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
}

.auth-form form,
.feature__form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.auth-form label,
.feature__form label {
  display: grid;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
}

.auth-form input,
.feature__form input,
.feature__form textarea,
.feature__form select {
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.auth-form label.auth-form__agree {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.auth-form button[type="submit"],
.feature__form button[type="submit"] {
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
}

.auth-form button[type="submit"]:hover,
.feature__form button[type="submit"]:hover {
  background: var(--color-accent-dark);
}

.auth-form__errors,
.feature__errors {
  color: var(--color-error);
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px 12px 12px 32px;
  margin: 16px 0 0;
  font-size: 14px;
}

.auth-form__switch {
  margin-top: 16px;
  font-size: 14px;
}

.feature__results {
  margin-top: 32px;
}

.feature__result {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--color-bg);
}

.feature__result h3 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--color-muted);
}

.feature__result p {
  margin: 0;
  white-space: pre-wrap;
}

.feature__cta {
  margin-top: 24px;
  padding: 16px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.feature__cta-logo {
  display: block;
  height: 20px;
  width: auto;
  margin-bottom: 8px;
}

.feature__hint {
  color: var(--color-muted);
  font-size: 14px;
}

.webcheck__score {
  margin-top: 16px;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.webcheck__score--needsImprovement {
  background: #fffbeb;
  border-color: #fde68a;
}

.webcheck__score--needsBasics {
  background: #fef2f2;
  border-color: #fecaca;
}

.webcheck__score-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-accent-dark);
}

.webcheck__score-number span {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-muted);
}

.webcheck__score-label {
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.webcheck__score-level {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.webcheck__improvements {
  margin-top: 24px;
}

.webcheck__improvements ol {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}

.webcheck__improvements li {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px;
  background: var(--color-bg);
}

.webcheck__improvements h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.webcheck__improvements p {
  margin: 0;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
}

.legal h2 {
  margin-top: 32px;
  font-size: 18px;
}

.legal ol,
.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  .site-header {
    padding: 12px 16px;
  }

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

/* 生成中表示: assets/submit-busy.js が、送信されたボタンに .is-busy、フォームに .is-submitting を付ける。
   JS が動かない環境では、通常のボタンのまま .form-notes の注記で案内する */
.submit-busy__wait {
  display: none;
}

.feature__form button.submit-busy.is-busy[type="submit"] {
  background: #8c9a95;
  cursor: progress;
  animation: submit-busy-pulse 1.4s ease-in-out infinite;
}

.submit-busy.is-busy .submit-busy__label {
  display: none;
}

.submit-busy.is-busy .submit-busy__wait {
  display: inline;
}

/* 複数ボタンのとき、押された以外は押せない見た目にする */
.feature__form.is-submitting button.submit-busy:not(.is-busy) {
  opacity: 0.5;
  cursor: progress;
}

@keyframes submit-busy-pulse {
  50% {
    opacity: 0.65;
  }
}

.form-notes {
  margin-top: 4px;
}

.form-notes p {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.8;
  color: #5b6b66;
}
