/* Reset & Base Variables */
:root {
    --primary: #1e3a8a;       /* Deep corporate blue (Trust) */
    --primary-light: #3b82f6; /* Lighter blue */
    --primary-dark: #172554;  /* Dark navy */
    --accent: #f59e0b;        /* Warm amber/orange (Action) */
    --accent-hover: #d97706;  /* Darker amber */
    --text-main: #1f2937;     /* Dark gray */
    --text-muted: #6b7280;    /* Gray */
    --bg-body: #ffffff;
    --bg-light: #f3f4f6;      /* Light gray background */
    --border-color: #e5e7eb;
    --font-family: 'Noto Sans JP', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.align-center { text-align: center; }
.text-white { color: #ffffff !important; }
.text-light { color: #d1d5db !important; }
.text-accent { color: var(--accent); }
.bg-light { 
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%); 
}
.bg-primary-dark { background-color: var(--primary-dark); }
.bg-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 8px;
    font-weight: 900;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Scroll Animations */
.fade-up-element {
    opacity: 0;
    transform: translateY(30px) !important;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fade-up-element.is-visible {
    opacity: 1;
    transform: translateY(0) !important;
}

/* Stagger grid items */
.reasons-grid .reason-card:nth-child(2) { transition-delay: 0.15s; }
.reasons-grid .reason-card:nth-child(3) { transition-delay: 0.3s; }

.reviews-grid .review-category:nth-child(even) { transition-delay: 0.15s; }
.courses-grid .course-card:nth-child(2) { transition-delay: 0.2s; }


/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: #ffffff;
    font-weight: 700;
    padding: 20px 48px;
    border-radius: 9999px; /* Pill */
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
    transition: var(--transition);
    font-size: 1.25rem;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

.btn-primary .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-primary:hover .arrow {
    transform: translateX(4px);
}

/* Success Button (Green) */
.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #22c55e;
    color: #ffffff;
    font-weight: 700;
    padding: 20px 48px;
    border-radius: 9999px; /* Pill */
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
    transition: var(--transition);
    font-size: 1.25rem;
}

.btn-success:hover {
    background-color: #16a34a;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.6);
}

.btn-success .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.btn-success:hover .arrow {
    transform: translateX(4px);
}

/* Shake Animation */
@keyframes purunpurun {
    0% { transform: scale(1); }
    5% { transform: scale(1.05) rotate(2deg); }
    10% { transform: scale(0.95) rotate(-2deg); }
    15% { transform: scale(1.02) rotate(1deg); }
    20% { transform: scale(0.98) rotate(-1deg); }
    25% { transform: scale(1); }
    100% { transform: scale(1); }
}

.shake-animation {
    animation: purunpurun 3s ease-in-out infinite;
    transform-origin: center;
}

.shake-animation:hover {
    animation: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo-rakepos { color: var(--primary); }
.logo-tob { color: var(--accent); font-size: 1.25rem; margin-left: 4px; }
.logo-img { height: 45px; width: auto; object-fit: contain; }

.nav {
    display: none; /* Mobile hidden by default */
}

@media (min-width: 992px) {
    .nav {
        display: flex;
        gap: 32px;
    }
    .nav a {
        color: var(--text-main);
        font-weight: 500;
        font-size: 0.95rem;
    }
    .nav a:hover {
        color: var(--primary);
    }
}

.header-btn {
    padding: 10px 24px;
    font-size: 0.95rem;
    box-shadow: none;
}

@media (max-width: 480px) {
    .header-container.container {
        padding: 0 16px;
    }
    .logo-img {
        height: 38px;
    }
    .logo-tob {
        font-size: 1rem;
    }
    .header-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Hero Section */
.hero {
    padding: 180px 0 100px; /* Offset for fixed header */
    background-image: url('assets/hero_bg_1774252007717.png'); /* Dynamic generated hero bg */
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(23, 37, 84, 0.95) 0%, rgba(30, 58, 138, 0.8) 50%, rgba(59, 130, 246, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-image {
    flex: 1;
    max-width: 450px;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.catch-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.2);
    transform: rotate(2deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.catch-img:hover {
    transform: rotate(0deg) translateY(-5px) scale(1.02);
}

.hero-strong-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.strong-point {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 1.35rem;
    font-weight: 900;
    border-left: 8px solid var(--accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: fit-content;
    letter-spacing: 0.5px;
}

.strong-point .highlight-text {
    color: #eab308;
    font-size: 1.45rem;
}

@media (min-width: 768px) {
    .hero-strong-points {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 850px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
    .hero-image {
        margin-top: 40px;
        width: 100%;
        max-width: 500px;
    }
    .hero-strong-points {
        align-items: center;
        justify-content: center;
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 900;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title .highlight {
    color: var(--accent);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 40px;
    opacity: 0;
    line-height: 1.8;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-description strong {
    color: #fff;
    background: linear-gradient(transparent 60%, rgba(245, 158, 11, 0.6) 60%);
    font-size: 1.2rem;
}

.hero-cta {
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

/* Price Catch Popup Modal */
.price-modal-content {
    background: #e11d48; /* Red/Rose-600 */
    color: #fff;
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 32px 64px -12px rgba(225, 29, 72, 0.4);
    max-width: 650px;
    width: 90%;
    text-align: center;
    border: 5px solid #ffed4a;
    animation: popInBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, funyafunya 3.5s ease-in-out infinite 0.6s;
    position: relative;
    line-height: 1.2;
    font-weight: 900;
}

.price-modal-close-icon {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #1f2937;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 3px solid #fff;
    z-index: 10;
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
}

.price-modal-close-icon:hover {
    transform: scale(1.1);
    background: #000;
}

.price-modal-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    background: #fff;
    padding: 6px 16px;
    border-radius: 9999px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.price-modal-logo img {
    height: 28px;
    width: auto;
}

.price-modal-logo .logo-tob {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 900;
    margin-left: 4px;
    line-height: 1;
}

.price-modal-content .catch-price {
    color: #ffed4a;
    font-size: 5rem;
    letter-spacing: -2px;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    line-height: 1;
}

.price-modal-content .catch-yen {
    font-size: 2.2rem;
    color: #ffed4a;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    margin-left: 4px;
}

.price-modal-content .catch-main-text {
    display: inline-block;
    font-size: 2.1rem;
    margin-top: 14px;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.price-modal-content .catch-sub-text {
    display: inline-block;
    font-size: 2.3rem;
    margin-top: 4px;
    letter-spacing: 0.5px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
    white-space: nowrap;
}

@keyframes popInBounce {
    0% { opacity: 0; transform: scale(0.5) translateY(50px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes funyafunya {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.02) rotate(2deg); }
    50% { transform: scale(0.98) rotate(-2deg); }
    75% { transform: scale(1.01) rotate(1deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@media (max-width: 850px) {
    .price-modal-content {
        padding: 30px 20px;
    }
    .price-modal-logo {
        display: inline-flex;
        width: auto;
        margin-left: 0;
        margin-right: 0;
    }
    .price-modal-content .catch-price { font-size: 4rem; }
    .price-modal-content .catch-yen { font-size: 1.8rem; }
    .price-modal-content .catch-main-text { font-size: 1.7rem; margin-top: 12px; }
    .price-modal-content .catch-sub-text { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .price-modal-content {
        padding: 24px 16px;
    }
    .price-modal-logo { display: inline-flex; width: auto; margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 8px; padding: 4px 12px; }
    .price-modal-logo img { height: 22px; }
    .price-modal-logo .logo-tob { font-size: 0.85rem; }
    
    .price-modal-content .catch-price { font-size: 3.2rem; }
    .price-modal-content .catch-yen { font-size: 1.4rem; }
    .price-modal-content .catch-main-text { 
        font-size: clamp(0.9rem, 4.5vw, 1.25rem); 
        margin-top: 8px;
    }
    .price-modal-content .catch-sub-text { 
        font-size: clamp(1rem, 5.2vw, 1.4rem); 
    }
}

/* Feature/About (ポスティングが効果的な理由) */
.about-intro {
    max-width: 1000px;
    margin: 0 auto 48px;
    background: #fffbeb;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
    align-items: center;
}


@media (min-width: 768px) {
    .about-intro {
        flex-direction: row;
        align-items: center;
    }
}

.about-intro-text {
    flex: 1;
}

.about-intro-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 400px;
}

.about-intro-image img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    box-shadow: var(--shadow-md);
}

.about-intro p {
    font-size: 1.05rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.about-intro p:last-child {
    margin-bottom: 0;
}

.intro-lead {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--primary-dark) !important;
}

.intro-highlight {
    font-size: 1.15rem !important;
    line-height: 1.8;
}

.highlight-line {
    font-weight: 700;
    color: var(--text-main);
    background: linear-gradient(transparent 60%, rgba(245, 158, 11, 0.4) 60%) no-repeat;
    background-size: 0% 100%;
    transition: background-size 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.highlight-line.is-visible {
    background-size: 100% 100%;
}

/* Scroll Marker (蛍光マーカーアニメーション) */
.scroll-marker {
    background: linear-gradient(transparent 55%, rgba(251, 191, 36, 0.45) 55%) no-repeat left;
    background-size: 0% 100%;
    transition: background-size 1s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
    padding-bottom: 2px;
    border-radius: 2px;
}

.scroll-marker.is-visible {
    background-size: 100% 100%;
}

/* Reasons Grid */
.reasons-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.reason-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px 30px;
    position: relative;
    text-align: left;
    transition: var(--transition);
    border-top: 5px solid var(--primary);
    display: flex;
    flex-direction: column;
}

.reason-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.reason-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: rgba(30, 58, 138, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    transition: all 0.4s ease;
}

.reason-card:hover .reason-number {
    color: rgba(245, 158, 11, 0.15);
    transform: scale(1.1) translate(-5px, 5px) rotate(-5deg);
}

.reason-title {
    font-size: 1.85rem;
    color: var(--primary-dark);
    margin-bottom: 24px;
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.reason-title .text-accent {
    font-size: 2.1rem;
    display: block;
    margin: 8px 0;
}

.reason-text {
    font-size: 1rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    flex: 1;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.review-category {
    background: #f0f7ff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 24px;
    height: 100%;
    transition: var(--transition);
}

.review-category:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.review-category-title {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
    100% { transform: translateY(0px); }
}

.review-category-title .icon {
    margin-right: 8px;
    font-size: 1.4rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.review-item {
    position: relative;
    padding: 20px 20px 20px 40px;
    background: #fff;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-item::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.3;
    position: absolute;
    top: 5px;
    left: 10px;
    line-height: 1;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Pricing Section */
.pricing-card {
    background-color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: var(--text-main);
    transform: translateY(20px);
}

.price-header {
    background-color: var(--primary);
    color: #fff;
    padding: 24px;
    font-size: 1.5rem;
    font-weight: 900;
}

.price-body {
    padding: 48px 24px;
    position: relative;
}

.price-accent {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 6px 20px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.price-amount {
    color: var(--primary-dark);
    margin: 20px 0 10px;
    display: flex;
    justify-content: center;
    align-items: baseline;
}

.price-amount .yen {
    font-size: 1.25rem;
    font-weight: 700;
}

.price-amount .number {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    margin: 0 4px;
    letter-spacing: -2px;
}

.price-unit {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 700;
}

.price-footer {
    background-color: #f9fafb;
    padding: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.courses-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.course-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.course-header {
    padding: 30px;
    color: #fff;
    text-align: center;
    font-size: 1.5rem;
}

.course-downtown {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}

.course-office {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
}

.course-body-wrapper {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .course-body-wrapper {
        flex-direction: row;
        align-items: center;
    }
}

.course-image {
    padding: 32px 32px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .course-image {
        padding: 40px 0 40px 40px;
        flex: 0 0 45%;
    }
    .course-body {
        padding: 40px;
        flex: 1;
    }
}

@media (max-width: 767px) {
    .course-body {
        padding: 32px;
    }
}

.course-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 500px;
}

.course-target {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 16px;
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 2px dashed var(--border-color);
}

.course-desc {
    margin-top: 24px;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.course-benefits {
    background: rgba(59, 130, 246, 0.05);
    padding: 20px;
    border-radius: var(--radius);
}

.course-benefits li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-weight: 500;
}

.course-benefits li:last-child {
    margin-bottom: 0;
}

.course-benefits li::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

.image-center-box {
    text-align: center;
    margin: 40px auto 0;
    max-width: 700px;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 30px;
}
.target-audience-img {
    border-radius: var(--radius);
    margin: 0 auto;
}

.guidelines-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.guideline-block {
    background: #ffffff;
    padding: 48px 40px;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05); /* Initial soft shadow */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.guideline-block:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.guideline-title {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 32px;
    font-weight: 900;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
}

.guideline-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 32px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 2px;
}

.list-styled {
    padding-left: 0;
}

.list-styled li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.list-styled li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.rule-negative {
    background: linear-gradient(180deg, #fffcfc 0%, #ffffff 100%);
    border-color: rgba(239, 68, 68, 0.08);
}

.rule-negative .guideline-title::after {
    background: #ef4444;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    background: #fee2e2;
    color: #b91c1c;
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
}

.tag.x-tag::before {
    content: '✕';
    margin-right: 6px;
    font-weight: 900;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 24px;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-dark);
    cursor: pointer;
    position: relative;
    list-style: none; /* Remove default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::-webkit-details-marker {
    display: none; /* Remove default arrow in WebKit */
}

.faq-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.faq-icon::before {
    top: 11px;
    left: 4px;
    width: 16px;
    height: 2px;
}

.faq-icon::after {
    top: 4px;
    left: 11px;
    width: 2px;
    height: 16px;
}

.faq-item[open] .faq-icon::after {
    transform: rotate(90deg) scale(0);
    opacity: 0;
}

.faq-item[open] .faq-question {
    border-bottom: 1px solid var(--border-color);
}

.faq-answer {
    padding: 24px;
    color: var(--text-main);
    background-color: #f9fafb;
    line-height: 1.7;
    animation: fadeInDown 0.3s ease-in-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Contact */
.contact-box {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    max-width: 700px;
    margin: 0 auto;
    color: #fff;
}

.contact-box p {
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.contact-note {
    font-size: 0.9rem !important;
    opacity: 0.7;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
}

.contact-btn {
    background-color: #fff;
    color: var(--primary-dark);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-btn:hover {
    background-color: #f8fafc;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background-color: #0f172a;
    color: #94a3b8;
    padding: 60px 0;
    text-align: center;
}

.company-name {
    margin-bottom: 8px;
}

.company-name a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.company-name a:hover {
    color: #fff;
    text-decoration: underline;
}

.copyright {
    font-size: 0.875rem;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .reason-title {
        font-size: 1.5rem;
    }
    .reason-title .text-accent {
        font-size: 1.65rem;
    }
}

.text-left { text-align: left; }
.text-center { text-align: center; }

/* Contact Form */
.form-box {
    max-width: 800px;
}

.contact-form {
    background: transparent;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.required {
    background-color: #ef4444;
    color: white;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
    background: #ffffff;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
}

.radio-label input[type="radio"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-submit {
    margin-top: 40px;
}

.submit-btn {
    width: 100%;
    max-width: 300px;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-weight: 700;
    text-align: center;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}


/* Modal - Full Page Blur */
body.modal-open > *:not(#success-modal):not(#price-modal):not(script) {
    filter: blur(6px);
    transition: filter 0.3s ease;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out forwards;
    padding: 24px;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    padding: 48px 40px 40px;
    border-radius: 24px;
    box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255,255,255,0.1);
    max-width: 460px;
    width: 100%;
    text-align: center;
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.modal-icon-wrap {
    margin-bottom: 24px;
}

.modal-check-circle {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s both;
}

.modal-check-circle svg {
    width: 100%;
    height: 100%;
}

.modal-check-circle svg circle {
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: drawCircle 0.6s ease 0.3s forwards;
}

.modal-check-circle svg path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawCheck 0.4s ease 0.7s forwards;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.modal-message {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 32px;
}

.modal-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 40px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.35);
    transition: var(--transition);
    font-family: var(--font-family);
    letter-spacing: 0.02em;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(30, 58, 138, 0.45);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.88) translateY(16px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

@keyframes fadeUpModal {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Flow Section */
.flow-container {
    display: flex;
    flex-direction: column;
    margin: 60px auto 20px;
    width: 100%;
    max-width: 600px; /* constraining width since it's vertical on desktop */
}

.flow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.flow-step + .flow-step {
    margin-left: 0;
    margin-top: 10px;
}

.step-head {
    color: var(--accent);
    font-weight: 900;
    margin-bottom: 4px;
    padding-left: 0;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    z-index: 10;
    position: relative;
}

.flow-step + .flow-step .step-head {
    margin-bottom: -15px;
}

.step-label {
    font-size: 1rem;
    letter-spacing: 2px;
}

.step-number {
    font-size: 2rem;
}

.step-box {
    background-color: #fce712;
    flex: 1;
    padding: 45px 16px 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    clip-path: polygon(0% 0%, 50% 20px, 100% 0%, 100% calc(100% - 20px), 50% 100%, 0% calc(100% - 20px));
    color: var(--primary-dark);
}

.flow-step:first-child .step-box {
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 20px), 50% 100%, 0% calc(100% - 20px));
    padding-top: 30px;
}

.flow-step:last-child .step-box {
    clip-path: polygon(0% 0%, 50% 20px, 100% 0%, 100% 100%, 0% 100%);
    padding-bottom: 30px;
}

.step-icon {
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.step-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    word-break: keep-all;
}

.step-note {
    font-size: 0.75rem;
    color: var(--primary-dark);
    margin-top: 8px;
    opacity: 0.85;
    line-height: 1.4;
    word-break: keep-all;
}

/* =========================================
   Estimate System (簡単見積もりシステム)
   ========================================= */
.estimate-system-wrapper {
    max-width: 800px;
    margin: 60px auto 0;
    background: #ffffff;
    border-radius: 16px;
    padding: 60px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid #f1f5f9;
}

.estimate-tree {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.estimate-row {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 40px;
    transition: var(--transition);
}

.estimate-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 56px;
    border-radius: 999px;
}

/* Branch Colors based on design */
.estimate-row.row-orange::before { background-color: #f97316; } 
.estimate-row.row-purple::before { background-color: #a855f7; } 
.estimate-row.row-blue::before { background-color: #3b82f6; }   
.estimate-row.row-green::before  { background-color: #10b981; } 
.estimate-row.row-yellow::before { background-color: #eab308; } 
.estimate-row.row-red::before { background-color: #ef4444; }    

.estimate-label {
    width: 200px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.estimate-input-box {
    flex: 1;
    width: 100%;
}

.estimate-static-value,
.estimate-select {
    width: 100%;
    max-width: 480px;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-main);
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.estimate-static-value {
    font-weight: 700;
}

.estimate-select {
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23475569%22%20stroke-width%3D%222.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px auto;
}

.estimate-select:focus {
    outline: none;
    border-color: #94a3b8;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.2);
}

.estimate-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
    padding-left: 4px;
}

.estimate-total-box {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: #fff1f2;
    border: 2px solid #fda4af;
    border-radius: 8px;
    margin-bottom: 12px;
}

.total-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e11d48;
}

.total-price {
    font-size: 3rem;
    font-weight: 900;
    color: #e11d48;
    letter-spacing: -1px;
    line-height: 1;
}

@media (max-width: 640px) {
    .estimate-system-wrapper {
        padding: 32px 20px;
        margin-top: 24px;
    }
    .estimate-tree {
        gap: 32px;
    }
    .estimate-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 0 16px;
        gap: 12px;
    }
    .estimate-row::before {
        height: 28px;
        top: 0;
        transform: none;
    }
    .estimate-label {
        width: 100%;
        padding-top: 0;
        line-height: 28px;
        margin-bottom: 4px;
    }
    .estimate-select,
    .estimate-static-value {
        max-width: 100%;
    }
    .estimate-total-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 24px 20px;
        width: 100%;
    }
    .total-price {
        font-size: 2.75rem;
        text-align: center;
        width: 100%;
    }
}
