:root {
    /* Colors */
    --color-primary: #007BFF;
    /* メインの青 */
    --color-primary-dark: #0056b3;
    --color-primary-light: #E6F0FF;
    --color-secondary: #E3F2FD;
    /* 薄い青背景 */
    --color-accent: #FF9800;
    /* コンバージョン用オレンジ */
    --color-accent-hover: #F57C00;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-background: #ffffff;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    /* Font */
    --font-family-base: 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-family-base);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-background);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section__title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section__desc {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 16px;
    /* 14px -> 16px */
    color: var(--color-text-light);
}

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

.text-highlight {
    color: var(--color-accent);
    font-weight: bold;
}

.highlight-text {
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.2em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
}

.btn--highlight {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
    font-size: 18px;
    padding: 16px 40px;
    width: 100%;
    max-width: 350px;
}

.btn--highlight:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(255, 152, 0, 0.4);
}

.btn--large {
    font-size: 20px;
    width: 100%;
    max-width: 400px;
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.bounce {
    animation: bounce 2s infinite;
}

/* Header */
.header {
    background-color: var(--color-white);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header__container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-size: 30px;
    /* 20px -> 25px(USER) -> 30px(Updated) */
    font-weight: 700;
    color: var(--color-primary);
}

.header__cta {
    font-size: 18px;
    padding: 16px 30px;
    letter-spacing: 0.1rem;
    /* font-size: 14px;
    padding: 8px 16px; */
}

/* Hero Section */
.hero {
    background: url('hero_bg.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* 背景全幅 */
}

/* インナーコンテナで幅制限 */
.hero__inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* コンテンツと画像のラッパー（PCで横並びにする部分） */
.hero__content-wrapper {
    display: flex;
    flex-direction: column;
    /* モバイルは縦 */
    align-items: center;
    width: 100%;
}

.hero__content {
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__group-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero__image {
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hero__img-person {
    width: auto;
    max-width: 100%;
    max-height: 280px;
    /* スマホでの高さ制限 */
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.hero__cta {
    margin-top: 4rem;
    /* 画像とボタンの間隔 (3-5remの要望) */
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
}

.hero__sub {
    font-size: 26px;
    /* 22px -> 26px */
    color: var(--color-primary);
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.1em;
}

.hero__title {
    font-size: 40px;
    /* 36px -> 40px */
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
}

.hero__title .highlight {
    background: linear-gradient(transparent 60%, #ffff00 60%);
}

.hero__desc {
    font-size: 22px;
    /* 20px -> 22px */
    margin-bottom: var(--spacing-lg);
    font-weight: bold;
}

.hero__btn .arrow {
    margin-left: 8px;
}

/* Features */
.features__grid {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.feature__item {
    background: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.feature__icon {
    font-size: 40px;
    margin-bottom: var(--spacing-sm);
}

.feature__title {
    font-size: 18px;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.feature__text {
    font-size: 16px;
    /* 14px -> 16px */
    text-align: left;
}

/* Stats (Redesigned) */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.stats__card {
    background: var(--color-white);
    border: 2px solid var(--color-primary-light);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    flex: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.stats__label {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
}

.stats__value-group {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: var(--color-primary);
}

.stats__number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.stats__unit {
    font-size: 24px;
    font-weight: bold;
    margin-left: 4px;
}

.stats__note {
    display: block;
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: var(--spacing-xs);
}

/* Service Flow */
.flow {
    background-color: var(--color-white);
}

.flow__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.flow__item {
    display: flex;
    background: var(--color-secondary);
    padding: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    /* 左側の背景色をステップ部分だけにするため */
}

.flow__step {
    background-color: #E0EBF5;
    /* 少し濃い目の背景 */
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    flex-shrink: 0;
    position: relative;
}

.flow__step::after {
    /* 三角形の装飾（オプション） */
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 10px solid #E0EBF5;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    z-index: 1;
}

.flow__num {
    font-size: 32px;
    font-weight: 700;
    font-style: italic;
    font-family: serif;
}

.flow__content {
    padding: var(--spacing-md);
    background: var(--color-white);
    flex: 1;
    border: 1px solid var(--color-secondary);
    border-left: none;
    border-top-right-radius: var(--radius-md);
    border-bottom-right-radius: var(--radius-md);
}

.flow__title {
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
}

.flow__desc {
    font-size: 14px;
}

/* Case Studies */
.cases__grid {
    display: grid;
    gap: var(--spacing-md);
}

.case__card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.case__profile {
    text-align: center;
    min-width: 60px;
}

.case__icon {
    width: 60px;
    height: 60px;
    background-color: #eee;
    border-radius: 50%;
    margin: 0 auto var(--spacing-xs);
    background-size: cover;
    background-position: center;
    border: 2px solid var(--color-primary-light);
}

/* プレースホルダーアイコン（CSSのみで簡易表現） */
.case__icon--man1 {
    background-image: url('https://img.icons8.com/color/96/user-male-circle--v1.png');
}

.case__icon--man2 {
    background-image: url('https://img.icons8.com/color/96/businessman.png');
}

.case__icon--man3 {
    background-image: url('https://img.icons8.com/color/96/guest-male.png');
}

.case__icon--man4 {
    background-image: url('https://img.icons8.com/color/96/administrator-male.png');
}

.case__age {
    font-size: 12px;
    font-weight: bold;
}

.case__info {
    flex: 1;
}

.case__income-change {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: var(--spacing-xs);
    flex-wrap: wrap;
}

.case__before,
.case__after {
    display: flex;
    align-items: baseline;
}

.case__before .amount {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-text-light);
}

.case__after .amount {
    font-size: 28px;
    color: var(--color-accent);
}

.case__after .unit {
    color: var(--color-accent);
}

.case__job-change {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    flex-wrap: wrap;
}

.job-tag {
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

.job-tag--highlight {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: bold;
}

/* Support */
.support__list {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.support__item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: var(--spacing-md);
}

.support__item:last-child {
    border-bottom: none;
}

.support__num {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-primary-light);
    /* 薄い色で背景っぽく */
    line-height: 1;
    min-width: 40px;
    -webkit-text-stroke: 1px var(--color-primary);
    /* 縁取り */
    color: transparent;
}

.support__content h3 {
    font-size: 18px;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.support__content p {
    font-size: 14px;
}

.support__free {
    text-align: center;
    font-size: 16px;
    margin-top: var(--spacing-md);
}

/* My Contact */
.contact {
    background: linear-gradient(135deg, #007BFF 0%, #00C6FF 100%);
    color: var(--color-white);
    text-align: center;
    /* Box styles removed/merged to section */
}

/* .contact__box removed */

.contact__title {
    font-size: 28px;
    margin-bottom: var(--spacing-md);
}

.contact__text {
    font-size: 18px;
    /* 14px -> 18px */
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.contact__subtext {
    margin-top: var(--spacing-xs);
    font-size: 14px;
    /* 12px -> 14px */
    opacity: 0.9;
}

/* Q&A Section */
.section__title--blue {
    color: #1a237e;
    /* 深い青 */
    font-family: serif;
    /* 明朝体系 */
    font-size: 40px;
    letter-spacing: 0.1em;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    max-width: 900px;
    margin: 0 auto;
}

.faq__item {
    background: var(--color-white);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq__question {
    padding: var(--spacing-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    list-style: none;
    /* デフォルトの三角を消す */
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__icon-q,
.faq__icon-a {
    font-family: serif;
    font-weight: bold;
    font-size: 28px;
    margin-right: var(--spacing-md);
    line-height: 1;
}

.faq__icon-q {
    color: #89C4F4;
    /* 水色 */
}

.faq__icon-a {
    color: #1a237e;
    /* 紺色 */
}

.faq__q-text {
    font-size: 16px;
    font-weight: 500;
    flex: 1;
    line-height: 1.5;
}

.faq__toggle {
    width: 20px;
    height: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: var(--spacing-sm);
}

.faq__toggle::before,
.faq__toggle::after {
    content: '';
    position: absolute;
    background-color: #1a237e;
    transition: transform 0.3s ease;
}

.faq__toggle::before {
    width: 100%;
    height: 2px;
}

.faq__toggle::after {
    width: 2px;
    height: 100%;
}

/* Open State */
details[open] .faq__toggle::after {
    transform: rotate(90deg);
    /* + -> - にするアニメーション（縦棒を横にする） */
    opacity: 0;
    /* 簡略化：縦棒を消して横棒だけ残す */
}

.faq__answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--color-text);
    display: flex;
    align-items: flex-start;
    border-top: 1px solid transparent;
    /* スペーシング調整 */
}

.faq__a-content {
    flex: 1;
    font-size: 15px;
    line-height: 1.8;
}

.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: var(--spacing-md) 0;
    font-size: 12px;
}

/* Page Top Button */
.page-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    /* アンダーライン除去 */
}

.page-top.show {
    opacity: 1;
    visibility: visible;
}

.page-top:hover {
    transform: translateY(-5px);
    background-color: #1a237e;
    /* Darker blue */
}

.arrow-up {
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: rotate(45deg);
    margin-top: 5px;
    /* Visual center adjustment */
}

/* Responsive PC */
@media (min-width: 768px) {
    .section__title {
        font-size: 32px;
    }

    .hero__title {
        font-size: 72px;
        /* 56px -> 72px */
    }

    .hero__sub {
        font-size: 32px;
        /* Base 26px -> 32px */
    }

    .hero__desc {
        font-size: 24px;
        /* Base 22px -> 24px */
    }

    .hero {
        padding: 60px 0 80px;
        /* .hero自体はFlexbox解除、または単に背景コンテナとして振る舞う */
        display: block;
        text-align: center;
        /* max-width除去 */
        max-width: none;
    }

    .hero__inner {
        /* インナーでレイアウト制御 */
    }

    .hero__content-wrapper {
        flex-direction: row;
        /* PCで横並び */
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
        text-align: left;
    }

    .hero__content {
        margin-bottom: 0;
        padding-right: var(--spacing-md);
        /* 少し中央に寄せるため、左側にpaddingを追加して右(中央)へシフト */
        padding-left: 60px;
        flex: 1;
        max-width: 50%;
        text-align: left;
    }

    .hero__group-right {
        flex: 1;
        max-width: 50%;
    }

    .hero__image {
        margin-top: 0;
        text-align: center;
    }

    .hero__img-person {
        width: auto;
        max-height: 400px;
    }

    .hero__cta {
        text-align: center;
        width: 100%;
        margin-top: 4rem;
        /* 画像との距離 */
    }

    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-container {
        flex-direction: row;
        gap: var(--spacing-lg);
        justify-content: center;
    }

    .cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .support__list {
        grid-template-columns: repeat(3, 1fr);
    }

    .support__item {
        flex-direction: column;
        text-align: center;
        border-bottom: none;
        border-right: 1px solid #eee;
    }

    .support__item:last-child {
        border-right: none;
    }

    .support__num {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }

    /* Page Top PC */
    .page-top {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
    }

    .arrow-up {
        width: 14px;
        height: 14px;
        border-width: 3px;
    }
}