@charset "UTF-8";

/* ===========================
   Ref-Box Portal Styles
   =========================== */

:root {
    --brand: #0F172A;      /* Slate 900: よりプロフェッショナルで引き締まった黒寄りの色 */
    --brand-dark: #000000;
    --brand-light: #F1F5F9;
    --text: #334155;       /* Slate 700: 柔らかく視認性の高い本文色 */
    --text-sub: #64748B;
    --bg: #FAFAFA;
    --bg-card: #FFFFFF;
    --border: #E2E8F0;
    --radius: 12px;        /* 丸みを少し抑えてシャープに */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-sub);
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--brand);
}

@media (max-width: 600px) {
    .nav { display: none; }
}

/* Hero */
.hero {
    padding: 100px 24px 80px;
    text-align: center;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 24px;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: var(--brand);
    color: #FFF;
    padding: 14px 40px;
    border-radius: 8px; /* より現代的でプロフェッショナルな角丸 */
    font-weight: 500;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-primary:hover {
    background: #1E293B;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

@media (max-width: 600px) {
    .hero-title { font-size: 1.8rem; }
    .hero { padding: 50px 20px; }
}

/* Section */
.section {
    padding: 80px 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.section.bg-light {
    max-width: none;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.section-heading span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.section-desc {
    text-align: center;
    color: var(--text-sub);
    margin-bottom: 48px;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.app-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.app-card:not(.coming-soon):hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.05), 0 4px 8px -2px rgba(0, 0, 0, 0.02);
    border-color: #CBD5E1;
}

.app-card-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border);
}

.app-card-content {
    padding: 32px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-badge {
    display: inline-block;
    align-self: flex-start;
    padding: 4px 10px;
    background: #0F172A;
    color: #FFF;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.badge-gray {
    background: var(--border);
    color: var(--text-sub);
}

.app-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.app-desc {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 24px;
    flex: 1;
}

.app-link-text {
    font-weight: 500;
    color: var(--brand);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.text-gray {
    color: var(--text-sub);
}

.coming-soon {
    cursor: default;
    background: #FFFFFF;
}

.coming-soon .app-card-image {
    background: #F1F5F9;
}

/* About / Policy */
.about-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.8;
}

.about-content p, .policy-text p {
    margin-bottom: 20px;
}

.policy-text {
    font-size: 0.95rem;
    color: var(--text-sub);
    line-height: 1.8;
    background: #FFF;
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* AdContainer */
.ad-container {
    max-width: 1000px;
    margin: 40px auto;
    text-align: center;
    min-height: 90px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    font-size: 0.8rem;
    border: 1px dashed #CBD5E1;
}

.ad-container::before {
    content: 'Advertisement';
}
.ad-container ins {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Footer */
.footer {
    background: #0F172A;
    color: #F8FAFC;
    padding: 60px 24px 30px;
    text-align: center;
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-desc {
    color: #94A3B8;
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.footer-links a {
    color: #CBD5E1;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FFF;
}

.copyright {
    color: #64748B;
    font-size: 0.85rem;
    border-top: 1px solid #1E293B;
    padding-top: 24px;
}
