/*
Theme Name: みぞえ社労士オフィス
Theme URI: 
Author: Your Name
Author URI: 
Description: みぞえ社労士オフィス カスタムテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mizoe-sharoshi
*/

/* ニュース個別ページ */
@font-face {
    font-family: 'Senobi Gothic';
    src: url('fonts/Senobi-Gothic-Regular.ttf') format('truetype');
    font-weight: normal; /* 400 */
    font-style: normal;
}

@font-face {
    font-family: 'Senobi Gothic';
    src: url('fonts/Senobi-Gothic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Senobi Gothic';
    src: url('fonts/Senobi-Gothic-Bold.ttf') format('truetype');
    font-weight: bold; /* 700 */
    font-style: normal;
}

.wf-senobi {
    font-family: 'Senobi Gothic', sans-serif;
    letter-spacing: 2.2px;
}
.news-single {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.news-single .entry-date {
    display: block;
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.news-single .entry-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
}

.news-single .post-thumbnail {
    margin-bottom: 30px;
}

.news-single .post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.news-single .entry-content {
    line-height: 1.8;
    margin-bottom: 50px;
}

.news-single .entry-content p {
    margin-bottom: 1.5em;
}

/* ページネーション */
.post-navigation {
    margin: 60px 0 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-previous,
.nav-next {
    flex: 0 0 45%;
    max-width: 45%;
}

.nav-back {
    flex: 0 0 10%;
    text-align: center;
}

.nav-previous a,
.nav-next a {
    display: block;
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #1a73e8;
}

.nav-back a {
    display: inline-block;
    padding: 5px 15px;
    color: #1a73e8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #0059b2;
    white-space: nowrap;
}

.nav-back a:hover {
    background-color: #e0e0e0;
}

.nav-arrow {
    font-weight: bold;
    margin: 0 5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-single {
        padding: 20px 15px;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-previous,
    .nav-next,
    .nav-back {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .nav-back {
        order: 3;
    }
}

/* 基本スタイル */
:root {
    --primary-color: #1a73e8;
    --text-color: #333;
    --white: #fff;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --gray-dark: #757575;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
    height: 600px; /* Adjust height as needed */
    position: relative; /* Crucial for positioning children */
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 300px); /* Create space on the right */
    height: 100%;
    z-index: 2; /* Above the blue box */
}

.hero-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the area */
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    z-index: 3; /* Above the image */
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.5;
}

.hero-blue-box {
    position: absolute;
    top: 250px; /* Margin from top */
    right: 0;
    width: 450px; /* Adjust width */
    bottom:-50px; /* Overlap downwards */
    background-color: #0059b2;
    z-index: 1; /* At the very back */
}

.hero-logo {
    position: absolute;
    top: 180px; /* Adjust vertical position */
    right: 200px; /* Adjust horizontal position */
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 3; /* On top of the image */
}

.hero-logo img {
    max-width: 150px;
}

.scroll-indicator {
    position: absolute;
    bottom: -80px;
    right: 150px; /* Adjust horizontal position */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3; /* On top of the image */
}

.scroll-text {
    writing-mode: vertical-rl;
    color: #ccc;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-line {
    width: 1px;
    height: 80px;
    background-color: #ccc;
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #fff;
    top: -100%;
    animation: scroll-down 2.5s infinite ease-in-out;
}

@keyframes scroll-down {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(200%);
    }
    100% {
        transform: translateY(200%);
    }
}

/*--------------------------------------------------------------
# Intro Section
--------------------------------------------------------------*/
.intro-section {
    padding: 80px 0;
    text-align: center;
}

.intro-title {
    font-size: 1.8rem;
    color: #0059b2;
    font-weight: bold;
    margin-bottom: 30px;
}

.intro-text {
    max-width: 850px;
    margin: 0 auto;
    line-height: 2;
    text-align: left;
    color: #6e6555;
}


/*--------------------------------------------------------------
# サービスページヘッダー
--------------------------------------------------------------*/
.page-header-service {
    background-image: url('images/head_service.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* スマホ用のヘッダー画像調整 */
@media (max-width: 768px) {
    /* デフォルトのヘッダー画像設定 */
    .page-header-service {
        height: 220px !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    /* デフォルトの背景画像を設定 */
    .page-header-service {
        background-image: url('images/head_service-sp.jpg') !important;
    }
    
    /* 各ページ固有のヘッダー画像をスマホ用に切り替え */
    .page-header-service[style*="head_service.jpg"],
    .page-header-service[style*="head_service.jpg"] {
        background-image: url('images/head_service-sp.jpg') !important;
    }
    
    .page-header-service[style*="head_service02.jpg"] {
        background-image: url('images/head_service02-sp.jpg') !important;
    }
    
    .page-header-service[style*="head_service03.jpg"] {
        background-image: url('images/head_service03-sp.jpg') !important;
    }
    
    .page-header-service[style*="head_company.jpg"] {
        background-image: url('images/head_company-sp.jpg') !important;
    }
    
    .page-header-service[style*="head_contact.jpg"] {
        background-image: url('images/head_contact-sp.jpg') !important;
    }
    
    .page-header-service[style*="head_privacy.jpg"] {
        background-image: url('images/head_privacy-sp.jpg') !important;
    }
}

.page-header-service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.page-header-service__inner {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.7);
    display: inline-block;
    padding: 2rem 8rem;
    text-align: center;
    line-height: 1.3;
}

/* スマホ向けの調整 */
@media (max-width: 768px) {
    .page-header-service__inner {
        padding: 1.2rem 2.5rem;
        width: auto;
        max-width: 90%;
    }
    
    .page-header-service__title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .page-header-service__subtitle {
        font-size: 1rem;
        margin-top: 5px;
    }
}

.page-header-service__title {
    font-size: 3rem;
    margin: 0;
    color: #333;
    letter-spacing: 2px;
}

.page-header-service__subtitle {
    font-size: 1.2rem;
    margin: 10px 0 0;
    color: #0059B2;
}


/*--------------------------------------------------------------
# サービスページ お悩みセクション
--------------------------------------------------------------*/
.service-problems-section {
    padding: 60px 0;
}

.service-problems-section .container {
    background-color: #e5effd;
    padding: 40px 80px;
    border-radius: 10px;
    max-width: 1000px;
}

.service-problems-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}

.service-problems-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-problems-list li {
    background: url('images/checkbox.png') no-repeat left center;
    background-size: 20px;
    padding-left: 35px;
    font-size: 18px;
    margin-bottom: 20px;
}

.service-problems-icon {
    max-width: 170px;
}

.service-problems-icon img {
    width: 100%;
    height: auto;
}

/*--------------------------------------------------------------
# サービスページ お悩みセクション
--------------------------------------------------------------*/
.highlight-yellow {
    color: #fcb220;
}

/*--------------------------------------------------------------
# フローセクション
--------------------------------------------------------------*/
.flow-section {
    padding: 80px 0;
    background-image: url('images/bg_flow.jpg');
    background-size: cover;
    background-position: center;
}

.flow-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.flow-section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 60px;
}

.flow-container {
    background-color: #fff;
    padding: 50px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.flow-steps {
    position: relative;
    padding-left: 75px; /* Icon width + space */
}

.flow-step {
    position: relative;
    padding-bottom: 50px;
}

.flow-step::before {
    content: '';
    position: absolute;
    left: -52.5px; /* -(75px - (50px/2) - (5px/2)) */
    top: 0;
    height: 100%;
    width: 5px;
    background-color: #0059b2;
}

.flow-step--latter::before {
    background-color: #f9e5e2;
}

.flow-step:nth-child(-n+4)::before {
    background-color: #0059b2 !important;
}

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

.flow-step:last-child::before {
    display: none;
}

.flow-step-number {
    position: absolute;
    left: -75px; /* -(75px - (50px/2)) */
    top: 0;
    width: 50px;
    height: 50px;
    background-color: #0059b2;
    color: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
    line-height: 1.2;
}
.flow-step-number span{
    font-size: 1.2rem;
}
.flow-step--latter .flow-step-number {
    background-color: #ffa900;
}

.flow-step-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0059b2;
    margin-bottom: 20px;
}

.flow-step-content p {
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
    margin-bottom: 1em;
}

.flow-step-content ol {
    list-style-position: inside;
    padding-left: 1em;
    margin-bottom: 1em;
}

.flow-step-content li {
    margin-bottom: 0.5em;
}

.flow-step-icon {
    position: absolute;
    right: 100px;
    top: 100px;
    max-width: 200px;
}

.note {
    color: #0059b2;
    font-size: 0.9rem;
}

.text-kome {
    color: #0059b2;
}

/*--------------------------------------------------------------
# 対象となる主な傷病セクション
--------------------------------------------------------------*/
.illness-section {
    padding: 60px 0;
    background-color: #f0f5fa;
}

.illness-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.illness-section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 40px;
}

.illness-table-wrapper {
    overflow-x: auto;
    max-width: 1000px;
    margin: 0 auto;
}

.illness-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-style: hidden; /* Hide outer border */
    box-shadow: 0 0 0 1px #a1b1c9; /* Use box-shadow to create outer border */
}

.illness-table th, .illness-table td {
    border: 1px solid #a1b1c9;
    padding: 15px;
    text-align: left;
    vertical-align: top;
}

.illness-table thead {
    background-color: #0059b2;
    color: #fff;
    border-bottom: 1px solid #a1b1c9;
}

.illness-table th {
    font-weight: bold;
}

.illness-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.illness-table td:first-child {
    width: 30%;
    font-weight: bold;
    vertical-align: middle;
}

/*--------------------------------------------------------------
# サポートセクション
--------------------------------------------------------------*/
.support-section {
    padding: 60px 0;
}

.support-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 60px;
    color: #333;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.support-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 50px;
    height: 3px;
    background-color: #0059b2;
}

.support-items {
    margin-top: 40px;
}

.support-item {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.support-item__image {
    flex: 1;
    max-width: 45%;
}

.support-item__image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.support-item__text {
    flex: 1;
    padding: 0 40px;
}

.support-item__text h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0059b2;
    margin-bottom: 20px;
}

.support-item__text p {
    font-size: 1rem;
    line-height: 1.9;
    color: #333;
}

/*--------------------------------------------------------------
# サービスページ コンテンツ
--------------------------------------------------------------*/
.service-section {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.service-title-container {
    position: relative;
    flex: 0 0 33%;
    max-width: 33%;
    flex-shrink: 0;
}

.service-title-container .section-title {
    font-size: 24px;
    font-weight: bold;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.service-title-container .section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100vw;
    width: calc(100vw + 100%);
    height: 100%;
    background-color: #0059b2;
    z-index: -1;
}

.service-description-container {
    padding: 20px 0 20px 40px;
    flex-grow: 1;
}

.service-description-container p {
    font-size: 16px;
    line-height: 1.9;
    color: #333;
    margin: 0;
}

.section-subtitle-center {
    text-align: center;
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.text-center {
    text-align: center;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2;
}

.service-content-section {
    padding: 30px 0;
}

.service-content-section .container {
    max-width: 700px;
}

.case-section {
    padding: 60px 0;
    overflow-x: hidden; /* 横スクロール防止 */
}


.case-section {
    overflow-x: hidden; /* 横スクロール防止 */
}

.case-item {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
    position: relative; /* 基準点 */
}

.case-item:nth-child(even) {
    flex-direction: row-reverse;
}

.case-blue-box {
    position: absolute;
    background-color: #e5effd;
    height: 80%;
    bottom: -40px;
    width: 100vw; /* 画面幅 */
    z-index: 1; /* 画像とテキストより後ろ */
}

.case-item:nth-child(odd) .case-blue-box {
    right: calc(50% + 15px); /* (コンテナの半分) + (コンテナのpadding) */
}

.case-item:nth-child(even) .case-blue-box {
    left: calc(50% + 15px);
}

.case-image-wrapper,
.case-text-wrapper {
    position: relative; /* 背景より手前に表示 */
    z-index: 2;
}

.case-image-wrapper {
    flex: 0 0 45%;
}

.case-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.case-text-wrapper {
    flex: 1;
    padding: 0 80px;
}

.case-item:nth-child(even) .case-text-wrapper {
    padding: 0 80px;
}

/* Prevention Section */
.prevention-section {
    padding: 60px 0;
}

.prevention-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.prevention-item:nth-child(even) {
    flex-direction: row-reverse;
}

.prevention-image {
    flex: 0 0 40%;
}

.prevention-image img {
    width: 100%;
    height: auto;
    display: block;
}

.prevention-text {
    flex: 1;
}

.prevention-title {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
    color: #000; /* デフォルトの文字色を黒に */
}

.prevention-title .highlight-orange {
    color: #ffa900;
}

.prevention-title .highlight-blue {
    color: #0059b2;
}

.prevention-section:not(.prevention-section-blue) .prevention-title::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #0059b2;
}


.prevention-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.prevention-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.prevention-list li {
    background: url('images/list-icon.png') no-repeat left 5px;
    padding-left: 25px;
    margin-bottom: 15px;
}


/* Ribbon Heading */
.ribbon-heading-wrapper {
    margin: 60px 0;
}

.ribbon-heading {
    background-color: #e5effd;
    color: #333;
    text-align: center;
    letter-spacing: 2px;
    padding: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 75%, 50% 100%, 0 75%);
    padding-bottom: 40px; /* 切り込み分の余白を追加 */
}

.highlight-gold {
    color: #ffbe40;
}

/* Recommendation Section */
.recommendation-section {
    padding: 60px 0;
}

.recommendation-box {
    border: 2px solid #0059b2;
    padding: 40px;
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.recommendation-box::before,
.recommendation-box::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #0059b2;
}

.recommendation-box::before {
    top: -10px;
    right: -10px;
}

.recommendation-box::after {
    bottom: -10px;
    left: -10px;
}

.recommendation-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 30px;
}

.recommendation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

.recommendation-list li::before {
    content: '・';
    position: absolute;
    left: 0;
}

/* Fee Table Section */
.fee-table-section {
    padding: 60px 0;
}

.fee-table-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 40px;
    color: #0059b2;
}

.fee-table-wrapper {
    overflow-x: auto;
    max-width: 600px;
    margin: 0 auto;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.fee-table th, .fee-table td {
    border: 1px solid #ccc;
    padding: 15px;
}

.fee-table th {
    background-color: #e5effd;
    font-weight: bold;
}

.fee-table td:first-child {
    background-color: #f9f9f9;
    font-weight: bold;
}

.fee-note {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
}

.fee-intro {
    text-align: center;
    margin-bottom: 30px;
}

.fee-table-section h3 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #0059b2;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5effd;
}

/* Professional Section */
.professional-section {
    background-color: #e5effd;
    padding: 60px 0;
}

.professional-section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: #0059b2;
    margin-bottom: 40px;
}

.professional-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.professional-item {
    background-color: #fff;
    padding: 30px;
}

.professional-item h3 {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.professional-item img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.professional-item ul {
    list-style: none;
    padding-left: 20px;
}

.professional-item ul li {
    margin-bottom: 10px;
    position: relative;
}

.professional-item ul li::before {
    content: '・';
    position: absolute;
    left: -20px;
}

/* Rulebook Section */
.rulebook-section {
    padding: 60px 0;
}

.rulebook-section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    color: #000;
}

.rulebook-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: #0059b2;
}

.rulebook-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.rulebook-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
}

.rulebook-item:nth-child(even) {
    flex-direction: row-reverse;
}

.rulebook-image {
    flex: 0 0 45%;
}

.rulebook-image img {
    width: 100%;
    height: auto;
}

.rulebook-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

.rulebook-text h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0059b2;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    text-align: center;
}

.rulebook-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: calc(100% + 50px); /* テキストエリアの幅 + α */
    height: 2px;
    background-color: #0059b2;
}

.rulebook-item:nth-child(even) .rulebook-text h3::after {
    left: auto;
    right: 0;
}

/* CTA Section */
.simple-cta-section {
    background-color: #e5effd;
    padding: 60px 0;
    text-align: center;
}

.simple-cta-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 30px;
}

.simple-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0059b2;
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 20px 60px;
    border-radius: 50px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.simple-cta-button:hover {
    background-color: #004488;
}

.simple-cta-button .icon-mail {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    fill: #fff;
}

.case-number {
    display: inline-block;
    background-color: #0059b2;
    color: #fff;
    font-size: 0.8rem;
    padding: 5px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.case-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.case-subtitle {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.case-description {
    line-height: 1.8;
}

/*--------------------------------------------------------------
#/* プライバシーポリシーページ */
.privacy-policy-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 15px;
    width: 100%;
    box-sizing: border-box;
}

.privacy-policy-text {
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.privacy-policy-text h2,
.privacy-policy-text h3 {
    color: #333;
    margin: 2em 0 1em;
    font-weight: bold;
}

.privacy-policy-text h2 {
    font-size: 24px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.privacy-policy-text h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #333;
}

.privacy-policy-text h3 {
    font-size: 18px;
    padding: 8px 0 8px 15px;
    background-color: #f9f9f9;
}


.privacy-policy-text ul,
.privacy-policy-text ol {
    list-style: none;
    padding-left: 0;
    margin: 1em 0 1.5em;
}

.privacy-policy-text ol {
    list-style: decimal;
    list-style-position: inside;
}

.privacy-policy-text ul {
    list-style: disc;
    list-style-position: inside;
}


.definition-box {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 20px 15px;
    margin: 25px 0;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/*--------------------------------------------------------------
#/* ニュース一覧ページ
--------------------------------------------------------------*/
.news-container {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 15px;
    width: 100%;
    box-sizing: border-box;
    gap: 40px;
    align-items: flex-start;
}

.news-main {
    flex: 1;
}

.news-list {
    margin-bottom: 40px;
}
.news-list__text{
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
    color: #1557b0;
}
.news-item {
    padding: 20px 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid #eee;
}

.news-item__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 220px; /* 日付とカテゴリーの幅を確保 */
}

.news-item__category {
    color: #ffb24f;
    font-size: 14px;
    font-weight: bold;
}


.news-item__title {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    flex-grow: 1;
}
.news-title{
	text-align: left;
}

.news-item__title a {
    color: #333;
    text-decoration: none;
    display: block;
    position: relative;
    transition: color 0.3s;
}


.news-item__title a:hover {
    color: #0059b2;
}


.news-item__arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #0059b2;
    font-size: 12px;
}

/* ページネーション */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.pagination .page-numbers.current {
    background-color: #0059b2;
    color: #fff;
    border-color: #0059b2;
}

.pagination .page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* サイドバー */
.news-sidebar {
    width: 250px;
    flex-shrink: 0;
    background-color: #0059b2;
    color: #fff;
    padding: 20px 0;
}

.news-sidebar a {
    color: #fff;
}

.news-sidebar a:hover {
    color: #fff;
    opacity: 0.9;
}

.sidebar-widget {
    margin: 0 15px 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Other Contact Methods Section */
.other-contact-methods {
    background-color: #e5effe;
    padding: 60px 20px;
    text-align: center;
}
.other-contact-methods h2{
    font-size: 1.6rem;
    margin-bottom: 1em;
    color: #000;
}
.other-contact-methods .section-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.other-contact-methods .section-description {
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.contact-required-items {
    display: inline-block;
    text-align: left;
    margin-bottom: 40px;
    list-style-position: inside;
    padding-left: 0;
}
.contact-required-items li {
    margin-bottom: 10px;
}
.office-info-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}
.office-info-logo img {
    max-width: 120px;
    background: #fff;
    padding: 10px;
}
.office-info-details {
    text-align: left;
}
.office-info-details p {
    margin: 5px 0;
    font-weight: bold;
}
.office-info-details .office-name {
    font-size: 1.2rem;
}
.office-hours p {
    margin: 5px 0;
    font-size: 0.9rem;
}
.widget-title {
    font-size: 16px;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-weight: bold;
}

.category-list,

.merit-main-title.wf-senobi {
    font-family: 'Senobi Gothic', sans-serif;
}
.archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li,
.archive-list li {
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.category-list li:last-child,
.archive-list li:last-child {
    border-bottom: none;
}

.category-list a,
.archive-list a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 8px 10px;
    border-radius: 3px;
    opacity: 0.9;
}

.category-list a:hover,
.archive-list a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    padding-left: 15px;
    opacity: 1;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .news-sidebar {
        width: 100%;
        order: 2;
    }
    
    .news-main {
        order: 1;
    }
    
    .news-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .news-item__date {
        padding-top: 0;
    }
}

/*--------------------------------------------------------------
# サイトマップ
--------------------------------------------------------------*/
.sitemap-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 15px;
    width: 100%;
    box-sizing: border-box;
}

.sitemap-logo {
    text-align: center;
}

/*--------------------------------------------------------------
# モバイルメニュー
--------------------------------------------------------------*/
.menu-toggle {
    display: none; /* デスクトップでは非表示 */
}

.close-menu-toggle {
    display: block;
    background: #0059b2;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.close-box {
    position: relative;
    width: 24px;
    height: 24px;
}

.close-inner,
.close-inner::before,
.close-inner::after {
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.close-inner {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.close-inner::before {
    content: '';
    transform: rotate(90deg);
}

.main-navigation {
    display: none;
}

@media (max-width: 768px) {
  .header-desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block; /* スマホで表示 */
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .hamburger-box {
        display: inline-block;
        position: relative;
        width: 30px;
        height: 24px;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #0059b2;
        left: 0;
        transition: transform 0.3s ease;
    }

    .hamburger-inner {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-inner::before {
        top: -10px;
    }

    .hamburger-inner::after {
        bottom: -10px;
    }

    .main-navigation {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #0059b2;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .main-navigation.is-open {
        transform: translateX(0);
    }

    .main-navigation-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        background-color: #fff;
        flex-shrink: 0;
    }

    .mobile-menu-header .custom-logo-link {
        display: flex;
        align-items: center;
        text-decoration: none;
        color: #333;
    }

    .mobile-menu-header .custom-logo {
        height: 30px;
        width: auto;
        margin-right: 10px;
    }

    .mobile-menu-header .site-title-text {
        font-size: 16px;
        font-weight: bold;
    }

    .mobile-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        flex-grow: 1;
    }

    .mobile-menu li a {
        display: block;
        padding: 18px 20px;
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        position: relative;
    }

    .mobile-menu li a::after {
        content: '>';
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
    }

    .mobile-menu .sub-menu {
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: rgba(0, 0, 0, 0.1);
    }

    .mobile-menu .sub-menu li a {
        padding-left: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }

    .mobile-menu .sub-menu li:first-child a {
        border-top: none;
    }

    .mobile-menu-bottom {
        padding: 20px;
        text-align: center;
        flex-shrink: 0;
    }

    .mobile-sub-menu {
        list-style: none;
        padding: 0;
        margin: 0 0 20px;
    }

    .mobile-sub-menu li {
        margin-bottom: 10px;
    }

    .mobile-sub-menu a {
        color: #fff;
        text-decoration: none;
        font-size: 14px;
    }

    .mobile-menu-logo {
        margin-bottom: 20px;
    }

    .mobile-menu-logo img {
        max-width: 120px;
    }

    .mobile-menu-copyright {
        font-size: 12px;
        color: #fff;
    }
    h3.merit-main-title{
        text-align: left;
    }
    .merit-section .container{
        flex-direction: column;
    }
    .merit-section .news-left{
        margin-bottom: -10px;
    }
}

.sitemap-logo {
    margin-bottom: 40px;
}

.sitemap-logo img {
    max-width: 200px;
    height: auto;
}

.sitemap-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.sitemap-column {
    flex: 1;
    min-width: 280px;
}

.sitemap-heading {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin: 0 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0059b2;
}

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.sitemap-list li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 16px;
}

.sitemap-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #0059b2;
    border-radius: 50%;
}

.sitemap-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 4px 0;
}

.sitemap-list a:hover {
    color: #c80000;
    text-decoration: underline;
}

.sitemap-copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #777;
    font-size: 14px;
}

@media (max-width: 768px) {
    .sitemap-grid {
        flex-direction: column;
        gap: 30px;
    }
    
    .sitemap-column {
        width: 100%;
    }
}

/*--------------------------------------------------------------
# お問い合わせフォーム
--------------------------------------------------------------*/
.contact-form-container {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
}

.contact-form-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #000;
    text-align: center;
}

.contact-form-description {
    margin-bottom: 40px;
    line-height: 1.8;
    text-align: center;
}

/*--------------------------------------------------------------
# Contact Form 7 スタイル
--------------------------------------------------------------*/
.wpcf7-form {
    border-top: 1px solid #ddd;
}

.form-row {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 20px 0;
    align-items: center;
}

.form-label {
    width: 240px;
    flex-shrink: 0;
    padding-right: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.form-field {
    flex-grow: 1;
}

.required-badge {
    background-color: #c80000;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    margin-left: 10px;
    border-radius: 3px;
    font-weight: normal;
}

.form-note {
    display: block;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
}

.wpcf7-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f7f7f7;
    font-size: 16px;
}

.wpcf7-form-control.wpcf7-textarea {
    height: 200px;
}

.privacy-policy-text p {
    margin-bottom: 20px;
    padding-left: 1.5em;
}


.privacy-policy-text ul,
.privacy-policy-text ol {
    padding-left: 4em;
    margin: 1em 0;
    list-style-position: outside;
}

.privacy-policy-text li {
    margin-bottom: 0.5em;
    padding-left: 0.5em;
}

.privacy-policy-text li:before {
    content: "";
    margin-right: 0.5em;
}

.privacy-policy-text ul ul,
.privacy-policy-text ol ol {
    margin: 0.5em 0 0.5em 1em;
}

.definition-box {
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    padding: 20px;
    margin: 15px 0;
}

.privacy-policy-box {
    max-height: 150px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 20px;
    margin: 20px auto;
    text-align: left;
    background-color: #f7f7f7;
    max-width: 600px;
}

.acceptance-field {
    margin-top: 20px;
}

.submit-button-container {
    text-align: center;
    margin-top: 40px;
}

.wpcf7-submit {
    display: inline-block;
    width: 280px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ccc;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.wpcf7-submit:hover {
    background-color: #f5f5f5;
}

.wpcf7-submit::after {
    content: '>';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-label {
        width: 100%;
        margin-bottom: 10px;
    }

    .form-field {
        width: 100%;
    }
}

/*--------------------------------------------------------------
# パンくずリスト
--------------------------------------------------------------*/
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #0059B2;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #333;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 95px; /* ヘッダーの高さ分の余白 */
    background-color: #fff;
}

body h2, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative; /* .cta-left の基準点 */
}

/* 管理バー表示時の調整 */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* ヘッダースタイル */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
}

.site-branding a.custom-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-branding .custom-logo {
    height: 75px;
    width: auto;
    margin-right: 15px;
}

.site-branding .site-title-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: #645b4a;
    margin: 0;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.header-desktop-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 50px; /* 中央に寄せるための余白 */
}

.header-nav {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.header-nav li {
    margin-left: 30px;
}

.header-nav a {
    font-weight: 500;
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
}

/* Dropdown Menu */
.header-nav li.menu-item-has-children {
    position: relative;
}

.header-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 180px;
    border-radius: 4px;
    z-index: 1000;
}

.header-nav li.menu-item-has-children:hover > .sub-menu {
    display: block;
}

.header-nav .sub-menu li {
    margin: 0;
}

.header-nav .sub-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    white-space: nowrap;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.header-nav .sub-menu li a:hover {
    background-color: #f5f5f5;
}

.header-nav li.menu-item-has-children > a {
    position: relative;
    padding-right: 14px;
}

.header-nav li.menu-item-has-children > a::after {
    content: '▼';
    font-size: 0.6em;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.header-nav li.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg);
}

.contact-button {
    display: inline-block;
    background-color: #0059b2;
    color: white !important;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: #004488;
    color: white !important;
}

/* ハンバーガーメニュー */
.menu-toggle {
    display: none; /* デフォルトは非表示 */
    position: relative;
    width: 40px;
    height: 40px;
    background-color: #0059b2;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-box {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    transition: transform 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    left: 0;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* メニュー展開時のスタイル */
.menu-open .site-header {
    background-color: #fff;
}

.menu-open .menu-toggle {
    background-color: #0059b2;
}

.menu-open .hamburger-inner {
    background-color: transparent;
}

.menu-open .hamburger-inner::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-open .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* フッタースタイル */
.site-footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-branding h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-menu,
.footer-news {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li,
.footer-news li {
    margin-bottom: 10px;
}

.footer-menu a,
.footer-news a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-menu a:hover,
.footer-news a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    text-align: center;
}

.copyright {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Office Section */
.office-section {
    padding: 60px 0;
}

.office-section .section-title-underline {
    position: relative;
}

.office-info-wrapper {
    padding: 40px;
    margin-top: -32px; /* Overlap with the line and title */
    position: relative;
    z-index: 0;
    background-color: #fff;
}

.office-info-list {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px 30px;
    margin-bottom: 40px;
    max-width: 500px; /* Set a max-width for the list */
    margin-left: auto; /* Center the list */
    margin-right: auto; /* Center the list */
}

.office-info-list dt {
    font-weight: bold;
    text-align: right;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.office-info-list dd {
    margin: 0;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.office-image img {
    width: 100%;
    height: auto;
}

/* Profile Section */
.profile-section {
    padding: 60px 0;
}

.profile-container {
    position: relative;
}

.section-title-underline {
    background-color: #0059b2;
    color: #fff;
    padding: 10px 20px;
    display: inline-block;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.section-title-wrapper {
    text-align: center;
    position: relative;
    margin-bottom: 40px;
}

.profile-container::before {
    content: '';
    position: absolute;
    top: 53px; /* Adjust to title vertical center */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0059b2;
    z-index: 1;
}


.section-title-underline ::after{
    content: '';
    position: absolute;
    top: 53px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0059b2;
    z-index: 1;
}.profile-content-wrapper {
    padding: 40px;
    margin-top: -32px; /* Overlap with the line and title */
    position: relative;
    z-index: 0;
    background-color: #fff;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-image {
    flex: 0 0 300px;
}

.profile-image img {
    width: 100%;
    height: auto;
}

.profile-text {
    flex: 1;
}

.profile-text h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.profile-text h4 {
    font-size: 1.2rem;
    color: #0059b2;
    margin-top: 30px;
    margin-bottom: 10px;
}

.profile-text p {
    line-height: 1.8;
    margin-bottom: 1em;
}


/* レスポンシブデザイン */
/* モバイルメニュー */
.main-navigation {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0059b2;
    z-index: 1000;
    overflow-y: auto;
    padding-top: 95px; /* ヘッダーの高さ */
}

.menu-open .main-navigation {
    display: block;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.mobile-menu .has-children > a {
    font-weight: bold;
}

.mobile-menu .sub-menu {
    list-style: none;
    padding-left: 20px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.mobile-menu .sub-menu li a {
    border-bottom: none;
    padding: 12px 20px;
}

.mobile-menu .has-children > a::after {
    content: '>';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-bottom {
    padding: 30px 20px;
    text-align: center;
}

.mobile-sub-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.mobile-sub-menu li {
    margin-bottom: 15px;
}

.mobile-sub-menu a {
    color: white;
    text-decoration: none;
}

.mobile-menu-logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.mobile-menu-copyright p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 991px) {
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .header-nav.active {
        display: flex;
    }

    .header-nav li {
        margin: 10px 0;
    }

    .contact-button {
        margin: 15px 0 0;
        display: block;
        text-align: center;
    }

    .menu-toggle {
        display: block;
    }

    .header-desktop-nav {
        display: none;
    }

    .menu-toggle.active .hamburger {
        background-color: transparent;
    }

    .menu-toggle.active .hamburger::before {
        transform: rotate(45deg);
        top: 0;
    }

    .menu-toggle.active .hamburger::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}

@media (max-width: 767px) {
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ヒーローセクション */
.hero {
    background-color: #f8f9fa;
    padding: 100px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--gray-dark);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #1557b0;
}

/* 特徴セクション */
.features {
    padding: 60px 0;
    background-color: var(--white);
}

.features h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--text-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* ニュースセクション */
.news {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.news h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    color: var(--text-color);
}

.news-list {
    margin-bottom: 30px;
}

.news-item {
    padding: 5px 20px;
    margin-bottom: 10px;
}

.news-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.news-item .date {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.news-more {
    text-align: center;
}

.button {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white) !important;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #1557b0;
}

/* フッター */
.site-footer {
    background-color: #0059b2;
    color: white;
    padding: 40px 0 0;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-logo {
    flex: 0 0 20%;
    margin-bottom: 30px;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-logo .custom-logo {
    max-height: 60px;
    width: auto;
}

.footer-logo .site-title {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
}

.footer-menus {
    flex: 0 0 60%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-menu {
    flex: 0 0 30%;
    margin-bottom: 30px;
}

.footer-menu h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-menu a:hover {
    color: white;
    text-decoration: underline;
}

.footer-copyright {
    padding: 20px 0;
    text-align: center;
}

.footer-copyright .footer-container {
    justify-content: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
    
    .footer-logo,
    .footer-menu {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }
    
    .footer-menus {
        flex: 0 0 100%;
    }
}

/* NEWSセクション */
.news-section {
    padding: 60px 0;
    text-align: center;
}

.news-section > p {
    max-width: 480px;
    margin: 20px auto;
    text-align: left;
    line-height: 1.8;
    color: #333;
    padding: 0 15px;
}

.news-section .container {
    display: flex;
}

.news-left {
    position: relative;
    flex: 0 0 33%;
    max-width: 33%;
    margin-right: -25%; /* 右側コンテンツに重ねる幅を調整 */
    z-index: 1;
}

.section-title {
    background-color: #0059b2;
    color: #fff;
    padding: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    position: relative;
    width: 80%; /* 親要素に対しての幅 */
    float: right; /* 右寄せにする */
    text-align: center;
    letter-spacing: 1.6px;
}

.news-left .section-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: 100vw;
    height: 100%;
    background-color: #0059b2;
}

.section-title span {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 5px;
}

.news-center {
    flex: 1;
    padding: 0 40px;
    padding-left: calc(25% + 40px); /* 重なる分を考慮 */
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.news-list li {
    border-bottom: 1px solid #e0e0e0;
}

.news-list a {
    display: flex;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.news-list a:hover {
    color: #0059b2;
}

.news-date {
    margin-right: 20px;
    color: #666;
}

.news-archive-button {
    display: inline-block;
    background-color: #fff;
    color: #0059b2;
    padding: 10px 25px;
    border: 1px solid #0059b2;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
}

.news-archive-button:hover {
    background-color: #0059b2;
    color: #fff;
}

.news-right {
    flex: 0 0 20%;
    text-align: right;
}

.news-right img {
    max-width: 200px;
    width: 100%;
    height: auto;
    opacity: 0.5;
}

@media (max-width: 991px) {
    .news-section .container {
        flex-direction: column;
    }
    .news-left {
        width: 100%;
        margin-right: 0;
        margin-bottom: 30px;
        text-align: center;
    }
    .section-title {
        display: inline-block;
        width: auto;
    }
    .news-left .section-title::before {
        display: none;
    }
    .news-center {
        width: 100%;
        padding: 0;
    }
    .news-list a {
        align-items: center;
    }
    .news-date {
        margin: 0 10px 0 0;
    }
    .news-right {
        display: none; /* スマホではロゴを非表示 */
    }
}

/* CTAセクション */
.cta-section {
    background-color: #fff;
    padding: 80px 0;
}

.cta-section .container {
    display: flex;
    align-items: center;
}

.cta-left {
    position: relative;
    flex: 0 0 33%;
    max-width: 33%;
    margin-right: -25%; /* 右側コンテンツに重ねる幅を調整 */
    z-index: 1;
}

.cta-title {
    background-color: #0059b2;
    color: #fff;
    padding: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    position: relative;
    width: 80%; /* 親要素に対しての幅 */
    float: right; /* 右寄せにする */
    text-align: center;
    letter-spacing: 1.6px;
}

.cta-title::before {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: 100vw; /* 画面幅いっぱいに伸ばす */
    height: 100%;
    background-color: #0059b2;
}

.cta-title span {
    display: block;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 5px;
}

.cta-logo {
    text-align: right; /* 右寄せにする */

}

.cta-content {
    flex: 1;
    background-color: #e5effd;
    padding: 40px;
    padding-left: calc(25% + 40px); /* 重なる分を考慮 */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.cta-right {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-left: 4em;
}

.office-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.cta-right p {
    margin-bottom: 10px;
}

.business-hours {
    margin-top: 20px;
    font-size: 0.9rem;
}

.cta-button {
    display: inline-block;
    background-color: #0059b2;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #004488;
}

.cta-button .fa-chevron-right {
    margin-left: 10px;
    font-size: 0.9em;
}

.news-archive-button {
    display: inline-block;
    background-color: #0059b2;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    margin-top: 20px;
    text-align: center;
}

.news-archive-button:hover {
    background-color: #004488;
    color: white;
}

.news-archive-button .fa-chevron-right,
.merit-archive-button .fa-chevron-right {
    margin-left: 10px;
    font-size: 0.9em;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Problems and Solutions Section */
.problems-solution-section .white-container {
    background-color: #fff;
    padding: 50px 20px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.arrow-down {
    width: 70px;
    height: 70px;
    background-image: url('images/arrow.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin: 20px auto;
}

.section-heading {
    text-align: center;
    position: relative; /* .heading-dots の親としての基準 */
}

.target-word {
    position: relative; /* .heading-dots の直接の基準 */
}

.heading-dots {
    position: absolute;
    bottom: 100%; /* spanタグの上に配置 */
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -5px; /* 文字との余白 */
    white-space: nowrap; /* 点が改行されないように */
}

.heading-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #f0c400;
    border-radius: 50%;
    margin: 0 5px;
}

.problem-heading-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px; /* 見出しと説明文の間の余白 */
}

.problem-text p {
    margin: 0;
}

.problem-icon img {
    width: 60px;
    height: auto;
}

.problems-solution-section {
    padding: 80px 0;
    background-image: url('images/bg_nayami.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.section-heading {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 60px;
    color: #333;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    align-items: stretch; /* Make columns equal height */
}

.problem-wrapper {
    display: flex;
    flex-direction: column;
}

.problem-item {
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-radius: 0;
    margin-bottom: 20px;
}

.problem-text h3 {
    font-size: 1rem;
    font-weight: bold;
    color: #0059b2;
    margin-bottom: 15px;
}

.problem-text p {
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: left;
}

.solution-box {
    background-color: #f7faff;
    border: 1px solid #0059b2;
    padding: 20px;
    border-radius: 0;
    flex-grow: 1; /* Allow box to grow */
    position: relative; /* For title positioning */
    padding-top: 60px; /* Space for the title */
}

.solution-title {
    background-color: #0059b2;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-size: 1.3rem;
    width: 100%;
    position: absolute;
    top: -3px; /* Position title over the box */
    left: 50%;
    transform: translateX(-50%);
}

.solution-box h4 {
    font-size: 1.1rem;
    font-weight: bold;
    color: #0059b2;
    text-align: center;
    margin-bottom: 15px;
    letter-spacing: 1.2px;
}

.solution-box p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.solution-link {
    display: block;
    text-align: right;
    color: #0059b2;
    font-weight: bold;
    text-decoration: none;
}

.solution-link:hover {
    text-decoration: underline;
}

/* Merit Section Styles */
.merit-section {
    padding: 30px 0;
    background-color: #ffffff;
}

/* Pension Guide Section */
.pension-guide-section {
    padding: 50px 0;
}

.pension-guide-section .container {
    max-width: none; /* Remove max-width constraint */
    width: 100%;
    padding: 0; /* Remove horizontal padding */
    position: relative;
    display: flex;
    align-items: center;
}

.pension-guide-content {
    background-color: #eaf4ff;
    padding: 40px;
    padding-left: calc((100vw - 1200px) / 2 + 20px); /* Align text with main content */
    padding-right: 25%; /* Increase padding to create more margin */
    width: 75%; /* Adjust width to allow for overlap */
    position: relative;
    z-index: 1;
}
.pension-guide-content p span{
    color:#1d6cbc;
}

.pension-guide-title {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #000;
    margin-bottom: 20px;
    position: relative;
    padding-left: 25px; /* Space for the square */
    padding-bottom: 8px; /* Space for the underline */
    border-bottom: 1px solid #000; /* Black underline */
    display: inline-block; /* Underline should only span the text width */
}

.pension-guide-title span {
    color: #0059b2 !important;
}

.pension-guide-section--reversed .pension-guide-title span {
    color: #ffa900 !important;
}

.pension-guide-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-70%); /* Fine-tune vertical alignment */
    width: 15px;
    height: 15px;
    background-color: #0059b2;
}

.pension-guide-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.pension-guide-note {
    font-size: 14px;
    color: #666;
}

.pension-guide-image {
    max-width: 35%; /* Adjust image size for the second section */
    max-width: 480px;
    position: absolute;
    right: calc((100vw - 1200px) / 2 + 20px); /* Align with main content area */
    z-index: 2;
}

.pension-guide-image img {
    width: 100%;
    height: auto;
    border-radius: 0; /* Remove rounded corners */
    display: block; /* Remove any extra space below the image */
}

.pension-guide-caption {
    text-align: center;
    margin-top: 10px;
}

.pension-guide-caption p {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

/* Reversed Layout */
.pension-guide-section--reversed .container {
    flex-direction: row-reverse; /* Reverse the order of items */
}

.pension-guide-section--reversed .pension-guide-content {
    padding-left: 16%;
    padding-right: calc((100vw - 1200px) / 2 + 20px);
}

.pension-guide-section--reversed .pension-guide-image {
    left: calc((100vw - 1200px) / 2 + 20px);
    right: auto;
    max-width: 25%; /* Specific size for the reversed section image */
}

@media (max-width: 768px) {
    .pension-guide-section--reversed .pension-guide-image {
        width: 70% !important;
        max-width: 70% !important;
        margin: 0 auto !important;
        padding: 5% !important;
    }
}

.pension-guide-section--reversed .pension-guide-image {
    max-width: 300px;
}

.merit-section p {
    max-width: 480px;
    margin: 20px auto 0;
    text-align: left;
    line-height: 1.8;
    color: #333;
    padding: 0 15px;
}

.merit-section .container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.merit-left {
    flex: 0 0 20%;
    position: relative;
    z-index: 2;
}

.merit-center {
    flex: 1;
    padding: 20px 0 40px;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.merit-main-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    margin: 0 auto;
    text-align: center;
    display: block;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
}

.merit-left .section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.1em;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.merit-left .section-title span {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #0059b2;
    letter-spacing: 0.2em;
    margin-top: 10px;
}

/* Removed duplicate style */

.merit-main-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    line-height: 1.6;
    margin: 15px 0 0;
    position: relative;
    display: inline-block;
}

.merit-main-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
}

.merit-content {
    background-color: #fff;
    padding: 0;
    position: relative;
    margin-top: 40px;
    width: 100%;
}

.merit-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.merit-content:nth-child(2) .merit-item {
    flex-direction: row-reverse;
}

.merit-content:nth-child(2) .merit-item-content {
    margin-right: 0;
    margin-left: 5%;
}
.merit-item-content {
    flex: 0 0 auto;
    width: 100%;
    max-width: 380px;
    padding: 80px 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin-right: 5%;
}

/* 番号はテキストの背景に表示するため、元の番号は非表示に */
.merit-item-number {
    display: none;
}

.merit-item-details {
    position: relative;
    z-index: 2;
    padding: 0;
}

.merit-item-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1em 0;
    line-height: 1.4;
    position: relative;
    padding-left: 0;
    border-left: none;
}

.merit-item-text {
    font-size: 1rem;
    line-height: 2;
    position: relative;
    padding: 30px 20px 30px 40px;
    margin: 20px 0;
    overflow: hidden;
}

.merit-item-text::before {
    content: attr(data-number);
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 120px;
    font-weight: 900;
    color: rgba(0, 89, 178, 0.05);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    text-align: center;
}

.merit-item-image {
    flex: 0 0 50%;
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.merit-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Scroll Animation */
.fade-in-up {
    opacity: 0;
}

.fade-in-up.is-visible {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}
.delay-2 {
    animation-delay: 0.4s;
}
.delay-3 {
    animation-delay: 0.6s;
}

/* Add delay for each subsequent item */


.merit-cta {
    text-align: center;
    padding: 40px 0 60px;
    background-color: #f8f8f8;
}

.merit-archive-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0059b2;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 89, 178, 0.3);
    position: relative;
    overflow: hidden;
}

.merit-archive-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.merit-archive-button:hover::before {
    left: 100%;
}

.merit-archive-button:hover {
    background-color: #004488;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 89, 178, 0.4);
}

.merit-archive-button i {
    margin-left: 8px;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.merit-archive-button:hover i {
    transform: translateX(3px);
}

/* スマホ用の画像をデフォルトで非表示に */
.mobile-only {
    display: none;
}

/* デスクトップ用の画像を表示 */
.desktop-only {
    display: block;
}

/* Responsive Styles */
@media (max-width: 992px) {
    /* スマホ表示時はデスクトップ用の画像を非表示に */
    .desktop-only {
        display: none !important;
    }
    /* スマホ表示時はスマホ用の画像を表示 */
    .mobile-only {
        display: block;
    }
    /* すべてのメリットアイテムの順序をリセット */
    .merit-item > * {
        order: 0 !important;
    }
    /* 画像を最初に表示 */
    .merit-item > .merit-item-image {
        order: 1 !important;
    }
    /* コンテンツを2番目に表示 */
    .merit-item > .merit-item-content {
        order: 2 !important;
        width: 100% !important;
    }
    .site-branding .site-title-text{
        font-size: 1.2em;
    }

    .merit-item {
        display: flex;
        flex-direction: column;
        margin-bottom: 40px;
    }
    .merit-item-content {
        width: 100%;
        margin-top: 15px;
        padding: 20px 0;
    }
    
    .merit-item-details {
        padding: 15px 0;
    }
    
    .merit-item-image {
        width: 100%;
        margin: 0 0 15px;
        order: 1;
    }
    
    .merit-item-number {
        display: none;
    }
    
    .merit-main-title {
        font-size: 1.5rem;
        padding: 0 15px;
    }
    
    .merit-item-title {
        font-size: 1.3rem;
        margin: 15px 0;
    }
}
@media (min-width: 769px) {
    .sp_disp{
        display: none;
    }
    .pc_disp{
        display: block;
    }
}
@media (max-width: 768px) {
    .sp_disp{
        display: block;
    }
    .pc_disp{
        display: none;
    }
    .section-title-mobile{
        display: block;
        width: 100%;
        margin-left: -28px;
        background-color: #0059b2;
        float: none;
    }
    .section-title-mobile h2{
        color: #fff;
        padding: 10px;
        margin-bottom: 0;
        font-size: 1.8rem;
        font-weight: 700;
        line-height: 1.2;
        position: relative;
        width: 80%;
        float: right;
        text-align: center;
        letter-spacing: 1.6px;
    }
    .section-title-mobile h2 span{
        display: block;
        font-size: 1rem;
        font-weight: 400;
        margin-top: 5px;
    }
    .merit-header .section-title {
        font-size: 2.2rem;
    }
    
    .merit-main-title {
        font-size: 1.3rem;
    }
    
    .merit-item-title {
        font-size: 1.3rem;
    }
    
    .merit-item-text {
        font-size: 0.95rem;
        padding: 25px 15px;
        margin: 0;
    }
    
    .merit-item-number {
        display: none;
    }
    .cta-content{
        width: 100%;
        padding: 20px!important;
    }
    .cta-right{
        margin: 0;
    }
    .office-name{
        text-align: center;
    }
    .btn-cta{
        text-align: center!important;
    }
    .footer-logo{
        text-align: center;
    }
    .service-section {
        flex-direction: column!important;
    }
    .service-description-container {
        padding: 10px!important;
    }
    .service-title-container-sp {
        background-color: #0059b2;
        color: #fff;
        padding: 25px 10px;
        font-size: 1.3rem;
        position: relative;
        width: 100%;
        line-height: 1.4
        letter-spacing: 2.2px;
    }
    .service-title-container-sp h2 {
        color: #fff;
        text-align: center;
        font-weight: 500!important;
        margin: 0!important;
    }
    .service-problems-section .container{
        padding: 30px 20px;
    }
    .support-item {
        flex-direction: column!important;
        flex-direction: column-reverse!important;
    }
    .support-item__text {
        padding: 0 20px;
    }
    .support-item__image {
        width: 100%!important;
        max-width: 100%!important;
        margin: 0!important;;   
    }
    .flow-container{
        padding: 20px!important;
    }
    .flow-step-icon{
        position: absolute;
        right: 10px;
        top: 270px;
        max-width: 80px;
    }
    .case-section,.prevention-section,.professional-section{
        padding: 10px!important;
    }
    .case-blue-box{
        display: none;
    }
    .case-item:nth-child(even){
        flex-direction: column;
    }
    .case-item:nth-child(odd){
        flex-direction: column;
    }
    .case-text-wrapper {
        padding: 20px!important;
    }
    .prevention-item:nth-child(even){
        flex-direction: column;
    }
    .prevention-item:nth-child(odd){
        flex-direction: column;
    }
    .rulebook-item:nth-child(odd)  {
        flex-direction: column;
    }
    .rulebook-item:nth-child(even) {
        flex-direction: row-reverse;
        flex-direction: column;
    }
    .rulebook-text h3{
        font-weight: 500!important;
        font-size: 1.2rem!important;
    }
    .rulebook-text h3::after {
        width: 100%!important;
    }
    .profile-content-wrapper {
        padding: 20px;
        flex-direction: column;
    }
    .profile-image{
        margin: 0 auto;
        flex: 0;
    }
    .profile-image img{
        width: 200px;
    }
    .office-info-wrapper{
        padding: 10px !important;
    }
    .mobile-menu .contact-button{
        margin: 0;
        text-align: left;
    }

    .merit-item {
        flex-direction: column !important;
    }

    .merit-item-image,
    .merit-item-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        padding: 0 20px;
    }

    .merit-content:nth-child(2) .merit-item-content {
        margin: 0 0 20px 0 !important;
    }
}

@media (max-width: 991px) {
    .cta-section .container {
        flex-direction: column;
    }
    .cta-left {
        width: 100%;
        margin-left: -170px;
        margin-bottom: -80px; /* 下のコンテンツに重ねる */
        text-align: center;
    }
    .cta-title {
        display: inline-block;
        width: auto;
    }
    .cta-title::before {
        display: none; /* スマホでは伸ばさない */
    }
    .cta-logo {
        display: none;
    }
    .cta-content {
        width: 100%;
        padding: 40px 20px;
        padding-top: 100px; /* 上に重なる分を考慮 */
    }
}

/* ページトップへ戻るボタン */
#page-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #1a73e8;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"%3E%3Cpath d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 30px;
    border-radius: 50%;
    text-decoration: none;
    z-index: 1000;
    font-size: 0; /* テキストが表示されるのを防ぐ */
    transition: opacity 0.3s, visibility 0.3s;
    opacity: 0;
    visibility: hidden;
}

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

/* 投稿ナビゲーション */
.post-navigation {
    margin: 60px 0 0;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-back {
    margin: 0 30px;
}

.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-previous a:hover,
.nav-next a:hover {
    color: #1a73e8;
}

.nav-arrow {
    font-size: 1.2em;
    line-height: 1;
}

.nav-previous .nav-arrow {
    margin-right: 8px;
}

.nav-next .nav-arrow {
    margin-left: 8px;
    order: 2;
}

.nav-next .nav-text {
    order: 1;
    margin-right: 8px;
}

.back-to-list {
    display: inline-block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-to-list:hover {
    background-color: #e0e0e0;
    color: #000;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-previous,
    .nav-next,
    .nav-back {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    
    .nav-back {
        order: 3;
        margin: 10px 0;
    }
    
    .nav-previous {
        order: 1;
    }
    
    .nav-next {
        order: 2;
    }

}
