@charset "UTF-8";

/* ==========================================================================
   Variables & Theme
   ========================================================================== */
:root {
    /* Brand Colors */
    --primary-color: #F8B400;       /* コトメモ イエロー */
    --primary-dark: #D69600;        /* ホバー用 */
    --primary-light: #FFF8E1;       /* 背景用など */
    
    --secondary-color: #4285F4;     /* テックブルー */
    --accent-color: #FF7043;        /* 注目・バッジ */
    
    /* Text Colors */
    --text-main: #2C3E50;           /* メイン黒 */
    --text-body: #546E7A;           /* 本文グレー */
    --text-light: #90A4AE;          /* 薄いグレー */
    --white: #FFFFFF;

    /* Backgrounds */
    --bg-body: #FAFAFA;
    --bg-feature: #F4F8FB;
    
    /* UI Elements */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 30px -10px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px -10px rgba(0,0,0,0.12);
    --shadow-float: 0 15px 35px rgba(0,0,0,0.1);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    
    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container-width: 1100px;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.4;
    font-weight: 700;
}

p {
    margin: 0 0 1.5em;
    color: var(--text-body);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Utility for Responsive Line Breaks */
@media (max-width: 768px) {
    .pc-br { display: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.header-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    height: 70px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a:not(.btn-header-dl) {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-body);
}

.header-nav a:not(.btn-header-dl):hover {
    color: var(--primary-color);
}

.btn-header-dl {
    background-color: var(--text-main); /* ヘッダー内はあえて黒で締める */
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-header-dl:hover {
    background-color: #000;
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 80px 0 100px;
    background: radial-gradient(circle at 100% 0%, #FFFDF5 0%, #FFFFFF 50%, #F4F9FF 100%);
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    max-width: 540px;
}

/* Release Badge */
.release-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid #E0E0E0;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-body);
    box-shadow: var(--shadow-sm);
}

.badge-icon {
    font-size: 1.1em;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.highlight-text {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: rgba(248, 180, 0, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Hero Visual with Floating Cards */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    z-index: 1;
}

.app-screen-img {
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
    border: 8px solid var(--white);
    max-width: 100%;
    height: auto;
}

.floating-card {
    position: absolute;
    background: var(--white);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    white-space: nowrap;
}

.card-1 {
    top: 20%;
    left: -40px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 25%;
    right: -30px;
    animation-delay: 3s;
}

.card-2 .icon {
    font-size: 1.4em;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   Problem Section
   ========================================================================== */
.problem-section {
    background-color: var(--white);
    padding: 100px 0 80px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    display: block;
    text-align: center;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 60px;
}

.problem-item {
    background: var(--bg-body);
    padding: 40px 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.problem-item:hover {
    transform: translateY(-5px);
}

.problem-emoji {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.problem-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.solution-bridge {
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.arrow-down {
    margin-top: 10px;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
    background-color: var(--bg-feature);
    padding: 100px 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-tag {
    display: inline-block;
    background-color: #E3F2FD;
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.feature-text p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-body);
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-width: 320px; /* アプリ画面サイズ感調整 */
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    transition: transform 0.4s ease;
}

.feature-image img:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
    background-color: var(--white);
    padding: 100px 0;
}

.pricing-switch-note {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-body);
    font-size: 0.95rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: flex-start; /* カードの高さをコンテンツに合わせる */
}

.pricing-card {
    background: var(--white);
    border: 1px solid #EAEAEA;
    border-radius: var(--radius-md);
    padding: 40px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.pricing-card.recommended {
    background: #FFFBF0; /* 薄いイエロー背景 */
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: var(--shadow-md);
}

.badge-recommended {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.pricing-header h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.price-box {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: var(--text-main);
}

.currency {
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 4px;
}

.price-box {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.period {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 4px;
}

.plan-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 10px;
    margin-bottom: 0;
}

.pricing-features li {
    font-size: 0.95rem;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.pricing-features .check {
    color: var(--primary-color);
    font-weight: bold;
}

/* 修正点: line-throughを削除し、単にグレーアウトにする */
.pricing-features .disabled {
    color: #BBB;
    /* text-decoration: line-through; 削除 */
}
.pricing-features .disabled span {
    color: #BBB;
    text-decoration: none;
}

/* ==========================================================================
   FAQ Section (Accordion)
   ========================================================================== */
.faq-section {
    background-color: var(--bg-body);
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 24px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    list-style: none; /* デフォルトの三角を消す */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-body);
    line-height: 1.8;
    font-size: 0.95rem;
    border-top: 1px solid transparent;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    background-color: var(--primary-color);
    padding: 100px 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: #FFF; /* 明示的に白 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    margin-bottom: 48px;
}

.store-badge-link {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-badge-link:hover {
    transform: scale(1.05) translateY(-5px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--white);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid #EEE;
}

.footer-links {
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 15px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-content { max-width: 100%; margin: 0 auto; }
    .hero-visual { justify-content: center; }
    .floating-card { display: none; /* スマホではカードを消してスッキリさせる */ }
    
    .problem-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 40px; }
    
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .feature-tag { margin: 0 auto 16px; }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .pricing-card.recommended { transform: scale(1); }
}

@media (max-width: 768px) {
    .header-inner { padding: 0 20px; }
    .header-nav { display: none; } /* ハンバーガーメニュー未実装時は非表示推奨 */
    .mobile-menu-btn { display: flex; } /* 実装する場合はここを使用 */
    
    /* シンプルにDLボタンだけ表示するパターン */
    .header-nav:has(.btn-header-dl) {
        display: flex;
    }
    .header-nav a:not(.btn-header-dl) {
        display: none;
    }
    
    .hero h1 { font-size: 2rem; }
    .hero { padding: 40px 0 60px; }
    
    .cta-section h2 { font-size: 1.8rem; }
}