:root {
    --color-primary: #006B8B;
    --color-primary-dark: #26687F;
    --color-secondary: #E0F3F6;
    --color-accent-blue: #2197B2;
    --color-accent-orange: #E5832C;
    --color-text-default: #333333;
    --color-text-subtle: #666666;
    --color-text-light: #757575;
    --color-background-light: #F5F5F5;
    --color-background-form: #EDF7FA;
    --color-background-error: #FDF1E0;
    --color-border: #E5E5E5;
    --color-border-input: #D1D1D1;
    --color-border-divider: #DEDEDE;
    --color-column-blue: #0099B3;
    --color-column-green: #99CC00;
    --color-column-orange: #EE8800;
    --color-column-teal: #009999;
    --color-column-h3: #F19A26;
    --color-tab-inactive: #868282;
    --color-text-placeholder: #AAAAAA;
    --color-text-dark: #1F1F1F;
    --color-error: #EB7500;
    --color-text-notice: #4F4F4F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    background: white;
    overflow-x: hidden;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    padding: 0;
}

.content-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ヘッダー */
.header {
    max-width: 1280px;
    margin: 0 auto;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 24px;
}

.logo {
    width: 190px;
    height: 50px;
    background: url('images/smtb-logo.jpg') center/contain no-repeat;
    margin-left: -8px;
}

.header-text {
    color: var(--color-text-light);
    font-size: 16px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 400;
    line-height: 22.4px;
}

/* メインセクション */
.main-section {
    padding: clamp(24px, 6vw, 48px) 0 clamp(180px, 25vw, 300px);
    background: var(--color-primary);
    position: relative;
    overflow: visible;
}

/* メインセクションのコンテナ - コンテンツ幅制限なし */
.main-section .container {
    max-width: none;
}

@media (min-width: 820px) {
    .main-section {
        padding-bottom: 24px;
        /* この数値を小さくするほど余白が狭くなり、画像も下から切れる */
    }

    .main-section .container {
        padding-left: clamp(80px, 8vw, 120px);
        padding-right: 0;
    }
}

.bg-image {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background-repeat: no-repeat;
    z-index: 1;
}

/* デスクトップ用背景画像 */
@media (min-width: 820px) {
    .bg-image {
        background-image: url('images/select_age.png');
        width: 50%;
        min-width: 400px;
        background-size: cover;
        background-position: right top;
    }
}

/* スマートフォン用背景画像 */
@media (max-width: 820px) {
    .main-section {
        background-color: var(--color-primary);
        position: relative;
        z-index: 0;
        /* コンテンツが上にくるように */
        padding-bottom: clamp(180px, 25vw, 300px);
    }

    .main-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50%;
        background-image: url('images/select_age.png');
        background-repeat: no-repeat;
        background-position: top center;
        background-size: 100% auto;
        z-index: -1;
        /* コンテンツの背面に配置 */
    }

    .bg-image {
        display: none;
    }

    .content-section {
        position: relative;
    }

    .main-content {
        justify-content: flex-start;
    }

    .form-section {
        margin-left: auto;
        margin-right: auto;
        max-width: 800px;
        width: calc(100% - 48px);
    }

    .main-text-content,
    .form-section {
        max-width: 752px !important;
        margin: 0 auto;
        width: calc(100% - 48px);

    }

    .main-content {
        max-width: none;
        align-items: center !important;
    }
}

.main-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.main-text-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 24px;
}

@media (min-width: 820px) {
    .main-text-content {
        margin-left: 24px;
        margin-right: 24px;
        max-width: calc(50% - 48px);
    }
}

.main-title {
    color: white;
    font-size: 16px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 600;
    line-height: 1.6;
    text-align: left;
}

.main-subtitle {
    color: white;
    font-size: 24px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

@media (min-width: 820px) {
    .content-section .content-title {
        white-space: nowrap;
        text-align: center;
    }
}

@media (min-width: 820px) {

    .main-title,
    .main-subtitle {
        text-align: left;
    }
}

.form-section {
    max-width: 600px;
    padding: clamp(20px, 4vw, 32px);
    padding-bottom: 6px;
    background: var(--color-background-form);
    border-radius: clamp(6px, 1vw, 8px);
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 24px);
    position: relative;
    overflow: visible;
    margin: 0 24px;
}

@media (min-width: 820px) {
    .form-section {
        margin-left: 24px;
        margin-right: 24px;
        max-width: calc(50% - 48px);
    }
}

@media (min-width: 820px) {
    .form-section {
        align-items: flex-start;
    }

    .form-description {
        align-self: center;
        width: 100%;
    }
}

.form-description {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-title {
    color: var(--color-text-default);
    font-size: 18px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.form-subtitle {
    color: var(--color-text-default);
    font-size: 14px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    text-align: left;
}

.age-input-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    width: 100%;
    z-index: 3;
}

.age-label {
    color: var(--color-text-default);
    font-size: 14px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 600;
    line-height: 22px;
}

.age-input-container {
    position: relative;
    height: 48px;
}

.age-input {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    background: white;
    border: 1px solid var(--color-border-input);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    position: relative;
    z-index: 2;
}

.age-input.placeholder {
    color: var(--color-text-placeholder);
}

.sp-only {
    display: none;
}

@media (max-width: 820px) {
    .pc-only {
        display: none !important;
    }

    .sp-only {
        display: block;
    }

    .age-input-arrows {
        display: none;
    }

    .age-display-sp {
        display: flex !important;
    }
}

.age-input:focus {
    outline: none;
    border-color: var(--color-accent-blue);
}

.age-input::placeholder {
    color: var(--color-text-placeholder);
    opacity: 1;
}

.age-display-sp {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    background: white;
    border: 1px solid var(--color-border-input);
    font-size: 16px;
    display: none;
    align-items: center;
    cursor: pointer;
    position: relative;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.age-display-sp.placeholder {
    color: var(--color-text-placeholder);
}

.age-input-arrows {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    right: 12px;
    z-index: 2;
    gap: 4px;
}

.arrow-up,
.arrow-down {
    width: 16px;
    height: 16px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.2s;
}

.arrow-up {
    background-image: url('data:image/svg+xml;utf8,<svg width="32" height="24" viewBox="0 0 32 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.6464 14.6036C12.8417 14.7988 13.1583 14.7988 13.3536 14.6036L16.5 11.4571L19.6464 14.6036C19.8417 14.7988 20.1583 14.7988 20.3536 14.6036C20.5488 14.4083 20.5488 14.0917 20.3536 13.8964L16.8536 10.3964C16.6583 10.2012 16.3417 10.2012 16.1464 10.3964L12.6464 13.8964C12.4512 14.0917 12.4512 14.4083 12.6464 14.6036Z" fill="%23616161"/></svg>');
}

.arrow-down {
    background-image: url('data:image/svg+xml;utf8,<svg width="32" height="24" viewBox="0 0 32 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M12.6464 9.39645C12.8417 9.20118 13.1583 9.20118 13.3536 9.39645L16.5 12.5429L19.6464 9.39645C19.8417 9.20118 20.1583 9.20118 20.3536 9.39645C20.5488 9.59171 20.5488 9.90829 20.3536 10.1036L16.8536 13.6036C16.6583 13.7988 16.3417 13.7988 16.1464 13.6036L12.6464 10.1036C12.4512 9.90829 12.4512 9.59171 12.6464 9.39645Z" fill="%23616161"/></svg>');
}

.arrow-up.disabled,
.arrow-down.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.age-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 40px;
}

.age-input::-ms-expand {
    display: none;
}

.age-display-sp.placeholder {
    color: var(--color-text-placeholder);
}

.age-picker {
    height: 210px;
    position: relative;
    overflow: hidden;
    cursor: grab;
}

.age-picker-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 30px;
    transform: translateY(-50%);
    border-top: 1px solid var(--color-accent-blue);
    border-bottom: 1px solid var(--color-accent-blue);
    pointer-events: none;
    z-index: 2;
}

.age-picker-list-container {
    height: 100%;
    overflow-y: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.age-picker-list-container::-webkit-scrollbar {
    display: none;
}

.age-picker-list {
    list-style: none;
    padding-top: 90px;
    padding-bottom: 90px;
}

.age-picker-item {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-text-placeholder);
    transition: all 0.2s;
}

.age-picker-item.active {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text-default);
}

.age-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.age-picker-modal.active {
    visibility: visible;
    opacity: 1;
}

.age-picker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.age-picker-modal-content {
    background: white;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    position: relative;
    z-index: 1001;
}

.age-picker-modal.active .age-picker-modal-content {
    transform: translateY(0);
}

.age-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
}

.age-picker-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-default);
}

.age-picker-done-btn {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-accent-blue);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.content-section {
    padding: clamp(24px, 5vw, 32px) 0 clamp(12px, 2.5vw, 16px);
    background: var(--color-secondary);
    text-align: center;
}

.content-section .content-container {
    padding-left: 0;
    padding-right: 0;
}

.content-section .content-container {
    padding: 0 24px;
}

.content-title {
    color: var(--color-primary-dark);
    font-size: 24px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
}

.columns-section {
    padding: clamp(16px, 3vw, 24px) 0;
    background: var(--color-secondary);
}

.columns-section .content-container {
    padding: 0 24px;
}

.columns-grid {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vw, 24px);
}

.column-card {
    background: white;
    border-radius: 8px;
    border: 1px solid;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.column-content {
    padding: 0;
    background: white;
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    border-top: 1px solid;
}

.column-content.expanded {
    max-height: 200px;
    padding: 24px 16px 40px;
}

.column-content.full-expanded {
    max-height: none;
    padding-bottom: 80px;
}

.column-content.blue {
    border-top-color: var(--color-column-blue);
}

.column-content.green {
    border-top-color: var(--color-column-green);
}

.column-content.orange {
    border-top-color: var(--color-column-orange);
}

.column-content.teal {
    border-top-color: var(--color-column-teal);
}

.column-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, white 80%);
    pointer-events: none;
}

.column-content.full-expanded .column-gradient {
    display: none;
}

.column-section {
    margin-bottom: 40px;
}

.column-content p {
    color: var(--color-text-dark);
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
}

/* Markdown変換後のスタイル調整 */
.column-content h2 {
    color: var(--color-accent-blue);
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    margin: 40px 0 8px;
}

.column-content h3 {
    color: var(--color-column-h3);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 8px;
    border-top: 1px solid var(--color-border-divider);
    padding-top: 16px;
    margin-top: 16px;
}

.column-expand-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-accent-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.column-expand-button::after {
    content: '';
    width: 12px;
    height: 6px;
    background: white;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.column-expand-button.expanded::after {
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.column-card.blue {
    border-color: var(--color-column-blue);
}

.column-card.green {
    border-color: var(--color-column-green);
}

.column-card.orange {
    border-color: var(--color-column-orange);
}

.column-card.teal {
    border-color: var(--color-column-teal);
}

.column-header {
    height: 122px;
    padding: 16px;
    padding-right: 146px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.column-image {
    position: absolute;
    right: 16px;
    width: 122px;
    height: 122px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

@media (max-width: 450px) {
    .column-image {
        width: calc(122px + (100vw - 450px) / 2);
        height: calc(122px + (100vw - 450px) / 2);

    }

    .column-header {
        padding-right: calc(16px + 122px + (100vw - 450px) / 2 + 8px);
    }

    .column-title .br-sp,
    .lifeplan-text .br-sp,
    .content-title .br-sp {
        display: none;
    }
}

.column-text {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.column-subtitle {
    color: var(--color-text-default);
    font-size: 12px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 300;
    line-height: 16px;
}

.column-title {
    color: black;
    font-size: 16px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 600;
    line-height: 24px;
}

@media (min-width: 650px) {
    .column-title {
        white-space: nowrap;
    }

    .br-sp {
        display: none;
    }
}

.column-footer {
    padding: 8px 16px;
    color: white;
    font-size: 14px;
    font-family: 'Hiragino Kaku Gothic ProN', sans-serif;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.column-footer.hidden {
    display: none;
}

.column-footer.blue {
    background: var(--color-column-blue);
}

.column-footer.green {
    background: var(--color-column-green);
}

.column-footer.orange {
    background: var(--color-column-orange);
}

.column-footer.teal {
    background: var(--color-column-teal);
}

.column-card.blue .column-image {
    background-image: url('images/loan1.png');
}

.column-card.green .column-image {
    background-image: url('images/loan2.png');
}

.column-card.orange .column-image {
    background-image: url('images/loan3.png');
}

.column-card.teal .column-image {
    background-image: url('images/loan4.png');
}

.column-footer::after {
    content: '';
    width: 32px;
    height: 32px;
    background: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M16 21.3333L8 13.3333H24L16 21.3333Z" fill="white"/></svg>') no-repeat center;
    flex-shrink: 0;
}

.lifeplan-section {
    padding: 32px 0;
    background: var(--color-primary);
    position: relative;
}

.lifeplan-section.active {
    display: block;
}

.lifeplan-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.lifeplan-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lifeplan-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: left;
}

.lifeplan-subtitle {
    color: white;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    text-align: left;
}

.lifeplan-description {
    height: 150px;
    padding-right: 208px;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.lifeplan-image {
    width: 192px;
    height: 192px;
    position: absolute;
    right: 0;
    top: -33px;
    background: url('images/life_event.png') center/cover;
    border-radius: 8px;
}

.lifeplan-text {
    flex: 1;
    color: white;
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
}

@media (max-width: 400px) {
    .lifeplan-description {
        padding-right: calc(50vw + 8px);
    }

    .lifeplan-image {
        width: calc(50vw - 8px);
        height: calc(50vw - 8px);
    }
}

@media (min-width: 1024px) {
    .lifeplan-header {
        padding-right: var(--lifeplan-content-right-space-desktop);
    }

    .lifeplan-description {
        position: static;
        height: auto;
        padding-right: 0;
        display: block;
    }

    .lifeplan-section .content-container {
        position: relative;
    }

    .lifeplan-image {
        position: absolute;
        width: 300px;
        height: 300px;
        top: 0px;
        bottom: auto;
        right: -120px;
    }

    .lifeplan-text {
        width: auto;
    }

    .lifeplan-content {
        max-width: none;
    }
}

/* ライフイベント選択 - 常に2列 */
.lifeplan-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 2vw, 16px);
}

@media (min-width: 1024px) {
    .lifeplan-buttons {
        margin-right: 140px;
    }
}

.lifeplan-button {
    width: 100%;
    height: 48px;
    padding: 8px 4px !important;
    border-radius: 4px;
    border: 1px solid white;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.lifeplan-button.active {
    background: var(--color-column-blue);
    color: white;
}

.no-lifeevent-selected {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 12px 0 32px;
    background: white;
    border-radius: 8px;
    margin-top: 24px;
}

.no-lifeevent-text {
    color: var(--color-text-default);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

.no-lifeevent-image {
    width: 180px;
    height: 180px;
    background-image: url('images/no_lifeevent_selected.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.lifeplan-button:not(.active) {
    background: white;
    color: var(--color-text-light);
}

.lifeplan-button.active::before {
    content: '';
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99677 15.1709L19.1892 5.97852L20.6034 7.39273L9.99677 17.9993L3.63281 11.6354L5.04703 10.2212L9.99677 15.1709Z" fill="white"/></svg>') no-repeat center;
}

.tab-section {
    background: white;
    padding: 16px 0;
    display: none;
}

.tab-section.active {
    display: block;
}



.tab-nav {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--color-border);
}

@media (min-width: 1024px) {
    .tab-nav {
        justify-content: center;
    }
}

.tab-item {
    padding: 8px 4px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
}

.tab-item.active {
    color: var(--color-accent-blue);
}

.tab-item:not(.active) {
    color: var(--color-tab-inactive);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-accent-blue);
}

.tab-item-text {
    font-size: 18px;
    font-weight: 300;
    line-height: 24px;
}

.article-section {
    padding: 32px 0 64px;
    background: white;
    display: none;
}

.article-section.active {
    display: block;
}



.article-card {
    border: 1px solid var(--color-column-blue);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
}

.article-card.error {
    border-color: #EB7500;
}

.article-header {
    height: 160px;
    background: var(--color-secondary);
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px;
    padding-right: 216px;
}

.article-image {
    width: 200px;
    height: 160px;
    /* 親要素の高さに合わせる */
    position: absolute;
    right: 16px;
    bottom: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
}

@media (max-width: 400px) {
    .article-header {
        padding-right: calc(50vw + 16px);
    }

    .article-image {
        width: calc(50vw);
    }
}

.article-header-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-card.error .article-header {
    background-color: var(--color-background-error);
    height: 80px;
    padding-right: 16px;
    justify-content: center;
}

.article-card.error .article-image {
    display: none;
    /* エラー時は画像を非表示にする */
}

.article-error-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-error);
}

.article-category {
    color: var(--color-text-default);
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
}

.article-title {
    color: var(--color-text-default);
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
}

.article-content {
    padding: 16px;
    background: white;
    position: relative;
    max-height: 200px;
    overflow: hidden;
    padding-bottom: 60px;
}

.article-content.expanded {
    max-height: none;
}

.article-text {
    color: black;
    font-size: 26px;
    font-weight: 600;
    line-height: 32px;
    margin-bottom: 8px;
}

.article-description {
    color: var(--color-text-default);
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
}

.article-description h2 {
    color: var(--color-column-blue);
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    margin: 40px 0 8px;
}

.article-description h3 {
    color: var(--color-column-h3);
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 8px;
    border-top: 1px solid var(--color-border-divider);
    padding-top: 16px;
    margin-top: 16px;

}

.column-content p,
.column-content li,
.article-description p,
.article-description li {
    font-size: 16px;
    font-weight: 300;
    line-height: 26px;
}

.article-description ul,
.column-content ul {
    list-style-position: outside;
    padding-left: 1.5em;
    margin-top: 1em;
    margin-bottom: 1em;
}

.column-content li {
    margin-bottom: 0.5em;
}

.article-description a,
.column-content a {
    color: var(--color-accent-blue);
    text-decoration: underline;
}

.recommended-service-section {
    margin-top: 24px;
}

.recommended-service-title {
    color: var(--color-column-blue);
    font-size: 20px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 16px;
}

.recommended-service-card {
    display: block;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    text-decoration: none;
    color: inherit;
}

.recommended-service-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 16px;
}

.recommended-service-body {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
}

@media (min-width: 768px) {
    .recommended-service-card {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .recommended-service-image {
        width: 200px;
        height: 110px;
        margin-bottom: 0;
    }
}

/* ライフイベント記事内のおすすめサービスのテキストスタイル */
.article-section .recommended-service-body {
    color: var(--color-accent-blue);
    text-decoration: underline;
}

.article-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 42%, white 80%);
    pointer-events: none;
}

.article-content.expanded .article-gradient {
    display: none;
}

.article-card.error .article-gradient {
    display: none;
}

.expand-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-column-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expand-button::after {
    content: '';
    width: 12px;
    height: 6px;
    background: white;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.expand-button.expanded::after {
    clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.recommendation-section {
    padding: 32px 0 26px;
    background: var(--color-primary);
    max-width: 1280px;
    margin: 0 auto;
    display: none;
}

.recommendation-section.active {
    display: block;
}

.recommendation-section .content-container.recommendation-container {
    padding: 0 24px;
}



.recommendation-title {
    color: white;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    margin-bottom: 16px;
}

.carousel-wrapper {
    position: relative;
}

.carousel-arrow {
    display: none;
}

@media (min-width: 1024px) {
    .carousel-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: transparent;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 10;
        padding: 0;
    }

    .recommendation-title {
        text-align: center;
        margin-bottom: 30px;
    }

    .carousel-arrow.left {
        left: -20px;
    }

    .carousel-arrow.right {
        right: -20px;
    }

    .carousel-arrow.left svg {
        transform: rotate(180deg);
    }

}

@media (max-width: 1024px) {
    .carousel-arrow {
        display: none !important;
    }
}

.carousel {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: clamp(12px, 2vw, 24px);
    padding-bottom: 16px;
    margin-bottom: -16px;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 246px;
    height: 246px;
    border-radius: clamp(6px, 1vw, 8px);
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .carousel-item {
        flex-basis: 356px;
        height: 160px;
    }
}

.carousel-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-image-tag {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.carousel-title {
    color: white;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}

.carousel-subtitle {
    color: white;
    font-size: 12px;
    font-weight: 300;
    line-height: 16px;
}

.carousel-arrow.disabled {
    cursor: not-allowed;
}

.carousel-arrow.disabled svg rect {
    fill: #F5F5F5;
}

.carousel-arrow.disabled svg path {
    fill: var(--color-text-placeholder);
}

.consultation-section {
    padding: 16px 0;
    background: white;
    text-align: center;
}

.notice-section {
    padding: 24px 0;
    max-width: 1280px;
    margin: 0 auto;
    background: var(--color-background-light);
    text-align: center;
}

.consultation-title {
    color: var(--color-text-default);
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    margin-bottom: 16px;
}

.consultation-button {
    background: var(--color-accent-orange);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    margin-bottom: 32px;
}

.notice-content {
    text-align: left;
    margin-bottom: 4px;
}

.notice-item {
    margin-bottom: 24px;
}

.notice-item:last-child {
    margin-bottom: 0;
}

.notice-item-text {
    color: var(--color-text-notice);
    font-size: 12px;
    font-weight: 300;
    line-height: 18px;
}

.notice-item-text a {
    color: var(--color-accent-blue);
    text-decoration: underline;
}

.related-links {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    padding: clamp(24px, 4vw, 32px) 0;
    border-top: 1px solid var(--color-border);
}

.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
}

.link-item {
    color: #2197B2;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    text-decoration: none;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.links-grid a:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 1024px) {
    .links-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 24px;
        text-align: center;
    }

    .link-item {
        border-bottom: none;
        padding-bottom: 0;
        position: relative;
    }

    .link-item:not(:last-child)::after {
        content: '|';
        color: var(--color-border);
        position: absolute;
        right: -12px;
        transform: translateX(50%);
    }
}

.footer {
    padding: clamp(32px, 5vw, 40px) 0 clamp(32px, 5vw, 40px);
    max-width: 1280px;
    margin: 0 auto;
    background: var(--color-primary);
    color: white;
    text-align: center;
}

.footer-logo {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 16px;
}

.footer-info {
    font-size: 12px;
    font-weight: 300;
    line-height: 18px;
    margin-bottom: 24px;
    margin-bottom: 36px;
}

.footer-info span {
    display: block;
    margin-bottom: 4px;
}

.footer-copyright {
    font-size: 10px;
    font-weight: 300;
    line-height: 14px;
}

.age-input-wrapper {
    position: relative;
    width: 100%;
    height: 48px;
}

.age-input-wrapper .age-input {
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 10px;
}

.custom-select-options {
    position: absolute;
    top: 48px;
    left: 0;
    width: 100%;

    max-height: 300px;
    overflow-y: auto;

    background: white;
    border: 1px solid var(--color-border-input);
    border-top: none;
    z-index: 100;
    list-style: none;
    padding: 0;
    display: none;
}

.custom-select-options.active {
    display: block;
}

.custom-select-item {
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    color: var(--color-text-default);
    transition: background 0.2s;
    border-bottom: 1px solid var(--color-background-light);
}

.custom-select-item:hover {
    background: var(--color-secondary);
}

.custom-select-item.disabled {
    color: var(--color-text-placeholder);
    cursor: default;
    pointer-events: none;
    background: #f9f9f9;
}

.column-card,
.article-card {
    -webkit-tap-highlight-color: transparent;
}

/* SP用 スクロールダウン矢印 */
.scroll-down-arrow {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    z-index: 5;
}

.footer-code {
    display: block;
    font-size: 12px;
    font-weight: 300;
    line-height: 18px;
    margin-bottom: 16px;
    /* SP表示時の下の余白 */
}

/* 会社名の余白調整（SP時は下に少し隙間を空ける） */
.footer-logo {
    margin-bottom: 4px;
}

@media (min-width: 820px) {

    .footer-title-group {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 16px;
        margin-bottom: 4px;
    }

    /* PC時は個別の下の余白をリセット */
    .footer-logo,
    .footer-code {
        margin-bottom: 0;
    }
}