/* ======================================================
   AutoDiffuser Pro 広告LP用CSS
   Google広告 / Yahoo広告向け・白基調・家庭用メイン
====================================================== */

:root {
  --base: #ffffff;
  --paper: #f7f8fb;
  --text: #1f2933;
  --muted: #667085;
  --line: #d9dee7;
  --primary: #1f8f7a;
  --primary-dark: #15715f;
  --accent: #f08a3c;
  --danger: #d94841;
  --gold: #b98a2f;
  --shadow: 0 12px 36px rgba(15, 23, 42, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: inherit;
}

.wrapper {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  background: #fff;
}

/* ===== LP画像 ===== */
.lp-images {
  width: 100%;
  margin: 0 auto;
}

.hero-img {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
}

/* ===== 注文エリア ===== */
.order-area {
  width: 100%;
  padding: 54px 24px 70px;
  background:
    linear-gradient(180deg, rgba(245, 248, 255, 0.96) 0%, rgba(255, 255, 255, 1) 52%),
    #fff;
}

.form-heading {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.form-kicker {
  display: inline-block;
  margin: 0 0 10px;
  padding: 5px 16px;
  border-radius: 999px;
  background: #e7f7f3;
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.form-heading h1 {
  margin: 0;
  color: #102033;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.form-heading p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 13px;
  border: 1px solid #cfe6df;
  border-radius: 999px;
  background: #ffffff;
  color: #15715f;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 5px 16px rgba(31, 143, 122, 0.08);
}

/* ===== フォーム全体 ===== */
form {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.form-section {
  width: 100%;
  margin: 22px auto 0;
  padding: clamp(22px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-section h2 {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 14px;
  color: #102033;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.03em;
}

.form-section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 74px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: translateX(-50%);
}

/* ===== 商品カード ===== */
.product-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.select-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.select-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-inner {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 18px;
  background: #fff;
  color: var(--text);
  border: 2px solid #d7dde7;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.card-inner::before {
  content: "未選択";
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #edf1f7;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.select-card:hover .card-inner {
  transform: translateY(-3px);
  border-color: #99bff6;
  box-shadow: 0 14px 34px rgba(20, 115, 230, 0.16);
}

.select-card input:checked + .card-inner {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  box-shadow: 0 16px 42px rgba(20, 115, 230, 0.22);
}

.select-card input:checked + .card-inner::before {
  content: "選択中";
  background: var(--primary);
  color: #fff;
}

.option-img {
  display: block;
  width: min(100%, 260px);
  max-height: 260px;
  object-fit: contain;
  margin-top: 10px;
}

.product-name {
  display: block;
  color: #102033;
  font-size: 22px;
  font-weight: 800;
}

.product-price {
  display: block;
  color: var(--danger);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.product-price .tax {
  display: inline-block;
  margin-left: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

/* ===== 注意書き ===== */
.notice-box {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 18px 20px;
  background: #fff9ed;
  border: 1px solid #f0d7a8;
  border-radius: 14px;
  color: #3d2b12;
}

.notice-box strong {
  display: block;
  margin-bottom: 6px;
  color: #7a4f09;
  font-size: 17px;
}

.notice-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.notice-box li {
  margin: 4px 0;
}

/* ===== 支払い ===== */
.payment-methods {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.radio-card {
  position: relative;
  display: block;
  width: 100%;
  cursor: pointer;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card span {
  position: relative;
  display: block;
  padding: 18px 18px 18px 56px;
  background: #fff;
  border: 2px solid #d7dde7;
  border-radius: 14px;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: 0.2s ease;
}

.radio-card span::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 20px;
  width: 22px;
  height: 22px;
  border: 2px solid #a8b1c0;
  border-radius: 50%;
  background: #fff;
}

.radio-card input:checked + span {
  border-color: var(--primary);
  background: #f7fbff;
}

.radio-card input:checked + span::before {
  border-color: var(--primary);
  box-shadow: inset 0 0 0 5px #fff;
  background: var(--primary);
}

.radio-card strong {
  display: block;
  color: #102033;
  font-size: 18px;
}

.radio-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
}

/* ===== 入力欄 ===== */
.input-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 18px;
}

.input-wrap label {
  display: block;
  margin-bottom: 7px;
  color: #102033;
  font-size: 16px;
  font-weight: 800;
}

.input-wrap label small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.input-wrap input,
.input-wrap textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 15px;
  background: #fff;
  color: var(--text);
  border: 2px solid #d7dde7;
  border-radius: 12px;
  font-size: 17px;
  outline: none;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-wrap textarea {
  min-height: 116px;
  resize: vertical;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
  color: #9aa4b2;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: var(--primary);
  background: #fbfdff;
  box-shadow: 0 0 0 4px rgba(20, 115, 230, 0.12);
}

/* ===== 合計金額 ===== */
.total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 640px;
  margin: 24px auto 0;
  padding: 18px 20px;
  background: #f7fbff;

  border: 2px solid #cfe2ff;
  border-radius: 14px;
}

.total-box span {
  color: #102033;
  font-size: 17px;
  font-weight: 800;
}

.final-price {
  color: var(--danger);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

/* ===== 確認チェック ===== */
.confirm-area {
  width: 100%;
  max-width: 640px;
  margin: 24px auto 0;
  padding: 16px 18px;
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.confirm-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #102033;
  font-size: 16px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.confirm-label input {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  accent-color: var(--primary);
}

/* ===== 送信ボタン ===== */
.od-buttons {
  width: 100%;
  max-width: 640px;
  margin: 22px auto 0;
  text-align: center;
}

.submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #f5a257);
  color: #fff;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(240, 138, 60, 0.34);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 18px 40px rgba(240, 138, 60, 0.42);
}

.submit-button:active {
  transform: translateY(0);
}

/* ===== フッター ===== */
.site-footer {
  background: #102033;
  color: #d7dde7;
  text-align: center;
  padding: 42px 20px 28px;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  color: #aeb8c6;
  font-size: 13px;
}


/* ===== PC右下固定 注文フォームボタン ===== */
.pc-fixed-order-button {
  display: none;
}

@media (min-width: 769px) {
  .pc-fixed-order-button {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 72px;
    padding: 14px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #16a34a 0%, #00a86b 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.34), 0 4px 10px rgba(15, 23, 42, 0.16);
    border: 2px solid rgba(255, 255, 255, 0.72);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  }

  .pc-fixed-order-button::after {
    content: "↓";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
  }

  .pc-fixed-order-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.04);
    box-shadow: 0 16px 34px rgba(22, 163, 74, 0.42), 0 6px 14px rgba(15, 23, 42, 0.18);
  }

  .pc-fixed-order-main {
    display: block;
    padding-right: 18px;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: 0.03em;
  }

  .pc-fixed-order-sub {
    display: block;
    padding-right: 18px;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    opacity: 0.95;
  }
}

/* ===== スマホ下部固定CTA画像 ===== */
.mobile-fixed-buttons {
  display: none;
}

@media (max-width: 768px) {
  .mobile-fixed-buttons {
    position: fixed;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom, 0);
    z-index: 10000;
    display: block;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.16);
    transform: translateZ(0);
  }

  .fixed-button-img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
  }

  .fixed-hit-area {
    position: absolute;
    top: 0;
    bottom: 0;
    display: block;
    text-indent: -9999px;
    overflow: hidden;
  }

  .fixed-hit-tel {
    left: 0;
    width: 50%;
  }

  .fixed-hit-form {
    right: 0;
    width: 50%;
  }

  body {
    padding-bottom: calc(25vw + env(safe-area-inset-bottom, 0));
  }
}

@media (min-width: 769px) {
  body {
    padding-bottom: 0;
  }
}

/* ===== レスポンシブ ===== */
@media (max-width: 700px) {
  .order-area {
    padding: 38px 14px 52px;
  }

  .form-section {
    padding: 22px 15px;
    border-radius: 16px;
  }

  .product-options {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-inner {
    padding: 22px 14px;
  }

  .option-img {
    width: min(100%, 230px);
  }

  .total-box {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .final-price {
    align-self: flex-end;
  }

  .confirm-label {
    justify-content: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* ===== PCで横幅を整える ===== */
@media (min-width: 1025px) {
  .wrapper {
    max-width: 1024px;
  }
}


/* ======================================================
   カラー別・複数数量注文フォーム
   - ホワイト／ブラックを同時に複数注文できるように調整
====================================================== */
.section-lead {
  max-width: 760px;
  margin: -4px auto 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

.quantity-options .select-card {
  cursor: default;
}

.quantity-options .select-card input {
  position: static;
  opacity: 1;
  pointer-events: auto;
}

.quantity-card .card-inner::before {
  display: none;
}

.selected-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #edf1f7;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.quantity-card.is-selected .card-inner {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  box-shadow: 0 16px 42px rgba(20, 115, 230, 0.22);
}

.quantity-card.is-selected .selected-badge {
  background: var(--primary);
  color: #fff;
}

.quantity-card.is-selected .selected-badge::before {
  content: "$2713";
  margin-right: 4px;
}

.quantity-control {
  display: grid;
  grid-template-columns: 48px minmax(72px, 1fr) 48px;
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 230px;
  margin-top: 4px;
}

.qty-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #eef4fb;
  color: var(--primary-dark);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #d6e3f3;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.qty-btn:hover {
  transform: translateY(-1px);
  background: #e2efff;
  box-shadow: inset 0 0 0 1px #b7d5f8;
}

.qty-input {
  width: 100%;
  height: 48px;
  border: 2px solid #d7dde7;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.quantity-error {
  min-height: 24px;
  max-width: 760px;
  margin: 14px auto 0;
  color: #c62828;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 600px) {
  .section-lead {
    text-align: left;
  }

  .quantity-control {
    grid-template-columns: 52px minmax(86px, 1fr) 52px;
    max-width: 260px;
  }

  .qty-btn,
  .qty-input {
    height: 52px;
  }
}

/* ======================================================
   最適化版：カラー別数量選択フォーム
   - ラジオ選択ではなく、カラーごとの数量行で購入ミスを防ぐ
====================================================== */
.product-section {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.color-quantity-list {
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.color-order-row {
  display: grid;
  grid-template-columns: 150px 1fr 210px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 2px solid #d7dde7;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.color-order-row.is-selected {
  border-color: var(--primary);
  background: linear-gradient(180deg, #f5fffc 0%, #ffffff 100%);
  box-shadow: 0 14px 34px rgba(31, 143, 122, 0.16);
}

.color-order-row.is-selected::before {
  content: "選択中";
  position: absolute;
}

.color-product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
  background: #f7f8fb;
  border-radius: 14px;
}

.color-product-media img {
  display: block;
  width: 120px;
  max-height: 130px;
  object-fit: contain;
}

.color-product-info {
  min-width: 0;
}

.color-label {
  display: inline-flex;
  margin: 0 0 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e7f7f3;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.color-product-info h3 {
  margin: 0;
  color: #102033;
  font-size: 25px;
  line-height: 1.25;
}

.color-copy {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.unit-price {
  margin: 0;
  color: var(--danger);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.2;
}

.unit-price span {
  margin-left: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quantity-box {
  padding: 14px;
  background: #f7fbff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
}

.quantity-box > label {
  display: block;
  margin-bottom: 8px;
  color: #102033;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.stepper {
  display: grid;
  grid-template-columns: 48px minmax(70px, 1fr) 48px;
  gap: 8px;
  align-items: center;
}

.stepper .qty-btn {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: var(--primary-dark);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px #cfe2ff, 0 4px 10px rgba(15, 23, 42, 0.06);
}

.stepper .qty-btn:hover {
  background: #eef7ff;
}

.stepper .qty-input {
  width: 100%;
  height: 48px;
  border: 2px solid #cfe2ff;
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  -moz-appearance: textfield;
}

.stepper .qty-input::-webkit-outer-spin-button,
.stepper .qty-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.line-subtotal {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed #cfe2ff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.line-subtotal strong {
  color: var(--danger);
  font-size: 16px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .color-order-row {
    grid-template-columns: 96px 1fr;
    gap: 12px;
    padding: 14px;
  }

  .color-product-media {
    min-height: 106px;
  }

  .color-product-media img {
    width: 88px;
    max-height: 104px;
  }

  .color-product-info h3 {
    font-size: 22px;
  }

  .color-copy {
    font-size: 13px;
  }

  .unit-price {
    font-size: 24px;
  }

  .quantity-box {
    grid-column: 1 / -1;
    padding: 12px;
  }

  .quantity-box > label {
    text-align: left;
  }

  .stepper {
    grid-template-columns: 54px 1fr 54px;
  }

  .stepper .qty-btn,
  .stepper .qty-input {
    height: 54px;
  }
}
/* ===== 合計金額 表示 ===== */
.total-box {
  width: 100%;
  max-width: 640px;
  margin: 28px auto 0;
  padding: 22px;
  background: #f8fbfe;
  border: 2px solid #dbe4ee;
  border-radius: 16px;
}

.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e5edf5;
  color: #334155;
  font-size: 16px;
}

.total-row:last-child {
  border-bottom: none;
}

.total-row strong {
  color: #12324a;
  font-size: 18px;
}

.total-row-final {
  margin-top: 6px;
  padding-top: 16px;
  color: #12324a;
  font-weight: 800;
}

.total-row-final span {
  font-size: 20px;
}

.total-row-final .final-price {
  font-size: 28px;
  color: #d93030;
}

.radio-card small {
  display: block;
  margin-top: 4px;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .total-box {
    padding: 18px 16px;
  }

  .total-row {
    font-size: 15px;
  }

  .total-row-final span {
    font-size: 18px;
  }

  .total-row-final .final-price {
    font-size: 24px;
  }
}