/* ==========================================
   Pattern A: 王道ポップ
   ========================================== */
:root {
    --bg-main: #c8f3ff;
    --bg-sec: #ffecb3;
    --text: #373749;
    --accent: #fd7b60;
    --accent-hover: #ff6349;
    --gold: #e2c25d;
}

body {
    font-family: "Zen Maru Gothic", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg-main) 0%, #e8f9ff 50%, #fff 100%);
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--bg-sec);
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
    text-decoration: none;
}
.logo img {
    border-radius: 10px;
}
.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}
.nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
}
.btn-nav {
    background: var(--accent);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 20px;
    transition: transform 0.2s;
}
.btn-nav:hover {
    transform: scale(1.05);
}

/* Hero */
.hero {
    padding: 80px 0 120px;
    overflow: hidden;
    position: relative;
}

/* F. ヒーローテキストアニメーション */
.hero-content .badge {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}
.hero-content h1 {
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}
.hero-content > p {
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}
.hero-content .hero-btns {
    animation: fadeInUp 0.6s ease 0.6s forwards;
    opacity: 0;
}
.hero-image {
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* H. 波形セクション区切り */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-content {
    flex: 1;
}
.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}
.badge {
    background: var(--bg-sec);
    color: var(--text);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 16px;
}
h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text);
}
h1 .highlight {
    color: var(--accent);
    position: relative;
}
h1 .highlight::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--bg-sec);
    z-index: -1;
}
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 0 #e05a40;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 20px;
}
.btn-primary:hover {
    transform: translateY(2px) scale(1.02);
    box-shadow: 0 2px 0 #e05a40;
}
.btn-primary:active {
    transform: translateY(4px) scale(0.98);
    box-shadow: none;
}
.platform-note {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.7;
    margin-top: 16px;
}

/* スマホ枠のCSS再現 */
.phone-frame {
    width: 280px;
    position: relative;
    z-index: 2;
}
.phone-frame img {
    width: 100%;
    display: block;
    border-radius: 40px;
}
/* 背景の装飾 */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
}
.deco-1 {
    width: 300px;
    height: 300px;
    background: var(--bg-sec);
    top: -20px;
    right: -20px;
    opacity: 0.5;
}
/* 浮遊する装飾要素 */
.floating-deco {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}
.floating-deco-1 {
    width: 20px;
    height: 20px;
    background: var(--accent);
    top: 20%;
    left: -30px;
    opacity: 0.6;
    animation-delay: 0s;
}
.floating-deco-2 {
    width: 12px;
    height: 12px;
    background: var(--gold);
    top: 60%;
    right: -20px;
    opacity: 0.8;
    animation-delay: 1s;
}
.floating-deco-3 {
    width: 16px;
    height: 16px;
    background: var(--bg-sec);
    bottom: 10%;
    left: 10px;
    opacity: 0.7;
    animation-delay: 2s;
}
.floating-deco-4 {
    width: 8px;
    height: 8px;
    background: var(--accent);
    top: 10%;
    right: 20%;
    opacity: 0.5;
    animation-delay: 0.5s;
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Features */
.features {
    background: #fff;
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.section-title::after {
    content: "";
    display: block;
    height: 6px;
    width: 100%;
    background: rgba(226, 194, 93, 0.4); /* Gold marker */
    position: absolute;
    bottom: 4px;
    z-index: -1;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.feature-card {
    text-align: center;
    padding: 30px;
    border: 2px solid var(--bg-main);
    border-radius: 16px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
    opacity: 0;
    transform: translateY(30px);
}
.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(55, 55, 73, 0.1);
}
.feature-card.visible:hover {
    transform: translateY(-8px);
}
.icon-box {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--accent);
}

/* Content Pages (Privacy, Terms, Support) */
.content-section {
    background: #fff;
    padding: 60px 0 80px;
    min-height: calc(100vh - 200px);
}
.page-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.page-title::after {
    content: "";
    display: block;
    height: 6px;
    width: 100%;
    background: rgba(226, 194, 93, 0.4);
    position: absolute;
    bottom: 4px;
    z-index: -1;
}
.content-body {
    max-width: 800px;
    margin: 0 auto;
}
.content-body .intro-text {
    font-size: 1rem;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-main);
    border-radius: 12px;
}
.content-body h2 {
    font-size: 1.3rem;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-sec);
    color: var(--text);
}
.content-body h3 {
    font-size: 1.1rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text);
}
.content-body h4 {
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--accent);
}
.content-body p {
    margin-bottom: 16px;
    line-height: 1.8;
}
.content-body ul,
.content-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.content-body li {
    margin-bottom: 8px;
    line-height: 1.7;
}
.content-body a {
    color: var(--accent);
    text-decoration: underline;
}
.content-body a:hover {
    color: var(--accent-hover);
}
.content-body .last-updated {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: #888;
    text-align: right;
}

/* Support Page */
.support-info {
    margin-bottom: 48px;
}
.faq-list {
    margin-top: 16px;
}
.faq-item {
    background: var(--bg-main);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    color: var(--accent);
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    content: "−";
}
.faq-item p {
    padding: 0 20px 16px;
    margin: 0;
    color: #666;
}
.google-form-container {
    margin: 24px 0 48px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
}
.google-form-container iframe {
    border-radius: 8px;
}
.form-placeholder {
    text-align: center;
    color: #888;
    padding: 40px 0;
}
.contact-alternative {
    background: var(--bg-sec);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
}
.contact-alternative h2 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}
.contact-email {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-email i {
    color: var(--accent);
}

/* Language Selector */
.lang-selector {
    position: relative;
    display: inline-block;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.lang-btn:hover {
    background: #fff;
    border-color: var(--accent);
}
.lang-btn i {
    font-size: 1rem;
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    overflow: hidden;
}
.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.lang-dropdown a:hover {
    background: var(--bg-main);
}
.lang-dropdown a.active {
    background: var(--bg-sec);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--text);
    color: #fff;
    padding: 40px 0;
    text-align: center;
}
.footer-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    opacity: 0.8;
}

/* SP only (PC版では非表示) */
.sp-only {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
    .nav-hide-mobile {
        display: none;
    }
    .nav ul {
        gap: 8px;
    }
    .btn-nav {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    h1 {
        font-size: 2rem;
    }
    /* 言語ボタン：スマホではアイコンのみ */
    .lang-text {
        display: none;
    }
    .lang-btn {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}
