:root {
    /* あたたかい黄〜オレンジ系に寄せたカラーパレット */
    --bg: #fff7e0;
    --bg-soft: #fff2d0;
    --sidebar: #ffe3b3;
    --accent: #ff9e80;
    --accent-soft: #ffe3c4;
    --text-main: #40302a;
    --text-muted: #7b5b4a;
    --card-bg: #ffffff;
    --border-subtle: #ffe0a0;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 40px rgba(255, 158, 128, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Noto Sans JP", sans-serif;
    background: var(--bg);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}


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

/* ====== シェルレイアウト ====== */

.app-root {
    min-height: 100vh;
    display: flex;
    background: radial-gradient(circle at top left, #fffdf8, var(--bg) 50%);
}

.app-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-content {
    flex: 1;
    padding: 24px 32px;
}

/* ====== 左サイドナビ（現在は非表示だがスタイルは残しておく） ====== */

.side-nav {
    width: 72px;
    background: var(--sidebar);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    box-shadow: 2px 0 8px rgba(76, 41, 112, 0.12);
}

.side-nav__logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, #b38dff, #f9f5ff);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: 0 10px 22px rgba(96, 55, 150, 0.35);
}

.side-nav__menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-nav__item {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fdfbff;
    text-decoration: none;
    font-size: 11px;
    opacity: 0.8;
    transition: background 0.2s ease, opacity 0.2s ease, transform 0.1s ease;
}

.side-nav__item:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.side-nav__item--active {
    background: var(--accent);
    opacity: 1;
}

.side-nav__icon {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.side-nav__label {
    font-size: 10px;
}

/* ====== ヘッダー ====== */

.app-header {
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 12px rgba(134, 93, 186, 0.15);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.app-header__left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.app-header__brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-header__logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(134, 93, 186, 0.35);
}

.app-header__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.app-header__tabs {
    display: flex;
    gap: 8px;
}

.app-header__tab {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #8a5b3e;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.app-header__tab:hover {
    background: #fff1e5;
    border-color: #ffcc99;
    color: #7a4c33;
}

.app-header__tab--active {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.app-header__tab--active:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.app-header__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-header__promo {
    min-width: 140px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--text-muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ====== ホームコンテンツ ====== */

.home-hero {
    max-width: 960px;
    margin: 24px auto 0;
    padding: 0 16px 72px;
}

.home-copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.store-button {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    cursor: not-allowed;
    opacity: 0.85;
    box-shadow: 0 2px 8px rgba(76, 41, 112, 0.1);
    color: #ffffff;
}

.store-button--google {
    background: #1d72e8;
}

.store-button--apple {
    background: #222222;
}

.store-button__icon {
    width: 24px;
    height: 24px;
    background: #e0e0e0;
    border-radius: 6px;
}

.store-button__badge {
    font-size: 12px;
    margin-left: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 7px;
}

.home-top-visual {
    width: 90%;
    margin: 16px auto 20px;
}

.home-top-image {
    width: 100%;
    max-width: 420px;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(96, 72, 136, 0.28);
}

.home-section {
    margin-top: 56px;
}

.home-section-title {
    font-size: 22px;
    margin: 1.4em 0;
    padding: 0.2em 0.4em 0.2em 1.2em;
    border: 2px solid var(--accent);
    box-shadow: inset 0.9em 0 var(--accent-soft);
    border-radius: 6px;
    text-align: center;
}

.home-section-subtitle {
    font-size: 18px;
    color: #000;
    margin: 20px 0 16px;
    padding: 0;
    display: inline-block;
    padding-bottom: 3px;
    position: relative;
    width: 50%;
    border-bottom: 3px solid orange;
    z-index: 0;
}

.home-section-subtitle::before {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    background: skyblue;
    width: 50px;
    height: 3px;
    display: block;
    z-index: 1;
}

.home-section-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    font-size: 16px;
    color: var(--text-muted);
}
.home-section-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
}

.home-section-list li strong {
    color: var(--text-main);
    margin-right: 4px;
}

/* ====== 機能紹介：横スクロールカード ====== */

.feature-carousel-wrapper {
    position: relative;
    margin-top: 12px;
}

.feature-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 8px;
}

.feature-carousel::-webkit-scrollbar {
    height: 4px;
}

.feature-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.feature-carousel::-webkit-scrollbar-thumb {
    background: rgba(122, 106, 145, 0.35);
    border-radius: 999px;
}

.feature-card {
    flex: 0 0 90%;
    max-width: 90%;
    margin-inline: auto;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.feature-card-title {
    align-self: flex-start;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px 10px 16px 16px;
    background: #fef3c7;
    color: #92400e;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(180, 83, 9, 0.25);
    margin-bottom: 10px;
    transform: rotate(-1.5deg);
}

.feature-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    background: radial-gradient(circle at top left, #fff4d7, #ffedd5 55%, #fff7e0 100%);
    border: 1px solid var(--border-subtle);
    margin-bottom: 8px;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    display: block;
}

.feature-card-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.7;
}

.feature-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-muted);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.feature-carousel-arrow--left {
    left: -6px;
}

.feature-carousel-arrow--right {
    right: -6px;
}
/* タブレット以上：横スクロール帯ではなくカードをグリッドで並べる */
@media (min-width: 720px) {
    .feature-carousel {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        padding: 8px 0 0;
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .feature-card {
        flex: initial;
        max-width: none;
        margin-inline: 0;
    }
}

/* PC：3列グリッドで一画面に3枚見せる */
@media (min-width: 1024px) {
    .home-hero {
        padding: 0 32px 0;
    }

    .feature-carousel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1100px;
        margin: 0 auto;
    }

    .feature-carousel-arrow--left {
        left: -12px;
    }

    .feature-carousel-arrow--right {
        right: -12px;
    }
}

@media (max-width: 768px) {
    .home-hero {
        min-height: 80vh;
    }
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 11px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 11px;
}

.pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #16a34a);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.home-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.02em;
    text-align: center;
}

.home-title span {
    background: linear-gradient(120deg, #b38dff, #ec4899);
    -webkit-background-clip: text;
    color: transparent;
}

.home-title-main {
    display: block;
    font-size: 36px;
}

.home-title-sub {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    font-weight: 500;
    color: var(--text-muted);
}

.home-hero-lead {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.8;
    text-align: center;
    color: var(--text-muted);
}

.home-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.home-list {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    font-size: 13px;
    color: #5b4a7c;
}

.home-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-list-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(179, 141, 255, 0.12);
    border: 1px solid rgba(179, 141, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--accent);
}

.home-cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 4px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid rgba(179, 141, 255, 0.9);
    background: linear-gradient(130deg, #b38dff, #f973b6);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 12px 28px rgba(179, 141, 255, 0.45);
    cursor: pointer;
}

.btn-primary small {
    font-size: 11px;
    opacity: 0.9;
}

.home-note {
    font-size: 11px;
    color: var(--text-muted);
}

.home-note strong {
    color: var(--text-main);
}

.home-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(122, 106, 145, 0.9);
}

.home-card-preview {
    border-radius: 22px;
    background: radial-gradient(circle at top left, #ffffff, #eadcff 65%);
    border: 1px solid var(--border-subtle);
    padding: 16px;
    box-shadow: var(--shadow-soft);
}

.home-card-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.home-card-body {
    border-radius: 16px;
    background: #f9f5ff;
    border: 1px solid var(--border-subtle);
    padding: 12px;
}

.home-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

.home-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    font-size: 10px;
}

.home-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.home-footnote {
    margin-top: 10px;
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 6px;
}

.home-footnote strong {
    color: var(--text-main);
}

/* ====== 検索ページのプレースホルダ ====== */

.search-page {
    max-width: 720px;
    margin: 0 auto;
}

.search-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 20px 18px 18px;
    box-shadow: 0 8px 24px rgba(126, 96, 175, 0.12);
    border: 1px solid var(--border-subtle);
}

.search-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.search-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ====== フッター ====== */

.footer {
    padding: 18px 32px 22px;
    border-top: 1px solid var(--border-subtle);
    background: #fdfbff;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 2px 0;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* ====== レスポンシブ ====== */

@media (max-width: 880px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-card-preview {
        order: -1;
    }
}

@media (max-width: 720px) {
    .app-root {
        flex-direction: column;
    }

    .side-nav {
        width: 100%;
        height: 56px;
        flex-direction: row;
        justify-content: space-between;
        padding-inline: 16px;
        box-shadow: 0 2px 10px rgba(96, 55, 150, 0.18);
    }

    .side-nav__logo {
        margin-bottom: 0;
    }

    .side-nav__menu {
        flex-direction: row;
    }

    .app-content {
        padding: 16px 18px 20px;
    }

    .app-header {
        padding-inline: 16px;
    }

    .footer {
        padding-inline: 18px;
    }
}


