:root {
    --navy:   #0a1628;
    --ocean:  #0d4f8c;
    --teal:   #0099cc;
    --aqua:   #00c5e3;
    --ice:    #e8f4fb;
    --sand:   #f5f0e8;
    --text:   #1a2332;
    --muted:  #6b7c93;
    --border: #c8d8e8;
    --danger: #d94f3d;
    --green:  #2a8a5e;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--navy);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 140px 16px 100px;
    position: relative;
    overflow-x: hidden;
  }
  @media screen and (max-width: 1280px) and (min-width: 767px) and (orientation: portrait) {
    body {
      padding: 140px 16px 180px;
    }
  }
  @media screen and (max-width: 767px) {
    body {
      padding: 140px 16px 200px;
    }
  }

  /* ocean wave bg */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 120% 60% at 10% 80%, rgba(0,153,204,.18) 0%, transparent 60%),
      radial-gradient(ellipse 80% 50% at 90% 20%, rgba(0,197,227,.12) 0%, transparent 55%),
      linear-gradient(170deg, #0a1628 0%, #0d2a4a 50%, #0a1e3c 100%);
    z-index: 0;
  }

  /* floating particles */
  .particle {
    position: fixed;
    border-radius: 50%;
    opacity: .12;
    animation: drift linear infinite;
    z-index: 0;
    pointer-events: none;
  }

  @keyframes drift {
    0%   { transform: translateY(100vh) translateX(0); opacity: 0; }
    10%  { opacity: .12; }
    90%  { opacity: .12; }
    100% { transform: translateY(-100px) translateX(30px); opacity: 0; }
  }

  /* header */
  header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid #004EA2;
  }
  #header {
    max-width: 1440px;
    display: flex;
    margin: 0 auto;
    padding: 40px;
  }
  #header .logo {
    width: 180px;
  }
  #header .logo a {
    display: flex;
  }

  /* footer */
  footer {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60px;
    background: #061D4A;
  }
  #footer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6vw;
    width: 100%;
    height: 100%;
  }
  #footer p {
    font-size: 12px;
    color: #fff;
    line-height: 1.4;
    text-align: center;
  }
  #footer .footerLink {
    display: flex;
    list-style: none;
  }
  #footer .footerLink li {
    position: relative;
  }
  #footer .footerLink li a {
    display: flex;
    font-size: 12px;
    color: #fff;
    line-height: 1.4;
    padding: 0 10px;
    text-decoration: none;
    box-sizing: border-box;
  }
  #footer .footerLink li a:hover {
    text-decoration: underline;
  }
  #footer .footerLink li:not(:last-child)::after {
    content:"";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: #fff;
  }
  @media screen and (max-width: 1280px) and (min-width: 767px) and (orientation: portrait) {
    footer {
      height: 132px;
    }
    #footer {
      flex-direction: column;
      gap: 30px;
    }
  }
  @media screen and (max-width: 767px) {
    footer {
      height: 175px;
    }
    #footer {
      flex-direction: column;
      gap: 30px;
    }
    #footer .footerLink {
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px 0;
    }
    #footer .footerLink li:not(:first-child)::after {
      display: none;
    }
    #footer .footerLink li:first-child::after {
      content:"";
      position: absolute;
      top: 0;
      right: 0;
      width: 1px;
      height: 100%;
      background: #fff;
    }
    #footer .footerLink li:nth-child(3),
    #footer .footerLink li:nth-child(4) {
      width: 100%;
    }
    #footer .footerLink li a {
      width: 100%;
      justify-content: center;
    }
  }
 
  .site-header {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 680px;
    margin-bottom: 8px;
  }

  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,.5);
    margin-bottom: 12px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: .05em;
  }

  .breadcrumb a {
    color: var(--aqua);
    text-decoration: none;
    transition: color .2s;
  }

  .breadcrumb a:hover { color: #fff; }

  .brand-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
  }

  .brand-logo {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .15em;
    color: #fff;
    background: var(--ocean);
    padding: 6px 14px;
    border-radius: 4px;
  }

  .brand-title {
    font-size: 13px;
    color: rgba(255,255,255,.65);
    letter-spacing: .06em;
    line-height: 1.4;
  }

  /* scenario tabs */
  .scenario-label {
    font-size: 11px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: .12em;
    color: var(--aqua);
    text-transform: uppercase;
    margin-bottom: 8px;
    position: relative;
    z-index: 10;
  }

  .scenario-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
  }

  .tab-btn {
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.6);
    font-size: 11px;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
  }

  .tab-btn:hover {
    border-color: var(--aqua);
    color: var(--aqua);
    background: rgba(0,197,227,.1);
  }

  .tab-btn.active {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
    font-weight: 500;
  }

  /* card */
  .card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 680px;
    background: rgba(255,255,255,.97);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
      0 2px 4px rgba(0,0,0,.08),
      0 8px 32px rgba(0,0,0,.3),
      0 0 0 1px rgba(255,255,255,.08);
  }

  .card-header {
    background: linear-gradient(135deg, var(--navy) 0%, #0d3d6e 100%);
    padding: 24px 32px;
    color: #fff;
  }

  .card-header h1 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 4px;
  }

  .card-header p {
    font-size: 12px;
    color: rgba(255,255,255,.6);
    line-height: 1.6;
  }

  .card-header .state-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,197,227,.2);
    border: 1px solid rgba(0,197,227,.4);
    color: var(--aqua);
    font-size: 11px;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: .08em;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .card-header .state-badge svg { width: 12px; height: 12px; }

  .card-body { padding: 32px; }

  /* lead text */
  .lead-text {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
  }

  .lead-text strong { color: var(--ocean); }

  /* field */
  .field-group { margin-bottom: 20px; }

  .field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
  }

  .badge-req {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    background: var(--danger);
    color: #fff;
    letter-spacing: .04em;
  }

  .badge-opt {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    background: #e8e8e8;
    color: var(--muted);
    letter-spacing: .04em;
  }

  .badge-auto {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    background: #1a7a4a;
    color: #fff;
    letter-spacing: .04em;
  }

  input[type="text"],
  textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
  }

  input[type="text"]:focus,
  textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,153,204,.12);
  }

  input[type="text"].auto-filled {
    background: #f0faf5;
    border-color: #2a8a5e;
    color: #1a5a3c;
  }

  textarea { resize: vertical; min-height: 80px; line-height: 1.6; }

  /* note */
  .note-text {
    margin-top: 20px;
  }
  .note-text p {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
  }
  
  
  /* agreement */
  .agreement-section {
    margin-top: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
  }
  .agreement-section .contactSubTitle {
    font-size: 15px;
    margin-bottom: 10px;
    font-weight: 500;
  }

  .agreement-section ul {
      list-style: none;
      letter-spacing: 0;
      padding: 20px;
      border: 1px solid #c9c9c9;
      margin-left: -10px;
      margin-right: -10px;
  }
  .agreement-section ul li {
      text-indent: -1em;
      padding-left: 1em;
      font-size: 11px;
  }
  .agreement-section ul li:not(:last-child) {
      margin-bottom: 2px;
  }

  #agreeCheckbox {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--text);
    border-radius: 3px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    transition: all .2s;
    background-color: #D9D9D9;
  }

  #agreeCheckbox:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0.5px;
    width: 6px;
    height: 12px;
    border: solid var(--text);
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
  }

  .agreement-section .agreement-checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 8px;
  }
  .agreement-section .agreement-checkbox label {
    font-size: 13px;
    letter-spacing: 0;
  }

  .agreement-section .textUnderline {
    text-decoration: underline;
  }
  .agreement-section .textUnderline a {
    color: var(--text);
  }
  
  /* plan selector */
  .section-divider {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 24px 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }

  .radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 6px;
  }

  .radio-card {
    position: relative;
  }

  .radio-card input { position: absolute; opacity: 0; pointer-events: none; }

  .radio-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    background: #fff;
  }

  .radio-card label .plan-icon { font-size: 22px; margin-bottom: 6px; }
  .radio-card label .plan-name { font-size: 13px; font-weight: 700; color: var(--text); }
  .radio-card label .plan-sub  { font-size: 11px; color: var(--muted); margin-top: 2px; }

  .radio-card input:checked + label {
    border-color: var(--teal);
    background: rgba(0,153,204,.06);
    box-shadow: 0 0 0 3px rgba(0,153,204,.1);
  }

  .radio-card input:checked + label .plan-name { color: var(--ocean); }

  /* sub-plan */
  .sub-plan-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }

  .chip-radio { position: relative; }
  .chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
  .chip-radio label {
    display: block;
    padding: 6px 16px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    color: var(--muted);
    white-space: nowrap;
  }

  .chip-radio input:checked + label {
    border-color: var(--teal);
    background: var(--teal);
    color: #fff;
  }

  /* area grid */
  .area-section { margin-top: 20px; }

  .area-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
  }

  .area-check { position: relative; }
  .area-check input { position: absolute; opacity: 0; pointer-events: none; }
  .area-check label {
    display: block;
    text-align: center;
    padding: 7px 4px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    transition: all .18s;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #fff;
  }

  .area-check input:checked + label {
    border-color: var(--ocean);
    background: rgba(13,79,140,.08);
    color: var(--ocean);
    font-weight: 600;
  }

  .area-number-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
  }

  .area-number-label {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
  }

  .area-number-field {
    flex: 1;
    min-width: 160px;
  }

  .map-link {
    font-size: 12px;
    color: var(--teal);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    transition: color .2s;
  }

  .map-link:hover { color: var(--ocean); }

  /* custom fields */
  .expand-section {
    overflow: hidden;
    max-height: 0;
    transition: max-height .35s ease, opacity .3s;
    opacity: 0;
  }

  .expand-section.open {
    max-height: 600px;
    opacity: 1;
  }

  .spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  .spec-item { display: flex; flex-direction: column; gap: 6px; }

  .spec-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .spec-val {
    font-size: 13px;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    color: var(--text);
  }

  .spec-text-input {
    width: 100%;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
  }
  .spec-text-input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0,153,204,.12);
  }

  .spec-val select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
  }

  /* free text */
  .free-section { margin-top: 20px; }

  /* submit area */
  .submit-area {
    margin-top: 20px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }

  .submit-mail {
    font-size: 12px;
    color: var(--muted);
  }

  .submit-note {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .submit-note svg { width: 14px; height: 14px; color: var(--teal); }

 @media (max-width: 767px) {
    .submit-note {
      align-items: flex-start;
    }
    .submit-note svg {
      margin-top: 3px;
    }
    .field-label {
      align-items: flex-start;
    }
    .field-label .badge-opt{
      white-space: nowrap;
      margin-top: 3px;
    }
  }
 @media (min-width: 768px) {
   .pcNone {
    display: none;
   }
  }

  
  .btn-submit {
    display: inline-flex;
    align-items: center;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    transition: all .22s;
  }

  .btn-submit:not(.disabled):hover {
    opacity: 0.8;
  }

  .btn-submit:not(.disabled):active { 
    opacity: 0.8;
  }

  .btn-submit:disabled,
  .btn-submit.disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    pointer-events: none;
  }

  .btn-submit img {
    max-width: 100%;
  }

  /* mail preview */
  .mail-preview {
    margin-top: 24px;
    border: 1.5px dashed var(--border);
    border-radius: 10px;
    overflow: hidden;
  }

  .mail-preview-header {
    background: var(--ice);
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ocean);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: .04em;
  }

  .mail-preview-header svg { width: 14px; height: 14px; }

  .mail-preview-body {
    padding: 16px;
    font-size: 12px;
    color: var(--text);
    line-height: 1.8;
    background: #fdfdfd;
    white-space: pre-wrap;
    font-family: 'Noto Sans JP', monospace;
  }

  /* validation hint */
  .validation-hint {
    font-size: 12px;
    color: var(--danger);
    margin-top: 4px;
    display: none;
  }

  input.invalid { border-color: var(--danger); }
  input.invalid + .validation-hint { display: block; }

  /* responsive */
  @media (max-width: 520px) {
    .card-body { padding: 20px; }
    .area-grid { grid-template-columns: repeat(3, 1fr); }
    .spec-grid  { grid-template-columns: 1fr; }
    .radio-grid { grid-template-columns: 1fr; }
  }
