/*
 * index.css — transer.io LP（index.html）専用スタイル
 * 共通スタイルは app.css を参照
 */

html { scroll-behavior: smooth; }





    /* ─── NAV ─── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 200;
      height: 60px;
      background: var(--navy);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 2.5rem;
      transition: box-shadow .3s;
    }
    nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.25); }

    .logo {
      font-size: 1.2rem;
      font-weight: 700;
      color: #fff;
      letter-spacing: -.03em;
      text-decoration: none;
    }

    .nav-links {
      list-style: none;
      display: flex;
      align-items: center;
      gap: 2rem;
    }
    .nav-links a {
      color: rgba(255,255,255,.8);
      text-decoration: none;
      font-size: .88rem;
      font-weight: 400;
      transition: color .2s;
    }
    .nav-links a:hover { color: #fff; }

    .nav-login { cursor: pointer; background: none; border: none; font-family: inherit; }

    .nav-cta {
      background: var(--blue);
      color: #fff !important;
      padding: .45rem 1.2rem;
      border-radius: 7px;
      font-weight: 600;
      font-size: .88rem !important;
      transition: background .2s !important;
    }
    .nav-cta:hover { background: var(--blue-h) !important; }

    /* ─── HERO ─── */
    #hero {
      position: relative;
      min-height: 100vh;
      padding-top: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background:
        radial-gradient(ellipse 90% 55% at 15% 88%, rgba(255,255,255,.55) 0%, transparent 58%),
        radial-gradient(ellipse 70% 45% at 78% 78%, rgba(255,255,255,.50) 0%, transparent 52%),
        radial-gradient(ellipse 50% 35% at 55% 65%, rgba(255,255,255,.38) 0%, transparent 50%),
        radial-gradient(ellipse 40% 28% at 35% 72%, rgba(255,255,255,.32) 0%, transparent 48%),
        linear-gradient(to bottom,
          #2E6CB5 0%,
          #4888CC 12%,
          #6AAEE0 26%,
          #8DC5EC 40%,
          #AFDAF3 54%,
          #CAEBF7 66%,
          #DDF3FB 76%,
          #EBF7FC 86%,
          #F2FAFE 100%
        );
    }

    /* subtle horizon glow */
    #hero::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 30%;
      background: linear-gradient(to top, rgba(255,255,255,.35), transparent);
      pointer-events: none;
    }

    /* ─── LANGUAGE PILLS ─── */
    .pills {
      position: absolute;
      inset: 60px 0 0 0;
      pointer-events: none;
    }

    .pill {
      position: absolute;
      background: rgba(255,255,255,.82);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,.95);
      border-radius: 100px;
      padding: .45rem 1.1rem;
      font-size: .9rem;
      font-weight: 500;
      color: var(--txt);
      display: flex;
      align-items: center;
      gap: .45rem;
      box-shadow: 0 4px 18px rgba(0,0,0,.09);
      animation: floatpill 7s ease-in-out infinite;
    }

    .pill:nth-child(1) { top: 20%; left:  7%; animation-duration: 7.2s; animation-delay:  0s; }
    .pill:nth-child(2) { top: 47%; left:  3%; animation-duration: 6.4s; animation-delay: 1.4s; }
    .pill:nth-child(3) { top: 72%; left:  5%; animation-duration: 8.0s; animation-delay:  .7s; }
    .pill:nth-child(4) { top: 26%; right: 7%; animation-duration: 6.8s; animation-delay:  .4s; }
    .pill:nth-child(5) { top: 53%; right: 5%; animation-duration: 7.6s; animation-delay: 1.9s; }
    .pill:nth-child(6) { top: 74%; right: 7%; animation-duration: 6.2s; animation-delay:  .9s; }

    @keyframes floatpill {
      0%, 100% { transform: translateY(0px); }
      50%       { transform: translateY(-14px); }
    }

    @media (prefers-reduced-motion: reduce) {
      .pill { animation: none; }
    }

    /* ─── HERO CONTENT ─── */
    .hero-content {
      position: relative;
      z-index: 2;
      text-align: center;
      max-width: 720px;
      padding: 2rem 1.5rem 4rem;
    }

    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: .45rem;
      background: rgba(13,27,42,.78);
      backdrop-filter: blur(8px);
      color: #fff;
      font-size: .78rem;
      font-weight: 500;
      padding: .3rem .95rem;
      border-radius: 100px;
      letter-spacing: .04em;
      margin-bottom: 1.6rem;
    }
    .hero-badge .dot {
      width: 7px; height: 7px;
      background: #4ADE80;
      border-radius: 50%;
      flex-shrink: 0;
    }

    .hero-h1 {
      font-size: clamp(2.4rem, 5.5vw, 4rem);
      font-weight: 900;
      color: var(--navy);
      line-height: 1.1;
      letter-spacing: -.03em;
      margin-bottom: .6rem;
    }
    .hero-h1 .accent { color: var(--blue); }

    .hero-sub {
      font-size: 1rem;
      color: #244369;
      line-height: 1.85;
      margin-bottom: 2.2rem;
    }

    .hero-btns {
      display: flex;
      gap: 1rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .btn-primary {
      background: var(--blue);
      color: #fff;
      border: none;
      padding: .78rem 2.1rem;
      border-radius: 8px;
      font-family: inherit;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      box-shadow: 0 4px 14px rgba(37,99,235,.35);
      transition: background .2s, transform .15s, box-shadow .15s;
    }
    .btn-primary:hover {
      background: var(--blue-h);
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(37,99,235,.4);
    }

    .btn-ghost {
      background: rgba(255,255,255,.72);
      backdrop-filter: blur(8px);
      color: var(--navy);
      border: 1px solid rgba(13,27,42,.15);
      padding: .78rem 2.1rem;
      border-radius: 8px;
      font-family: inherit;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
      transition: background .2s;
    }
    .btn-ghost:hover { background: rgba(255,255,255,.9); }

    /* ─── STATS BAR ─── */
    #stats {
      background: var(--navy);
      padding: 1.4rem 2rem;
      display: flex;
      justify-content: center;
      gap: 3.5rem;
      flex-wrap: wrap;
    }
    .stat { text-align: center; }
    .stat-n {
      display: block;
      font-size: 1.55rem;
      font-weight: 700;
      color: #60A5FA;
    }
    .stat-l {
      font-size: .78rem;
      color: rgba(255,255,255,.55);
      margin-top: .1rem;
    }

    /* ─── COMMON SECTION ─── */
    .sec {
      padding: 5.5rem 2rem;
    }
    .sec-inner {
      max-width: 1080px;
      margin: 0 auto;
    }
    .eyebrow {
      font-size: .75rem;
      font-weight: 700;
      color: var(--blue);
      letter-spacing: .12em;
      text-transform: uppercase;
      margin-bottom: .7rem;
    }
    .sec-title {
      font-size: clamp(1.6rem, 2.8vw, 2.2rem);
      font-weight: 700;
      color: var(--navy);
      line-height: 1.3;
      margin-bottom: 1rem;
    }
    .sec-desc {
      font-size: .98rem;
      color: var(--txt2);
      line-height: 1.85;
      max-width: 560px;
    }

    /* ─── FEATURES ─── */
    #features { background: var(--white); }

    .feat-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 1.4rem;
      margin-top: 3rem;
    }
    .feat-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 2rem;
      transition: transform .2s, box-shadow .2s;
    }
    .feat-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 28px rgba(0,0,0,.07);
    }
    .feat-icon {
      font-size: 1.9rem;
      margin-bottom: 1rem;
      display: block;
    }
    .feat-title {
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: .5rem;
    }
    .feat-text {
      font-size: .88rem;
      color: var(--txt2);
      line-height: 1.75;
    }

    /* ─── HOW IT WORKS ─── */
    #how { background: var(--bg); }

    .steps {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 2rem;
      margin-top: 3rem;
    }
    .step { padding: 1.5rem; }

    .step-num {
      width: 40px; height: 40px;
      background: var(--blue);
      color: #fff;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: .95rem;
      margin-bottom: 1rem;
      flex-shrink: 0;
    }
    .step-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: .5rem;
    }
    .step-text {
      font-size: .88rem;
      color: var(--txt2);
      line-height: 1.75;
    }
    .step-code {
      margin-top: .85rem;
      background: var(--navy);
      color: #7DD3FC;
      padding: .65rem .95rem;
      border-radius: 7px;
      font-family: 'Courier New', monospace;
      font-size: .78rem;
      word-break: break-all;
    }

    /* ─── PRICING ─── */
    #pricing { background: var(--white); }

    .price-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
      gap: 1.5rem;
      margin-top: 3rem;
    }
    .price-card {
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 2.2rem;
      position: relative;
      transition: transform .2s;
    }
    .price-card:hover { transform: translateY(-3px); }
    .price-card.popular {
      border: 2px solid var(--blue);
      box-shadow: 0 4px 24px rgba(37,99,235,.12);
    }

    .popular-tag {
      position: absolute;
      top: -13px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--blue);
      color: #fff;
      font-size: .72rem;
      font-weight: 700;
      padding: .22rem .9rem;
      border-radius: 100px;
      white-space: nowrap;
      letter-spacing: .03em;
    }

    .plan-name {
      font-size: .9rem;
      font-weight: 600;
      color: var(--txt2);
      margin-bottom: .45rem;
    }
    .plan-price {
      font-size: 2.4rem;
      font-weight: 900;
      color: var(--navy);
      line-height: 1;
      margin-bottom: .3rem;
    }
    .plan-price sub {
      font-size: 1rem;
      font-weight: 400;
      color: var(--txt2);
      vertical-align: baseline;
    }
    .plan-chars {
      font-size: .85rem;
      color: var(--txt2);
      padding-bottom: 1.5rem;
      margin-bottom: 1.5rem;
      border-bottom: 1px solid var(--border);
    }
    .plan-feats {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: .65rem;
      margin-bottom: 1.8rem;
    }
    .plan-feats li {
      font-size: .88rem;
      color: var(--txt2);
      display: flex;
      align-items: center;
      gap: .55rem;
    }
    .plan-feats li::before {
      content: '✓';
      color: #22C55E;
      font-weight: 700;
      flex-shrink: 0;
    }

    .btn-plan {
      width: 100%;
      padding: .78rem;
      border-radius: 9px;
      font-family: inherit;
      font-size: .95rem;
      font-weight: 700;
      cursor: pointer;
      border: none;
      transition: all .2s;
    }
    .btn-plan-out {
      background: var(--white);
      border: 2px solid var(--blue);
      color: var(--blue);
    }
    .btn-plan-out:hover { background: var(--blue-lite); }
    .btn-plan-fill {
      background: var(--blue);
      color: #fff;
      box-shadow: 0 4px 14px rgba(37,99,235,.3);
    }
    .btn-plan-fill:hover { background: var(--blue-h); }

    /* ─── CTA BAND ─── */
    #cta {
      background: linear-gradient(135deg, #0D1B2A 0%, #1A3558 100%);
      text-align: center;
    }
    #cta .sec-title { color: #fff; }
    #cta .sec-desc  { color: rgba(255,255,255,.68); margin: 0 auto 2.2rem; }

    /* ─── FOOTER ─── */
    footer {
      background: var(--navy);
      border-top: 1px solid rgba(255,255,255,.07);
      padding: 2rem 2.5rem;
    }
    .footer-inner {
      max-width: 1080px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 1rem;
      font-size: .82rem;
      color: rgba(255,255,255,.38);
    }
    .footer-links {
      display: flex;
      gap: 1.5rem;
    }
    .footer-links a {
      color: rgba(255,255,255,.45);
      text-decoration: none;
      transition: color .2s;
    }
    .footer-links a:hover { color: rgba(255,255,255,.8); }

    /* ─── MODAL ─── */

    .modal {
      background: #fff;
      border-radius: 16px;
      padding: 1.5rem 1.5rem;
      width: 90%;
      max-width: 360px;
      max-height: 92vh;
      overflow-y: auto;
      scrollbar-width: none;       /* Firefox */
      -ms-overflow-style: none;    /* IE/Edge */
      text-align: center;
      position: relative;
      box-shadow: 0 24px 60px rgba(0,0,0,.22);
      animation: popIn .25s cubic-bezier(.34,1.56,.64,1);
    }
    .modal::-webkit-scrollbar { width: 0; height: 0; } /* Chrome/Safari */


    .modal-x {
      position: absolute;
      top: 1.1rem; right: 1.1rem;
      background: none;
      border: none;
      font-size: 1.2rem;
      color: var(--txt3);
      cursor: pointer;
      line-height: 1;
      padding: .25rem;
      border-radius: 50%;
      transition: background .15s, color .15s;
    }
    .modal-x:hover { background: var(--bg); color: var(--txt); }

    .modal-logo {
      font-size: 1rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: .6rem;
    }
    .modal-title {
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--navy);
      margin-bottom: .2rem;
    }
    .modal-sub {
      font-size: .8rem;
      color: var(--txt2);
      margin-bottom: .9rem;
      line-height: 1.4;
    }

    .btn-google {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: .6rem;
      width: 100%;
      padding: .65rem 1rem;
      border-radius: 8px;
      border: 1.5px solid #DADCE0;
      background: #fff;
      font-family: inherit;
      font-size: .86rem;
      font-weight: 500;
      color: var(--txt);
      cursor: pointer;
      box-shadow: 0 1px 4px rgba(0,0,0,.07);
      transition: background .2s, box-shadow .2s, border-color .2s;
    }
    .btn-google:hover {
      background: #F8FAFC;
      box-shadow: 0 2px 8px rgba(0,0,0,.11);
      border-color: #C4C7CC;
    }

    .modal-sep {
      display: flex;
      align-items: center;
      gap: .7rem;
      color: var(--txt3);
      font-size: .72rem;
      margin: .7rem 0;
    }
    .modal-sep::before, .modal-sep::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    .modal-terms {
      font-size: .73rem;
      color: var(--txt3);
      line-height: 1.65;
    }
    .modal-terms a { color: var(--blue); text-decoration: none; }
    .modal-terms a:hover { text-decoration: underline; }

    /* ── email/password form ── */
    .email-form { display: flex; flex-direction: column; gap: .55rem; margin-bottom: .6rem; }
    .field { text-align: left; }
    .field label {
      display: block;
      font-size: .74rem;
      font-weight: 600;
      color: var(--txt2);
      margin-bottom: .2rem;
    }
    .field input {
      width: 100%;
      padding: .55rem .7rem;
      border: 1.5px solid var(--border);
      border-radius: 7px;
      font-family: inherit;
      font-size: .85rem;
      transition: border-color .15s;
    }
    .field input:focus { outline: none; border-color: var(--blue); }

    /* ── password visibility toggle ── */
    .pw-input-wrap { position: relative; }
    .pw-input-wrap input { padding-right: 2.6rem; }
    .pw-toggle-visibility {
      position: absolute;
      top: 50%;
      right: .6rem;
      transform: translateY(-50%);
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1rem;
      color: var(--txt3);
      padding: .3rem;
      line-height: 1;
      transition: color .15s;
    }
    .pw-toggle-visibility:hover { color: var(--txt2); }

    /* ── password strength meter ── */
    .pw-strength { margin-top: .35rem; }
    .pw-bar-track {
      display: flex;
      gap: 4px;
      margin-bottom: .35rem;
    }
    .pw-bar-seg {
      height: 4px;
      flex: 1;
      border-radius: 100px;
      background: var(--border);
      transition: background .2s;
    }
    .pw-label { font-size: .74rem; font-weight: 600; }
    .pw-hint {
      font-size: .72rem;
      color: var(--txt3);
      margin-top: .3rem;
      line-height: 1.5;
    }
    .pw-req {
      display: inline-flex;
      align-items: center;
      gap: .25rem;
      margin-right: .6rem;
    }
    .pw-req.met { color: #16A34A; }
    .pw-req.unmet { color: var(--txt3); }

    .btn-email-submit {
      width: 100%;
      background: var(--navy);
      color: #fff;
      border: none;
      padding: .6rem;
      border-radius: 7px;
      font-family: inherit;
      font-size: .86rem;
      font-weight: 700;
      cursor: pointer;
      transition: background .15s;
    }
    .btn-email-submit:hover { background: #1A2E45; }
    .btn-email-submit:disabled { opacity: .6; cursor: default; }

    .form-error {
      display: none;
      background: #FEF2F2;
      color: #DC2626;
      font-size: .74rem;
      padding: .5rem .7rem;
      border-radius: 6px;
      margin-bottom: .8rem;
      text-align: left;
    }
    .form-error.show { display: block; }
    .form-error.form-notice {
      background: var(--green-bg, #ECFDF3);
      color: #16A34A;
    }

    .modal-toggle {
      font-size: .76rem;
      color: var(--txt2);
      margin-top: .5rem;
    }
    .modal-toggle button {
      background: none;
      border: none;
      color: var(--blue);
      font-family: inherit;
      font-size: .76rem;
      font-weight: 600;
      cursor: pointer;
      padding: 0;
    }
    .modal-toggle button:hover { text-decoration: underline; }

    /* ── captcha ── */
    .captcha-box { text-align: left; }
    .captcha-row {
      display: flex;
      align-items: center;
      gap: .5rem;
    }
    .captcha-question {
      position: relative;
      flex: 1;
      background:
        radial-gradient(circle at 15% 30%, rgba(37,99,235,.07) 1.5px, transparent 1.5px),
        radial-gradient(circle at 65% 70%, rgba(37,99,235,.07) 1.5px, transparent 1.5px),
        radial-gradient(circle at 40% 15%, rgba(37,99,235,.06) 1.5px, transparent 1.5px),
        radial-gradient(circle at 85% 45%, rgba(37,99,235,.06) 1.5px, transparent 1.5px),
        radial-gradient(circle at 25% 80%, rgba(37,99,235,.06) 1.5px, transparent 1.5px),
        #FAFBFD;
      background-size: 12px 12px;
      border: 1.5px solid var(--border);
      border-radius: 7px;
      padding: .55rem .4rem;
      text-align: center;
      font-size: .92rem;
      font-weight: 700;
      color: var(--navy);
      letter-spacing: .02em;
      user-select: none;
    }
    .captcha-refresh {
      background: none;
      border: none;
      width: 36px; height: 36px;
      border-radius: 8px;
      cursor: pointer;
      font-size: 1.15rem;
      color: var(--txt3);
      display: flex; align-items: center; justify-content: center;
      transition: background .15s, color .15s, transform .2s;
      flex-shrink: 0;
    }
    .captcha-refresh:hover { background: var(--bg); color: var(--txt2); }
    .captcha-refresh.spinning { animation: spin-once .5s ease; }
    @keyframes spin-once { to { transform: rotate(180deg); } }

    .captcha-equals { font-size: .9rem; font-weight: 600; color: var(--txt3); flex-shrink: 0; }

    .captcha-answer {
      width: 68px;
      flex-shrink: 0;
      padding: .6rem .5rem;
      border: 1.5px solid var(--border);
      border-radius: 7px;
      font-family: inherit;
      font-size: .95rem;
      font-weight: 600;
      text-align: center;
    }
    .captcha-answer:focus { outline: none; border-color: var(--blue); }
    .captcha-answer.is-correct { border-color: #16A34A; }
    .captcha-answer.is-wrong { border-color: #DC2626; }

    .captcha-indicator {
      width: 20px;
      flex-shrink: 0;
      font-size: 1rem;
      font-weight: 700;
      text-align: center;
      line-height: 1;
    }
    .captcha-indicator.correct { color: #16A34A; }
    .captcha-indicator.wrong { color: #DC2626; }

    .captcha-hint {
      font-size: .68rem;
      color: var(--txt3);
      margin-top: .35rem;
    }

    /* ─── RESPONSIVE ─── */
    @media (max-width: 820px) {
      .pill { display: none; }
      .pill:nth-child(1), .pill:nth-child(4) { display: flex; }
      nav { padding: 0 1.25rem; }
      .nav-how, .nav-feat, .nav-price { display: none; }
    }
    @media (max-width: 500px) {
      .sec { padding: 3.5rem 1.25rem; }
      #stats { gap: 1.8rem; }
    }
