/* ============================================================
   SHU — Indie Developer Portfolio
   Mobile-first, minimal, premium Japanese aesthetic
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
    --bg: linear-gradient(135deg, #fff1e6 0%, #ffd8b5 100%);
    --bg-static: #fff1e6;
    --surface: #fffaf5;
    --text: #3a2a20;
    --text-sub: #5c4d44;
    --text-light: #8c7e75;
    --accent: #ff7a00;
    --accent-light: #fff0e0;
    --border: #f5e6d8;
    --shadow: 0 12px 30px rgba(255, 140, 0, 0.12);
    --shadow-md: 0 16px 40px rgba(255, 120, 0, 0.15);
    --radius: 20px;
    --radius-sm: 10px;
    --container: 560px;
    --font-jp: 'Zen Kaku Gothic New', sans-serif;
    --font-en: 'Inter', sans-serif;
}

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

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
    min-height: 100%;
}

body {
    font-family: var(--font-jp);
    background: var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.8;
    letter-spacing: 0.03em;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Section Labels ---- */
.section-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    padding: 4px 12px;
    background: var(--accent-light);
    border: 1px solid rgba(255, 122, 0, 0.1);
    border-radius: 20px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    color: var(--text);
}

.section-subtitle {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--text-sub);
    letter-spacing: 0.08em;
    margin-bottom: 40px;
}

/* Featured App Side-by-Side Header */
.app-header-flex {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}

.app-header-text {
    flex: 1;
}

.shukketsu-lp-img {
    width: 100%;
    max-width: 180px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

@media (min-width: 768px) {
    .app-header-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
}

.app-header-text .section-subtitle {
    margin-bottom: 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 14px 24px;
    font-family: var(--font-jp);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.18s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    width: 100%;
}

.btn-primary:hover {
    background: #ff8c1a;
    transform: translateY(-1px);
}

.btn-primary:active {
    background: #e66e00;
    transform: translateY(0) scale(0.98);
}

.btn-ghost {
    background: transparent;
    color: var(--text-sub);
    border: 1.5px solid var(--border);
    width: 100%;
    cursor: default;
    opacity: 0.6;
}

.btn-full {
    width: 100%;
}

/* ---- Fade-in Animation ---- */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
    padding: 48px 0 32px;
    text-align: center;
}

.hero-profile {
    margin-bottom: 14px;
    position: relative;
    padding-top: 16px;
}

.hero-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1.5px;
    background: var(--text-light);
    opacity: 0.5;
}

.profile-title-jp {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-sub);
    margin-bottom: 2px;
}

.profile-title-en {
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.7;
}

.hero-title {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 24px;
}

.tagline-en {
    display: inline-block;
    text-align: center;
    margin-top: 20px;
    padding: 16px 24px;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1.2px;
    color: var(--text-sub);
    font-style: italic;
    border-top: 1px solid rgba(58, 42, 32, 0.2);
    border-bottom: 1px solid rgba(58, 42, 32, 0.2);
}

.hero .tagline-en {
    display: block;
    text-align: center;
    max-width: 480px;
    margin: 32px auto 0;
    padding: 20px 0 0;
    border: none;
    position: relative;
}

.hero .tagline-en::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--text-light);
    opacity: 0.3;
}

.hero-author {
    font-family: var(--font-en);
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 0.08em;
}

/* ============================================================
   2. CREATOR
   ============================================================ */
.creator {
    padding: 32px 0 48px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.creator-avatar {
    width: 64px;
    height: 64px;
    background-image: url('MyIcon.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 1px solid var(--border);
}

.creator-title {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--text-sub);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.creator-bio {
    max-width: 580px;
    margin: 0 auto;
    padding: 0 16px;
    color: var(--text-sub);
    text-align: center;
}

.creator-bio p {
    font-size: 0.9rem;
    line-height: 1.9;
    margin-bottom: 1.2em;
    word-break: break-all;
    text-wrap: balance;
}

.creator-bio .bio-footer {
    margin-top: 1.5em;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
}

@media (max-width: 480px) {
    .creator-bio {
        padding: 0 8px;
    }

    .creator-bio p {
        font-size: 0.85rem;
        line-height: 1.8;
    }

    .hero .tagline-en {
        font-size: 11px;
        letter-spacing: 0.1em;
    }
}

/* ============================================================
   3. APPS
   ============================================================ */
.apps {
    padding: 32px 0 48px;
}

.apps-title {
    text-align: center;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 12px;
}

.apps-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1.5px;
    background: var(--accent);
    opacity: 0.6;
}

.products-grid {
    display: grid;
    gap: 16px;
}

/* App Card */
.app-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.app-card.featured {
    box-shadow: var(--shadow-md);
    border: 1px solid var(--accent-light);
}

.app-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.app-card-body {
    flex: 1;
}

.app-name {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.app-desc {
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.6;
}

/* Status Badges — legacy (badge-*) */
.badge {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}

.badge-new {
    background: var(--accent);
    color: #fff;
}

.badge-planned {
    background: var(--accent-light);
    color: var(--accent);
}

.badge-wip {
    background: #fff8e6;
    color: #8a6200;
}

.badge-idea {
    background: #f0f0f0;
    color: #555;
}

/* Status Badges — unified class-switch system (.status .dev / .beta etc.) */
.status {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
}

/* .status.new — featured / latest */
.status.new {
    background: var(--accent);
    color: #fff;
}

/* .status.active — platform is live (Consolidated to Theme Orange) */
.status.active {
    background: var(--accent);
    color: #ffffff;
}

/* Specific platform hints (subtle border/text tweak only if needed, but per request keeping it simple) */
.status.active[data-key="web"],
.status.active[data-key="ios"],
.status.active[data-key="android"] {
    background: var(--accent);
    color: #ffffff;
}

/* Fallback for .status.active if data-key is missing */
.status.active:not([data-key]) {
    background: var(--accent);
    color: #ffffff;
}

/* .status.inactive — platform not yet live */
.status.inactive {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-light);
    opacity: 0.6;
}

/* .status.planned — iOS申請予定 */
.status.planned {
    background: var(--accent-light);
    color: var(--accent);
}

/* .status.dev — 開発中 (Yellow/Amber) */
.status.dev {
    background: #fff8e6;
    color: #8a6200;
}

/* .status.beta — βテスト中 (Greenish) */
.status.beta {
    background: #edf7ed;
    color: #2e6b2e;
}

/* .status.released — 公開中 (Orange/Released) */
.status.released {
    background: #fff7ed;
    color: #c2410c;
}

/* Reset <button> to look like <span> when used as a status tag */
button.status {
    border: none;
    cursor: pointer;
    font-family: var(--font-jp);
    transition: all 0.2s ease;
}

button.status:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

button.status:active {
    transform: translateY(0) scale(0.96);
}

.app-card-error {
    border: 1px solid rgba(0, 0, 0, 0.06);
}


.features-grid {
    display: flex;
    gap: 16px;
    align-items: stretch;
    justify-content: space-between;
    flex-wrap: nowrap;
    margin-top: 18px;
}

.feature-card {
    flex: 1 1 0;
    min-width: 0;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    text-align: center;
}

.feature-icon {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.78rem;
    color: var(--text-sub);
    line-height: 1.5;
}

/* Media */
.media-block {
    margin-bottom: 32px;
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.video-wrap {
    width: 55%;
    margin: 0 auto;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.78rem;
    text-align: center;
    line-height: 1.6;
}

body {
    font-family: var(--font-jp);
    background: var(--bg);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.85;
    letter-spacing: 0.04em;
    -webkit-font-smoothing: antialiased;
}

/* Testimonials */
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
    text-align: left;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.4);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.6);
}

.testimonial-text {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 12px;
    position: relative;
}

.testimonial-info {
    font-size: 0.78rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ============================================================
   5. CONTACT
   ============================================================ */
.contact {
    padding: 48px 0;
    border-top: 1px solid var(--border);
}

.contact .section-title {
    margin-bottom: 12px;
}

.contact-intro {
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.85;
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-sub);
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: var(--font-jp);
    font-size: 0.95rem;
    color: var(--text);
    appearance: none;
    transition: all 0.2s ease;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================================
   6. FOOTER
   ============================================================ */
.site-footer {
    padding: 32px 0 40px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-copy {
    font-family: var(--font-en);
    font-size: 0.72rem;
    color: var(--text-light);
    letter-spacing: 0.06em;
}

/* ============================================================
   RESPONSIVE — Desktop
   ============================================================ */
@media (min-width: 640px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .features-grid {
        gap: 16px;
    }

    .feature-card {
        padding: 24px 16px;
    }
}

@media (max-width: 639px) {
    .features-grid {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================================
   DETAIL PAGE — Nav + App Hero
   ============================================================ */
.page-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 245, 235, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.page-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.nav-left,
.nav-right {
    flex: 0 0 100px;
    display: flex;
    align-items: center;
}

.nav-right {
    justify-content: flex-end;
}

.nav-back {
    font-family: var(--font-en);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.04em;
    transition: opacity 0.15s;
    white-space: nowrap;
}

.nav-back:hover {
    opacity: 0.7;
}

.nav-title {
    flex: 1;
    text-align: center;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text);
}

.app-hero {
    padding: 48px 0 40px;
    border-bottom: 1px solid var(--border);
}

.app-hero .app-header-flex {
    align-items: center;
}

.app-hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.app-hero-sub {
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--text-sub);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.app-hero-desc {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.75;
}

.app-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.app-section:last-of-type {
    border-bottom: none;
}

/* Roadmap Text Refinement */
.roadmap-text {
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.8 !important;
    color: var(--text-sub);
}

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