/*
  Clear Web Shizuoka — v5 (Neo-Pop / Z-Gen Edition)
  Target: Z-Gen, Startups, Creators
  Theme: Pale Lavender, Noise Texture, Neubrutalism (Black Border + Solid Shadow)
*/

:root {
    /* ── Core Colors ── */
    --bg-base: #D9DCEB;
    /* Pale Lavender from movel.jp */
    --bg-white: #FFFFFF;
    --bg-ivory: #FDFDF6;
    --bg-dark: #111111;

    /* ── Accent Colors ── */
    --accent-cyan: #00E676;
    /* Neon Green */
    --accent-pink: #FF2A75;
    /* Magenta */
    --accent-orange: #FF6B35;
    /* Vitamin Orange */
    --accent-yellow: #FFD600;
    /* Lemon Yellow (Marker) */

    /* ── Text & Borders ── */
    --text-main: #111111;
    --border-color: #111111;

    /* ── Typography ── */
    --ff-bubble: 'Dela Gothic One', sans-serif;
    --ff-jp: 'M PLUS Rounded 1c', sans-serif;

    /* ── Effects (Neubrutalism) ── */
    --neo-border-width: 3px;
    --neo-shadow-size: 6px;
    --neo-shadow-color: #111111;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-jp);
    background: var(--bg-base);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    font-weight: 700;
}

/* ── Noise Overlay ── */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.sp-only {
    display: none;
}

/* ── Utility Classes (Colors & Fonts) ── */
.bubble-font {
    font-family: var(--ff-bubble);
}

.text-cyan {
    color: var(--accent-cyan);
}

.text-pink {
    color: var(--accent-pink);
}

.text-orange {
    color: var(--accent-orange);
}

.text-yellow {
    color: var(--accent-yellow);
}

.text-white {
    color: var(--bg-white);
}

.bg-cyan {
    background-color: var(--accent-cyan);
}

.bg-pink {
    background-color: var(--accent-pink);
}

.bg-orange {
    background-color: var(--accent-orange);
}

.bg-yellow {
    background-color: var(--accent-yellow);
}

.bg-white {
    background-color: var(--bg-white);
}

.bg-ivory {
    background-color: var(--bg-ivory);
}

.bg-dark {
    background-color: var(--bg-dark);
}

/* ── Neubrutalism Shapes ── */
.neo-border {
    border: var(--neo-border-width) solid var(--border-color);
}

.neo-shadow {
    box-shadow: var(--neo-shadow-size) var(--neo-shadow-size) 0 var(--neo-shadow-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.neo-shadow:hover {
    transform: translate(2px, 2px);
    box-shadow: calc(var(--neo-shadow-size) - 2px) calc(var(--neo-shadow-size) - 2px) 0 var(--neo-shadow-color);
}

.neo-shadow:active {
    transform: translate(var(--neo-shadow-size), var(--neo-shadow-size));
    box-shadow: 0 0 0 var(--neo-shadow-color);
}

.neo-shadow-sm {
    box-shadow: 3px 3px 0 var(--neo-shadow-color);
}

/* ── Buttons ── */
.neo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ff-jp);
    font-weight: 900;
    font-size: 1.1rem;
    padding: 18px 48px;
    border-radius: 980px;
    cursor: pointer;
    border: var(--neo-border-width) solid var(--border-color);
    box-shadow: 4px 4px 0 var(--neo-shadow-color);
    transition: transform 0.1s, box-shadow 0.1s;
}

.neo-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--neo-shadow-color);
}

.neo-btn:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--neo-shadow-color);
}

.neo-btn-primary {
    background: var(--accent-cyan);
    color: var(--text-main);
}

.neo-btn-secondary {
    background: var(--bg-white);
    color: var(--text-main);
}

.neo-btn-sm {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 980px;
    box-shadow: 3px 3px 0 var(--neo-shadow-color);
    border: 2px solid var(--border-color);
}

/* ── Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: var(--bg-ivory);
    border-bottom: var(--neo-border-width) solid var(--border-color);
    transition: transform 0.3s;
}

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

.site-logo {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav a:not(.nav-cta) {
    font-family: var(--ff-bubble);
    font-size: 1rem;
    color: var(--text-main);
    position: relative;
}

.site-nav a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s;
}

.site-nav a:not(.nav-cta):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ── Sections ── */
.section {
    padding: 140px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
    position: relative;
}

.section-label {
    font-size: 1.2rem;
    color: var(--accent-orange);
    margin-bottom: 8px;
}

.section-heading {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.3;
}

/* ── Hand-drawn markers ── */
.yellow-marker {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.yellow-marker::before {
    content: '';
    position: absolute;
    left: -2%;
    bottom: 10%;
    width: 104%;
    height: 40%;
    background-color: var(--accent-yellow);
    z-index: -1;
    border-radius: 2px;
    transform: rotate(-1deg);
}

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    overflow: hidden;
    position: relative;
}

.bg-outline-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    width: 200%;
    text-align: center;
    z-index: 0;
    pointer-events: none;
}

.bg-outline-text span {
    font-family: var(--ff-bubble);
    font-size: clamp(8rem, 20vw, 20rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 4px rgba(17, 17, 17, 0.08);
    white-space: nowrap;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 10px 24px;
    background: var(--bg-white);
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 900;
    margin-bottom: 32px;
}

.hero-heading {
    font-size: clamp(4rem, 10vw, 7.5rem);
    line-height: 1;
    letter-spacing: 0.02em;
    margin-bottom: 16px;
    color: var(--text-main);
    text-shadow: 4px 4px 0 var(--border-color);
}

.outline-glow {
    color: var(--accent-pink);
    -webkit-text-stroke: 2px var(--border-color);
    text-shadow: 6px 6px 0 var(--border-color);
}

.jp-sub-box {
    margin: 24px 0 40px;
}

.jp-sub {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 900;
    display: inline-block;
    position: relative;
    line-height: 1.4;
}

.sparkle {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 2rem;
}

.hero-sub {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 48px;
    background: rgba(255, 255, 255, 0.8);
    padding: 16px;
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
}

/* ── Bento Grid ── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.bento-card {
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.card-icon {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.bento-card p {
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 700;
}

.card-wide {
    grid-column: span 2;
}

.card-wide-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.card-wide .card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 20px;
}

/* ── Strip (Marquee) ── */
.strip-section {
    padding: 32px 0;
    background: var(--accent-orange);
    color: var(--text-main);
    overflow: hidden;
    transform: rotate(-3deg) scale(1.05);
    border-left: none;
    border-right: none;
}

.marquee-wrapper {
    width: 100vw;
    overflow: hidden;
}

.marquee {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: scroll-left 12s linear infinite;
    font-size: 2rem;
}

.marquee span {
    margin-right: 32px;
}

.marquee .asterisk {
    font-family: var(--ff-jp);
    font-weight: 900;
    margin-right: 32px;
    font-size: 1.5rem;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
}

.price-tier {
    border-radius: 24px;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    /* 幅が潰れないように flex: 1 または min-width を追加 */
    flex: 1;
    min-width: 0;
}

.price-tier.featured {
    transform: translateY(-16px);
}

.featured-tag {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-main);
    padding: 8px 24px;
    border-radius: 980px;
    font-size: 0.9rem;
    box-shadow: 4px 4px 0 var(--border-color);
    z-index: 10;
}

.tier-header {
    margin-bottom: 32px;
}

.tier-header h4 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    -webkit-text-stroke: 1px var(--border-color);
    text-shadow: 2px 2px 0 var(--border-color);
}

.tier-header p {
    font-size: 0.9rem;
    font-weight: 700;
}

.price-display {
    margin-bottom: 40px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    /* はみ出し防止のため改行を許可 */
}

.price-display .currency {
    font-size: 1.5rem;
    font-weight: 900;
    margin-right: 2px;
}

.price-display .amount {
    /* 画面幅やカード幅に応じて文字サイズを可変にする（最小2rem, 最大3.2rem） */
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    word-break: keep-all;
    /* 文字間での不要な改行を防ぎつつ、要素幅を超えないようにする */
}

.price-display .period {
    font-size: 0.8rem;
    margin-left: 4px;
    font-weight: 700;
    color: #555;
    /* 改行を許可するため white-space: nowrap を削除 */
}

.period-monthly {
    font-weight: 900;
    font-size: 1rem;
    margin-right: 8px;
}

.tier-features {
    flex-grow: 1;
    margin-bottom: 40px;
}

.tier-features li {
    padding: 16px 0;
    border-bottom: 2px dashed rgba(17, 17, 17, 0.2);
    font-size: 0.95rem;
    font-weight: 700;
}

.dark-features li {
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
}

.tier-features li::before {
    content: '✓';
    color: var(--accent-cyan);
    font-weight: 900;
    margin-right: 12px;
    font-size: 1.2rem;
}

.tier-features li.requirement {
    color: var(--accent-pink);
    border-bottom: none;
    font-weight: 900;
}

.tier-features li.requirement::before {
    content: '※';
    color: inherit;
}

/* ══════════════════════════════
   Pricing - New Elements (TCO, Promise, Monthly 2-tier)
   ══════════════════════════════ */

/* 選べる月額プラン */
.monthly-plans-section {
    margin-top: 56px;
    padding: 40px;
    background: var(--bg-white);
    border: var(--neo-border-width) solid var(--border-color);
    box-shadow: var(--neo-shadow-size) var(--neo-shadow-size) 0 var(--neo-shadow-color);
    border-radius: 24px;
}

.monthly-plans-heading {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 32px;
}

.monthly-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.monthly-card {
    background: var(--bg-ivory);
    border: var(--neo-border-width) solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    box-shadow: 4px 4px 0 var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.monthly-card.recommended {
    background: var(--bg-white);
    border-color: var(--accent-orange);
    box-shadow: 6px 6px 0 var(--accent-orange);
}

.monthly-card.recommended:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 var(--accent-orange);
}

.monthly-card .plan-name {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.monthly-card .plan-price {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: var(--neo-border-width) dashed var(--border-color);
}

.monthly-card .plan-price span {
    font-size: 1rem;
}

.monthly-card .plan-list li {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

/* 3年総コスト(TCO)比較表 */
.tco-section {
    margin-top: 40px;
    padding: 32px;
    background: var(--accent-cyan);
    border: var(--neo-border-width) solid var(--border-color);
    box-shadow: var(--neo-shadow-size) var(--neo-shadow-size) 0 var(--neo-shadow-color);
    border-radius: 24px;
    text-align: center;
}

.tco-heading {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--text-main);
}

.tco-desc {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.tco-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-white);
    border: var(--neo-border-width) solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.tco-table table {
    width: 100%;
    border-collapse: collapse;
}

.tco-table th,
.tco-table td {
    padding: 16px;
    border-bottom: var(--neo-border-width) solid var(--border-color);
    font-weight: 700;
}

.tco-table th {
    background: var(--bg-ivory);
    border-right: var(--neo-border-width) solid var(--border-color);
    width: 30%;
}

.tco-table td {
    text-align: right;
    font-size: 1.1rem;
}

.tco-table tr.highlight td {
    color: var(--accent-pink);
    font-size: 1.3rem;
    font-weight: 900;
}

.tco-table tr:last-child th,
.tco-table tr:last-child td {
    border-bottom: none;
}

/* 安心のお約束（ロックイン排除） */
.promise-section {
    margin-top: 40px;
    padding: 32px;
    background: var(--accent-yellow);
    border: var(--neo-border-width) solid var(--border-color);
    box-shadow: var(--neo-shadow-size) var(--neo-shadow-size) 0 var(--neo-shadow-color);
    border-radius: 24px;
}

.promise-heading {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.promise-item {
    background: var(--bg-white);
    border: var(--neo-border-width) solid var(--border-color);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 4px 4px 0 var(--border-color);
}

.promise-item i {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.promise-item h5 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.promise-item p {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.6;
}

/* ── Contact ── */
.contact-box {
    border-radius: 40px;
    padding: 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    margin-bottom: 24px;
}

.neo-text-box {
    padding: 24px;
    border-radius: 16px;
    font-size: 1.05rem;
}

.neo-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.neo-input {
    width: 100%;
    background: var(--bg-ivory);
    border: var(--neo-border-width) solid var(--border-color);
    border-radius: 12px;
    padding: 18px 24px;
    color: var(--text-main);
    font-family: var(--ff-jp);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 4px 4px 0 var(--border-color);
    transition: all 0.2s;
}

.neo-input:focus {
    outline: none;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--border-color);
    background: var(--bg-white);
}

/* ── Footer ── */
.site-footer {
    padding: 60px 0;
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
}

.footer-nav {
    display: flex;
    gap: 40px;
}

.footer-nav a {
    font-size: 1rem;
}

.footer-nav a:hover {
    color: var(--accent-yellow);
    text-decoration: underline;
}

.footer-right p {
    font-size: 0.85rem;
    font-weight: 700;
    text-align: right;
}

/* ── Responsive ── */
@media (max-width: 1024px) {

    .bento-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .card-wide {
        grid-column: span 1;
    }

    .price-tier.featured {
        transform: translateY(0);
    }

    .contact-box {
        grid-template-columns: 1fr;
        padding: 48px 32px;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: 3.5rem;
    }

    .jp-sub {
        font-size: 1.5rem;
    }

    .bg-outline-text span {
        font-size: 7rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .card-wide-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 20px;
    }

    .footer-right p {
        text-align: center;
    }

    /* Mobile Nav (Neo style) */
    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background: var(--bg-ivory);
        border-left: var(--neo-border-width) solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: 0.4s;
        z-index: 1000;
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .site-nav a:not(.nav-cta) {
        font-size: 2.5rem;
    }

    .hamburger {
        display: block;
        background: var(--bg-white);
        padding: 12px;
        border-radius: 8px;
        z-index: 1100;
        box-shadow: 2px 2px 0 var(--border-color);
    }

    /* Reset hamburger animation for simplicity */
}