:root {
    --primary-color: #1b3022;
    --secondary-color: #fdf5e6;
    --accent-color: #ff8c00;
    --text-color: #1b3022;
    --bg-color: #fdf5e6;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

header {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    min-height: 80px;
}

.header-left, .header-right {
    width: 200px;
    flex-shrink: 0;
}

.header-center {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.header-right {
    display: flex;
    justify-content: flex-end;
}

.back-to-portal {
    color: var(--secondary-color) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    padding: 0.5rem 0;
}

.back-to-portal:visited,
.back-to-portal:link,
.back-to-portal:active {
    color: var(--secondary-color) !important;
    text-decoration: none !important;
}

.back-to-portal:hover {
    color: var(--accent-color) !important;
    transform: translateX(-3px);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.logo img {
    height: 48px;
    border-radius: 8px;
}

.logo span {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 900;
    letter-spacing: -0.01em;
}

.main-nav {
    display: flex;
    gap: 1.5rem;
}

.main-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.main-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/hero-bg.png') center/cover no-repeat;
    color: white;
    text-align: center;
}


.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(27, 48, 34, 0.7), rgba(27, 48, 34, 0.4));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Typography Helpers */
.text-keep {
    display: inline-block;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
}

.btn-store:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
}

.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(27, 48, 34, 0.08);
    transition: transform 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.mockup-img {
    width: 100%;
    border-radius: 12px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.use-cases {
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 6rem 2rem;
}

.use-case-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.use-case {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.use-case:nth-child(even) {
    flex-direction: row-reverse;
}

.use-case-text {
    flex: 1;
}

.use-case-visual {
    flex: 1;
}

.use-case-visual img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.use-case-text h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.use-case-text li {
    margin-bottom: 1rem;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.use-case-text li i {
    color: var(--accent-color);
}

footer {
    padding: 4rem 2rem;
    text-align: center;
    background: #111;
    color: #888;
}

footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--secondary-color);
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: #888;
}

/* Subpage (Privacy Policy) Styles */
.subpage-container {
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 2rem;
    line-height: 1.8;
}

.subpage-container h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.subpage-container h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 3.5rem;
    margin-bottom: 1rem;
    border-left: 5px solid var(--accent-color);
    padding-left: 1rem;
}

.subpage-container p, .subpage-container li {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 1.2rem;
}

.subpage-container ul, .subpage-container ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.subpage-container strong {
    color: var(--primary-color);
    font-weight: 700;
}

.subpage-container a {
    color: var(--accent-color);
    text-decoration: none;
}

.subpage-container a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .header-left, .header-right {
        width: auto;
    }
    
    .header-right {
        display: none;
    }
    
    .header-content {
        justify-content: space-between;
        padding: 0 1rem;
    }

    .use-case {
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }

    .use-case:nth-child(even) {
        flex-direction: column !important;
    }

    .use-case-text h3 {
        font-size: 1.6rem;
    }

    .use-case-text li {
        justify-content: center;
    }

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

    .features {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 600px) {
    header {
        padding: 0.5rem 0;
    }

    .header-content {
        min-height: 60px;
        gap: 0.5rem;
    }
    
    .logo img {
        height: 32px;
    }

    .logo span {
        font-size: 1.2rem;
    }

    .back-to-portal span {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 450px;
        padding: 4rem 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Modal Styles for Coming Soon */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--secondary-color);
    padding: 3rem 2rem;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 1px solid rgba(27, 48, 34, 0.1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 900;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-close-modal {
    background: var(--primary-color);
    color: white;
    padding: 1rem 3rem;
    border-radius: 50px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-close-modal:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.modal-close-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.modal-close-icon:hover {
    opacity: 1;
}
