/* Inlined from contact.html */

/* === Hero — editorial dark === */
    .co-hero {
      margin-top: 70px;
      padding: 110px 0 90px;
      position: relative;
      background:
        radial-gradient(circle at 15% 25%, rgba(234,179,8,0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(202,138,4,0.10) 0%, transparent 55%),
        linear-gradient(180deg, #050b1a 0%, #0f172a 50%, #1e293b 100%);
      overflow: hidden;
    }
    .co-hero::before {
      content: ''; position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
      background-size: 80px 80px;
      pointer-events: none;
    }
    .co-hero .container { position: relative; z-index: 2; }
    .co-hero-header { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
    .co-hero-header .v-label { font-family: 'Lato', sans-serif; font-size: 0.75rem; letter-spacing: 0.36em; font-weight: 700; color: var(--accent); text-transform: uppercase; }
    .co-hero-header .v-rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(234,179,8,0.7) 0%, rgba(234,179,8,0.1) 100%); max-width: 200px; }
    .co-hero-header .v-meta { font-family: 'Lato', sans-serif; font-size: 0.72rem; letter-spacing: 0.18em; color: rgba(255,255,255,0.35); text-transform: uppercase; }
    .co-hero h1 {
      font-size: clamp(2.2rem, 4.5vw, 3.4rem);
      line-height: 1.4; letter-spacing: 0.04em; color: #fff; margin: 0 0 24px; font-weight: 900;
    }
    .co-hero h1 .accent { color: var(--accent); font-style: italic; }
    .co-hero .co-lead {
      color: rgba(255,255,255,0.78); font-size: 1.02rem; line-height: 2.05;
      max-width: 720px; margin: 0 0 40px;
    }
    .co-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 720px; }
    @media (max-width: 600px) { .co-hero-stats { grid-template-columns: 1fr; } }
    .co-stat {
      background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
      border-radius: 14px; padding: 20px;
      backdrop-filter: blur(8px);
      transition: transform 0.3s, border-color 0.3s, background 0.3s;
    }
    .co-stat:hover { transform: translateY(-4px); border-color: rgba(234,179,8,0.4); background: rgba(234,179,8,0.06); }
    .co-stat .cs-label { font-family: 'Lato', sans-serif; font-size: 0.66rem; letter-spacing: 0.26em; font-weight: 700; color: rgba(255,255,255,0.5); text-transform: uppercase; }
    .co-stat .cs-num {
      font-family: 'Lato', 'Noto Sans JP', sans-serif; font-weight: 900;
      font-size: 1.8rem; line-height: 1.1; margin-top: 6px;
      letter-spacing: 0.01em;
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .co-stat .cs-sub { color: rgba(255,255,255,0.72); font-size: 0.78rem; margin-top: 4px; line-height: 1.55; }

    @media (prefers-reduced-motion: no-preference) {
      .co-hero h1 { animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
      .co-hero .co-lead { animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both; }
      .co-hero-stats { animation: heroRise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }
      @keyframes heroRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
    }

    /* === Form section === */
    .contact-section {
      padding: 110px 0 120px;
      background:
        radial-gradient(circle at 90% 15%, rgba(234,179,8,0.06) 0%, transparent 50%),
        linear-gradient(180deg, #fafaf9 0%, #fff 100%);
      position: relative;
    }
    .contact-section::before {
      content: ''; position: absolute; inset: 0;
      background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,0.025) 1px, transparent 1px);
      background-size: 32px 32px;
      pointer-events: none;
    }
    .contact-section .container { position: relative; z-index: 1; }

    .form-section-head {
      max-width: 820px; margin: 0 auto 48px;
      display: flex; align-items: baseline; gap: 16px;
      padding-bottom: 16px; border-bottom: 1px solid var(--border);
    }
    .form-section-head .h-num { font-family: 'Lato', serif; font-style: italic; font-weight: 900; font-size: 1.6rem; color: var(--accent-dark); }
    .form-section-head .h-jp { font-size: 1.2rem; font-weight: 800; color: var(--primary); letter-spacing: 0.04em; }
    .form-section-head .h-en { color: var(--text-light); font-family: 'Lato', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }

    .contact-form {
      max-width: 820px;
      margin: 0 auto;
      background: #fff;
      padding: 44px 48px;
      border-radius: 16px;
      border: 1px solid var(--border);
      box-shadow: 0 12px 36px rgba(15,23,42,0.06);
    }
    @media (max-width: 600px) { .contact-form { padding: 32px 24px; } }
    .contact-form .form-row { margin-bottom: 22px; }
    .contact-form label {
      display: block;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: 8px;
      letter-spacing: 0.02em;
    }
    .contact-form label .req { color: #dc2626; margin-left: 4px; font-weight: 900; }
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
      width: 100%;
      padding: 13px 16px;
      border: 1.5px solid var(--border);
      border-radius: 8px;
      font-size: 0.95rem;
      font-family: inherit;
      background: #fff;
      color: var(--primary);
      transition: border-color 0.2s, box-shadow 0.2s;
    }
    .contact-form input:focus,
    .contact-form select:focus,
    .contact-form textarea:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: 0 0 0 4px rgba(234,179,8,0.15);
    }
    .contact-form textarea { min-height: 110px; resize: vertical; }
    .contact-form select {
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ca8a04' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 18px center;
      padding-right: 40px;
    }

    .form-submit-wrap { text-align: center; margin-top: 36px; }
    .btn-submit {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 18px 44px;
      background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
      color: #0f172a;
      font-weight: 800;
      font-size: 1rem;
      border-radius: 999px;
      text-decoration: none;
      border: none;
      cursor: pointer;
      transition: transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 10px 28px rgba(234,179,8,0.3);
      letter-spacing: 0.02em;
      font-family: inherit;
    }
    .btn-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(234,179,8,0.4); }

    .form-note {
      text-align: center;
      margin-top: 24px;
      color: var(--text-light);
      font-size: 0.85rem;
      line-height: 1.85;
    }

    /* Pre-fill notice (shown when ?from=X is in URL) */
    .form-notice {
      max-width: 760px;
      margin: 0 auto 22px;
      padding: 14px 18px;
      background: rgba(234, 179, 8, 0.10);
      border: 1px solid rgba(234, 179, 8, 0.4);
      border-radius: 8px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      font-size: 0.9rem;
      line-height: 1.75;
      color: #4a3a06;
    }
    .form-notice[hidden] { display: none; }
    .form-notice-icon {
      flex: 0 0 auto;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      background: var(--accent-dark, #d97706);
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 0.8rem;
      font-style: italic;
    }
    .form-notice-source { font-weight: 700; color: #0f172a; }
    .form-notice-tab { font-weight: 700; color: var(--accent-dark, #d97706); }
    .form-notice-action { display: block; margin-top: 2px; color: var(--text-light, #6b7280); font-size: 0.84rem; }

    /* Submission error banner */
    .form-error {
      max-width: 760px;
      margin: 0 auto 22px;
      padding: 14px 18px;
      background: rgba(220, 38, 38, 0.06);
      border: 1px solid rgba(220, 38, 38, 0.3);
      border-radius: 8px;
      color: #7f1d1d;
      font-size: 0.9rem;
      line-height: 1.75;
    }
    .form-error[hidden] { display: none; }
    .form-error strong { display: block; margin-bottom: 4px; }

    /* Submit button loading state */
    .btn-submit[disabled] {
      opacity: 0.5;
      cursor: wait;
      pointer-events: none;
    }

    /* Side cards (alternative contact) */
    .alt-contact {
      max-width: 820px;
      margin: 60px auto 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    @media (max-width: 600px) { .alt-contact { grid-template-columns: 1fr; } }
    .alt-card {
      background: #fff;
      border-radius: 14px;
      padding: 28px 26px;
      border: 1px solid var(--border);
      transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
      text-decoration: none;
      color: inherit;
      display: flex;
      align-items: flex-start;
      gap: 18px;
    }
    .alt-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15,23,42,0.08); border-color: var(--accent); }
    .alt-card .ac-icon {
      width: 48px; height: 48px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--accent-light) 0%, #fef3c7 100%);
      color: var(--accent-dark);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      transition: background 0.3s, color 0.3s, transform 0.3s;
    }
    .alt-card:hover .ac-icon { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #0f172a; transform: rotate(-6deg); }
    .alt-card .ac-icon svg { width: 24px; height: 24px; }
    .alt-card h3 { font-size: 1.05rem; margin: 0 0 6px; letter-spacing: 0.02em; }
    .alt-card p { color: var(--text-light); font-size: 0.85rem; line-height: 1.75; margin: 0 0 8px; }
    .alt-card .ac-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--accent-dark);
      font-weight: 700;
      font-size: 0.85rem;
      transition: gap 0.3s;
    }
    .alt-card:hover .ac-link { gap: 12px; }

    /* === Contact type selector === */
    .contact-types {
      max-width: 920px;
      margin: 0 auto 28px;
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
    @media (max-width: 768px) { .contact-types { grid-template-columns: 1fr; } }
    .ct-card {
      background: #fff;
      border: 1.5px solid var(--border);
      border-radius: 14px;
      padding: 24px 22px;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
      position: relative;
      overflow: hidden;
      text-align: left;
      font-family: inherit;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .ct-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(15,23,42,0.08); border-color: var(--accent); }
    .ct-card.is-active {
      border-color: var(--accent-dark);
      background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%);
      box-shadow: 0 14px 36px rgba(234,179,8,0.18);
    }
    .ct-card .ct-num {
      font-family: 'Lato', sans-serif;
      font-weight: 800;
      font-size: 0.7rem;
      letter-spacing: 0.22em;
      color: var(--accent-dark);
      text-transform: uppercase;
    }
    .ct-card.is-active .ct-num { color: var(--accent-dark); }
    .ct-card h3 {
      font-size: 1.05rem;
      margin: 0;
      letter-spacing: 0.02em;
      color: var(--primary);
      line-height: 1.4;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .ct-card h3 .ct-icon {
      width: 24px; height: 24px;
      color: var(--accent-dark);
      flex-shrink: 0;
    }
    .ct-card .ct-desc {
      font-size: 0.85rem;
      color: var(--text-light);
      line-height: 1.75;
      margin: 0;
    }
    .ct-card .ct-check {
      position: absolute;
      top: 14px; right: 14px;
      width: 22px; height: 22px;
      border-radius: 50%;
      border: 1.5px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      transition: all 0.3s;
    }
    .ct-card .ct-check svg {
      width: 12px; height: 12px;
      color: #fff;
      opacity: 0;
      transition: opacity 0.2s;
    }
    .ct-card.is-active .ct-check {
      background: var(--accent-dark);
      border-color: var(--accent-dark);
    }
    .ct-card.is-active .ct-check svg { opacity: 1; }

    /* Form panels — only active shows */
    .contact-form { display: none; }
    .contact-form.is-active { display: block; animation: formFade 0.4s ease both; }
    @keyframes formFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

    /* === Reveal anims === */
    @media (prefers-reduced-motion: no-preference) {
      .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
      .reveal.in { opacity: 1; transform: translateY(0); }
      .reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
      .reveal-scale.in { opacity: 1; transform: scale(1); }
      .reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
      .reveal-stagger.in > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.04s; }
      .reveal-stagger.in > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.14s; }
      .reveal-stagger.in > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.24s; }
      .reveal-stagger.in > *:nth-child(n+4) { opacity: 1; transform: none; transition-delay: 0.34s; }
    }
