@charset "UTF-8";
/*
 * エリアページ用CSS（統合版）
 * 
 * 【重要】このCSSファイルはエリアページ（/area/配下）のみに適用されます
 * 他のページには読み込まれません（functions.phpで制御）
 * 
 * 【統合履歴】
 * - area.css と area-new.css を統合
 * - area.css から使用されている部分（.area-ttl, .map-sp等）のみを統合
 * - 使用されていないスタイル（.nav-box, .city-list等）は除外
 * 
 * 【読み込み】
 * - 子テーマの functions.php から読み込まれる
 * - エリアページ（/area/配下）のみに適用
 * - 条件: strpos($_SERVER['REQUEST_URI'], '/area/') !== false
 */

/* ==========================================
   共通スタイル
   ========================================== */
main.archive-area {
    background: #fff;
}

main.archive-area .area-section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

@media (max-width: 767.98px) {
    main.archive-area .area-section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
}

/* ==========================================
   既存のページヘッダーを非表示（エリアページのみ）
   ========================================== */
/* エリアページ専用のセレクタのみを使用 */
body.post-type-archive-area .page-header,
body.tax-area_cat .page-header {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ==========================================
   Heroエリア
   ========================================== */
.area-hero {
    padding: 60px 0;
    background: #f8f8f8;
    position: relative;
}

.area-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 1;
}

.area-hero .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 767.98px) {
    .area-hero {
        padding: 40px 0;
    }
}

.area-hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
    color: #000;
}

@media (max-width: 767.98px) {
    .area-hero-title {
        font-size: 1.75rem;
        line-height: 1.5;
    }
}

.area-hero-description {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

.area-hero-features {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 767.98px) {
    .area-hero-features {
        gap: 10px;
    }
}

.hero-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-feature-icon {
    width: 110px;
    height: 110px;
    background: #ff4c95;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 0.875rem;
    margin-bottom: 10px;
}

@media (max-width: 767.98px) {
    .hero-feature-icon {
        width: 80px;
        height: 80px;
        font-size: 0.75rem;
    }
}

.hero-feature-icon span {
    text-align: center;
    line-height: 1.2;
}

.hero-feature-text {
    font-size: 0.875rem;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    color: #000;
}

@media (max-width: 767.98px) {
    .hero-feature-text {
        font-size: 0.75rem;
    }
}

.area-hero-image {
    width: 100%;
    margin-top: 30px;
}

.area-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .area-hero-image {
        margin-top: 0;
    }
}

/* ==========================================
   お悩みセクション
   ========================================== */
.area-concerns {
    background: #fff;
    padding: 60px 0;
}

@media (max-width: 767.98px) {
    .area-concerns {
        padding: 40px 0;
    }
}

.concerns-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.concern-item {
    background: #93c103;
    color: #000;
    padding: 20px 40px;
    border-radius: 50px;
    text-align: center;
    font-weight: bold;
    font-size: 30px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

@media (max-width: 767.98px) {
    .concern-item {
        padding: 15px 20px;
        font-size: 20px;
        border-radius: 30px;
        line-height: 1.3;
        min-height: 60px;
    }
}

/* ==========================================
   解決セクション
   ========================================== */
.area-solution {
    background: #f8f8f8;
    padding: 60px 0;
}

@media (max-width: 767.98px) {
    .area-solution {
        padding: 40px 0;
    }
}

/* 解決セクションのflexboxレイアウト */
.area-solution .solution-flex-box {
    display: flex;
    padding: 36px 48px;
    gap: 40px;
    align-items: stretch;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

/* PC版で高さを揃える */
@media (min-width: 992px) {
    .area-solution .solution-flex-box {
        align-items: stretch;
    }

    .area-solution .solution-image {
        display: flex;
        align-items: center;
    }

    .area-solution .solution-content-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .area-solution .solution-content-wrapper>.solution-title {
        margin-top: 0;
    }

    .area-solution .solution-content-wrapper>.solution-cta {
        margin-top: auto;
        margin-bottom: 0;
    }
}

.area-solution .solution-content-wrapper {
    flex: 1;
    text-align: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.area-solution .solution-image {
    flex: 0 0 50%;
    max-width: 50%;
    min-width: 0;
}

.area-solution .solution-image img {
    max-width: 100% !important;
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* タブレットサイズ（768px〜991px）の対応 */
@media (min-width: 768px) and (max-width: 991.98px) {
    .area-solution .solution-flex-box {
        padding: 30px 30px;
        gap: 20px;
    }

    .area-solution .solution-image {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .area-solution .solution-content-wrapper {
        flex: 0 0 55%;
        max-width: 55%;
    }
}

@media (max-width: 767.98px) {
    .area-solution .solution-flex-box {
        flex-direction: column;
        padding: 20px 15px;
        gap: 40px;
    }

    .area-solution .solution-content-wrapper {
        text-align: center;
    }

    .area-solution .solution-image {
        width: 100%;
        max-width: 100%;
    }

    .area-solution .solution-image img {
        max-width: 100%;
        width: 100%;
    }

    .area-solution .solution-image img {
        max-width: 100% !important;
        width: 100% !important;
    }
}

.area-solution .solution-title {
    font-size: 2.0rem;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 10px;
    background-color: #f5f5f5;
    display: block;
    padding: 0.3em 0.8em;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;
}

/* 画面幅が狭くなったら改行を非表示 */
@media (max-width: 1200px) {
    .area-solution .solution-title-br {
        display: none;
    }
}

/* 1000px以下でタイトルとボタンの幅を完全に揃える */
@media (max-width: 1000px) {
    .area-solution .solution-content-wrapper {
        align-items: stretch;
    }

    .area-solution .solution-content-wrapper>.solution-title,
    .area-solution .solution-content-wrapper>.solution-content,
    .area-solution .solution-content-wrapper>.solution-cta {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        min-width: 0 !important;
    }

    .area-solution .solution-content-wrapper>.solution-title {
        padding: 0.3em 30px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .area-solution .solution-content-wrapper>.solution-content {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .area-solution .solution-content-wrapper>.solution-cta {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .area-solution .solution-content-wrapper>.solution-cta .btn.btn-about.btn-about-case {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 12px 30px !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 767.98px) {
    .area-solution .solution-title {
        font-size: 1.75rem;
    }
}

.area-solution .solution-content {
    font-size: 1.15rem;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: left;
    padding-left: 16px;
    padding-right: 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* PC版でコンテンツエリアの最大幅を制限 */
@media (min-width: 992px) {
    .area-solution .solution-content-wrapper {
        max-width: 500px;
    }

    .area-solution .solution-title,
    .area-solution .solution-content,
    .area-solution .solution-cta {
        max-width: 100%;
    }
}

.area-solution .solution-content-wrapper .solution-content p {
    margin-bottom: 10px;
}

/* PC版とスマホ版で文面を切り替え */
.area-solution .solution-content-wrapper .solution-content .solution-content-pc {
    display: block !important;
}

.area-solution .solution-content-wrapper .solution-content .solution-content-sp {
    display: none !important;
}

@media (max-width: 767.98px) {
    .area-solution .solution-content-wrapper .solution-content .solution-content-pc {
        display: none !important;
    }

    .area-solution .solution-content-wrapper .solution-content .solution-content-sp {
        display: block !important;
    }
}

@media (min-width: 768px) {
    .area-solution .solution-content-wrapper .solution-content p {
        font-size: 1.2rem;
    }
}

.area-solution .solution-points {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.area-solution .solution-points li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    line-height: 1.8;
}

.area-solution .solution-points li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #93c103;
    font-weight: bold;
    font-size: 1.2rem;
}

.area-solution .solution-cta {
    margin-top: 10px;
    display: inline-block;
    width: auto;
}

.area-solution .btn-solution {
    background: hsl(330, 17%, 95%);
    color: hsl(330, 100%, 98%);
    padding: 15px 40px;
    font-size: 1.125rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

@media (max-width: 767.98px) {
    .area-solution .btn-solution {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ==========================================
   サービス内容（コンパクト版）
   ========================================== */
.area-service-compact {
    background: url(/common/img/area/service-bg.jpg) no-repeat center center;
    background-size: cover;
    padding: 60px 0;
    position: relative;
}

.area-service-compact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.area-service-compact .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 767.98px) {
    .area-service-compact {
        padding: 40px 0;
    }
}

.service-cards {
    margin-bottom: 40px;
}

.service-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

@media (max-width: 767.98px) {
    .service-card {
        margin-bottom: 40px;
        height: auto;
    }

    .service-cards .col-12:last-child .service-card {
        margin-bottom: 0;
    }
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-image img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

.service-card-content {
    padding: 20px;
    text-align: center;
}

.service-card-category {
    font-size: 1.125rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 15px;
}

.service-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    text-align: left;
}

.service-card-title {
    font-size: 1.000rem;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-card-link {
    font-size: 0.875rem;
    color: #93c103;
    font-weight: bold;
    margin: 0;
}

.btn-service {
    background: #ff3d98;
    /* お問い合わせ系のピンクに合わせる */
    color: #fff;
    opacity: 1;
    /* 常時表示 */
    visibility: visible;
    /* 常時表示 */
    padding: 15px 40px;
    font-size: 1.125rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-service:hover {
    background: #e43588;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .btn-service {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* ==========================================
   市区町村リスト（横並び版）
   ========================================== */
.area-city-list {
    position: relative;
    padding: 60px 0;
}

/* 背景に白いオーバーレイ（テキストを読みやすく） */
.area-city-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.area-city-list .container {
    position: relative;
    z-index: 2;
}

@media (max-width: 767.98px) {
    .area-city-list {
        padding: 40px 0;
    }
}

.city-list-text {
    font-size: 1rem;
    line-height: 2;
    color: #333;
    text-align: left;
    margin-top: 30px;
}

@media (max-width: 767.98px) {
    .city-list-text {
        font-size: 0.875rem;
        line-height: 1.8;
    }
}

/* ==========================================
   導入事例セクション（4列グリッド）
   ========================================== */
.area-case-study {
    background: #fff;
    padding: 60px 0;
}

@media (max-width: 767.98px) {
    .area-case-study {
        padding: 40px 0;
    }
}

.area-case-study .head-about {
    text-align: center;
    margin-bottom: 40px;
}

/* スライダーコンテナ */
.case-study-slider {
    position: relative;
    margin-bottom: 40px;
}

/* スライダーが有効な場合 */
.case-study-slider.slider-case-study {
    padding: 0 40px;
}

@media (max-width: 767.98px) {
    .case-study-slider.slider-case-study {
        padding: 0 30px;
    }

    .case-study-slider {
        margin-bottom: 30px;
    }
}

/* スライダーリストの下パディング */
.case-study-slider .slick-list {
    padding-bottom: 20px;
}

/* スライダートラックをFlexboxにして高さを統一 */
.case-study-slider .slick-track {
    display: flex !important;
    align-items: stretch;
}

/* スライダーアイテム */
.case-slide-item {
    padding: 0 10px;
    height: 100%;
    display: flex;
}

/* スライダー内のスライドを同じ高さに統一 */
.case-study-slider .slick-slide {
    display: flex;
    height: 100%;
    align-items: stretch;
}

.case-study-slider .slick-slide>div {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: stretch;
}

@media (max-width: 767.98px) {
    .case-study-slider .slick-list {
        padding-bottom: 15px;
    }

    .case-slide-item {
        padding: 0 5px;
    }
}

/* スライダーが無効な場合（1件のみ）のグリッド表示 */
.case-study-slider:not(.slider-case-study) {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* グリッド表示の場合はパディングを削除 */
.case-study-slider:not(.slider-case-study) .case-slide-item {
    padding: 0;
}

@media (max-width: 991.98px) {
    .case-study-slider:not(.slider-case-study) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .case-study-slider:not(.slider-case-study) {
        grid-template-columns: 1fr;
    }
}

/* スライダー矢印ボタン（背景の白い丸を非表示、矢印アイコンのみ表示） */
.case-study-slider .slick-prev,
.case-study-slider .slick-next {
    z-index: 2;
    width: 40px;
    height: 40px;
    background: transparent !important;
    /* 白い丸を非表示 */
    border-radius: 0;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.case-study-slider .slick-prev:hover,
.case-study-slider .slick-next:hover {
    background: transparent !important;
    box-shadow: none !important;
}

.case-study-slider .slick-prev {
    left: -20px;
}

.case-study-slider .slick-next {
    right: -20px;
}

@media (max-width: 767.98px) {
    .case-study-slider .slick-prev {
        left: -15px;
    }

    .case-study-slider .slick-next {
        right: -15px;
    }
}

.case-study-slider .slick-prev:before,
.case-study-slider .slick-next:before {
    display: none;
}

.case-study-slider .slick-prev i,
.case-study-slider .slick-next i {
    color: #333;
    font-size: 20px;
}

/* 導入事例カード */
.case-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.case-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f8f8;
}

.case-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card-content {
    padding: 20px;
    width: 100%;
    min-height: 214px;
    height: 214px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .case-card-content {
        min-height: auto;
        height: auto;
    }
}

.case-card-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.5;
}

.case-card-detail {
    font-size: 0.875rem;
    color: #666;
    margin: 5px 0;
}

/* CTAボタン - .btn-aboutから独立した独自スタイル */
.btn-about-case {
    background: #ff3d98;
    /* お問い合わせ系のピンクに合わせる */
    color: #fff;
    padding: 15px 40px;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    /* .btn-aboutのスタイルを上書き */
    margin: 0;
    width: auto;
}

.btn-about-case:hover {
    background: #e43588;
    color: #fff;
    text-decoration: none;
    opacity: 1;
    /* .btn-aboutのhoverスタイルを上書き */
}

/* 解決セクション内のボタンのスタイル調整 */
.area-solution .solution-cta .btn.btn-about.btn-about-case {
    padding: 12px 30px;
    font-size: 1.25rem;
    line-height: 1.4;
    display: inline-block;
    margin: 0;
    box-sizing: border-box;
    /* paddingを含めた幅計算 */
    text-align: center;
    white-space: normal;
    /* 改行を許可 */
    word-break: keep-all;
    /* 単語の途中で改行しない */
    overflow-wrap: break-word;
    /* 長い単語は折り返す */
    /* テキストが2行以内に収まるように最小幅を設定（全角文字ベース） */
    min-width: 32ch;
    /* 文字数ベースの最小幅を大きく設定（2行目の16文字+余裕を考慮） */
}

/* 解決セクション内のボタンのみ矢印を削除 */
.area-solution .solution-cta .btn.btn-about.btn-about-case:after {
    display: none;
    content: none;
}

/* solution-titleと同じ幅にするため、同じpaddingとbox-sizingを適用 */
.area-solution .solution-cta {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* solution-titleとボタンを同じ幅にする（デフォルト） */
.area-solution .solution-content-wrapper>.solution-title,
.area-solution .solution-content-wrapper>.solution-content,
.area-solution .solution-content-wrapper>.solution-cta {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 767.98px) {
    .area-solution .solution-cta .btn.btn-about.btn-about-case {
        padding: 10px 25px;
        font-size: 1.125rem;
        line-height: 1.3;
        box-sizing: border-box;
        /* スマホ版：テキストが2行以内に収まる最小幅を大きく設定 */
        min-width: 28ch;
    }
}

@media (min-width: 768px) {
    .area-solution .solution-cta .btn.btn-about.btn-about-case {
        padding: 12px 30px;
        font-size: 1.25rem;
        box-sizing: border-box;
        display: inline-block;
        width: 100%;
        max-width: 100%;
        /* 親要素の幅に合わせる */
    }
}

@media (max-width: 767.98px) {
    .btn-about-case {
        padding: 12px 30px;
        font-size: 1.125rem;
        width: auto;
        /* .btn-aboutのwidth: 100%を上書き */
    }
}

@media (min-width: 768px) {
    .btn-about-case {
        width: auto;
        /* .btn-aboutの固定幅を上書き */
    }
}

/* ==========================================
   既存スタイル（area.cssから統合）
   ========================================== */
/* 
 * area.css から使用されている部分のみを統合
 * 使用されていないスタイル（nav-box, city-list, area-text等）は除外
 */

/* 全国マップのタイトル */
main.archive-area .area-ttl {
    font-weight: bold;
}

@media (max-width: 767.98px) {
    main.archive-area .area-ttl {
        font-size: 1.125rem;
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) {
    main.archive-area .area-ttl {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
}

/* スマホ版地図 */
main.archive-area .map-sp {
    margin-bottom: 30px;
}

/* スマホ版地域リスト */
main.archive-area .map-sp-list {
    margin-bottom: 10px;
    text-align: left;
}

main.archive-area .map-sp-list .map-sp-resion {
    font-weight: bold;
    border-bottom: 1px solid #000;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

main.archive-area .map-sp-list a {
    line-height: 1.5;
    margin-right: 10px;
}