html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Noto Sans JP', sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fff;
}
::-webkit-scrollbar-thumb {
    background: #0a2c59; 
    border-radius: 4px;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Phone Mockup - Scalable */
.phone-mockup {
    border: 12px solid #1a1a1a;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
    aspect-ratio: 9/19.5;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    z-index: 1;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35%;
    height: 24px;
    background: #1a1a1a;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 20;
}

/* Animation Classes */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Organic Blobs */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
}

/* Button Styling */
.btn-consult {
    background-image: linear-gradient(90deg, #0156b1 0%, #00abeb 100%) !important;
    color: #ffffff !important;
}
.btn-download {
    background-image: linear-gradient(90deg, #e34b1f 0%, #ff8500 100%) !important;
    color: #ffffff !important;
}
.btn-consult:hover, .btn-download:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

/* Section Common Titles */
.section-title-common {
    font-size: clamp(24px, 5vw, 48px) !important;
    line-height: 1.4 !important;
    font-weight: 900 !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
}
.section-shoulder-common {
    font-size: clamp(14px, 2vw, 18px) !important;
    font-weight: 700 !important;
    color: #0156b1;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem !important;
    display: inline-block;
}

/* POINT Title Style */
.pointTitle {
    position: relative;
    padding: 1.25rem 3.5rem 1.25rem 1.5rem;
    background: rgba(255,133,0,0.03);
    border: 2px solid #ff8500;
    border-radius: 12px;
    font-size: clamp(18px, 3vw, 24px) !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    color: #0a2c59;
}
.pointTitle::before {
    content: "POINT " attr(data-point);
    position: absolute;
    top: -14px;
    left: 12px;
    background: #ff8500;
    color: #fff;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 900;
}

/* About Image Layout - Refined */
.about-image-container img {
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    object-fit: cover;
}

@media (max-width: 1023px) {
    .about-image-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 2rem;
    }
    .about-img-group {
        grid-column: 1 / -1;
        aspect-ratio: 16/9;
    }
    .about-img-classroom, .about-img-exterior {
        aspect-ratio: 1/1;
    }
}

/* Usage Icons Grid Fix */
.usage-icon-circle {
    width: clamp(70px, 10vw, 100px);
    height: clamp(70px, 10vw, 100px);
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(24px, 4vw, 36px);
    color: #0156b1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer Logo */
footer img.footer-logo {
    max-width: 240px;
    height: auto;
}

/* Mobile Typography Optimization */
@media (max-width: 640px) {
    .hero-title {
        font-size: clamp(28px, 8vw, 42px) !important;
        line-height: 1.3 !important;
    }
    .hero-desc {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    .about-catch-copy {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }
    br { display: none; } /* スマホでは手動改行を無効化し自然な折り返しに任せる */
    .md\:block br { display: block; } /* PC用指定がある場合は生かす */
    h1 br, h2 br { display: block; } /* タイトル系は意図的なので残す */
}

/* Spacing Adjustment */
section {
    padding-top: clamp(60px, 8vw, 100px);
    padding-bottom: clamp(60px, 8vw, 100px);
}


/* =========================
   Hero circles text overflow fix
   ========================= */

.hero-circles .hero-circle{
    padding: clamp(8px, 1vw, 14px) !important;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.hero-circles .hero-circle > div:first-child{
    font-size: clamp(7px, 0.75vw, 13px) !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: rgba(10,44,89,0.78) !important;
    margin-bottom: clamp(4px, 0.5vw, 8px) !important;
    text-align: center !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.hero-circles .hero-circle > div:last-child{
    font-size: clamp(9px, 1vw, 20px) !important;
    line-height: 1.18 !important;
    font-weight: 900 !important;
    text-align: center !important;
    color: #0a2c59 !important;
    word-break: keep-all;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.hero-circles .hero-circle .circle-em{
    font-size: 1.08em !important;
    line-height: 1.08 !important;
    display: inline !important;
    font-weight: 900 !important;
}

.hero-circles .hero-circle:nth-child(2) > div:last-child{
    font-size: clamp(8px, 0.9vw, 16px) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em;
}

.hero-circles .hero-circle:nth-child(3) > div:last-child{
    font-size: clamp(8px, 0.95vw, 18px) !important;
}

@media (max-width: 640px){
    .hero-circles .hero-circle{
        padding: 6px !important;
    }

    .hero-circles .hero-circle > div:first-child{
        font-size: 7px !important;
        line-height: 1.2 !important;
        margin-bottom: 3px !important;
        letter-spacing: -0.01em;
    }

    .hero-circles .hero-circle > div:last-child{
        font-size: 9px !important;
        line-height: 1.12 !important;
        letter-spacing: -0.02em;
    }

    .hero-circles .hero-circle .circle-em{
        font-size: 1em !important;
        line-height: 1.08 !important;
    }

    .hero-circles .hero-circle:nth-child(2) > div:last-child{
        font-size: 7px !important;
        line-height: 1.18 !important;
    }

    .hero-circles .hero-circle:nth-child(3) > div:last-child{
        font-size: 8px !important;
    }
}

@media (max-width: 390px){
    .hero-circles .hero-circle > div:first-child{
        font-size: 6px !important;
    }

    .hero-circles .hero-circle > div:last-child{
        font-size: 8px !important;
    }

    .hero-circles .hero-circle:nth-child(2) > div:last-child{
        font-size: 6.5px !important;
    }

    .hero-circles .hero-circle:nth-child(3) > div:last-child{
        font-size: 7px !important;
    }
}

/* =========================
   Hero title line-break fix
   ========================= */

.hero-title{
    display: inline-block;
    max-width: 100%;
    line-height: 1.22 !important;
    letter-spacing: -0.03em !important;
    word-break: keep-all;
    overflow-wrap: normal;
    text-wrap: balance;
}

.hero-title br{
    display: block !important;
}

.hero-title span{
    display: inline-block;
}

@media (min-width: 641px){
    .hero-copy{
        max-width: min(760px, 100%);
    }

    .hero-title{
        font-size: clamp(38px, 5.8vw, 84px) !important;
        line-height: 1.18 !important;
    }
}

@media (max-width: 640px){
    .hero-title{
        font-size: clamp(30px, 8.2vw, 42px) !important;
        line-height: 1.24 !important;
        letter-spacing: -0.04em !important;
        white-space: normal;
    }

    .hero-title br{
        display: block !important;
    }

    .hero-title span{
        display: inline;
    }
}

@media (max-width: 390px){
    .hero-title{
        font-size: clamp(28px, 7.8vw, 36px) !important;
        line-height: 1.26 !important;
        letter-spacing: -0.05em !important;
    }
}

/* =========================
   Hero title PC 2-line lock fix
   1行目・2行目を各1行で維持
   ========================= */

@media (min-width: 641px){
    .hero-copy{
        max-width: min(700px, 100%) !important;
    }

    .hero-title{
        font-size: clamp(30px, 4.6vw, 64px) !important;
        line-height: 1.15 !important;
        letter-spacing: -0.04em !important;
        white-space: nowrap !important;   /* 各行内の折り返し防止 */
        display: inline-block !important;
    }

    .hero-title br{
        display: block !important;        /* 1行目と2行目の区切りは維持 */
    }

    .hero-title span{
        display: inline !important;
    }
}

/* 13〜14インチなど横幅がやや狭いPC対策 */
@media (min-width: 641px) and (max-width: 1280px){
    .hero-title{
        font-size: clamp(28px, 4.1vw, 54px) !important;
    }
}

/* 高さが低いノートPC対策 */
@media (min-width: 1024px) and (max-height: 900px){
    .hero-title{
        font-size: clamp(28px, 3.8vw, 52px) !important;
        line-height: 1.12 !important;
    }
}


/* =========================
   BuzzLocal intro section
   ========================= */

.buzzlocal-intro-section{
    position: relative;
    padding: clamp(42px, 6vw, 90px) 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0,171,235,0.10) 0, rgba(0,171,235,0) 32%),
        radial-gradient(circle at 85% 80%, rgba(1,86,177,0.08) 0, rgba(1,86,177,0) 34%),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    overflow: hidden;
}

.buzzlocal-intro-section::before{
    content: "";
    position: absolute;
    top: -40px;
    left: -40px;
    width: 180px;
    height: 180px;
    background: rgba(0,171,235,0.08);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
}

.buzzlocal-intro-section::after{
    content: "";
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 220px;
    height: 220px;
    background: rgba(1,86,177,0.06);
    filter: blur(46px);
    border-radius: 50%;
    pointer-events: none;
}

.buzzlocal-intro-box{
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 54px) clamp(20px, 4vw, 56px);
    text-align: center;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(1,86,177,0.10);
    box-shadow:
        0 12px 40px rgba(10,44,89,0.08),
        inset 0 1px 0 rgba(255,255,255,0.7);
    border-radius: 24px;
    overflow: hidden;
}

.buzzlocal-intro-box::before{
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(180px, 42%);
    height: 4px;
    background: linear-gradient(90deg, #0156b1 0%, #00abeb 100%);
    border-radius: 999px;
}

.buzzlocal-intro-label{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    color: #0156b1;
    background: rgba(1,86,177,0.08);
    border: 1px solid rgba(1,86,177,0.10);
    border-radius: 999px;
}

.buzzlocal-intro-lead{
    font-size: clamp(18px, 2vw, 28px);
    line-height: 1.95;
    font-weight: 700;
    color: #0a2c59;
    letter-spacing: 0.01em;
    text-wrap: pretty;
}

.buzzlocal-intro-divider{
    width: min(92px, 22%);
    height: 2px;
    margin: 26px auto 24px;
    background: linear-gradient(90deg, rgba(1,86,177,0) 0%, rgba(1,86,177,0.85) 50%, rgba(1,86,177,0) 100%);
    border-radius: 999px;
}

.buzzlocal-intro-sub{
    font-size: clamp(16px, 1.5vw, 22px);
    line-height: 1.95;
    font-weight: 500;
    color: rgba(10,44,89,0.88);
    text-wrap: pretty;
}

@media (max-width: 640px){
    .buzzlocal-intro-section{
        padding: 36px 0 42px;
    }

    .buzzlocal-intro-box{
        padding: 24px 16px 26px;
        border-radius: 18px;
    }

    .buzzlocal-intro-label{
        font-size: 10px;
        letter-spacing: 0.14em;
        margin-bottom: 14px;
        padding: 6px 12px;
    }

    .buzzlocal-intro-lead{
        font-size: 15px;
        line-height: 1.9;
    }

    .buzzlocal-intro-divider{
        margin: 20px auto 18px;
    }

    .buzzlocal-intro-sub{
        font-size: 14px;
        line-height: 1.9;
    }
}

/* =================================
   Hero circles text size up
   ================================= */

/* PC */
.hero-circles .hero-circle > div:first-child{
    font-size: clamp(10px, 1vw, 16px) !important;
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
}

.hero-circles .hero-circle > div:last-child{
    font-size: clamp(14px, 1.45vw, 28px) !important;
    line-height: 1.12 !important;
}

.hero-circles .hero-circle .circle-em{
    font-size: 1.12em !important;
    line-height: 1.05 !important;
}

/* 真ん中の長文だけは少し控えめに */
.hero-circles .hero-circle:nth-child(2) > div:last-child{
    font-size: clamp(11px, 1.1vw, 20px) !important;
    line-height: 1.18 !important;
}

/* 3つ目も少しだけ大きく */
.hero-circles .hero-circle:nth-child(3) > div:last-child{
    font-size: clamp(13px, 1.25vw, 24px) !important;
}

/* タブレット */
@media (max-width: 1024px){
    .hero-circles .hero-circle > div:first-child{
        font-size: 9px !important;
        line-height: 1.3 !important;
    }

    .hero-circles .hero-circle > div:last-child{
        font-size: 12px !important;
        line-height: 1.1 !important;
    }

    .hero-circles .hero-circle:nth-child(2) > div:last-child{
        font-size: 10px !important;
    }

    .hero-circles .hero-circle:nth-child(3) > div:last-child{
        font-size: 11px !important;
    }
}

/* スマホ */
@media (max-width: 640px){
    .hero-circles .hero-circle > div:first-child{
        font-size: 8px !important;
        line-height: 1.25 !important;
        margin-bottom: 4px !important;
    }

    .hero-circles .hero-circle > div:last-child{
        font-size: 10px !important;
        line-height: 1.08 !important;
    }

    .hero-circles .hero-circle .circle-em{
        font-size: 1.04em !important;
    }

    .hero-circles .hero-circle:nth-child(2) > div:last-child{
        font-size: 8px !important;
        line-height: 1.14 !important;
    }

    .hero-circles .hero-circle:nth-child(3) > div:last-child{
        font-size: 9px !important;
    }
}

/* 極小端末 */
@media (max-width: 390px){
    .hero-circles .hero-circle > div:first-child{
        font-size: 7px !important;
    }

    .hero-circles .hero-circle > div:last-child{
        font-size: 9px !important;
    }

    .hero-circles .hero-circle:nth-child(2) > div:last-child{
        font-size: 7px !important;
    }

    .hero-circles .hero-circle:nth-child(3) > div:last-child{
        font-size: 8px !important;
    }
}

/* =========================
   Hero mobile alternative cards
   ========================= */

.hero-cards-mobile{
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 360px;
    margin: 20px auto 24px;
}

.hero-card-mobile{
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,255,255,0.65);
    border-radius: 18px;
    padding: 14px 16px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-card-mobile-sub{
    font-size: 12px;
    line-height: 1.45;
    font-weight: 800;
    color: rgba(10,44,89,0.78);
    margin-bottom: 6px;
}

.hero-card-mobile-main{
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    color: #0056b3;
    letter-spacing: -0.02em;
}

@media (min-width: 641px){
    .hero-cards-mobile{
        display: none !important;
    }
}

@media (max-width: 390px){
    .hero-card-mobile{
        padding: 12px 14px;
        border-radius: 16px;
    }

    .hero-card-mobile-sub{
        font-size: 11px;
    }

    .hero-card-mobile-main{
        font-size: 16px;
        line-height: 1.3;
    }
}

/* =========================
   Hero mobile cards: align near bottom of first view
   ========================= */
@media (max-width: 640px){
    #hero .hero-copy{
        min-height: calc(100svh - 120px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    .hero-cards-mobile{
        margin-top: auto !important;
        margin-bottom: 8px !important;
    }
}

/* =========================
   Hero mobile: hide logo only
   ========================= */
@media (max-width: 640px){
    /* ロゴ画像だけ非表示 */
    #hero .hero-main-logo{
        display: none !important;
    }

    /* ロゴの親ブロックの余白をなくす */
    #hero .hero-copy > div:first-child{
        margin-bottom: 0 !important;
    }

    /* キャッチコピーを少し上へ */
    #hero .hero-title{
        margin-top: 0 !important;
        margin-bottom: 14px !important;
    }

    /* リード文も少し上に詰める */
    #hero .hero-desc{
        margin-bottom: 20px !important;
    }
}
