/* Onsen Planner - Custom Design System Website
   ============================================================
   Matching the app's 情報デザイン (Japanese Information Design):
   - Solid colors (no gradients or opacity on backgrounds)
   - Black borders always
   - Squircle corners
   - Rounded typography
   - Semantic color system
*/

:root {
    /* 情報デザイン CORRECT Colors */
    /* Canvas is DARK - not cream! */
    --canvas: #000000;           /* True black for AMOLED */
    --canvas-navy: #1A1A2E;      /* Alternative warm dark */
    --white: #FFFFFF;
    --black: #000000;

    /* Semantic Colors (for zones within cards) */
    --yellow: #FFE566;
    --cyan: #A5F3FC;
    --pink: #FECDD3;
    --orange: #FED7AA;
    --green: #BBF7D0;
    --purple: #E9D5FF;
    --cream: #FEF3C7;            /* Notes zone only, not background! */
    --red: #E53935;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 20px;

    /* Radius (Squircle) */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--canvas);  /* DARK canvas - AMOLED friendly */
    color: var(--black);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* Page Container - Bento grid like Star Page */
.page {
    max-width: 420px;
    margin: 0 auto;
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Desktop: Wider with 3-column bento grid */
@media (min-width: 800px) {
    .page {
        max-width: 700px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    /* Full-width sections */
    .header-card,
    .hero-card,
    .ad-section,
    .screenshots-section,
    .cta-card,
    .footer {
        grid-column: span 3;
    }

    /* 2-column sections */
    .why-section,
    .ad-vertical {
        grid-column: span 2;
    }

    /* 1-column sections */
    .audience-card,
    .design-mention {
        grid-column: span 1;
    }

    .updates-section {
        grid-column: span 3;
    }

    .coming-section {
        grid-column: span 3;
    }
}

/* ================================
   MASCOT SVGs (JohoMascot style)
   ================================ */
.mascot-svg,
.hero-mascot-svg,
.cta-mascot-svg,
.footer-mascot-svg {
    display: block;
    flex-shrink: 0;
}

.hero-mascot-container {
    margin: 0 auto var(--space-lg);
}

.cta-mascot-container {
    margin: 0 auto var(--space-md);
}

/* ================================
   HEADER CARD
   ================================ */
.header-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--black);
    overflow: hidden;
    /* LINE-inspired: solid offset shadow */
    box-shadow: 4px 4px 0 0 var(--black);
}

.header-row {
    display: flex;
    align-items: center;
    min-height: 56px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    flex: 1;
}

.header-divider {
    width: 1.5px;
    height: 40px;
    background: var(--black);
}

.header-right {
    padding: var(--space-sm) var(--space-md);
}

.logo-text {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
}

.status-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--yellow);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--black);
}

/* ================================
   HERO CARD
   ================================ */
.hero-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 2.5px solid var(--black);
    padding: var(--space-xl);
    text-align: center;
    /* LINE-inspired: solid offset shadow */
    box-shadow: 6px 6px 0 0 var(--black);
}

.hero-title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: var(--space-xs);
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    opacity: 0.7;
    margin-bottom: var(--space-lg);
}

/* Design System Card (情報デザイン explanation) */
.design-system-card {
    background: var(--yellow-light);
    border: 1.5px solid var(--black);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    text-align: left;
}

.ds-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.ds-marker {
    font-size: 14px;
    font-weight: 900;
}

.ds-title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1.5px;
}

.ds-description {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--black);
}

.hero-description {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--black);
    opacity: 0.7;
    margin-bottom: var(--space-lg);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Pills */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.pill {
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--black);
    /* No shadow - cleaner like app */
}

.pill-yellow { background: var(--yellow); }
.pill-purple { background: var(--purple); }
.pill-green { background: var(--green); }
.pill-cyan { background: var(--cyan); }
.pill-orange { background: var(--orange); }
.pill-pink { background: var(--pink); }

/* ================================
   DESIGN PHILOSOPHY SECTION
   ================================ */
.philosophy-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--black);
    padding: var(--space-md);
    box-shadow: 4px 4px 0 0 var(--black);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.philosophy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-sm);
    background: var(--white);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1.5px solid var(--black);
}

.philosophy-icon {
    width: 28px;
    height: 28px;
    color: var(--black);
}

.philosophy-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--black);
}

.philosophy-desc {
    font-size: 10px;
    font-weight: 600;
    color: var(--black);
    opacity: 0.6;
}

/* ================================
   SECTION HEADERS
   ================================ */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.marker {
    font-size: 12px;
    color: var(--black);
}

.section-title {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--black);
}

/* ================================
   AUDIENCE CARD
   ================================ */
.audience-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--black);
    padding: var(--space-md);
    box-shadow: 4px 4px 0 0 var(--black);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.audience-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: var(--white);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1.5px solid var(--black);
}

.audience-icon {
    width: 32px;
    height: 32px;
    color: var(--black);
}

.audience-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--black);
}

/* ================================
   SCREENSHOTS BENTO
   ================================ */
.screenshots-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--black);
    padding: var(--space-md);
    box-shadow: 4px 4px 0 0 var(--black);
}

.bento {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.bento-main {
    grid-column: span 2;
}

.screenshot-card {
    background: var(--black);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    margin-bottom: var(--space-sm);
    /* LINE-inspired: colored offset shadow for visual interest */
    box-shadow: 6px 6px 0 0 var(--yellow);
}

.screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
}

.screenshot-info {
    text-align: center;
}

.screenshot-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    background: var(--black);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: var(--space-xs);
}

.screenshot-info p {
    font-size: 12px;
    font-weight: 600;
    color: var(--black);
    opacity: 0.7;
}

.bento-side {
    display: contents;
}

.screenshot-card-sm {
    background: var(--black);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    position: relative;
    /* LINE-inspired: subtle offset shadow */
    box-shadow: 4px 4px 0 0 var(--cyan);
}

.screenshot-label-sm {
    position: absolute;
    bottom: var(--space-sm);
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--white);
    color: var(--black);
    padding: 3px 8px;
    border-radius: 10px;
    border: 1px solid var(--black);
}

/* ================================
   HIGHLIGHTS GRID
   ================================ */
.highlights-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--black);
    padding: var(--space-md);
    box-shadow: 4px 4px 0 0 var(--black);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.highlight-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1.5px solid var(--black);
    box-shadow: 3px 3px 0 0 var(--black);
}

.highlight-yellow { background: var(--yellow-light); }
.highlight-pink { background: var(--pink-light); }
.highlight-green { background: var(--green-light); }
.highlight-cyan { background: var(--cyan-light); }

.highlight-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--black);
    line-height: 1;
}

.highlight-icon {
    width: 36px;
    height: 36px;
    color: var(--black);
}

.highlight-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--black);
    margin-top: var(--space-xs);
}

.highlight-desc {
    font-size: 10px;
    font-weight: 600;
    color: var(--black);
    opacity: 0.6;
}

/* ================================
   RULES CARD
   ================================ */
.rules-card {
    background: var(--black);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.rules-card .section-header {
    margin-bottom: var(--space-sm);
}

.rules-card .marker,
.rules-card .section-title {
    color: var(--white);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
}

.rule-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    padding: var(--space-sm);
}

.rule-check {
    font-size: 10px;
    opacity: 0.5;
}

/* ================================
   CTA CARD
   ================================ */
.cta-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 2.5px solid var(--black);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: 6px 6px 0 0 var(--black);
}

.cta-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: var(--space-xs);
}

.cta-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    opacity: 0.6;
    margin-bottom: var(--space-lg);
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.tech-pill {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--black);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--white);
}

.social-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--black);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.github-link {
    box-shadow: 4px 4px 0 0 var(--yellow);
}

.github-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 var(--yellow);
}

.github-link:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 0 var(--yellow);
}

.linkedin-link {
    box-shadow: 4px 4px 0 0 var(--cyan);
}

.linkedin-link:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 0 var(--cyan);
}

.linkedin-link:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 0 var(--cyan);
}

/* ================================
   WHY SECTION - 情報デザイン bento tiles with BLACK BORDERS
   ================================ */
.why-section {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

/* 情報デザイン tile: BLACK BORDER is mandatory */
.why-card {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 90px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1.5px solid var(--black);
}

.why-yellow { background: var(--yellow); }
.why-pink { background: var(--pink); }
.why-cyan { background: var(--cyan); }
.why-green { background: var(--green); }

.why-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon svg {
    width: 100%;
    height: 100%;
}

.why-quote {
    font-size: 11px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.3;
}

.why-answer {
    font-size: 10px;
    font-weight: 900;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ================================
   AUDIENCE LIST - Simple tags (no shadow)
   ================================ */
.audience-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.audience-tag {
    background: var(--white);
    border: 1.5px solid var(--black);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--black);
    /* No shadow - cleaner */
}

/* ================================
   FEATURES - 情報デザイン tiles with BLACK BORDERS
   Every element MUST have a border. No exceptions.
   ================================ */
.coming-section {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.coming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}

/* 情報デザイン tile: colored background + BLACK BORDER (mandatory) */
.coming-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--space-md) var(--space-sm);
    min-height: 90px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--black);
}

/* Tile background colors */
.coming-yellow { background: var(--yellow); }
.coming-pink { background: var(--pink); }
.coming-green { background: var(--green); }
.coming-cyan { background: var(--cyan); }
.coming-orange { background: var(--orange); }
.coming-purple { background: var(--purple); }

/* Large colored icon - 32px like app's .font(.system(size: 32, weight: .bold)) */
.coming-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-icon svg {
    width: 100%;
    height: 100%;
    /* Icons are BLACK on colored background - matches app */
    fill: var(--black);
    stroke: none;
}

/* Label below icon - matches app's .font(.system(size: 12, weight: .black, design: .rounded)) */
.coming-label {
    font-size: 10px;
    font-weight: 900;
    color: var(--black);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ================================
   AD SECTION - Clean card with image
   ================================ */
.ad-section {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.ad-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================
   DESIGN MENTION - White card (情報デザイン: all text in cards)
   ================================ */
.design-mention {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.design-mention-label {
    font-size: 16px;
    font-weight: 900;
    color: var(--black);
}

.design-mention-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.6;
    opacity: 0.7;
}

/* ================================
   UPDATES - 情報デザイン tiles with BLACK BORDERS
   ================================ */
.updates-section {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

/* 情報デザイン bento tile - Star Page style with icon zone */
.update-tile {
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--black);
    overflow: hidden;
    min-height: 100px;
}

/* Icon zone at top - strong color */
.update-icon-zone {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    min-height: 44px;
}

.update-icon-zone svg {
    width: 24px;
    height: 24px;
    fill: var(--black);
}

/* Divider between icon and text */
.update-divider {
    height: 1.5px;
    background: var(--black);
    width: 100%;
}

/* Text zone - white background */
.update-content {
    padding: var(--space-sm);
    background: var(--white);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Color classes apply to icon zone */
.update-yellow .update-icon-zone { background: var(--yellow); }
.update-cyan .update-icon-zone { background: var(--cyan); }
.update-pink .update-icon-zone { background: var(--pink); }
.update-green .update-icon-zone { background: var(--green); }
.update-orange .update-icon-zone { background: var(--orange); }
.update-purple .update-icon-zone { background: var(--purple); }

.update-date {
    font-size: 9px;
    font-weight: 900;
    color: var(--black);
    opacity: 0.5;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.5px;
}

.update-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.4;
}

/* ================================
   FOOTER - White card on dark canvas
   ================================ */
.footer {
    background: var(--white);
    border: 2px solid var(--black);
    border-radius: var(--radius-md);
    text-align: center;
    padding: var(--space-lg);
}

.footer-mascot-svg {
    margin: 0 auto var(--space-sm);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--space-sm);
}

.footer-company {
    font-size: 13px;
    font-weight: 800;
    color: var(--black);
}

.footer-tagline {
    font-size: 11px;
    font-weight: 600;
    color: var(--black);
    opacity: 0.6;
}

.footer-copyright {
    font-size: 10px;
    color: var(--black);
    opacity: 0.4;
}

/* ================================
   ANIMATIONS
   ================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-card { animation: fadeInUp 0.4s ease-out; }
.hero-card { animation: fadeInUp 0.4s ease-out 0.1s both; }
.ad-section { animation: fadeInUp 0.5s ease-out 0.15s both; }
.why-section { animation: fadeInUp 0.4s ease-out 0.2s both; }
.audience-card { animation: fadeInUp 0.4s ease-out 0.25s both; }
.screenshots-section { animation: fadeInUp 0.4s ease-out 0.3s both; }
.coming-section { animation: fadeInUp 0.4s ease-out 0.35s both; }
.design-mention { animation: fadeInUp 0.4s ease-out 0.4s both; }
.updates-section { animation: fadeInUp 0.4s ease-out 0.45s both; }
.cta-card { animation: fadeInUp 0.4s ease-out 0.5s both; }

/* ================================
   RESPONSIVE
   ================================ */

/* Small mobile */
@media (max-width: 400px) {
    .hero-title {
        font-size: 26px;
    }

    .coming-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
    .page {
        max-width: 1000px;
    }

    .updates-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .coming-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .bento {
        grid-template-columns: 1.5fr 1fr 1fr;
    }

    .bento-main {
        grid-column: span 1;
        grid-row: span 2;
    }

    .bento-side {
        display: contents;
    }

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

    .hero-description {
        max-width: 500px;
        font-size: 16px;
    }
}

/* Extra large desktop (1600px+) */
@media (min-width: 1600px) {
    .page {
        max-width: 1400px;
    }

    .updates-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .hero-card {
        padding: var(--space-xl) 60px;
    }

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

    .cta-card {
        padding: var(--space-xl) 60px;
    }

    .cta-title {
        font-size: 32px;
    }
}

/* Ultra-wide (2000px+) */
@media (min-width: 2000px) {
    .page {
        max-width: 1600px;
    }

    .updates-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}
