@charset "UTF-8";

/* ==========================================================================
   1. CSS RESET & VARIABLES
   ========================================================================== */
:root {
    --primary-color: #BD5364;   /* スマリブ イメージカラー */
    --primary-hover: #A34353;
    --accent-color: #FF6B00;    /* 消防設備向け セーフティオレンジ */
    --accent-hover: #E05E00;
    --company-color:#006fb6;    /* コーポレートカラー */
    --bg-light: #FDF8F8;        /* 淡いピンクベースの背景 */
    --bg-white: #FFFFFF;
    --text-main: #333333;
    --text-sub: #666666;
    --border-color: #EAD0D4;
    --font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    --container-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   2. HEADER
   ========================================================================== */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 82px;
    gap: 24px;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo-img {
    height: 80px;
    max-height: none;
    width: auto;
}

.logo-fallback span {
    color: var(--accent-color);
}

.header-nav-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex: 1 1 auto;
}

.header-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    justify-content: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    margin: 0 auto;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.header-cta {
    display: flex;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-long {
    border-radius: 30px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-white);
    border: none;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.25);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: #006fb6;
    color: var(--bg-white);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 111, 182, 0.25);
}

.btn-secondary:hover {
    background-color: #005c95;
}

.btn-with-icon {
    padding-right: 14px;
}

.btn-text {
    display: inline-block;
}

.btn-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-nav-area {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        border: 1px solid var(--border-color);
        border-radius: 0;
        background-color: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
        z-index: 1100;
        margin-top: 0;
    }

    .header-nav-area.is-open {
        display: flex;
    }

    .header-nav {
        width: 100%;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 10px;
    }

    .header-cta {
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ==========================================================================
   3. HERO (FIRST VIEW)
   ========================================================================== */
.hero {
    background:
        linear-gradient(135deg, rgba(189, 83, 100, 0.74) 0%, rgba(138, 55, 69, 0.7) 100%),
        url('../images/hero-worker.jpg') center center / cover no-repeat;
    color: var(--bg-white);
    padding: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: 40px;
    align-items: stretch;
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: 20px;
    padding-right: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.hero-badge {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-self: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.38);
    color: #FFFFFF;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.45;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 800;
    max-width: 900px;
}

.hero-title span {
    color: #FFD166;
    background: linear-gradient(transparent 60%, rgba(255, 107, 0, 0.4) 60%);
}

.hero-sub {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 24px;
    max-width: 760px;
}

.hero-bubble-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(16px, 3vw, 50px);
    width: 100%;
    margin-top: 24px;
}

.hero-bubble {
    width: clamp(120px, 20vw, 170px);
    height: clamp(120px, 20vw, 170px);
    min-width: 120px;
    min-height: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: clamp(10px, 2vw, 16px);
    color: #ffffff;
    font-size: clamp(0.9rem, 1.1vw, 1rem);
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    border: 3px solid rgba(255, 255, 255, 0.5);
    transform: translateY(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 auto;
    overflow: hidden;
}

.hero-bubble:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.hero-bubble p {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hero-bubble strong {
    display: block;
    margin-top: 4px;
    font-size: 1.18em;
    font-weight: 800;
    line-height: 1.2;
    color: #fff7e6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.02em;
}

.hero-bubble--primary {
    background:
        radial-gradient(#f09e05 55%);
}

@media (max-width: 768px) {
    .hero-bubble-row {
        gap: clamp(10px, 2.4vw, 16px);
        margin-top: 20px;
    }

    .hero-bubble {
        width: clamp(108px, 24vw, 140px);
        height: clamp(108px, 24vw, 140px);
        min-width: 108px;
        min-height: 108px;
        padding: 10px;
        font-size: 0.86rem;
    }
}

.hero-img-wrap {
    display: none;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

/* Form Card */
.hero-form-card {
    background-color: var(--bg-white);
    color: var(--text-main);
    padding: 30px;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    height: 100%;
    width: 100%;
    justify-self: end;
}

.form-header {
    text-align: center;
    margin-bottom: 20px;
}

.form-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 16px;
}

.privacy-policy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-sub);
    margin-top: 4px;
    margin-bottom: 6px;
    line-height: 1.6;
}

.privacy-policy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.privacy-policy a {
    color: var(--primary-color);
    text-decoration: underline;
}

.privacy-policy a:hover {
    color: var(--accent-color);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
}

.form-label .req {
    background-color: #E53E3E;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 6px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #CBD5E0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.form-input.is-invalid {
    border-color: #E53E3E;
}

.error-msg {
    display: block;
    font-size: 11px;
    color: #E53E3E;
    margin-top: 4px;
    min-height: 16px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-submit:enabled {
    background-color: var(--accent-color);
    box-shadow: 0 8px 0 rgba(150, 66, 10, 0.9), 0 14px 26px rgba(255, 107, 0, 0.26);
}

.form-submit:enabled:hover {
    transform: translateY(3px);
    box-shadow: 0 5px 0 rgba(150, 66, 10, 0.9), 0 10px 18px rgba(255, 107, 0, 0.22);
}

.form-submit:enabled:active {
    transform: translateY(5px);
    box-shadow: 0 2px 0 rgba(150, 66, 10, 0.9), 0 6px 12px rgba(255, 107, 0, 0.2);
}

.form-submit:disabled {
    background-color: #b7bec8;
    color: #f4f6f8;
    border-color: #a8b0bb;
    box-shadow: none;
    cursor: not-allowed;
}

/* ==========================================================================
   4. MEDIA BANNER
   ========================================================================== */
.media-section {
    background-color: var(--bg-light);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.media-title {
    font-size: 13px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.media-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.media-logo-img {
    max-height: 40px;
    width: auto;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: opacity 0.2s;
}

.media-logo-img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ==========================================================================
   5. SECTION COMMON
   ========================================================================== */
.section {
    padding: 50px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.35;
}

.section-subtitle {
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.6;
}

/* ==========================================================================
   6. PROBLEMS (PAIN POINTS)
   ========================================================================== */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.12);
    isolation: isolate;
    color: #ffffff;
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    will-change: transform;
    animation: problem-card-bounce 1.8s ease-in-out infinite;
}

.problem-card:nth-child(1) {
    animation-delay: 0s;
}

.problem-card:nth-child(2) {
    animation-delay: 0.6s;
}

.problem-card:nth-child(3) {
    animation-delay: 1.2s;
}

.problem-card:hover {
    animation: none;
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.24);
    filter: brightness(1.04);
}

.problem-card:hover::before {
    transform: scale(1.07);
    filter: blur(1px);
}

.problem-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: blur(2px);
    opacity: 0.8;
    z-index: -2;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.problem-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: -1;
}

.problem-card--scene1::before {
    background-image: url('../images/problem-scene1-absence.jpg');
}

.problem-card--scene2::before {
    background-image: url('../images/problem-scene2-officework.jpg');
}

.problem-card--scene3::before {
    background-image: url('../images/problem-scene3-paperwork.jpg');
}

.problem-visual {
    margin-bottom: 14px;
}

.problem-scene-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.problem-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    text-align: left;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.problem-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

@keyframes problem-card-bounce {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.008);
    }
}

@media (max-width: 900px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }

    .problem-card {
        min-height: 280px;
    }
}

/* ==========================================================================
   7. FEATURES (SOLUTIONS)
   ========================================================================== */
.features {
    padding: 20px 0 80px;
    background-color: var(--bg-light);
}

.feature-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item.reverse {
    direction: rtl;
}

.feature-item.reverse .feature-content,
.feature-item.reverse .feature-step-carousel,
.feature-item.reverse .feature-step-track {
    direction: ltr;
}

.feature-num {
    font-size: 14px;
    font-weight: bold;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.feature-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin: 8px 0 16px;
}

.feature-desc {
    font-size: 14px;
    line-height: 1.7;
}

.feature-step-carousel {
    overflow: hidden;
    position: relative;
    padding: 0 42px;
    direction: ltr;
}

.feature-step-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 2;
}

.feature-step-nav--prev {
    left: 0;
}

.feature-step-nav--next {
    right: 0;
}

.feature-step-track {
    display: flex;
    gap: 16px;
    width: max-content;
    transition: transform 0.6s ease;
    direction: ltr;
}

.feature-step-card {
    flex: 0 0 min(280px, 100%);
    width: min(280px, 100%);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 10px 24px rgba(189, 83, 100, 0.08);
}

.feature-step-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent-color);
    text-transform: uppercase;
}

.feature-step-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.feature-step-img {
    width: auto;
    max-width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
}


.feature-img-wrap {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(189, 83, 100, 0.15);
}

.feature-img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .feature-item {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ==========================================================================
   8. STORY
   ========================================================================== */
.story-header {
    text-align: center;
    margin-bottom: 40px;
}

.story-title {
    font-size: 26px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.4;
}

.story-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.story-card {
    position: relative;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 22px 24px;
    box-shadow: 0 8px 24px rgba(189, 83, 100, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.story-card:hover {
    transform: translateY(-5px);
    border-color: rgba(189, 83, 100, 0.45);
    box-shadow: 0 16px 32px rgba(189, 83, 100, 0.13);
}

.story-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    min-height: 50px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
}

.story-card-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--bg-white);
    background-color: var(--primary-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.story-card.highlight .story-card-num {
    background-color: var(--accent-color);
}

.story-card-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.story-phrases {
    min-height: 62px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: rgba(189, 83, 100, 0.06);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 9px 9px 0;
}

.story-phrases strong,
.story-phrases span {
    display: block;
}

.story-phrases strong {
    color: var(--primary-hover);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.story-phrases span {
    margin-top: 4px;
    color: var(--text-sub);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.story-card.highlight .story-card-title {
    color: var(--accent-color);
}

.story-card-text {
    font-size: 14px;
    line-height: 1.7;
    flex-grow: 1;
}

.story-visual {
    height: 212px;
    margin-bottom: 18px;
    padding: 18px 14px;
    border: 1px solid rgba(189, 83, 100, 0.14);
    border-radius: 12px;
    background: linear-gradient(145deg, #fffafa, #f8f9fb);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.story-stat-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 10px;
    background: var(--bg-white);
    border: 1px solid #e7e9ee;
    border-radius: 9px;
}

.story-stat-value {
    color: var(--accent-color);
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
}

.story-stat-label {
    color: var(--text-sub);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.story-alert {
    width: 100%;
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 999px;
    background: #ffebee;
    color:  var(--primary-color);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.story-cycle-node {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid #e7e9ee;
    border-radius: 8px;
    background: var(--bg-white);
    text-align: center;
}

.story-cycle-node > div {
    flex: 1;
    text-align: left;
}

.story-cycle-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: rgba(189, 83, 100, 0.1);
    color: var(--primary-color);
    flex: 0 0 auto;
}

.story-cycle-icon svg,
.story-ecosystem-icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.story-cycle-node b,
.story-cycle-node small {
    display: block;
}

.story-cycle-node b {
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.35;
}

.story-cycle-node small {
    margin-top: 2px;
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.35;
}

.story-cycle-node--alert {
    border-color: rgba(255, 107, 0, 0.35);
    background: rgba(255, 107, 0, 0.07);
}

.story-cycle-arrow {
    height: 16px;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 900;
    line-height: 16px;
}

.story-hub {
    position: relative;
    padding: 7px 20px;
    margin-bottom: 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: var(--bg-white);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(189, 83, 100, 0.24);
    animation: story-hub-pulse 3s infinite;
}

@keyframes story-hub-pulse {
    0%,
    100% {
        box-shadow: 0 5px 14px rgba(189, 83, 100, 0.24), 0 0 0 0 rgba(255, 107, 0, 0.18);
    }
    50% {
        box-shadow: 0 7px 18px rgba(189, 83, 100, 0.34), 0 0 0 8px rgba(255, 107, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-hub,
    .story-ecosystem-item {
        animation: none;
    }
}

.story-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    width: 100%;
}

.story-ecosystem-item {
    position: relative;
    padding: 9px 4px 8px;
    border: 1px solid #e7e9ee;
    border-radius: 8px;
    background: var(--bg-white);
    text-align: center;
    animation: story-ecosystem-pulse 3s ease-in-out infinite;
}

@keyframes story-ecosystem-pulse {
    0%,
    100% {
        border-color: #e7e9ee;
        box-shadow: 0 2px 8px rgba(189, 83, 100, 0.04);
    }
    50% {
        border-color: rgba(189, 83, 100, 0.6);
        box-shadow: 0 7px 18px rgba(189, 83, 100, 0.2), 0 0 0 5px rgba(255, 107, 0, 0.08);
    }
}

.story-ecosystem-item::before {
    content: "";
    position: absolute;
    top: -34px;
    left: 50%;
    height: 34px;
    border-left: 2px dotted rgba(189, 83, 100, 0.6);
    transform-origin: bottom center;
}

/* 1. 左（居住者）：右斜め上の点線 */
.story-ecosystem-item:nth-child(1)::before {
    top: -60px;
    height: 60px;
    transform: rotate(45deg);
}

/* 2. 中央（点検業者）：垂直の点線 */
.story-ecosystem-item:nth-child(2)::before {
    top: -45px;
    height: 45px;
}

/* 3. 右（管理会社）：左斜め上の点線 */
.story-ecosystem-item:nth-child(3)::before {
    top: -60px;
    height: 60px;
    transform: rotate(-45deg);
}

.story-ecosystem-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin: 0 auto 5px;
    border-radius: 50%;
    background: rgba(189, 83, 100, 0.1);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 900;
}

.story-ecosystem-icon svg {
    width: 17px;
    height: 17px;
}

.story-ecosystem-item b {
    color: var(--text-main);
    font-size: 12px;
}

.story-ecosystem-note {
    margin-top: 12px;
    color: var(--primary-hover);
    font-size: 14px;
    font-weight: 800;
}

/* スマホ対応 */
@media (max-width: 992px) {
    .story-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-title {
        font-size: 20px;
    }

    .story-card {
        padding: 24px 20px 22px;
    }

    .story-visual {
        height: 204px;
    }
}

/* ==========================================================================
   9. PRICING (料金プラン)
   ========================================================================== */
.pricing {
    background-color: var(--bg-light);
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 15px; /* 上部バッジがはみ出ないための余白 */
}

.pricing-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.pricing-card.recommend {
    border: 2px solid var(--accent-color, #FF6B00);
    animation: pulseGlow 2s infinite;
}

.pricing-badge-top {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color, #FF6B00);
    color: var(--bg-white, #FFFFFF);
    font-size: 12px;
    font-weight: bold;
    padding: 4px 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
    white-space: nowrap;
}

.pricing-card-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bg-light);
    margin-bottom: 20px;
}

.pricing-plan-name {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
}

.pricing-price .period {
    font-size: 16px;
    font-weight: normal;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    flex-grow: 1;
}

.pricing-features li {
    font-size: 14px;
    color: var(--text-main);
    padding: 10px 0;
    border-bottom: 1px dashed var(--bg-light);
    display: flex;
    align-items: center;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

.pricing-card.recommend .pricing-features li::before {
    color: var(--accent-color, #FF6B00);
}

.pricing-btn {
    width: 100%;
}

.pricing-btn:hover {
    color: var(--bg-white);
    background-color: var(--accent-color);
    border: 3px solid var(--bg-white);
    border-radius: 30px;;
}

.shine-btn {
    position: relative;
    overflow: hidden;
}

.shine-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    animation: shineEffect 3s infinite;
}

/* --------------------------------------------------------------------------
   アニメーション定義
   -------------------------------------------------------------------------- */
/* カード周囲の発光（パルス） */
@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0.5);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(255, 107, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 0, 0);
    }
}

/* ボタン表面の光走査 */
@keyframes shineEffect {
    0% {
        left: -60%;
    }
    20% {
        left: 140%;
    }
    100% {
        left: 140%;
    }
}

@media (max-width: 768px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ==========================================================================
   10. FUNCTIONS (主な機能)
   ========================================================================== */
.functions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 1行3個×2列配置 */
    gap: 24px;
}

.function-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.function-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(189, 83, 100, 0.12);
    border-color: var(--primary-color);
}

.function-title {
    font-size: 16px;
    text-align: left;
    font-weight: bold;
    line-height: 1.5;
    margin-right: 12px;
    flex-grow: 1;
}

.function-btn {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
    flex-shrink: 0;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   POPUP (モーダル)
   -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 20px;
}

.modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: var(--bg-white, #ffffff);
    border-radius: 12px;
    padding: 32px 28px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-15px);
    transition: transform 0.25s ease;
}

.modal-overlay.is-active .modal-container {
    transform: translateY(0);
}

/* 右上 × ボタン */
.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 26px;
    color: var(--text-sub, #666666);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 14px;
    padding-right: 24px;
    line-height: 1.4;
}

.modal-desc {
    font-size: 14.5px;
    color: var(--text-main, #333333);
    line-height: 1.7;
}

/* スマホ・タブレット対応 */
@media (max-width: 992px) {
    .functions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .functions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .function-card {
        padding: 20px 16px;
    }
}

/* ==========================================================================
   11. VOICES
   ========================================================================== */
.voices {
    background-color: var(--bg-light);
}
.voices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.voice-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(189, 83, 100, 0.05);
}

.voice-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.voice-badge {
    background-color: #FFF5F5;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.voice-text {
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.7;
}


/* ==========================================================================
   12. FAQ
   ========================================================================== */
.faq {
    background-color: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-size: 15px;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--accent-color);
    transition: transform 0.2s;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 20px 20px;
    font-size: 14px;
    line-height: 1.6;
    display: none;
    border-top: 1px solid var(--bg-light);
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==========================================================================
   13. BOTTOM CTA & FOOTER
   ========================================================================== */
.bottom-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(189, 83, 100, 0.92), rgba(189, 83, 100, 0.85));
    color: var(--bg-white);
    padding: 60px 0;
}

.bottom-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/bottom-background-image.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.18;
    mix-blend-mode: screen;
    pointer-events: none;
}

.bottom-cta-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
}

.bottom-cta-row {
    display: flex;
    align-items: center;
    gap: 36px;
}

.bottom-cta-brand {
    flex: 0 0 260px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bottom-cta-logo {
    width: 100%;
    max-width: 230px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.96;
}

.bottom-cta-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bottom-cta-contact-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bottom-cta-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
}

.bottom-cta-content .btn-icon {
    width: 22px;
    height: 22px;
}

.btn-icon-swap {
    position: relative;
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.btn-icon-swap .btn-icon {
    position: absolute;
    inset: 0;
    transition: opacity 0.2s ease;
}

.btn-icon-swap .btn-icon--hover {
    opacity: 0;
}

.bottom-cta-actions .btn:is(:hover, :focus-visible) .btn-icon--default {
    opacity: 0;
}

.bottom-cta-actions .btn:is(:hover, :focus-visible) .btn-icon--hover {
    opacity: 1;
}

.bottom-cta-title {
    font-size: 25px;
    font-weight: 800;
    margin: 0;
    line-height: 1.45;
    letter-spacing: 0.02em;
    text-align: center;
}

.bottom-cta-actions,
.bottom-cta-phone {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.bottom-cta-phone {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
}

.btn-white {
    background-color: var(--bg-white);
    color: var(--accent-color);
    border: 2px solid var(--bg-white);
    font-size: 16px;
    border-radius: 30px;
    padding: 16px 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-white:hover {
    color: var(--bg-white);
    background-color: var(--accent-color);
    border-color: 3px var(--bg-white);
}

.btn-blue {
    background-color: var(--bg-white);
    color: var(--company-color);
    border: 2px solid var(--bg-white);
    font-size: 16px;
    border-radius: 30px;
    padding: 16px 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-blue:hover {
    background-color: var(--company-color);
    color: var(--bg-white);
    border-color:3px var(--bg-white);
}

.btn-phone {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid rgba(255,255,255,0.65);
    padding: 14px 28px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow: none;
}

.btn-phone:hover {
    background-color: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.9);
    color: var(--bg-white);
}

@media (max-width: 900px) {
    .bottom-cta-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .bottom-cta-brand {
        flex-basis: auto;
        width: 100%;
        justify-content: flex-start;
    }

    .bottom-cta-logo {
        max-width: 180px;
    }

    .bottom-cta-content {
        width: 100%;
    }

    .bottom-cta-actions,
    .bottom-cta-phone {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .bottom-cta {
        padding: 48px 0;
    }

    .bottom-cta-title {
        font-size: 1.35rem;
    }

    .bottom-cta-actions,
    .bottom-cta-phone {
        flex-direction: column;
        align-items: stretch;
    }

    .bottom-cta-actions .btn,
    .bottom-cta-phone .btn {
        width: 100%;
        justify-content: center;
    }

    .bottom-cta-phone {
        font-size: 13px;
    }
}

.footer {
    position: relative;
    background-color: var(--company-color);
    color: var(--bg-white);
    padding: 40px 0;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/Kankyo-company-logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    opacity: 0.12;
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--bg-white);
    transition: color 0.2s;
}

.footer-link:hover {
    color: #E2CBD0;
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .header-inner {
        height: 72px;
    }

    .logo-img {
        height: 60px;
    }

    .nav-list {
        display: flex;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-content {
        justify-content: flex-start;
    }

    .hero-inline-gallery {
        gap: 10px;
    }

    .hero-inline-gallery img {
        width: calc((100% - 20px) / 3);
        max-width: 150px;
    }

    .hero-title {
        font-size: 24px;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .feature-item, .feature-item.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 20px;
    }

    .story-box {
        grid-template-columns: 1fr;
        padding: 30px 20px;
    }

    .voices-grid {
        grid-template-columns: 1fr;
    }
}