/* =========================================================
   Fidii – Shared Styles (TOP & Payment)
   ---------------------------------------------------------
   - ベース／テーマ変数
   - 共通レイアウト・ユーティリティ
   - TOPページ（Hero / News / About / Products / Footer）
   - Paymentページ（Hero / Pain / Value / Features / CTA / Footer）
   ========================================================= */

/* -----------------------------
   Theme variables
----------------------------- */
:root {
    /* brand */
    --brand-1: #6a5cff;      /* violet */
    --brand-2: #00c7ff;      /* cyan  */
    --brand-3: #ff5ab3;      /* pink (accents) */

    /* ink & surfaces */
    --ink-900: #0f172a;
    --ink-800: #1f2937;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748b;
    --bg-50:  #f8fafc;
    --bg-100: #f1f5f9;

    /* layout */
    --max-w: 1100px;
    --radius: 16px;
    --radius-xl: 22px;
    --shadow-1: 0 10px 30px rgba(2, 6, 23, .10);
    --shadow-2: 0 18px 40px rgba(2, 6, 23, .14);
}

/* -----------------------------
   Base reset
----------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Arial, sans-serif;
    color: var(--ink-900);
    background: #fff;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* -----------------------------
   Common containers & text
----------------------------- */
.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: clamp(16px, 2.4vw, 28px);
}

.section { padding: clamp(48px, 8vw, 80px) 0; }

.section-title {
    margin: 0 0 20px;
    text-align: center;
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: .06em;
}

.section-title.left { text-align: left; }

.muted { color: var(--ink-700); }

.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .06s ease, box-shadow .2s ease, opacity .2s;
}

.btn.cta {
    color: #fff;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    box-shadow: 0 6px 18px rgba(41, 101, 255, .25);
    font-size: 24px;
}
.btn.cta:hover { transform: translateY(-1px); }
.btn.cta:active { transform: translateY(0); }

/* Utilities */
.soft-bg {
    background: var(--Linear, linear-gradient(240deg, rgba(98, 97, 218, 0.1) 24.2%, rgba(0, 154, 188, 0.1) 72.81%));
}
.sp-only { display: none; }
@media (max-width: 560px) { .sp-only { display: inline; } }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =========================================================
   TOP (index.html)
========================================================= */

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    height: clamp(60vh, 90vh, 800px);
    max-height: 800px;
    display: flex;
    align-items: center;
}

/* Hero for payment page - override height */
.hero:has(.hero-payment) {
    height: auto;
    min-height: 60vh;
    padding: clamp(40px, 10vw, 80px) 0;
}
.hero.container {
    height: 50vh;
}
.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__bg::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;   /* 画面より十分大きく */
    height: 300%;
    background: linear-gradient(
            240deg,
            #EC4899 24.2%,
            #6261DA 49.2%,
            #009ABC 72.81%
    );
    background-size: 200% 200%;
    transform: translate(-50%, -50%) rotate(0deg);
    transform-origin: center;
    animation: gradientDrift 9s linear infinite;
    z-index: 0;
}

@keyframes gradientDrift {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        background-position: 0% 50%;
    }
    50% {
        transform: translate(-50%, -50%) rotate(180deg);
        background-position: 100% 50%;
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        background-position: 0% 50%;
    }
}





.hero__overlay {
    position: absolute; inset: -40% -10% -20% -10%;
    /*backdrop-filter: blur(20px);*/
}
.hero__inner {
    position: relative; z-index: 1;
    display: grid; place-items: center; text-align: center; color: #fff;
    max-width: 1000px;
    width: 100%;
}
.tagline { font-weight: 700; letter-spacing: .1em; opacity: .96;
    font-size: clamp(16px, 1.8vw, 18px);
    font-feature-settings: "palt";
}
.tagline span { display: block; opacity: .92; margin-top: 1rem; font-size: 20px;}
.logo { display: inline-flex; align-items: center; gap: 18px; margin-top: 24px; }
.logo__mark { 
    width: clamp(280px, 33vw, 364px);
    max-width: 364px;
}

section {
    padding: 72px 0;
}

/* Wide screen optimizations */
@media (min-width: 1400px) {
    .hero {
        height: clamp(60vh, 70vh, 700px);
    }
    
    .hero__inner {
        max-width: 900px;
    }
    
    .tagline {
        font-size: 36px;
    }
    
    .logo__mark {
        width: 380px;
    }
}

/* News */
.news-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}
.news-item {
    display: flex; gap: 18px; align-items: center; justify-content: flex-start;
    font-size: 15px;
    width: 100%;
}
.news-date { color: var(--ink-500); letter-spacing: .02em; }
.news-link {
    color: var(--ink-900); text-decoration: none;
    border-bottom: 1px solid rgba(100,116,139,.4); padding-bottom: 2px;
}
.news-link:hover { border-color: transparent; box-shadow: inset 0 -9px 0 rgba(106,92,255,.18); }

/* About */
.about {
    background: var(--Linear, linear-gradient(240deg, rgba(236, 72, 153, 0.1) 24.2%, rgba(98, 97, 218, 0.1) 49.2%, rgba(0, 154, 188, 0.1) 72.81%));
}
.about .container { max-width: 900px; }
.about p { margin: 0 0 1.05rem; color: var(--ink-700); }

/* Products */
.products .grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2.4vw, 22px);
}
@media (max-width: 820px){ .products .grid { grid-template-columns: 1fr; } }
.card {
    background: #fff; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-1); padding: 28px;
    display: flex; gap: 18px; align-items: flex-start;
    transition: transform .12s ease, box-shadow .2s ease;
    color: inherit;
    text-decoration: none;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card .icon { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 18px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #e8eaff, #f5fdff);
}
.card h3 { margin: 0 0 .4rem; font-size: 20px; }
.card p { margin: 0; color: var(--ink-700); font-size: 15px; }

/* Footer (TOP) */
footer { background: var(--bg-100); padding: 40px 0 64px; color: var(--ink-700); }
.foot { display: grid; gap: 24px; grid-template-columns: 1.5fr 1fr; align-items: start; }
@media (max-width: 820px){ .foot { grid-template-columns: 1fr; } }
.brand-mini { font-weight: 800; color: var(--ink-900); margin: 0 0 8px; font-size: 22px; }
.address { font-size: 13px; line-height: 1.7; font-style: normal; }
.links { display: grid; gap: 6px; font-size: 14px; }
.links a { color: inherit; text-decoration: none; }
.links a:hover { color: var(--ink-900); text-decoration: underline; }

/* =========================================================
   Payment (payment.html)
========================================================= */

/* Hero (Payment) */
.site-header {
    padding: clamp(40px, 10vw, 80px) 0 clamp(40px, 10vw, 80px);
    background:
            radial-gradient(50% 40% at 20% 0%, rgba(255,255,255,.8), rgba(255,255,255,0) 70%),
            linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.site-header .lead {
    color: #333;
    font-weight: bold;
}

.hero-payment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 50vh;
    gap: clamp(24px, 4vw, 48px);
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.hero-content > div {
    display: flex;
    justify-content: center;
}

.hero-image {
    display: flex;
    justify-content: start;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
}

@media (max-width: 920px) {
    .hero-payment {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
        min-height: auto;
        max-width: 600px;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        max-width: 400px;
    }
}

@media (max-width: 560px) {
    .hero-image img {
        max-width: 320px;
    }

    
    .site-header {
        padding: clamp(20px, 5vw, 40px) 0 clamp(20px, 5vw, 40px);
    }
    
    .lead {
        font-size: 24px;
        margin: 12px 0 18px;
    }
}
.brandline { display: inline-flex; align-items: center; gap: 12px; justify-content: center; }


/* Payment page specific logo size */
.hero .logo__mark {
    width: 400px;
}
@media (max-width: 560px) {
    .hero .logo__mark {
        width: 300px;
    }
}
.brand { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: .02em; }
.brand-sub { font-weight: 900; }
.lead { margin: 18px 0 22px; font-size: 32px; font-weight: bold; }
.lead.small { margin-top: 10px; font-weight: bold; }

/* Pain points */
.pain-list {
    list-style: none; margin: 28px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.4vw, 24px);
}
@media (max-width: 880px) { .pain-list { grid-template-columns: 1fr; } }
.pain-card {
    padding: 22px; text-align: center;
}
.pain-illu { width: 200px; height: auto; margin: 0 auto; display: block; }
.pain-card h3 { margin: 10px 0 8px; font-size: 18px; }
.pain-card p { margin: 0; color: var(--ink-700); }

/* Value block */
.value {
    display: grid; grid-template-columns: 1.2fr .8fr;
    align-items: center; gap: clamp(16px, 3vw, 28px);
}
@media (max-width: 920px) { .value { grid-template-columns: 1fr; } }
.value img { width: 100%; max-width: 280px; }
@media (max-width: 560px) {
    .container.value img {
        width: 200px;
        margin: auto;
        display: block;
    }
}


/* Features */
.features {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2.4vw, 24px); margin-top: 16px;
}
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature {
    background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-1); padding: 22px;
}
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--ink-700); }

/* CTA bottom */
.cta-block { text-align: center; }

/* Footer (Payment) */
.site-footer {
    padding: 36px 0 64px;
    background:
            radial-gradient(50% 40% at 0% 0%, #eef6ff, rgba(255,255,255,0) 60%),
            #f7fbff;
    color: var(--ink-700);
}
.footer-grid {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.rease { font-weight: 800; font-size: 22px; color: var(--ink-900); margin: 0 0 8px; }
.addr { font-style: normal; font-size: 14px; line-height: 1.7; }
.footer-links { display: grid; gap: 6px; align-content: start; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--ink-900); text-decoration: underline; }
/* Callcenter specific styles */
.hero-callcenter {
    max-width: 900px;
}

.hero-image-callcenter {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-callcenter img {
    width: 300px !important;
    max-width: 300px !important;
    height: auto;
    object-fit: contain;
}

/* Callcenter hero lead text adjustment */
.hero-callcenter .hero-content .lead {
    font-size: 18px !important;
    line-height: 1.5;
}
.hero-callcenter .hero-content .lead span {
    display: block;
    margin-bottom: 1em;
}

@media (max-width: 768px) {
    .hero-callcenter .hero-content .lead {
        font-size: 18px !important;
    }
}/* 
Material Icons styles */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}
.step-bg {
    background-color: #00c7ff;
}