/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --color-primary: #2196F3;
    --color-primary-dark: #1976D2;
    --color-text: #333333;
    --color-background: #FFFFFF;
    --color-background-secondary: #F5F5F5;
    --container-width: 1200px;
    --spacing-base: 1rem;
}

/* Base */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    padding-top: 80px;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-base);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-background);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* モバイルの場合のみスクロール時にロゴを非表示 */
@media (max-width: 768px) {
    .header.scrolled .header__logo {
        transform: translateY(-100%);
        opacity: 0;
        margin: 0;
        height: 0;
    }
}

.header.scrolled .header__inner {
    height: 60px;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-base);
}

.header__logo {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__logo img {
    width: 150px;
}

.header__buttons {
    display: flex;
    gap: 1rem;
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn--primary {
    background: var(--color-primary);
    color: white;
}

.btn--primary:hover {
    background: var(--color-primary-dark);
}

.btn--white {
    background: white;
    color: var(--color-text);
    border: 1px solid #E0E0E0;
}

.btn--white:hover {
    background: #F5F5F5;
    border-color: #D0D0D0;
}

.btn--secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--secondary:hover {
    background: var(--color-primary);
    color: white;
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: white;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--color-background);
}

.hero__inner {
    display: flex;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-base);
}

.hero__content {
    flex: 1;
}

.hero__title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
}

.hero__image {
    flex: 1;
    text-align: right;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--color-background-secondary);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.feature-card__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Flow Section */
.flow {
    padding: 80px 0;
}

.flow__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.flow-step {
    text-align: center;
    position: relative;
}

.flow-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2rem;
    right: -1rem;
    width: 2rem;
    height: 2px;
    background: var(--color-primary);
}

.flow-step__number {
    width: 4rem;
    height: 4rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/img/pattern.png') repeat;
    opacity: 0.1;
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta .section-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.cta__benefits {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.cta__benefit {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    min-width: 200px;
}

.cta__benefit-label {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.cta__benefit-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.cta__description {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
}

.cta__buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.cta__buttons .btn {
    min-width: 280px;
}

.cta__buttons .btn--primary {
    background: white;
    color: var(--color-primary);
}

.cta__buttons .btn--primary:hover {
    background: #f5f5f5;
}

.cta__buttons .btn--secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta__buttons .btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cta__note {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 60px 0;
    background: var(--color-primary);
    color: #fff;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer__logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.footer__nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer__nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__nav a:hover {
    color: #ffe082;
}

.footer__copyright {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.9;
    color: #fff;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 2000;
}

.modal.is-open {
    display: block;
}

.modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal__container {
    position: relative;
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 12px;
    transform: translateY(calc(50vh - 50%));
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.modal__close:hover {
    opacity: 1;
}

.modal__title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.modal__text {
    text-align: center;
    margin-bottom: 2rem;
}

.modal__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 120px;
    }

    .header__inner {
        height: auto;
        flex-direction: column;
        padding: 1rem var(--spacing-base);
        transition: height 0.3s ease;
    }

    .header.scrolled .header__inner {
        height: auto;
        padding: 0.5rem var(--spacing-base);
    }

    .header__logo {
        margin-bottom: 1rem;
    }

    .header__logo img {
        height: 30px;
    }

    .header__nav {
        width: 100%;
    }

    .header__buttons {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }

    .header__buttons li {
        width: calc(50% - 0.25rem);
    }

    .header__buttons li:first-child {
        width: 100%;
    }

    .header__buttons .btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero__image {
        margin-top: 2rem;
    }

    .hero__title {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .hero__text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero__buttons .btn {
        min-width: 240px;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .flow__steps {
        grid-template-columns: 1fr;
    }

    .flow-step:not(:last-child)::after {
        display: none;
    }

    .cta {
        padding: 60px 0;
    }

    .cta .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .cta__benefits {
        flex-direction: column;
        gap: 1rem;
    }

    .cta__benefit {
        padding: 1rem;
    }

    .cta__benefit-value {
        font-size: 1.8rem;
    }

    .cta__description {
        font-size: 1.2rem;
        margin: 2rem 0;
    }

    .cta__buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta__buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .footer__content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer__nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card__icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .feature-card__title {
        font-size: 1.1rem;
    }

    .modal__container {
        width: calc(100% - 2rem);
        margin: 1rem;
        padding: 1.5rem;
    }

    .modal__buttons {
        flex-direction: column;
        align-items: center;
    }

    .modal__buttons .btn {
        width: 100%;
        min-width: 200px;
    }
}

/* Page */
.page {
    padding: 120px 0 80px;
}

.page__title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page__content {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Terms & Privacy */
.terms__date,
.privacy__date {
    text-align: right;
    margin-bottom: 2rem;
    color: #666;
}

.terms__section,
.privacy__section {
    margin-bottom: 2rem;
}

.terms__section h2,
.privacy__section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.terms__section p,
.privacy__section p {
    margin-bottom: 1rem;
}

.terms__section ol,
.terms__section ul,
.privacy__section ol,
.privacy__section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.terms__section li,
.privacy__section li {
    margin-bottom: 0.5rem;
}

.privacy__contact {
    background: var(--color-background-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .page {
        padding: 100px 0 60px;
    }

    .page__title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .page__content {
        padding: 1.5rem;
    }
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: #f8f9fa;
}

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

.faq__item {
    margin-bottom: 16px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq__question {
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.faq__question-text {
    flex: 1;
    padding-right: 20px;
}

.faq__question-icon {
    font-size: 24px;
    color: #666;
    transition: transform 0.3s ease;
}

/* Qアイコンのスタイル */
.faq__question-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 12px;
    font-size: 14px;
}

.faq__item.is-open .faq__question-icon {
    transform: rotate(45deg);
}

.faq__answer {
    display: none;
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

.faq__item.is-open .faq__answer {
    display: block;
}

/* ヒーロー内お知らせバナー */
.hero__notice {
    display: inline-block;
    background: linear-gradient(90deg, #ff9800 0%, #ffc107 100%);
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5em 1.2em;
    border-radius: 2em;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
    letter-spacing: 0.05em;
    text-align: center;
}

.hero__notice-label {
    background: #d84315;
    color: #fff;
    border-radius: 1em;
    padding: 0.2em 0.8em;
    margin-right: 0.8em;
    font-size: 0.95em;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .hero__notice {
        font-size: 1rem;
        padding: 0.5em 0.8em;
        margin-bottom: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
} 