/* ============================================================
   home.css — 総合ページ (スタジオハブ) 専用スタイル
   ============================================================ */

/* ---------- Hero ---------- */

.home-hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: 80px;
}

.home-hero h1 {
    /* 上限72pxだと1440pxで1行目「習慣は、意志ではなく」(実測734px) が
       hero-copy幅537.6pxに収まらず「では/なく」で割れる。
       52pxでほぼ幅ぴったり(534px)なので余裕をみて50px上限。
       下限も36px→30pxにして375pxで1行に収める */
    font-size: clamp(30px, 6.5vw, 50px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.02em;
    margin-bottom: 28px;
}

/* 320px級の狭幅では30pxでも入らないためもう一段下げる */
@media (max-width: 360px) {
    .home-hero h1 {
        font-size: 26px;
    }
}

.home-hero .lead {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-sub);
    max-width: 560px;
    margin-bottom: 44px;
}

.home-hero .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
    width: 100%;
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    .home-hero {
        padding-top: 120px;
    }
}

/* ---------- 軌道グラフィック ---------- */

.orbit-wrap {
    display: flex;
    justify-content: center;
}

.orbit {
    position: relative;
    width: min(440px, 82vw);
    aspect-ratio: 1 / 1;
}

.orbit .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(28, 229, 255, 0.22);
}

.orbit .r1 {
    inset: 0;
    animation: orbit-spin 70s linear infinite;
}

.orbit .r2 {
    inset: 16%;
    border-color: rgba(75, 255, 180, 0.18);
    animation: orbit-spin 50s linear infinite reverse;
}

.orbit .r3 {
    inset: 32%;
    border-style: solid;
    border-color: rgba(28, 229, 255, 0.10);
    box-shadow: inset 0 0 70px rgba(28, 229, 255, 0.07);
}

@keyframes orbit-spin {
    to { transform: rotate(360deg); }
}

.orbit-core {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orbit-core span {
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 68px);
    font-weight: 700;
    background: linear-gradient(100deg, #1CE5FF, #4BFFB4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 0 32px rgba(28, 229, 255, 0.45));
}

.sat {
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 18, 32, 0.92);
    border: 1px dashed rgba(245, 247, 255, 0.22);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: sat-float 6s ease-in-out infinite;
}

.sat img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.sat.s1 {
    top: 1%;
    left: 50%;
    margin-left: -29px;
    border: 1px solid rgba(255, 210, 122, 0.45);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 210, 122, 0.25);
}

.sat.s2 {
    left: 3%;
    bottom: 18%;
    animation-delay: 2s;
}

.sat.s3 {
    right: 1%;
    top: 34%;
    animation-delay: 4s;
}

@keyframes sat-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
    .orbit .ring,
    .sat,
    .marquee-track {
        animation: none;
    }
}

/* ---------- マーキー ---------- */

.marquee {
    overflow: hidden;
    border-top: 1px solid rgba(28, 229, 255, 0.10);
    border-bottom: 1px solid rgba(28, 229, 255, 0.10);
    background: rgba(28, 229, 255, 0.02);
    padding: 14px 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 36s linear infinite;
}

.marquee-track span {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.3em;
    white-space: nowrap;
    color: var(--text-faint);
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ---------- アプリ一覧 ---------- */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 24px;
    margin-top: 56px;
}

.app-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 340px;
    position: relative;
    overflow: hidden;
}

.app-card.featured {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 48px;
    min-height: 320px;
    background:
        radial-gradient(ellipse 50% 80% at 85% 50%, rgba(28, 229, 255, 0.08), transparent 70%),
        var(--panel);
}

@media (max-width: 820px) {
    .app-card.featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
}

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

/* 実アプリアイコン (ios/FocusFlow/Images.xcassets/AppIcon から複製) */
.app-icon {
    width: 76px;
    height: 76px;
    border-radius: 18px;
    object-fit: cover;
    margin-bottom: 20px;
    border: 1px solid rgba(28, 229, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 24px rgba(28, 229, 255, 0.10);
}

.app-card h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.app-card h3 .accent {
    color: var(--primary);
}

.app-card .app-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 16px;
}

.app-card p {
    color: var(--text-sub);
    font-size: 14.5px;
    margin-bottom: 24px;
}

.app-card .app-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.chip {
    font-size: 11.5px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--panel-border);
    color: var(--text-sub);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.chip.hot {
    color: var(--success);
    border-color: rgba(75, 255, 180, 0.35);
}

/* 開発中カード */
.app-card.soon {
    justify-content: center;
    align-items: center;
    text-align: center;
    border-style: dashed;
    border-color: rgba(245, 247, 255, 0.10);
    background: rgba(255, 255, 255, 0.015);
}

.app-card.soon:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(28, 229, 255, 0.2);
}

.app-card.soon .q {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--text-faint);
    margin-bottom: 12px;
}

.app-card.soon .label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* featured カード内のミニプレビュー (端末風) */
.mini-preview {
    width: 220px;
    flex-shrink: 0;
    border-radius: 28px;
    border: 1px solid rgba(28, 229, 255, 0.22);
    background: linear-gradient(170deg, #0A1322, #060A12);
    padding: 22px 18px 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(28, 229, 255, 0.07);
    text-align: center;
}

.mini-preview .mp-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    margin: 6px auto 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 210, 122, 0.18);
}

.mini-preview .mp-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 8px;
}

.mini-preview .mp-time {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    text-shadow: var(--glow-cyan);
    margin-bottom: 6px;
}

.mini-preview .mp-sub {
    font-size: 10.5px;
    color: var(--text-faint);
    margin-bottom: 16px;
}

.mini-preview .mp-bar {
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.mini-preview .mp-bar i {
    display: block;
    height: 100%;
    width: 68%;
    border-radius: 4px;
    background: linear-gradient(90deg, #1CE5FF, #4BFFB4);
    box-shadow: var(--glow-cyan);
}

@media (max-width: 820px) {
    .mini-preview {
        align-self: center;
    }
}

/* ---------- フィロソフィー ---------- */

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 56px;
}

.philosophy-grid .card {
    padding: 36px 30px;
}

.philosophy-grid h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.philosophy-grid p {
    font-size: 14px;
    color: var(--text-sub);
}

/* ---------- コンタクト ---------- */

.contact-box {
    text-align: center;
    padding: 72px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--panel-border);
    background:
        radial-gradient(ellipse 60% 100% at 50% 0%, rgba(28, 229, 255, 0.07), transparent 70%),
        var(--panel);
}

.contact-box h2 {
    font-size: clamp(24px, 3.5vw, 34px);
    margin-bottom: 14px;
}

.contact-box p {
    color: var(--text-sub);
    margin-bottom: 32px;
    font-size: 15px;
}
