/* ========================================
   TETRACORE HP作成依頼ランディングページ
   専用スタイルシート
======================================== */

/* ----------------------------------------
   リセット & 基本設定
---------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----------------------------------------
   ヘッダー
---------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    background: transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #fff;
}

.header-cta {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #d2b48c 0%, #b8956f 100%);
    border-radius: 50px;
    color: #0a0a0a;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(210, 180, 140, 0.4);
}

/* ----------------------------------------
   ヒーローセクション
---------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.5) 0%, rgba(22, 33, 62, 0.5) 50%, rgba(15, 52, 96, 0.5) 100%),
        url('../images/okinawa_hero_bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(210, 180, 140, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(100, 150, 200, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: left;
    max-width: 950px;
    margin-left: 5%;
    padding-right: 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(210, 180, 140, 0.15);
    border: 1px solid rgba(210, 180, 140, 0.4);
    border-radius: 50px;
    color: #d2b48c;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .title-main {
    display: inline-block;
    margin-right: 15px;
    white-space: nowrap;
}

.hero-title .title-free {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-title .free-label {
    font-size: 0.45em;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    border-radius: 8px;
    color: #ffd700;
    font-weight: 700;
}

.hero-title .free-text {
    font-size: 1.5em;
    color: #ffd700;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    position: relative;
}

.hero-title .free-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #ffd700, transparent);
    opacity: 0.4;
}

/* メリット表示 */
.hero-benefits {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 35px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.benefit-item i {
    font-size: 28px;
    color: #4ecdc4;
}

.benefit-item span {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
}

.benefit-item strong {
    color: #ffd700;
    font-weight: 700;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 24px 55px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    border-radius: 60px;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.6s both;
    box-shadow: 0 10px 30px rgba(238, 90, 90, 0.4);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(238, 90, 90, 0.5);
}

.hero-cta .cta-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.hero-cta:hover .cta-arrow {
    transform: translateX(5px);
}

.hero-note {
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    animation: fadeInUp 0.8s ease 0.8s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    animation: fadeIn 1s ease 1s both;
}

.scroll-indicator span {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 10px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
    margin: 0 auto;
    animation: scrollLine 1.5s ease infinite;
}

/* デバイスモックアップ */
.hero-devices {
    position: absolute;
    right: 5%;
    bottom: 10%;
    max-width: 45%;
    z-index: 10;
    animation: fadeInRight 1s ease 1s both;
}

.hero-devices img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ----------------------------------------
   セクション共通
---------------------------------------- */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light .section-label,
.section-header.light .section-title {
    color: #fff;
}

.section-label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 3px;
    color: #d2b48c;
    margin-bottom: 15px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.section-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

/* ----------------------------------------
   特徴＆流れ統合セクション
---------------------------------------- */
.merged-features-flow {
    padding: 80px 0;
    background: #111;
    position: relative;
    overflow: hidden;
}

.merged-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.merged-col {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 左カラム：特徴（コンパクト版） */
.features-grid-compact {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.feature-card-compact {
    display: flex;
    align-items: center;
    /* Force layout correction */
    justify-content: flex-start !important;
    flex-direction: row !important;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card-compact:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.feature-card-compact .feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #d2b48c 0%, #b8956f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #d2b48c;
}

.feature-text p {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
    margin: 0;
}

.features-note-compact {
    margin-top: 30px;
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.features-note-compact strong {
    color: #e74c3c;
}

/* 右カラム：流れ（コンパクト版） */
.flow-list-compact {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #1a1a1a;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(210, 180, 140, 0.2);
}

.flow-num {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #d2b48c;
    opacity: 0.5;
    flex-shrink: 0;
}

.flow-body h3 {
    font-size: 16px;
    margin-bottom: 3px;
    color: #fff;
}

.flow-body p {
    font-size: 13px;
    color: #aaa;
    margin: 0;
}

.flow-arrow-compact {
    text-align: center;
    color: rgba(210, 180, 140, 0.3);
    font-size: 14px;
    margin: -10px 0;
}

/* レスポンシブ対応 */
@media (max-width: 900px) {
    .merged-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ----------------------------------------
   料金セクション
---------------------------------------- */
.pricing {
    padding: 100px 0;
    background: #0f0f0f;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* 4から5に変更 */
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    background: linear-gradient(145deg, #1a1a1a, #141414);
    border-radius: 20px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card.trial {
    border: 1px solid rgba(210, 180, 140, 0.6);
    background: linear-gradient(145deg, #25201b, #1a1612);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pricing-ribbon {
    position: absolute;
    top: 20px;
    right: -8px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #d2b48c 0%, #b8956f 100%);
    color: #0a0a0a;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px 0 0 4px;
}

.pricing-ribbon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    border: 4px solid transparent;
    border-top-color: #8a7355;
    border-left-color: #8a7355;
}

.pricing-header {
    text-align: center;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 140px;
    /* ヘッダーの高さを統一 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pricing-name {
    font-size: 18px;
    /* 文字サイズを少し小さくして改行を防ぐ */
    font-weight: 700;
    margin-bottom: 15px;
    min-height: 2.4em;
    /* 2行になってもレイアウトが崩れないように確保 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* サブスクプランの特別スタイル */
.plan-subscription {
    grid-column: span 2;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    position: relative;
    z-index: 10;
    transform: scale(1.02);
}

.pricing-catch {
    color: #ffd700;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.5;
    background: rgba(255, 215, 0, 0.1);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.pricing-price {
    display: flex;
    align-items: center;
    /* ベースラインではなく中央揃えでバランスを取る */
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
    /* 必要に応じて折り返し */
}

.price-amount {
    font-family: 'Oswald', sans-serif;
    font-size: 36px;
    /* 金額の文字サイズを調整 */
    font-weight: 700;
    color: #d2b48c;
    line-height: 1;
}

.price-unit {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    min-height: 280px;
    /* 機能リストの高さを統一 */
}

.pricing-features li {
    padding: 10px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li i {
    color: #d2b48c;
    font-size: 12px;
}

.pricing-features li.note {
    font-size: 12px;
    color: rgba(210, 180, 140, 0.8);
    margin-top: 10px;
}

.pricing-cta {
    display: block;
    text-align: center;
    padding: 15px 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pricing-cta:hover {
    border-color: #d2b48c;
    color: #d2b48c;
}

.pricing-cta.primary {
    background: linear-gradient(135deg, #d2b48c 0%, #b8956f 100%);
    border: none;
    color: #0a0a0a;
}

.pricing-cta.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(210, 180, 140, 0.3);
}

/* ----------------------------------------
   お申し込みフォームセクション
---------------------------------------- */
/* ----------------------------------------
   お申し込み & FAQ 統合セクション
---------------------------------------- */
.merged-apply-faq {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%),
        url('../images/okinawa_apply_bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.apply-faq-grid {
    align-items: flex-start;
}

.apply-col .section-header {
    text-align: left;
    margin-bottom: 30px;
}

.apply-col .section-title {
    font-size: 28px;
}

.apply-form-wrapper.compact {
    background: transparent;
    padding: 0;
    border: none;
    backdrop-filter: none;
}

.apply-form-wrapper.compact .form-group input,
.apply-form-wrapper.compact .form-group select,
.apply-form-wrapper.compact .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-col .section-header {
    margin-bottom: 30px;
}

.faq-col .faq-list {
    max-width: 100%;
}

.faq-col .faq-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
    .apply-col .section-header {
        text-align: center;
    }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

.form-group label .required {
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 4px;
    font-size: 11px;
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d2b48c;
    background: rgba(255, 255, 255, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d2b48c'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 20px;
    cursor: pointer;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-agreement {
    margin-bottom: 30px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #d2b48c;
}

.checkbox-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 40px;
    background: linear-gradient(135deg, #d2b48c 0%, #b8956f 100%);
    border: none;
    border-radius: 60px;
    color: #0a0a0a;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(210, 180, 140, 0.4);
}

/* ----------------------------------------
   FAQセクション
---------------------------------------- */
.faq {
    padding: 100px 0;
    background: #0a0a0a;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 0;
    cursor: pointer;
    position: relative;
    padding-right: 10px;
}

.faq-question .q-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #d2b48c 0%, #b8956f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: #0a0a0a;
}

.faq-question .text {
    flex: 1;
}

.faq-question .toggle-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d2b48c;
    transition: transform 0.3s ease;
    font-size: 14px;
}

.faq-item.active .toggle-icon {
    transform: rotate(135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer .answer-inner {
    padding: 15px 0 0 47px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
}

/* ----------------------------------------
   フッター
---------------------------------------- */
.footer {
    padding: 60px 0 30px;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
}

.footer-logo {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.footer-address {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d2b48c;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ----------------------------------------
   固定CTA（スマホ用）
---------------------------------------- */
.fixed-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.fixed-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #d2b48c 0%, #b8956f 100%);
    border-radius: 50px;
    color: #0a0a0a;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

/* ----------------------------------------
   アニメーション
---------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    50.1% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ----------------------------------------
   レスポンシブ
---------------------------------------- */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
    }

    .plan-subscription {
        grid-column: span 2;
        /* タブレット表示でも目立たせる */
    }

    .pricing-card.trial {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .header-cta {
        padding: 10px 20px;
        font-size: 12px;
    }

    .hero {
        padding: 100px 20px 120px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-cta {
        padding: 16px 35px;
        font-size: 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .apply-form-wrapper {
        padding: 30px 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }

    .fixed-cta {
        display: block;
    }

    main {
        padding-bottom: 80px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .section-title {
        font-size: 24px;
    }

    .feature-card {
        padding: 35px 25px;
    }

    .pricing-card {
        padding: 30px 20px;
    }
}