/* =========================================
    Reset & Base
    ========================================= */
html {
    font-size: 62.5%;
    /* 1rem = 10px */
    scroll-behavior: smooth;
    /* スムーススクロール */
}

:root {
    --color-primary: #333333;
    --color-accent: #4CB5A2;
    /* 画像に基づく緑色 */
    --color-accent-dark: #3A8F7F;
    --color-bg-gray: #F5F5F5;
    --color-bg-dark-gray: #E0E0E0;
    --color-border: #CCCCCC;
    --font-base: 'Noto Sans JP', sans-serif;
    --header-height: 80px;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-base);
    color: var(--color-primary);
    line-height: 1.6;
    font-size: 1.6rem;
    /* 基本サイズ 16px */
    letter-spacing: 0.01em;
    /* 文字間を少し開ける */
    -webkit-font-smoothing: antialiased;
    padding-top: var(--header-height);
    /* ヘッダー固定分の余白 */
    overflow-x: hidden;
    /* 横スクロール防止 */
}

/* 本文pのウェイト指定 */
p {
    font-weight: 500;
    font-size: 1.6rem;
    /* PC版の基本サイズを1.6remに明示 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s, opacity 0.3s;
}

/* Default hover for links (can be overridden) */
a:not(.cta-btn):not(.feature-cta-btn):not(.link-with-arrow):not(.news-cta-link):not(.c-mobile-cta-btn):not(.p-floating-cta__btn):hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* アンカーリンクのスクロール位置調整 */
section[id] {
    scroll-margin-top: 100px;
    /* ヘッダー高さ + 余白 */
}

/* =========================================
    Animation Utilities
    ========================================= */
/* Scroll Fade Up */
.js-scroll-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.0s var(--ease-out-expo), transform 1.0s var(--ease-out-expo);
    will-change: opacity, transform;
}

.js-scroll-fade-up.is-show {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for lists */
.js-scroll-child-stagger .js-scroll-child {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.js-scroll-child-stagger.is-show .js-scroll-child {
    opacity: 1;
    transform: translateY(0);
}

.js-scroll-child-stagger.is-show .js-scroll-child:nth-child(1) {
    transition-delay: 0.1s;
}

.js-scroll-child-stagger.is-show .js-scroll-child:nth-child(2) {
    transition-delay: 0.2s;
}

.js-scroll-child-stagger.is-show .js-scroll-child:nth-child(3) {
    transition-delay: 0.3s;
}

.js-scroll-child-stagger.is-show .js-scroll-child:nth-child(4) {
    transition-delay: 0.4s;
}


/* =========================================
    Header Styles
    ========================================= */
.p-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #fff;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: 'Noto Sans JP', sans-serif;
    transition: transform 0.3s;
}

.p-header__logo img {
    display: block;
    height: auto;
    width: 200px;
    /* ロゴサイズ */
}

/* Desktop Nav */
.p-header__nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.p-nav__list {
    display: flex;
    align-items: center;
}

.p-nav__item {
    position: relative;
    padding: 0 24px;
}

/* Vertical Divider */
.p-nav__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: #ccc;
}

.p-nav__link {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    display: block;
    white-space: nowrap;
    position: relative;
}

/* Nav Underline Animation */
.p-nav__link::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #333;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease-out-expo);
}

.p-nav__link:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Right Content (Buttons) */
.p-header__right-content {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: auto;
}

.c-header-btn {
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    background-color: #F5F5F5;
    color: #333;
    padding: 10px 20px;
    display: inline-block;
    transition: all 0.3s;
    white-space: nowrap;
}

.c-header-btn:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* Mobile Menu (Off-canvas) */
.p-mobile-header {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #fff;
    z-index: 999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out-expo);
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
}

.p-mobile-header.is-active {
    transform: translateX(0);
}

.p-mobile-header__inner {
    padding: 20px 20px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.p-mobile-header__nav {
    margin-bottom: 30px;
}

.p-mobile-header__nav-item {
    border-bottom: 1px solid #eee;
}

.p-mobile-header__nav-item a {
    display: block;
    padding: 16px 0;
    font-size: 1.6rem;
    font-weight: 700;
    width: 100%;
    text-align: left;
}

/* Mobile CTA Area (Modified) */
.p-mobile-header__cta-area {
    margin-top: 2rem;
    padding-top: 30px;
    border-top: 1px solid #eee;
    /* Divider */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.c-mobile-cta-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
    line-height: 1.4;
    gap: 10px;
}

.c-mobile-cta-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Secondary Button (Document) */
.c-mobile-cta-btn--secondary {
    background-color: #fff;
    color: #333;
    border: 1px solid #333;
}

/* Primary Button (Contact) */
.c-mobile-cta-btn--primary {
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.c-mobile-cta-icon {
    font-size: 1.8rem;
    /* 少し大きく */
    line-height: 1;
}


/* Hamburger Button */
.c-hamburger {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 16px;
    z-index: 1001;
}

.c-hamburger span {
    position: absolute;
    left: 5px;
    width: 30px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
}

.c-hamburger span:nth-of-type(1) {
    top: 12px;
}

.c-hamburger span:nth-of-type(2) {
    top: 19px;
}

.c-hamburger span:nth-of-type(3) {
    top: 26px;
}

.c-hamburger.is-active span:nth-of-type(1) {
    top: 19px;
    transform: rotate(45deg);
}

.c-hamburger.is-active span:nth-of-type(2) {
    opacity: 0;
}

.c-hamburger.is-active span:nth-of-type(3) {
    top: 19px;
    transform: rotate(-45deg);
}


/* =========================================
    Hero Section (MV)
    ========================================= */
.hero {
    padding: 45px 0 80px;
    /* PC版: ヘッダーとの間 (上45px) */
}

.hero-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.hero-text-col {
    width: 48%;
    padding-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-sub-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.hero-main-title {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 25px;
    /* Changed from 60px */
    letter-spacing: 0.02em;
}

/* CTA Blocks */
.cta-blocks {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-top: 10px;
    margin-top: auto;
}

.cta-block {
    width: 48%;
    display: flex;
    flex-direction: column;
}

.cta-title {
    font-size: 2.0rem;
    font-weight: 900;
    margin: 24px 0;
    text-align: center;
    line-height: 1.4;
}

.cta-separator {
    width: 100%;
    height: 1px;
    background-color: #E5E5E5;
    margin: 0;
}

.cta-desc {
    font-size: 1.4rem;
    margin-top: 24px;
    margin-bottom: 24px;
    line-height: 1.8;
    flex-grow: 1;
}

/* Modern Button Hover */
.cta-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: #222;
    color: #fff;
    padding: 16px 0;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    background-color: #444;
    /* Slightly lighter */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
    /* Reset opacity hover from generic a tag */
}

/* Carousel */
.hero-carousel-col {
    width: 48%;
    height: auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 20;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #fff;
}

/* Mobile Title Overlay (Hidden on PC) */
.hero-title-overlay {
    display: none;
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    color: #fff;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-title-overlay .hero-sub-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.hero-title-overlay .hero-main-title {
    font-size: 2.0rem;
    line-height: 1.3;
    margin-bottom: 0;
}

/* =========================================
    Service Section
    ========================================= */
.section-service {
    padding: 80px 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.service-block {
    margin-bottom: 120px;
}

.service-block:last-child {
    margin-bottom: 0;
}

.section-title-en {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 8px;
    color: #666;
    font-family: 'Manrope', sans-serif;
}

.section-title {
    font-size: 3.2rem;
    font-weight: 900;
}

.service-intro {
    margin-bottom: 60px;
}

.service-h3 {
    font-size: 2.7rem;
    /* 2.4rem -> 2.7rem */
    font-weight: 900;
    margin-bottom: 24px;
}

.service-lead {
    font-size: 1.9rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.service-content-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.diagram-col {
    flex: 1;
}

.text-col {
    flex: 1;
}

.diagram-col img {
    width: 100%;
    height: auto;
    display: block;
}

/* Q&A List */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.qa-question {
    background-color: var(--color-bg-gray);
    padding: 12px 16px;
    font-size: 1.9rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.qa-answer {
    font-size: 1.6rem;
    /* 1.5rem -> 1.6rem */
    line-height: 1.8;
    padding: 0 8px;
    font-weight: 500;
}

/* Bottom Link */
.service-footer-link {
    margin-top: 50px;
    /* border-top: 1px solid #222;
    border-bottom: 1px solid #222; */
    padding: 30px 1rem;
    text-align: center;
    /* color: white; */
    border-radius: 4px;
    /* background-color: #222; */
}

.link-with-arrow {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.8rem;
    /* 1.6rem -> 1.8rem */
    transition: opacity 0.3s;
    text-align: left;
}

.link-with-arrow span {
    margin-right: 12px;
    font-size: 2.0rem;
    border: 1px solid #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s;
}

/* Arrow Hover Animation */
.link-with-arrow:hover {
    opacity: 1;
    color: #555;
}

.link-with-arrow:hover span {
    background-color: #333;
    color: #fff;
    transform: translateX(4px);
}

/* Material Download CTA */
.material-cta-block {
    background-color: #F8F8F8;
    margin-top: 60px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 60px 0;
    border-radius: 0;
    position: relative;
    left: 0;
}

.material-cta-inner {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.material-cta-img {
    width: 35%;
    flex-shrink: 0;
}

.material-cta-img img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.material-cta-block:hover .material-cta-img img {
    transform: translateY(-5px);
}

.material-cta-content {
    flex: 1;
}

.material-cta-content .link-with-arrow {
    font-size: 1.8rem;
    /* 既に1.8remでしたが念のため維持 */
}

.material-label {
    display: inline-block;
    background-color: #333;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 4px 12px;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.material-title {
    font-size: 2.7rem;
    /* 2.4rem -> 2.7rem */
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.4;
}

.material-desc {
    font-size: 1.9rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

/* =========================================
    Feature Section (New)
    ========================================= */
.section-feature {
    padding: 80px 0 0;
    /* 下部はCTAバンドがあるためパディングなし */
    background-color: #fff;
}

/* Feature Image Area with Scroll & Modal */
.feature-image-wrapper {
    margin-bottom: 80px;
    text-align: center;
    position: relative;
    cursor: auto;
    overflow: hidden;
    border-radius: 4px;
}

.feature-image-wrapper img {
    width: 100%;
    /* Default PC width */
    height: auto;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.5s ease;
}

/* .feature-image-wrapper:hover img {
    transform: scale(1.02);
} */

.feature-zoom-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    pointer-events: none;
    /* 画像クリックイベントを優先 */
    transition: opacity 0.3s;
    line-height: 1;
    display: none;
}

.feature-image-wrapper:hover .feature-zoom-icon {
    background: rgba(0, 0, 0, 0.8);
}

.feature-scroll-hint {
    display: none;
}

/* Modal Styles */
.c-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s;
    background: #fff;
    /* 背景を白に変更 */
    padding: 20px;
}

.c-image-modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.c-image-modal__content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    overflow: auto;
    display: flex;
    justify-content: center;
}

.c-image-modal__content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.c-image-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #333;
    /* 背景色を濃く */
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    color: #fff;
    /* 白文字に変更 */
    transition: transform 0.3s;
}

.c-image-modal__close:hover {
    transform: rotate(90deg);
}

/* Feature CTA Band (Gray Background + White Card) */
.feature-cta-band {
    background-color: #F5F5F5;
    /* 画像の外側グレー */
    padding: 60px 0;
    border-top: none;
    /* 緑のボーダー削除 */
}

.feature-cta-card {
    background-color: #fff;
    padding: 60px 40px;
    text-align: center;
    max-width: 1200px;
    /* カード幅調整 */
    width: 100%;
    margin: 0 auto;
    transition: box-shadow 0.3s;
    /* 必要であれば微かに影をつける */
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.03); */
}

.feature-cta-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.feature-cta-title {
    font-size: 2.7rem;
    /* 2.4rem -> 2.7rem */
    font-weight: 900;
    margin-bottom: 24px;
    color: #333;
    letter-spacing: 0.01em;
}

.feature-cta-desc {
    font-size: 1.9rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #333;
}

.feature-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #222;
    color: #fff;
    padding: 18px 60px;
    font-size: 1.6rem;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s var(--ease-out-expo);
    text-decoration: none;
    gap: 12px;
    letter-spacing: 0.01em;
}

.feature-cta-btn:hover {
    background-color: #444;
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 丸囲み矢印アイコン (CSSで再現) */
.icon-circle-arrow {
    width: 22px;
    height: 22px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
    padding-bottom: 2px;
    /* 矢印位置微調整 */
}

/* =========================================
    Member Section (New)
    ========================================= */
.section-member {
    padding: 80px 0;
    background-color: #fff;
}

.member-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.member-item {
    /* 縦方向のFlexにして、上部のカード高さを揃える等の制御をしやすくする */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.member-item:hover {
    transform: translateY(-5px);
}

.member-profile-card {
    background-color: transparent;
    /* 背景色削除 */
    padding: 0;
    /* 背景がないため余白も削除 */
    display: flex;
    align-items: flex-start;
    /* 画像拡大に伴い上揃えに変更 */
    gap: 30px;
    margin-bottom: 24px;
    border-radius: 0;
    min-height: 24rem;
    /* プロフィール部分の高さの最小値を確保して揃える */
}

.member-img-wrapper {
    width: 40%;
    /* px固定から%指定へ変更 */
    flex-shrink: 0;
}

.member-img-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    /* Slightly rounded corners from design */
    display: block;
    filter: grayscale(100%);
    /* Making images B&W as per design */
    transition: filter 0.3s;
}

/* Color on hover (optional, keep bw if strict design) */
/* .member-item:hover .member-img-wrapper img {
    filter: grayscale(0%);
} */

.member-info {
    flex-grow: 1;
}

.member-role {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    }

.member-name {
    font-size: 2.0rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.4;
}

.member-bullets {
    font-size: 1.3rem;
    line-height: 1.8;
    padding-left: 0;
}

.member-bullets li {
    position: relative;
    padding-left: 1em;
    margin-bottom: 4px;
}

.member-bullets li::before {
    content: "●";
    position: absolute;
    left: 0;
    font-size: 0.8em;
    top: 1px;
    color: #333;
}

.member-desc-text {
    font-size: 1.7rem;
    /* Changed from 1.5rem */
    line-height: 1.8;
    color: #333;
    /* 上部の高さを揃えたので、ここは自然な流れで配置される */
}

/* =========================================
    Flow Section (New)
    ========================================= */
.section-flow {
    padding: 80px 0;
    background-color: #F5F5F5;
    /* 薄いグレー背景 */
}

.flow-list {
    max-width: 1200px;
    /* 1000px -> 1200px */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* 矢印スペース考慮 */
}

.flow-item {
    background-color: #fff;
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    /* 必要なら shadow */
    transition: transform 0.3s, box-shadow 0.3s;
}

.flow-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 矢印 (▼) */
.flow-item:not(:last-child)::after {
    content: "";
    position: absolute;
    bottom: -30px;
    /* 下にはみ出させる */
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 20px 15px 0 15px;
    /* 上辺20px, 左右15px */
    border-color: #333 transparent transparent transparent;
    /* 黒っぽい三角 */
    z-index: 1;
}

.flow-title-col {
    width: 30%;
    flex-shrink: 0;
    text-align: center;
}

.flow-title {
    font-size: 2.2rem;
    font-weight: 900;
}

.flow-desc-col {
    width: 65%;
}

.flow-desc {
    font-size: 1.6rem;
    line-height: 1.8;
}

/* =========================================
    FAQ Section (New)
    ========================================= */
.section-faq {
    padding: 80px 0;
    background-color: #fff;
}

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #eee;
    /* リスト全体の上のボーダーは任意だが、アイテムごとにつけるなら不要かも */
    /* デザイン画像を見ると、各アイテムの下にボーダーがある感じ */
    border-top: none;
}

.faq-item {
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.faq-item:hover {
    background-color: #fafafa;
}

.faq-question {
    display: flex;
    align-items: center;
    /* 上揃えではなく中央揃えの方がアイコンとのバランスが良いかも。デザイン次第 */
    justify-content: space-between;
    padding: 30px 0;
    cursor: pointer;
    position: relative;
}

.faq-head {
    display: flex;
    align-items: flex-start;
    /* 質問文が長い場合の折返し考慮 */
    flex: 1;
    padding-right: 40px;
    /* アイコン分の余白 */
}

.faq-number {
    font-family: 'Manrope', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 24px;
    padding-top: 6px;
    /* 質問文との高さ調整 */
    flex-shrink: 0;
}

.faq-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.6;
}

/* Toggle Icon (+ / -) */
.faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s;
}

.faq-icon::before {
    width: 100%;
    height: 1px;
    /* 横線 */
}

.faq-icon::after {
    width: 1px;
    /* 縦線 */
    height: 100%;
}

/* Open State */
.faq-question.is-open .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    /* 縦線を回転させて横線と重ねる（消す） */
    opacity: 0;
    /* または opacity で消す */
}

.faq-answer {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.faq-answer.is-open {
    height: auto;
    opacity: 1;
    padding-bottom: 30px;
}

.faq-answer-inner {
    padding-left: 45px;
    /* 番号の下あたりに開始位置を合わせる調整 */
    padding-right: 20px;
}

.faq-answer p {
    font-size: 1.6rem;
    line-height: 1.8;
}

/* =========================================
    News & Blog Section
    ========================================= */
.section-news-blog {
    padding: 80px 0;
    background-color: #fff;
}

.news-blog-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    /* Space between columns */
}

.news-col {
    width: 48%;
    display: flex;
    flex-direction: column;
}

.news-header {
    margin-bottom: 40px;
}

.news-title {
    font-size: 2.7rem;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
}

.news-title-en {
    font-size: 1.4rem;
    font-weight: 700;
    color: #666;
    font-family: 'Manrope', sans-serif;
    display: block;
}

.news-list,
.blog-list {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
}

/* CTA位置を揃えるための記述を追加 */
.news-footer {
    margin-top: auto;
}

.news-item,
.blog-item {
    border-bottom: 1px solid #E9E9E9;
    padding: 24px 0;
    /* 高さ調整用にデフォルトをautoに */
    height: auto;
    transition: background-color 0.3s;
}

.news-item:first-child,
.blog-item:first-child {
    border-top: 1px solid #E9E9E9;
}

.news-item:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}

/* Blog Item Styles */
.blog-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.blog-item:hover .blog-thumb img {
    transform: scale(1.05);
}

.blog-thumb {
    width: 35%;
    /* Adjust as needed */
    flex-shrink: 0;
    position: relative;
    /* Better approach for aspect ratio on responsive width */
    aspect-ratio: 16 / 9;
    height: auto;
    background-color: #eee;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* News Item Styles - Modified to match design */
.news-item {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* 上揃え */
    padding-left: 0;
    /* 添付画像に合わせて左揃えに変更（インデント削除） */
    padding-right: 10px;
    /* ホバー時の背景色とのバランス */
    padding-left: 10px;
}

.news-meta,
.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: #333;
}

.news-date,
.blog-date {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

.news-category,
.blog-category {
    font-weight: 500;
}

.news-item-title,
.blog-item-title {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

.news-item-title a,
.blog-item-title a {
    transition: opacity 0.3s;
}

.news-item-title a:hover,
.blog-item-title a:hover {
    opacity: 0.7;
}

.news-cta-link {
    display: inline-flex;
    align-items: center;
    font-size: 1.7rem;
    /* Specified size */
    font-weight: 700;
    color: #333;
    gap: 12px;
    transition: opacity 0.3s;
}

.news-cta-link:hover {
    opacity: 0.7;
}

/* Arrow move on hover */
.news-cta-link:hover .news-cta-icon {
    transform: translateX(4px);
}

.news-cta-icon {
    width: 40px;
    height: 40px;
    background-color: #333;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    line-height: 1;
    padding-bottom: 2px;
    transition: transform 0.3s;
}

/* =========================================
    Data Analysis CTA Section (New)
    ========================================= */
.section-data-cta {
    padding-bottom: 80px;
    /* 下部の余白 */
    background-color: #fff;
}

.data-cta-inner {
    border-top: 1px solid #E9E9E9;
    border-bottom: 1px solid #E9E9E9;
    padding: 56px 0;
    text-align: center;
    max-width: 1000px;
    /* テキストが広がりすぎないように制限 */
    margin: 0 auto;
}

.data-cta-title {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.data-cta-desc {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* =========================================
    Footer Section (New)
    ========================================= */

/* Contact & Download Area (Light Gray) */
.footer-contact-area {
    background-color: #F5F5F5;
    padding: 80px 0;
}

.footer-contact-inner {
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

.footer-contact-block {
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-contact-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 24px;
}

.footer-contact-desc {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Main Footer (Dark) */
.footer-main {
    background-color: #222;
    color: #fff;
    padding: 80px 0 20px;
    position: relative;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
}

.footer-logo-col {
    width: 30%;
}

.footer-logo {
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 32px;
    color: #fff;
}

/* Footer Logo Image Style (Invert color for dark background) */
.footer-logo img {
    display: block;
    width: 200px;
    height: auto;
    filter: brightness(0) invert(1);
    /* 黒ロゴを白く反転 */
}

.footer-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-dark-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 240px;
    border: 1px solid #fff;
    color: #fff;
    padding: 16px 0;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s;
}

.footer-dark-btn:hover {
    background-color: #fff;
    color: #222;
    transform: translateY(-2px);
}

.footer-nav-col {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    gap: 80px;
}

.footer-nav-list li {
    margin-bottom: 16px;
}

.footer-nav-list a {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    transition: opacity 0.3s;
    position: relative;
}

.footer-nav-list a:hover {
    opacity: 0.7;
}

.footer-address-list {
    font-size: 1.4rem;
    line-height: 1.8;
}

.footer-nav-head {
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-bottom-row {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 40px;
}

.footer-sub-links {
    display: flex;
    gap: 40px;
    position: absolute;
    left: 0;
    /* Left align for sub links in design, or can be centered if preferred */
    top: 40px;
}

.footer-sub-links a {
    font-size: 1.2rem;
    color: #fff;
}

.footer-copyright {
    font-size: 1.2rem;
    font-family: 'Manrope', sans-serif;
    color: #fff;
    margin-top: 60px;
    /* Push copyright down slightly */
}

.back-to-top {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48px;
    height: 48px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #222;
    font-size: 2.0rem;
    transition: all 0.3s;
    text-decoration: none;
}

.back-to-top:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

.back-to-top::before {
    content: '↑';
    /* Simple arrow */
    font-family: sans-serif;
    font-weight: bold;
}

/* =========================================
    Floating CTA (from dlform.html)
    ========================================= */
.p-floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 900;
    font-family: var(--font-base);
    transition: transform 0.3s var(--ease-out-expo);
}

.p-floating-cta__inner {
    background-color: #222;
    padding: 24px 20px;
    border-radius: 12px;
    width: 280px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    text-align: center;
}

.p-floating-cta__close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    background-color: #fff;
    border-radius: 50%;
    border: 1px solid #eee;
    color: #333;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
}

.p-floating-cta__title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
}

.p-floating-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.p-floating-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: opacity 0.3s, transform 0.3s;
}

.p-floating-cta__btn:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.p-floating-cta__btn--primary {
    background-color: var(--color-accent);
    color: #fff;
}

.p-floating-cta__btn--secondary {
    background-color: #fff;
    color: #333;
}

.p-floating-cta__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #fff;
    margin-right: 12px;
    position: relative;
    top: 1px;
}

.p-floating-cta__dot--green {
    background-color: var(--color-accent);
}

.p-floating-cta__toggle {
    display: none;
}

@media (max-width: 768px) {
    .p-floating-cta {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        transform: translateY(0);
        /* SPでは余白なしで画面下部に固定 */
    }

    .p-floating-cta.is-closed {
        transform: translateY(100%);
    }

    .p-floating-cta__inner {
        width: 100%;
        border-radius: 16px 16px 0 0;
        padding: 16px 16px 24px;
        /* パディング調整 */
    }

    .p-floating-cta__close {
        display: none;
    }

    /* タイトルを少し小さく */
    .p-floating-cta__title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    /* ボタンを横並びにして高さを抑える */
    .p-floating-cta__buttons {
        flex-direction: row;
        gap: 8px;
    }

    .p-floating-cta__btn {
        font-size: 1.2rem;
        height: 44px;
    }

    .p-floating-cta__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -32px;
        right: 10px;
        width: 44px;
        height: 32px;
        background-color: #222;
        border-radius: 8px 8px 0 0;
        border: none;
        cursor: pointer;
        color: #fff;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }

    .p-floating-cta__toggle::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(135deg);
        transition: transform 0.3s;
        margin-top: -4px;
    }

    .p-floating-cta.is-closed .p-floating-cta__toggle::before {
        transform: rotate(-45deg);
        margin-top: 4px;
    }
}

/* =========================================
    Floating CTA Responsive
    ========================================= */
@media (max-width: 768px) {
    .p-floating-cta {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        /* 最前面 */
        transform: translateY(0);
        /* Default state (open) */
    }

    /* 閉じている状態 */
    .p-floating-cta.is-closed {
        transform: translateY(100%);
    }

    .p-floating-cta__inner {
        width: 100%;
        border-radius: 16px 16px 0 0;
        /* Top corners only */
        padding: 20px 16px 28px;
        /* パディング縮小 */
    }

    /* Hide PC Close Button */
    .p-floating-cta__close {
        display: none;
    }

    /* Show Toggle Button */
    .p-floating-cta__toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -36px;
        /* 本体の真上 - 高さ調整 */
        right: 10px;
        /* 右寄せ */
        width: 40px;
        /* 幅縮小 */
        height: 36px;
        /* 高さ縮小 */
        background-color: #222;
        border-radius: 8px 8px 0 0;
        border: none;
        cursor: pointer;
        color: #fff;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    }

    /* 下向き矢印（閉じる） */
    .p-floating-cta__toggle::before {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        border-top: 2px solid #fff;
        border-right: 2px solid #fff;
        transform: rotate(135deg);
        transition: transform 0.3s;
        margin-top: -4px;
    }

    /* 上向き矢印（開く） */
    .p-floating-cta.is-closed .p-floating-cta__toggle::before {
        transform: rotate(-45deg);
        margin-top: 4px;
    }
}

/* =========================================
    Responsive Settings
    ========================================= */
.u-sp-only {
    display: none;
}

@media (max-width: 1024px) {
    .p-header__nav {
        display: none;
    }

    .p-header__right-content .c-header-btn {
        display: none;
    }

    .c-hamburger {
        display: block;
    }

    /* Footer Tablet/Small Desktop Adjustments */
    .footer-nav-col {
        gap: 40px;
    }

    .footer-sub-links {
        position: static;
        margin-bottom: 20px;
    }

    .footer-bottom-row {
        flex-direction: column;
        align-items: center;
    }

    .footer-copyright {
        margin-top: 20px;
    }

    .back-to-top {
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* モバイル表示時のpタグ（本文）サイズを1.45remに統一 */
    p,
    .feature-desc,
    .member-desc-text,
    .service-lead,
    .qa-answer,
    .material-desc,
    .cta-desc,
    .flow-desc,
    .faq-answer p,
    .data-cta-desc,
    .footer-contact-desc {
        font-size: 1.45rem;
    }

    .p-header {
        padding: 0 20px;
    }

    .p-header__logo img {
        width: 160px;
    }

    .hero {
        padding-top: 0;
    }
    .service-footer-link{
        padding: 1rem;
        word-break: auto-phrase;
    }
    .hero-inner {
        flex-direction: column;
    }

    .hero-carousel-col {
        order: -1;
        width: 100%;
        height: 380px;
        margin-bottom: 40px;
    }

    .hero-title-overlay {
        display: block;
    }

    .hero-text-col {
        width: 100%;
        padding-right: 0;
        margin-bottom: 0;
    }

    .hero-text-col .hero-sub-title,
    .hero-text-col .hero-main-title {
        display: none;
    }

    .cta-blocks {
        flex-direction: column;
        gap: 20px;
    }

    .cta-block {
        width: 100%;
    }

    .cta-title br {
        display: none;
    }

    .service-content-wrapper {
        flex-direction: column;
    }

    .material-cta-block {
        padding: 40px 0;
    }

    .material-cta-inner {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .material-cta-img {
        width: 80%;
        margin: 0 auto;
    }

    /* Feature Section Responsive */
    .feature-image-wrapper {
        overflow-x: auto;
        /* 横スクロール有効化 */
        -webkit-overflow-scrolling: touch;
        text-align: left;
        margin-bottom: 40px;
        padding-bottom: 10px;
        /* スクロールバー余白 */
    }

    .feature-image-wrapper img {
        /* width: auto; 削除 */
        max-width: none;
        /* 親要素超えを許可 */
        min-width: 600px;
        /* 500pxから600pxに変更 */
    }

    .feature-zoom-icon {
        /* SPでは右下に固定しにくい（スクロールするため）ので、アイコンは画像上ではなくヒントテキストで代用 */
        display: none;
    }

    .feature-scroll-hint {
        display: block;
        font-size: 1.2rem;
        color: #666;
        text-align: center;
        margin-bottom: 8px;
        background-color: #f0f0f0;
        padding: 4px;
        border-radius: 4px;
        word-break: auto-phrase;
    }

    /* Modal Responsive */
    .c-image-modal__content img {
        width: 100%;
        height: auto;
        max-height: none;
        /* 縦長画像もスクロールで見られるように */
    }

    .feature-cta-card {
        padding: 40px 20px;
    }

    .feature-cta-title {
        font-size: 2.0rem;
    }

    .feature-cta-desc {
        font-size: 1.45rem;
        /* 1.6rem -> 1.45rem (一括指定でもカバーするが念のため上書き) */
        text-align: left;
    }

    .feature-cta-btn {
        width: 100%;
        padding: 16px 20px;
    }

    /* Member Section Responsive */
    .member-list {
        grid-template-columns: 1fr;
        /* Stack columns */
        gap: 60px;
    }

    .member-profile-card {
        flex-direction: column;
        /* Stack image and info */
        text-align: center;
        padding: 0;
        /* Reset padding */
        min-height: auto;
        /* SPでは高さを固定しない */
        align-items: center;
        /* 中央揃えに修正 */
    }

    .member-img-wrapper {
        width: 90%;
        /* SP時も%指定で大きく表示 */
        margin: 0 auto;
    }

    .member-bullets {
        text-align: left;
        display: inline-block;
        /* Center aligned but text left */
    }

    /* Flow Section Responsive */
    .section-flow {
        padding: 60px 0;
    }

    .flow-item {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        gap: 20px;
    }

    .flow-title-col,
    .flow-desc-col {
        width: 100%;
    }

    .flow-desc {
        text-align: left;
    }

    .flow-item:not(:last-child)::after {
        bottom: -30px;
    }

    /* FAQ Section Responsive */
    .faq-answer-inner {
        padding-left: 0;
    }

    .faq-text {
        font-size: 1.6rem;
    }

    /* News & Blog Responsive */
    .news-blog-wrapper {
        flex-direction: column;
        gap: 60px;
    }

    .news-col {
        width: 100%;
    }

    .blog-thumb {
        /* Or stack blog items? Design typically keeps list style on mobile for news */
        width: 30%;
    }

    /* スマホ表示時のお知らせのパディング調整 */
    .news-item {
        /* 以前のコードではパディングがありましたが、左詰めで統一するため0にします */
        padding-left: 0;
    }

    /* Data CTA Responsive */
    .data-cta-inner {
        padding: 60px 20px;
    }

    .data-cta-title {
        font-size: 2.0rem;
        line-height: 1.4;
    }

    /* Footer Responsive */
    .footer-contact-area {
        padding: 60px 0;
    }

    .footer-contact-inner {
        flex-direction: column;
        gap: 40px;
    }

    .footer-contact-block {
        width: 100%;
    }

    .footer-main {
        padding: 60px 0 20px;
    }

    .footer-top-row {
        flex-direction: column;
        gap: 60px;
        margin-bottom: 40px;
    }

    .footer-logo-col {
        width: 100%;
        text-align: left;
    }

    .footer-dark-btn {
        max-width: 100%;
    }

    /* モバイル時のフッターナビゲーションレイアウト調整 */
    .footer-nav-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2列にする */
        gap: 40px 20px;
        /* 行間40px, 列間20px */
        justify-content: start;
        /* 左寄せ */
        margin-top: 20px;
    }

    /* アドレスリストは下段全幅に */
    .footer-address-list {
        grid-column: 1 / -1;
        margin-top: 20px;
    }

    /* ナビのリンクの文字サイズや余白も微調整して「美しく」 */
    .footer-nav-list li {
        margin-bottom: 12px;
    }

    .footer-nav-list a {
        font-size: 1.3rem;
        /* 少し小さくして密度を高める */
    }

    .footer-bottom-row {
        padding-top: 20px;
    }

    .footer-sub-links {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .u-sp-only {
        display: block;
    }
}