/* ======================================
   RESET & BASE STYLES
====================================== */
:root {
    /* Color Variables */
    --color-primary: #2C3E50;        /* ダークブルー/チャコールグレー */
    --color-accent: #FF7D27;         /* ビビッドオレンジ */
    --color-support1: #3498DB;       /* 明るいブルー */
    --color-support2: #27AE60;       /* グリーン */
    --color-bg: #F5F7FA;             /* ライトグレー/オフホワイト */
    --color-text: #333333;           /* ダークグレー */
    --color-text-light: #7F8C8D;     /* ミディアムグレー */
    --color-white: #FFFFFF;
    --color-dark: #1A252F;

    /* Typography */
    --font-primary: 'Noto Sans JP', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #e86c17;
}

ul {
    list-style: none;
}

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

section {
    padding: 40px 0;
    position: relative;
}

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

/* ======================================
   CONTAINER & GRID
====================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.accent-text {
    color: var(--color-accent);
    text-align: center;
    font-size: 100%;
    margin: 1px 0;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* ======================================
   COMPONENTS
====================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(255, 125, 39, 0.25);
}

.btn-primary:hover {
    background-color: #e86c17;
    color: var(--color-yellow);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 125, 39, 0.3);
}

.btn-outline {
    background: linear-gradient(90deg, #3498db 0%, #1976d2 100%);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1.7rem;
    border-radius: 40px;
    box-shadow: 0 4px 16px rgba(52, 152, 219, 0.13);
    padding: 18px 32px 14px 32px;
    min-width: 340px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s, transform 0.2s;
}

.btn-outline:hover {
    background: linear-gradient(90deg, #1976d2 0%, #3498db 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.22);
    transform: translateY(-2px) scale(1.03);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Section Titles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

.highlight-text {
    color: #C0392B;
    font-weight: bold;
}

/* ======================================
   HEADER & NAVIGATION
====================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.4s ease;
}

.header.scrolled {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
}

.logo a {
    text-decoration: none;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0;
}

.header.scrolled .logo h1 {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--color-white);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.header.scrolled .nav-link {
    color: var(--color-primary);
}

.nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
}

.header.scrolled .mobile-menu-toggle span {
    background-color: var(--color-primary);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ======================================
   HERO SECTION
====================================== */
.hero-section {
    min-height: calc(80vh + 30px);
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 5px;
    background: linear-gradient(120deg, var(--color-primary) 0%, var(--color-dark) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 500px;
}

.hero-subtitle {
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 5px;
    opacity: 0.9;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}


.hero-image {
    flex: 1;
    position: relative;
    transform: scale(0.7);
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 100%;
    background: rgba(255, 125, 39, 0.1);
    border-radius: 8px;
    top: -10px;
    left: -10px;
    z-index: 1;
}

.hero-image img {
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    height: 130%;
    max-height: none;
    object-fit: cover;
}

.hero-wave-bottom {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.top-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 5px 0;
}

.cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-feature-section {
    background: #f5fbff;
    padding: 10px 0 0 0;
    width: 100%;
}
.hero-feature-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    margin-top: 5px;
    margin-bottom: 5px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.hero-feature-item {
    background: #fff;
    border-radius: 18px;
    width: 60%;
    max-width: 210px;
    min-width: 168px;
    padding: 4px 2px 4px 3px;
    font-size: 1.1rem;
    color: #22316c;
    box-shadow: 0 4px 24px rgba(34,49,108,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
}
.hero-feature-icon {
    width: 50px;
    height: 70px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -48px auto 8px auto;
    box-shadow: 0 2px 8px rgba(34,49,108,0.10);
    font-size: 2.2rem;
    color: #22316c;
}
.hero-feature-label {
    color: #22316c;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.hero-feature-main {
    color: var(--color-accent);
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.1;
}
.hero-feature-main-sub {
    color: #22316c;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 3px;
}
@media screen and (max-width: 900px) {
    .hero-feature-list {
        flex-direction: column;
        gap: 16px;
        padding: 5 4px;
        max-width: 350px;
    }
    .hero-feature-item {
        width: 100%;
        max-width: 350px;
        min-width: 0;
        margin: 0 auto;
    }
}

@media screen and (max-width: 600px) {
    .hero-feature-list {
        flex-direction: column;
        max-width: 350px;
        gap: 16px;
    }
    .hero-feature-item {
        width: 100%;
        max-width: 350px;
        min-width: 0;
    }
}

/* ======================================
   SERVICES SECTION
====================================== */
.services-section {
    padding: 20px 0;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.service-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 26px;
    color: var(--color-white);
}

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

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

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

.service-title {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.service-description {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    gap: 10px;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

.service-detail-wrapper {
    display: flex;
    flex-direction: column;
    gap: 60px; /* 各プラン間の余白 */
}

.service-detail-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center; /* 垂直方向中央揃え */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card-box {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(34,49,108,0.10);
    padding: 40px 30px;
    margin: 20px 0;
}

.service-detail-text,
.service-detail-image {
    text-align: left;
    margin-left: 0;
}

.service-detail-text .section-title {
    font-size: 23px;
    text-align: left;
}

.service-detail-text .service-detail-description {
    text-align: left;
}

.service-tag {
    display: block;
    max-width: 500px;
    margin: 0 auto 0.5rem auto;
    text-align: left;
}

.service-tag .accent-text {
    font-weight: bold;
    font-size: 150%;
}

.service-detail-images {
    display: flex;
    flex-direction: column; /* 画像を上下に並べる */
    gap: 20px;
    align-items: center; /* 画像を中央揃え */
    flex: 1;
    max-width: 700px;
}

.service-detail-images .service-detail-image {
    flex: 1;
    max-width: 320px;
    margin: 0;
}

.service-detail-column {
    flex: 1 1 0;
    min-width: 280px;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    padding: 32px 20px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-detail-text {
    width: 100%;
    text-align: center;
    flex: 1;
    max-width: 500px;
}

.service-detail-image {
    width: 100%;
    max-width: 320px;
    margin: 20px auto 0 auto;
    text-align: center;
}

.service-detail-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ======================================
   CASES SECTION
====================================== */
.case-study {
    padding: 30px 5%;
    background-color: #ffffff;
}

.case-study-title {
    text-align: center;
    margin-bottom: 40px;
}

.case-study-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

.case-study-card {
    width: 30%;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.case-study-card:hover {
    transform: translateY(-5px);
}

.case-study-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.case-study-card:hover .case-study-image img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 20px;
}

.case-study-content h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: #0056b3;
}

.company-type {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.case-description {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.case-link {
    display: inline-block;
    color: #FF8C00;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.case-link:hover {
    color: #FF7000;
    text-decoration: underline;
}

/* ======================================
   FLOW SECTION
====================================== */
.flow-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.speech-bubble {
    background-color: #22316c; /* A dark blue color */
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 40px;
    text-align: center;
    max-width: 500px;
    margin: 30px auto 40px auto;
    position: relative;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #22316c;
}

.bubble-text-top {
    margin: 0 0 5px 0;
    font-size: 1rem;
}

.bubble-text-bottom {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: #ffe600; /* A bright yellow color */
}

.flow-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 19px;
    height: 100%;
    width: 2px;
    background-color: var(--color-support1);
    opacity: 0.3;
}

.flow-item {
    display: flex;
    gap: 30px;
    padding-bottom: 50px;
    position: relative;
}

.flow-item:last-child {
    padding-bottom: 0;
}

.flow-number {
    width: 40px;
    height: 40px;
    background-color: var(--color-support1);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.flow-content {
    flex: 1;
}

.flow-title {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.flow-description {
    color: var(--color-text-light);
}

/* ======================================
   CONTACT SECTION
====================================== */
.contact-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info,
.contact-form-container {
    flex: 1;
}

.contact-info {
    max-width: 500px;
    padding-left: 16px;
}

.contact-description,
.contact-details {
    text-align: left;
    margin-left: 0;
}

.contact-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 15px;
}

.contact-description {
    color: var(--color-text-light);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--color-text-light);
}

.contact-details li i {
    color: var(--color-accent);
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.contact-cta {
    width: 100%; /* 親要素の幅いっぱいに広がるようにする */
}

.contact-form {
    padding: 40px;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--color-primary);
}

.required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 125, 39, 0.15);
}

.form-policy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.form-policy input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* 料金プラン */
.pricing {
    background-color: #F8F9FA;
    padding: 30px 5%;
    margin-top: 20px;
}

.pricing-title {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-cards {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.pricing-card {
    flex: 1 1 0;
    min-width: 0;
    max-width: 380px;
    background-color: white;
    border-radius: 8px;
    padding: 30px 20px;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
    word-break: break-word;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0056b3;
}

.pricing-description {
    text-align: left;
}

.price {
    font-size: 32px;
    font-weight: bold;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.price-main {
    font-size: 80%;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-old {
    font-size: 0.8em;
    text-decoration: line-through;
    color: var(--color-text-light);
}

.price-new {
    font-size: 1.2em;
    color: var(--color-accent);
    font-weight: bold;
}

.price-note {
    font-size: 50%;
    font-weight: normal;
}

.price-period {
    font-size: 14px;
    color: #666;
}

.pricing-features {
    margin: 20px 0;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 10px;
    list-style-type: none;
    position: relative;
    padding-left: 25px;
}

.pricing-features li:before {
    content: "✓";
    color: #FF8C00;
    position: absolute;
    left: 0;
}

/* よくある質問セクション */
.faq {
    padding: 60px 5%;
    background-color: #f8f9fa;
}

.faq-title {
    text-align: center;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: #fff;
}

.faq-question {
    padding: 20px;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.faq-question h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    font-weight: 500;
}

.toggle-icon {
    font-size: 24px;
    color: #0056b3;
    transition: transform 0.3s;
    min-width: 20px;
    text-align: center;
}

.faq-answer {
    padding: 20px;
    background-color: #edf2f9;
    border-top: 1px solid #e1e5eb;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #555;
}

/* ======================================
   FOOTER
====================================== */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-top: 80px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-info {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-description {
    opacity: 0.7;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    flex: 3;
}

.footer-links-column {
    min-width: 160px;
    flex: 1;
}

.footer-links-title {
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-menu a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 0;
}

/* ======================================
   BACK TO TOP BUTTON
====================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(255, 125, 39, 0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: all 0.4s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #e86c17;
    transform: translateY(-5px);
    color: var(--color-white);
}
/* ======================================
   ANIMATIONS
====================================== */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-up {
    transform: translateY(50px);
}

.fade-right {
    transform: translateX(-50px);
}

.fade-left {
    transform: translateX(50px);
}

.animated {
    transform: translate(0);
}

/* ======================================
   RESPONSIVE STYLES
====================================== */
@media screen and (max-width: 1200px) {
    .service-detail-content {
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }
    .service-detail-text,
    .service-detail-image {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .service-detail-images {
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
    }
    .service-detail-images .service-detail-image {
        max-width: 100%;
    }
}

@media screen and (max-width: 1023px) {
    .hero-title {
        text-align: center;
        font-size: 32px;
    }

    .section-title {
        font-size: 24px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .pricing-cards {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 20px;
        align-items: center;
    }

    .pricing-card {
        width: 90%;
        max-width: 500px;
        margin: 0 auto 20px auto;
    }

    .contact-info {
        max-width: 100%;
        padding-left: 0;
    }
    .contact-description,
    .contact-details {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media screen and (max-width: 767px) {
    section {
        padding: 30px 0;
    }

    .header-content {
        padding: 12px 0;
    }

    .nav-menu {
        order: 3;
    }

    .nav-list {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--color-white);
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        z-index: 999;
    }

    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        color: var(--color-primary);
        display: block;
        padding: 10px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-image::before {
        top: 10px;
        left: 10px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;
    }

    .cases-grid {
        flex-direction: column;
    }

    .case-card {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .pricing-cards {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .pricing-card {
        width: 100%;
        min-width: unset;
        max-width: 100%;
        padding: 18px 6px;
        font-size: 14px;
    }

    .pricing-card h3 {
        font-size: 18px;
        word-break: break-all;
        white-space: pre-line;
    }

    .price {
        font-size: 22px;
    }

    .pricing-features {
        font-size: 13px;
    }

    .case-study-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .case-study-cards {
        flex-direction: column;
    }

    .hero-section {
        padding-top: 25px;
    }
    
    .service-detail-images {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
    }
    
    .service-detail-images .service-detail-image {
        max-width: 100%;
    }

    .top-cta-wrapper {
        flex-direction: column;
        gap: 20px;
    }
}

/* 料金プランタイトルの自動改行（スマホ） */
@media screen and (max-width: 480px) {
    .pricing-card h3 {
        font-size: 16px;
        white-space: pre-line;
    }
}

#contact .container, #data-service .container, #ai-service .container, #marke-service .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#contact .contact-info,
#data-service .service-detail-content,
#ai-service .service-detail-content,
#marke-service .service-detail-content {
    align-items: center;
    text-align: center;
}

#data-service .service-detail-content,
#ai-service .service-detail-content,
#marke-service .service-detail-content {
    flex-direction: column;
}

#data-service .service-detail-image,
#ai-service .service-detail-image,
#marke-service .service-detail-image {
    margin: 0 auto;
}

#data-service .section-title,
#data-service .service-detail-description,
#ai-service .section-title,
#ai-service .service-detail-description,
#marke-service .section-title,
#marke-service .service-detail-description,
#contact .section-title,
#contact .contact-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.service-features {
    text-align: left;
    margin: 0 auto;
    max-width: 500px;
}

.service-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.service-features li i {
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

#ai-service .service-detail-image,
#marke-service .service-detail-image {
    margin: 40px auto;
}

.service-detail-section {
    padding: 40px 0;
}

.service-detail-section.bg-light {
    padding: 40px 0;
}

.flow-section {
    padding: 40px 0;
}

.flow-section.bg-light {
    padding: 40px 0;
}

/* セクション間の余白を調整 */
.service-detail-section + .service-detail-section {
    padding-top: 0;
}

.service-detail-section + .pricing {
    padding-top: 20px;
}

.pricing + .case-study {
    padding-top: 20px;
}

.case-study + .flow-section {
    padding-top: 20px;
}

/* サービス詳細セクションのコンテナ調整 */
.service-detail-section .container {
    max-width: 1400px;
}

.btn-pro-consult {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 340px;
    padding: 18px 32px 14px 32px;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #FF9900 0%, #FF6600 100%);
    border-radius: 40px;
    box-shadow: 0 4px 16px rgba(255, 125, 39, 0.18);
    border: none;
    position: relative;
    text-align: center;
    margin-bottom: 0;
    transition: box-shadow 0.2s, transform 0.2s;
}
.btn-pro-consult:hover {
    box-shadow: 0 8px 24px rgba(255, 125, 39, 0.28);
    transform: translateY(-2px) scale(1.03);
    color: #fff;
}
.btn-pro-badge {
    display: inline-block;
    background: #22316c;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    padding: 2px 12px;
    margin-bottom: 4px;
    margin-right: 8px;
    vertical-align: middle;
}
.btn-pro-desc {
    display: inline-block;
    background: #fffbe6;
    color: #22316c;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 16px;
    padding: 2px 14px;
    margin-bottom: 8px;
    vertical-align: middle;
}
.btn-pro-desc strong {
    color: #F26522;
    font-weight: 700;
}
.btn-pro-main {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0;
    letter-spacing: 0.05em;
}
.btn-pro-arrow {
    display: block;
    font-size: 1.5rem;
    color: #fff;
    margin-top: 2px;
}
@media screen and (max-width: 600px) {
    .btn-pro-consult {
        min-width: 0;
        width: 100%;
        font-size: 1.1rem;
        padding: 14px 6px 10px 6px;
    }
    .btn-pro-main {
        font-size: 1.2rem;
    }
    .btn-pro-badge, .btn-pro-desc {
        font-size: 0.9rem;
        padding: 2px 8px;
    }
}

.btn-outline-main {
    display: block;
    margin-bottom: 10px;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}
.btn-outline-sub {
    display: block;
    margin-top: 0;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
}

.pricing-table-section {
  padding: 40px 0;
  background: #fff;
}
.pricing-table-wrapper {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}
.pricing-table-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 32px 24px;
  width: 340px;
  min-width: 280px;
  max-width: 100%;
  text-align: center;
  position: relative;
  border: 1.5px solid #e0e4f6;
}
.pricing-table-card.popular {
  border: 2.5px solid #4b5fff;
  box-shadow: 0 4px 24px rgba(75,95,255,0.10);
}
.plan-label-row {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  gap: 0.3em;
}
.card-popular-badge {
  width: auto;
  height: 1.5em;
  margin-right: 0;
  margin-left: 0;
  display: inline-block;
  vertical-align: middle;
  font-size: 1.3em;
}
.pricing-table-card .plan-label {
  margin-bottom: 0;
  margin-left: 0.3em;
  font-size: 1.1rem;
  color: #6c7a89;
  font-weight: 500;
  display: inline-block;
  vertical-align: middle;
}
.plan-title {
  font-size: 1.7rem;
  font-weight: bold;
  color: #22316c;
  margin-bottom: 10px;
}
.plan-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0 8px;
  text-align: left;
}
.plan-table th {
  font-weight: bold;
  color: #22316c;
  width: 38%;
  padding: 4px 0;
  vertical-align: top;
}
.plan-table td {
  color: #222;
  padding: 4px 0 4px 4px;
  vertical-align: top;
}
.plan-table ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.97em;
}
@media (max-width: 900px) {
  .pricing-table-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  .pricing-table-card {
    width: 95%;
    min-width: unset;
  }
}

/* ======================================
   SPREADSHEET EMBED SECTION
====================================== */
.spreadsheet-embed-section {
    margin: 20px 0;
    text-align: center;
}

.spreadsheet-container {
    display: inline-block;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Cropping styles */
    position: relative;
    overflow: hidden;
    width: 400px;
    height: 300px;
    border: 1px solid #ddd;
}

.spreadsheet-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.spreadsheet-container iframe {
    position: absolute;
    top: -56px;  /* Hide formula bar & column headers */
    left: -41px; /* Hide row headers */
    width: calc(400px + 41px);
    height: calc(300px + 56px + 28px);
    border: none;
    background: var(--color-white);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .spreadsheet-container {
        width: 320px;
        height: 240px;
    }
    .spreadsheet-container iframe {
        width: calc(320px + 41px);
        height: calc(240px + 56px + 28px);
    }
}

@media screen and (max-width: 480px) {
    .spreadsheet-container {
        width: 280px;
        height: 210px;
    }
    
    .spreadsheet-container iframe {
        width: calc(280px + 41px);
        height: calc(210px + 56px + 28px);
    }
}

/* 画像＋テキストの新セクション */
.image-text-section {
  background: #f7faff;
  padding: 48px 0 32px 0;
}
.image-text-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.image-text-img {
  flex: 1 1 340px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-text-content {
  flex: 2 1 340px;
  min-width: 220px;
  max-width: 520px;
  text-align: left;
}
.image-text-content h3 {
  font-size: 2rem;
  color: #22316c;
  font-weight: 900;
  margin-bottom: 18px;
}
.image-text-content p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .image-text-flex {
    flex-direction: column;
    gap: 24px;
    max-width: 98%;
  }
  .image-text-img, .image-text-content {
    max-width: 100%;
    min-width: 0;
  }
  .image-text-content {
    text-align: center;
  }
}

/* ココが違う 3カラムセクション */
.feature-difference-section {
  background: #eaf4fb;
  padding: 32px 0 24px 0;
}
.feature-difference-title {
  text-align: center;
  color: #22316c;
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.feature-difference-main {
  text-align: center;
  color: #22316c;
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 27px;
  letter-spacing: 0.02em;
}
.feature-difference-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-difference-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(34,49,108,0.07);
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 340px;
  padding: 24px 15px 18px 13px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.feature-difference-card-title {
  background: #22316c;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  display: inline-block;
  padding: 3px 14px;
  margin-bottom: 16px;
}
.feature-difference-card-text {
  font-size: 1.05rem;
  color: #22316c;
  margin-bottom: 8px;
  font-weight: 500;
}
.feature-difference-card-highlight {
  color: #22316c;
  font-weight: 700;
  display: block;
  margin-top: 8px;
  color: #2a4bff;
}
.feature-difference-card-img {
  margin-top: 5px;
  margin-bottom: 0;
}
.feature-difference-card-img img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 6px;
}
.feature-difference-card-img-caption {
  font-size: 0.98rem;
  color: #22316c;
  opacity: 0.8;
}
@media (max-width: 900px) {
  .feature-difference-cards {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
  .feature-difference-card {
    min-width: 0;
    width: 95%;
    max-width: 400px;
  }
}

/* STEPセクション横スクロール対応 */
.service-cards .progress-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  max-width: 1100px;
  width: 100%;
  padding-bottom: 8px; /* スクロールバー分の余白 */
  scrollbar-width: auto;
  scrollbar-color: #ccc #f5f5f5;
}
.service-cards .progress-scroll-wrapper::-webkit-scrollbar {
  height: 10px;
}
.service-cards .progress-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}
.service-cards .progress-scroll-wrapper::-webkit-scrollbar-track {
  background: #f5f5f5;
  border-radius: 6px;
}
.service-cards .progress-scroll-list {
  display: flex;
  flex-direction: row;
  gap: 32px;
  min-width: 600px;
  width: max-content;
  align-items: flex-start;
}
.service-cards .progress-scroll-item {
  flex: 0 0 auto;
  width: 1000px;
  max-width: 90vw;
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 1100px) {
  .service-cards .progress-scroll-item {
    width: 90vw;
    max-width: 90vw;
  }
}
@media (max-width: 600px) {
  .service-cards .progress-scroll-list {
    gap: 16px;
  }
  .service-cards .progress-scroll-item {
    min-width: 240px;
    width: 95vw;
    max-width: 95vw;
  }
}
