@charset "UTF-8";

/* ----------------------------------------------------
       1.HOME
    ---------------------------------------------------- */

/* --- ヒーロースライダーセクション --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: calc(100% + var(--side-nav-width));
    margin-left: calc(var(--side-nav-width) * -1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #000;
    z-index: 1;
    /* フェード時の背景 */
    /*opacity: 0;
    transform: scale(1.05);
    transition: opacity 2.8s ease 1.1s,
                transform 4.5s ease 1.1s;*/
}

.hero-section.show{
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 1024px) {
    .hero-section {
        width: 100%;
        margin-left: 0;
    }
}

.slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-slide:nth-child(1) .slide-bg {
        background-image: url('../../img/kousaten_sp.jpg') !important;
    }

    .hero-slide:nth-child(2) .slide-bg {
        background-image: url('../../img/torii_sp.jpg') !important;
    }

    .hero-slide:nth-child(3) .slide-bg {
        background-image: url('../../img/engeki_sp.jpg') !important;
    }

    .hero-slide:nth-child(4) .slide-bg {
        background-image: url('../../img/sasashima_sp.jpg') !important;
    }

    .hero-slide:nth-child(5) .slide-bg {
        background-image: url('../../img/keirin_sp.jpg') !important;
    }

    .hero-slide:nth-child(6) .slide-bg {
        background-image: url('../../img/yakei_sp.png') !important;
    }
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.2s ease, transform 6s ease;
    filter: 
        brightness(1.08)
        contrast(0.88)
        saturate(0.85);
}

.hero-slide.active .slide-bg {
    opacity: 1;
    transform: scale(1);
}

.hero-section.first-view .hero-slide.active .slide-bg {
    opacity: 0;
    transform: scale(1.06);
    animation: heroFirstReveal 2s ease 1.5s forwards;
}

@keyframes heroFirstReveal {
    from {
        opacity: 0;
        transform: scale(1.06);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    /* 個別オーバーレイ */
    z-index: 2;
}

.hero-caption {
    position: absolute;
    bottom: 30px;
    right: 50px;
    z-index: 20;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    letter-spacing: 0.05em;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* キャプションの出現アニメーション */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease;
}

.hero-slide.active .hero-caption {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
    /* 少し遅れて表示 */
}

/* スライダーナビゲーション */
.slider-arrow {
    position: absolute;
    top: 85%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 30;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.slider-arrow:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* タブレット以下 (1024px以下) */
@media (max-width: 1024px) {

    /* モバイルでのスライダー調整 */
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.prev-arrow {
    left: calc(var(--side-nav-width) + 30px);
}

.next-arrow {
    right: 40px;
}

:root {
    --side-nav-width: 220px;
}

@media (max-width: 1024px) {
    .prev-arrow {
        left: 10px;
    }

    .next-arrow {
        right: 20px;
    }
}


.slider-dots {
    position: absolute;
    bottom: 30px;
    left: calc(50% + (var(--side-nav-width) / 2));
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 30;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

@media (max-width: 1024px) {
    .slider-dots {
        display: none;
    }
}

@media (max-width: 768px) {
    .slider-dots {
        display: none;
    }
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background-color: #bd2031;
    transform: scale(1.2);
}

/* コンテンツ配置 */
.content-wrapper {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    /* 下の画像や矢印をクリックできるように */
}

.content-wrapper>* {
    pointer-events: auto;
    /* 子要素はクリック可能に戻す */
}

.header-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 50px;
    /*background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);*/
}

.top-search-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cta-button {
    background-color: #e63946;
    color: white;
    padding: 10px 25px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-2px);
}

.hero-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 20px;
    width: calc(100% - var(--side-nav-width));
    margin-left: var(--side-nav-width);
    max-width: none;
    transform: none;
    box-sizing: border-box;
}

.hero-title {
    font-family: "fot-tsukuardgothic-std", sans-serif;    
    font-size: 3vw;
    /* レスポンシブフォントサイズ */
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 0px 0px 7px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.1em;
    max-width: 90%;
}

/* タブレット以下では通常中央に戻す */
@media (max-width: 1024px) {
    .hero-text-container {
        width: 100%;
        margin-left: 0;
        padding: 0 10px;
        transform: translateX(0);
    }
}

/*スマホ改行*/
.sp {
    display: none;
}

@media not all and (min-width: 568px) {
    .sp {
        display: block;
    }
}

/* 最小・最大フォントサイズ制限 */
@media (min-width: 1800px) {
    .hero-title {
        font-size: 54px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 36px;
    }
}

.hero-subtitle {
    font-family: "fot-tsukuardgothic-std", sans-serif;
    font-size: 2vw;
    font-weight: 700;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    background-color: rgba(255, 153, 51, 0.8);
    padding: 15px 50px;
    border-radius: 32px;
    max-width: 90%;
}

@media (min-width: 1800px) {
    .hero-subtitle {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .hero-subtitle {
        font-size: 16px;
        padding: 10px 20px;
    }
}

.scroll-down {
    position: absolute;
    bottom: 70px;
    left: calc(50% + (var(--side-nav-width) / 2));
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
}

.scroll-down-text {
    margin-bottom: 8px;
    font-size: 16px;
    letter-spacing: 0.2em;
}

.scroll-down-icon {
    font-size: 30px;
    display: inline-block;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(12px);
    }
}

@media (max-width: 1024px) {
  .scroll-down {
    left: 50%;
    bottom: 110px;
  }
}

.greeting-section {
    background-color: #fffaf5 !important;
}

/*★かぶせる*/
/* ヒーローを画面上部に貼りつける */
.sticky-hero {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* 次のセクションが上に乗る */
.overlap-section {
    position: relative;
    z-index: 5;
    background: #fff;
    padding-top: 80px;  /* ← 中身はちゃんと下げる */
    width: calc(100% + var(--side-nav-width));
    margin-left: calc(var(--side-nav-width) * -1);
    padding-left: calc(40px + var(--side-nav-width));
}

.overlap-section::before {
    content: "";
    position: absolute;
    left: 0;
    top: -80px;
    width: 100%;
    height: 80px;
    pointer-events: none;

     background: linear-gradient(
        to bottom,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.1) 35%,
        rgba(255,255,255,0.2) 55%,
        rgba(255,255,255,0.4) 72%,
        rgba(255,255,255,0.6) 84%,
        rgba(255,255,255,0.7) 92%,
        rgba(255,255,255,0.98) 100%
    );
}

@media (max-width: 1024px) {
    .overlap-section {
        width: 100%;
        margin-left: 0;
        padding-left: 2%;
    }
}

.no-gradient::before {
    display: none;
}

/* 支部長挨拶セクション */
.greeting-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    /* レスポンシブ対応：折り返し */
}

.greeting-image-frame {
    flex: 0 0 240px;
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.greeting-image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid #f39801;
    z-index: 0;
}

.greeting-image {
    width: 100%;
    height: auto;
    min-height: 240px;
    max-height: 500px;
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background-color: #ddd;
}

.greeting-text {
    flex: 1;
    min-width: 300px;
    /* 最小幅設定 */
}

.greeting-heading {
    font-family: "fot-tsukuardgothic-std", sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.4;
}

.greeting-body {
    font-size: clamp(13px, 1.4vw, 14px);
    line-height: 2;
    margin-bottom: 40px;
}

.greeting-signature {
    text-align: right;
    font-size: clamp(16px, 2vw, 17px);
    font-weight: 600;
}

/* 支部紹介セクション */
.about-grid {
    max-width: 1200px;
    margin: auto;
    display: flex;
    /*gap: 50px;*/
    background: white;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    /* レスポンシブ対応 */
}

/* スマホ (600px以下) */
@media (max-width: 600px) {

    .about-grid {
        padding: 20px;
        gap: 30px;
    }
}

.about-info {
    flex: 1;
    min-width: 300px;
}

.info-table .small{
    font-size: 14px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th {
    font-family: "fot-tsukuardgothic-std", sans-serif;
    text-align: left;
    padding: 20px 5px;
    border-bottom: 1px solid #fff0e2;
    /*color: #1e3a5f;*/
    width: 20%;
    font-weight: 700;
    font-size: clamp(14px, 1.5vw, 16px);
}

.info-table td {
    padding: 20px 5px;
    border-bottom: 1px solid #fff0e2;
    font-size: clamp(14px, 1.5vw, 16px);
}

.about-map-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.about-map {
    width: 100%;
    height: 450px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 1.2rem;
    border: 1px solid #d1d5db;
}

/*Google Mapで見るボタン*/
.button-1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 220px;
    margin: 0 auto;
    padding: .9em 2em;
    border: 2px solid #1e3a5f;
    /*border: 2px solid #234470;*/
    border-radius: 5px;
    background-color: #fff;
    color: #1e3a5f;
    /*color: #234470;*/
    font-size: 1em;
}

.button-1:hover {
    border: 2px solid #1e3a5f;
    background-color: #1e3a5f;
    /*border: 2px solid #234470;
    background-color: #234470;*/
    color: #fff;
    font-weight: 600;
}




/* ----------------------------------------------------
       2.税理士とは
    ---------------------------------------------------- */

/* 3つの主要業務 */
.services-grid {
    display: grid;
    margin: 0 auto;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 2fr);
        /* タブレットで2列 */
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        /* スマホで1列 */
        gap: 30px;
    }
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s;
    border-top: 5px solid #e56a03;
    /*border-top: 5px solid #1e3a5f;*/
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 100px;
    height: 100px;
    background-color: #fffaf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    color: #e56a03;
    /*color: #1e3a5f;*/
    font-size: 40px;
}

@media (max-width: 768px) {
    .service-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
        margin-bottom: 20px;
    }
}

.service-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .service-title {
        font-size: 20px;
    }
}

.service-desc {
    line-height: 1.8;
    text-align: left;
}

.fa-calculator {
    color: #e56a03;
}

/* 信頼と安心 */
.trust-wrapper {
    max-width: 800px;
    margin: auto;
    display: flex;
    gap: 20px;
}

@media (max-width: 1024px) {
    .trust-wrapper {
        flex-direction: column;
        /* タブレット以下で縦並び */
        gap: 30px;
    }
}

.trust-box {
    flex: 1;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding:30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border-left: 5px solid #1e3a5f;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

@media (max-width: 600px) {
    .trust-box {
        padding: 30px 20px;
    }
}

.trust-box.warning {
    border-left: 5px solid #bd2031;
}

.daiji {
    /*background-color: #fecaca;*/
    font-weight: bold;
}

.trust-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .trust-title {
        font-size: 20px;
    }

    .trust-title i {
        font-size: 24px !important;
        /* アイコンサイズ調整 */
    }
}

/* 検索エリア */
.search-area {
    background-color: #fffaf5;
    /*background-color: #1e3a5f;*/
    color: white;
    padding: 100px 10%;
    text-align: center;
}

@media (max-width: 1024px) {
    .search-area {
        padding: 60px 5%;
    }
}

.search-container {
    border: 1px solid #1e3d7b;
    background: white;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .search-container {
        flex-direction: column;
        padding: 40px 30px;
        gap: 40px;
    }

    .search-content {
        padding-right: 0 !important;
        text-align: center !important;
    }
}

.search-content {
    flex: 1;
    text-align: left;
    padding-right: 50px;
}

.search-content h2{
    color: #1e3d7b
}

.qr-frame {
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-img {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

.cta-button {
    background-color: #bd2031;
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 600px) {
    .cta-button {
        width: 60%;
        justify-content: center;
        font-size: 16px !important;
        padding: 12px 20px;
    }
}

.cta-button:hover {
    transform: translateY(-2px);
    background-color: #c53030;
    color: #fff;
}

/* ----------------------------------------------------
       3.中村税務相談所
    ---------------------------------------------------- */
/* 無料相談強調エリア (バナー) */
.free-consultation-banner {
    width: 60%;
    background-color: #d62f3c;
    color: white;
    text-align: center;
    padding: 20px;
    margin: -40px auto 20px;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.3);
    display: block;
    text-decoration: none;
    /*transition: transform 0.2s, background-color 0.2s;*/
}

.free-consultation-banner:hover {
    transform: translateY(-2px);
    color: #fff;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.consultation-badge {
    background: white;
    color: #d62f3c;
    font-weight: 600;
    font-size: 19px;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.banner-text {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    text-align: center;
}

.arrow-icon {
    margin-left: 10px;
    font-size: 24px;
    font-weight: bold;
}

/* 悩み相談グリッド (アコーディオン仕様に変更) */
.problem-grid {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0 auto;
    align-items: start;
    /* 高さが変わった時に上揃え */
}

/* レスポンシブ対応 - タブレット (1024px以下) */
@media (max-width: 1024px) {

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* レスポンシブ対応 - スマートフォン (600px以下) */
@media (max-width: 600px) {

    .problem-grid {
        grid-template-columns: 1fr;
    }
}

.problem-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #fff0e2;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 180px;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.problem-card:hover {
    /*transform: translateY(-5px);*/
    box-shadow: 0 15px 30px rgba(30, 58, 95, 0.15);
    z-index: 10;
}

.problem-icon {
    font-size: 40px;
    color: #e56a03;
    margin-bottom: 15px;
    background-color: #fffaf5;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.problem-card:hover .problem-icon {
    background-color: #e56a03;
    color: white;
    transform: scale(0.9);
}

.problem-text {
    font-size: 20px;
    font-weight: 700;
    color: #4C2E30;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    line-height: 1.4;
    min-height: 2.8em;
}

/* アコーディオン矢印 */
.accordion-indicator {
    margin-top: 10px;
    color: #4C2E30;
    font-size: 14px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.problem-card:hover .accordion-indicator {
    transform: rotate(180deg);
    color: #e56a03;
}

/* アコーディオン部分（説明文） */
.problem-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    width: 100%;
    margin-top: 0;
    padding: 0 10px;
    box-sizing: border-box;
}

.problem-desc ul {
    list-style: none !important;
    padding-left: 0;
    margin: 0;
}

.problem-desc li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: 8px;
    line-height: 1.8;
}

/* ● を自分で作る */
.problem-desc li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em; /* ←縦位置微調整 */
    width: 6px;
    height: 6px;
    background-color: #e56a03;
    border-radius: 50%;
}

.problem-card:hover .problem-desc,
.problem-card.active .problem-desc {
    max-height: 300px;
    opacity: 1;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #cbd5e1;
}

.support-guide-box {
    max-width: 760px;
    margin: 50px auto 0;
    padding: 48px 36px 30px;
    background: #fff;
    border: 1.5px solid #1e3d7b;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.support-guide-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e3d7b;
    margin-bottom: 28px;
    line-height: 1.5;
}

.support-guide-text {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 30px;
}

.support-guide-text strong {
    color: #e85d3f;
    font-weight: 700;
}

.support-guide-note {
    display: inline-block;
    padding: 14px 32px;
    border: 1.5px solid #f39801;
    border-radius: 999px;
    color: #e56a03;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 28px;
    background: #fffaf5;
}

.support-guide-target {
    margin: 20px 0;
    padding: 12px;
    background: #f7f7f7;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.7;
}

.support-guide-target i {
    color: #f39801;
    margin-right: 6px;
}

.support-guide-alart {
    font-weight: 800;
    margin: 16px 0;
    padding: 14px;
    background: #fffaf5;
    border: 1px solid #ffe0b8;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.8;
}

/* 統一デザインスタイル: 説明エリア（左右配置） */
.unified-content-layout {
    max-width: 1200px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 0;
}

.unified-left-panel {
    flex: 1;
    min-width: 0;
    /* Flex item overflow fix */
}

.unified-right-panel {
    flex: 1;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #e2e8f0;
    min-width: 0;
}

.unified-title {
    font-family: "fot-tsukuardgothic-std", sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #4C2E30;
    margin-bottom: 30px;
    border-left: 6px solid #e56a03;
    padding-left: 20px;
    line-height: 1.3;
}

.sub {
    font-size: 20px;
}

.unified-desc {
    line-height: 2;
    /*color: #4b5563;*/
    margin-bottom: 10px;
}

.soudankai-image {
    width: 100%;
    text-align: center;
    margin-top: 80px;
}

.soudankai-image img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 500px; /* 好きに調整OK */
    height: auto;
}

/*サポートします*/
.support-section {
    padding: 60px 20px;
    text-align: center;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.support-card img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.support-name {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    font-size: 16px;
}

@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/*無料相談から継続支援の流れ*/
.flow-image {
    width: 100%;
    text-align: center;
    margin-top: 40px;
}

.flow-image img {
    display: block;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px; /* 好きに調整OK */
    height: auto;
}

/* ターゲットボックス（説明エリア内） */
.target-box {
    background-color: #fffaf5;
    border: 1px solid #f39801;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.target-icon {
    font-size: 28px;
    color: #e56a03;
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 右パネル内コンテンツ */
.right-panel-header {
    background-color: #bd2031;
    color: white;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.right-panel-body {
    padding: 25px;
}

/* 料金注意書き */
.price-note-box {
    background-color: #fff7ed;
    border: 2px solid #fed7aa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: #c2410c;
}

.price-note-box i {
    margin-right: 12px;
    font-size: 24px;
}

/* 連絡先情報 */
.contact-info-group {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e2e8f0;
}

.contact-phone {
    font-size: 28px;
    font-weight: 900;
    color: #bd2031;
    margin-bottom: 5px;
    letter-spacing: 1px;
    display: block;
}

.contact-email {
    font-size: 16px;
    color: #1e3a5f;
    font-weight: 700;
    display: block;
    word-break: break-all;
}

/* 予約ステップ */
.booking-steps {
    background-color: #f8fafc;
    padding: 15px;
    border-radius: 8px;
}

.booking-steps-title {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.booking-steps-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

.booking-step-item::before {
    content: '✓';
    color: #bd2031;
    margin-right: 5px;
    font-weight: 900;
}

/* 相談所について画像エリア */
.about-image {
    flex: 1;
    max-width: 500px;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    /*object-fit: cover;*/
    display: block;
}

/* 業務内容・詳細情報レイアウト */
.details-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.service-list-section {
    grid-column: 1 / 3;
    background-color: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #fff0e2;
    /*border-radius: 12px;
        padding: 25px;*/
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);

}

.info-card-section {
    grid-column: 1 / 3; /* 下段全体を使う */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.section-header-small {
    font-size: 24px;
    font-weight: 700;
    color: #4C2E30;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.section-header-small i {
    margin-right: 12px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card2 {
    background: white;
    padding: 20px;
    /*border-radius: 8px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);*/
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-card2 .service-card-icon {
    background-color: #fffaf5;
    color: #e56a03;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-card {
    background: white;
    border: 1px solid #fff0e2;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #4C2E30;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eef2f6;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    font-size: 15px;
}

.info-label {
    font-weight: 700;
    color: #4C2E30;
    width: 100px;
    flex-shrink: 0;
}

.info-value {
    /*color: #334155;*/
    flex: 1;
}

.price-highlight {
    font-size: 20px;
    font-weight: 700;
    color: #e56a03;
}

.orange{
    color: #e56a03;
}

.price-shinkoku {
    color: #e56a03;
}

/* カレンダーセクション */
.calendar-section {
    margin: 0 8% 60px;
    padding: 40px;
    border-radius: 12px;
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);*/
    /*border: 1px solid #e2e8f0;*/
}

.calendar-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #4C2E30;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.calendar-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #e56a03;
    margin: 8px auto 0;
    border-radius: 2px;
}

/* レスポンシブ対応 - タブレット (1024px以下) */
@media (max-width: 1024px) {
    .side-nav {
        transform: translateX(-100%);
    }

    .side-nav.active {
        transform: translateX(0);
    }

    .hamburger-btn {
        display: block;
    }

    /*.floating-nav {
            display: none;
            /* 小さい画面ではフローティングナビを非表示 
        }*/

    .unified-content-layout {
        flex-direction: column;
        gap: 40px;
    }

    .unified-right-panel,
    .about-image {
        width: 100%;
        flex: none;
    }

    .about-image {
        height: 300px;
    }

    .details-container {
        flex-direction: column;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* スマホは縦並び */
@media (max-width: 768px) {
    .details-container {
        grid-template-columns: 1fr;
    }

    .service-list-section {
        grid-column: auto;
        padding: 25px;
    }

    .info-card-section {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* レスポンシブ対応 - スマートフォン (600px以下) */
@media (max-width: 600px) {

    .free-consultation-banner {
        padding: 20px;
        margin-top: -30px;
    }

    .consultation-badge {
        font-size: 18px;
        padding: 6px 15px;
    }

    .banner-text {
        font-size: 16px;
        flex-direction: column;
    }

    .arrow-icon {
        transform: rotate(90deg);
        margin: 5px 0 0 0;
    }

    .calendar-title {
        font-size: 24px !important;
    }

    .unified-title {
        font-size: 24px;
    }

    .target-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .booking-steps-list {
        grid-template-columns: 1fr;
    }

    .calendar-section {
        padding: 20px;
        margin: 0 5% 40px;
    }

    .service-list-section {
        padding: 20px;
    }
}

/*カレンダーお試し*/
/*.calendar-section {
  width: 100%;
}

.calendar-embed-pc {
  display: block;
}*/

.calendar-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.calendar-embed-pc {
    display: block;
    width: 100%;
}

.calendar-embed-pc iframe {
    display: block;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border: 0;
    border-radius: 12px;
}

.calendar-embed-sp {
    display: none;
    text-align: center;
    padding: 32px 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.calendar-sp-text {
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.8;
    color: #4C2E30;
}

.calendar-open-btn {
    display: inline-block;
    padding: 14px 24px;
    background: #e56a03;
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: bold;
    transition: 0.3s ease;
}

.calendar-open-btn:hover {
    opacity: 0.9;
}

/* スマホ時は埋め込みを消してボタンに切り替える */
@media (max-width: 768px) {
    .calendar-embed-pc {
        display: none;
    }

    .calendar-embed-sp {
        display: block;
    }
}


/* ----------------------------------------------------
       4.税を身近に
    ---------------------------------------------------- */

/* 税務支援の意義（図解風） */
.significance-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
}

.significance-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.significance-card p.text-sm {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.significance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
}

.card-public::before {
    background-color: #1e3a5f;
}

.card-contrib::before {
    background-color: #e63946;
}

.sig-icon {
    width: 80px;
    height: 80px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: #1e3a5f;
    flex-shrink: 0;
}

.card-contrib .sig-icon {
    color: #e63946;
    background: #fff1f2;
}

.sig-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    min-height: 60px;
}

.sig-desc {
    line-height: 1.8;
    text-align: left;
}

.sig-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
}

.plus-icon {
    font-size: 40px;
    color: #cbd5e1;
}

.result-box {
    background-color: #e56a03;
    color: white;
    padding: 30px 60px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 10px 20px rgba(30, 58, 95, 0.3);
    max-width: 800px;
    margin: 50px auto 0;
}

/* 活動紹介（ジグザグレイアウト） */
.activity-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 140px;
}

.activity-row:last-child {
    margin-bottom: 0;
}

.activity-row.reverse {
    flex-direction: row-reverse;
}

.activity-image {
    flex: 1;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/*.activity-image:hover img {
    transform: scale(1.05);
}*/

.activity-content {
    flex: 1;
}

.activity-label {
    display: inline-block;
    background-color: #e56a03;
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
}

.activity-title {
    font-family: "fot-tsukuardgothic-std", sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #1e3d7b;
    margin-bottom: 20px;
    line-height: 1.3;
}

.activity-desc {
    line-height: 1.8;
    margin-bottom: 30px;
}

.activity-stats {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: #1e3d7b;
    font-weight: 700;
}

.activity-stats i {
    margin-right: 10px;
    color: #1e3d7b;
}

/* 追加分：活動1をひとくくりにする */
.activity-item {
    margin-bottom: 140px;
}

.activity-item .activity-row {
    margin-bottom: 0;
}

/* 補足写真エリア */
.activity-sub {
    margin-top: 40px;
}

/* ハンバーガーメニューボタン */
.menu-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    background-color: #1e3a5f;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 - メディアクエリ */
@media (max-width: 1024px) {

    /* サイドナビゲーション非表示（ハンバーガー化） */
    .side-nav {
        transform: translateX(-100%);
        width: 280px;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }

    .side-nav.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    /* フローティングナビゲーション調整 
        .floating-nav {
            display: none;
             モバイルでは非表示にしてフッター等に移動するか、シンプル化 
        }*/

    /* 税務支援の意義レイアウト調整 */
    .significance-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .sig-center {
        width: 100%;
        height: 60px;
        flex-direction: row;
    }

    .plus-icon {
        transform: rotate(90deg);
        /* 縦並びなのでアイコンも向きを変えるか検討、ここではそのまま */
    }

    .significance-card {
        width: 100%;
        max-width: 600px;
    }

    /* 活動紹介レイアウト調整 */
    .activity-row,
    .activity-row.reverse {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 80px;
    }

    .activity-image {
        width: 100%;
        height: 300px;
    }

    .activity-content {
        width: 100%;
    }

}

@media (max-width: 600px) {

    /* スマホ向け調整 */

    .significance-card {
        padding: 25px;
    }

    .sig-title {
        font-size: 20px;
    }

    .sig-desc {
        font-size: 14px;
    }

    .result-box {
        padding: 20px;
    }

    .activity-image {
        height: 200px;
    }

    .activity-title {
        font-size: 24px;
    }

    .activity-desc {
        font-size: 14px;
    }
}

/* ----------------------------------------------------
       会員専用　共通
    ---------------------------------------------------- */
/* パスワードを忘れた場合 */
#wpmem_login .link-text,
#wpmem_login .forgot-link,
#wpmem_login .password-reset,
#wpmem_login .links {
    display: none !important;
}

/* 新規ユーザー登録まわり */
#wpmem_reg,
#wpmem_msg .wpmem_msg,
#wpmem_login .register-link {
    display: none !important;
}

/* ログインボタン */
#wpmem_login input[type="submit"] {
    background-color: #eb6729; 
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    margin: 20px auto 0; 
}

/* ----------------------------------------------------
       5.会員専用　支部集会
    ---------------------------------------------------- */

/* カードグリッド */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* 情報カード共通 */
.info-card {
    /*background: white;
        border-radius: 12px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        padding: 30px;
        border-top: 5px solid #1e3a5f;*/
    position: relative;
    transition: transform 0.2s;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    border-bottom: 1px solid #fff0e2;
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.nowrap-text {
    white-space: nowrap;
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #e56a03;
}

.download {
    color: #1e3d7b;
}

.event-date {
    background-color: #fff0e2;
    color: #4C2E30;
    padding: 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 15px;
    align-items: baseline;
}

.info-label1 {
    font-size: 13px;
    font-weight: 700;
    color: #4C2E30;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-content {
    flex: 1;
    color: #4C2E30;
    font-weight: 500;
}

/* 特別研修会（空欄） */
.special-training {
    background-color: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-top: none;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    text-align: center;
    padding: 20px;
}

/* 研修受講のお願い */
.training-notice {
    background-color: #fff;
    border: 1px solid #fecaca;
    border-left: 5px solid #bd2031;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.notice-header{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.notice-icon {
    font-size: 32px;
    color: #bd2031;
    background: white;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
    flex-shrink: 0;
}

.notice-content{
    display: flex;
    gap: 50px;
}

.notice-header h3 {
    color: #bd2031;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.notice-btn {
    margin-left: 0;
    margin-top: 15px;
    align-self: center;    
    background-color: #bd2031;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
    transition: transform 0.2s;
    white-space: nowrap;
    font-size: 14px;
}

.notice-btn:hover {
    transform: translateY(-2px);
    background-color: #dc2626;
    color: #fff;
}

@media (max-width: 768px) {
    .notice-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .notice-btn {
        margin-top: 0;
    }
}

/* 右側フローティングメニュー (ガラス風・統一デザイン) */
.floating-menu {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2000;
    padding: 20px 15px 20px 25px;
    background: rgba(30, 58, 95, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 20px 0 0 20px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 12px;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    line-height: 1.2;
}

.floating-item:hover {
    transform: translateX(-5px);
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.floating-item i {
    font-size: 24px;
    margin-bottom: 5px;
    display: block;
}

.floating-item.member-btn {
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
    animation: pulse-red 2s infinite;
}

.floating-item.member-btn:hover {
    background: linear-gradient(135deg, #ff5a5f, #d00000);
    transform: scale(1.05) translateX(-5px);
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 2000;
    background-color: #1e3a5f;
    color: white;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .side-nav {
        transform: translateX(-100%);
        width: 220px;
    }

    .side-nav.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .hamburger-menu {
        display: block;
    }

    .member-header {
        padding: 60px 40px 0 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-title {
        width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .grid-cols-12 {
        display: flex;
        flex-direction: column;
    }

    .col-span-8,
    .col-span-4 {
        width: 100%;
    }

    .floating-menu {
        display: none;
    }
}

@media (max-width: 600px) {
    .member-header {
        padding: 60px 20px 0 20px;
    }

    .header-title h1 {
        font-size: 24px;
    }

    .tab-item {
        padding: 10px 15px;
        font-size: 14px;
    }

    .info-card {
        padding: 20px;
    }

    .card-title {
        font-size: 18px;
    }

    .info-row {
        flex-direction: column;
    }

    .info-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .training-notice {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .notice-btn {
        margin-left: 0;
        width: 100%;
        text-align: center;
        margin-top: 15px;
    }
}

/* ----------------------------------------------------
       6.会員専用　支部からのお知らせ
    ---------------------------------------------------- */

/* Topicセクションスタイル */
.topic-section-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #fff0e2;
    padding: 35px;
    margin-bottom: 50px;
}

.topic-title-heading {
    font-size: 28px;
    font-weight: 700;
    color: #e56a03;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #fff0e2;
    display: flex;
    align-items: center;
}

.topic-upper-content {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
    min-height: 380px;
}

.topic-main-image {
    flex: 6;
    /* 60% */
    min-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.topic-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.topic-lower-images {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.topic-sub-image img {
    width: 100%;
    height: auto;
    display: block;
}

.topic-info-area {
    flex: 4;
    /* 40% */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.topic-desc-text {
    /*font-size: 15px;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;*/
    /* 200文字程度がきれいに収まるように調整 */
    display: -webkit-box;
    /*-webkit-line-clamp: 8;*/
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-btn {
    background-color: #e56a03;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.3s;
    align-self: flex-start;
    margin-top: auto;
}

.topic-btn:hover {
    background-color: #2a4d7d;
}

.topic-lower-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    min-height: 220px;
}

.topic-sub-image {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 100%;
    background-color: #f1f5f9;
}

.topic-sub-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.topic-sub-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .topic-lower-images {
        flex-direction: column;
    }

    .topic-sub-image {
        width: 100%;
    }
}

/* 執行部紹介セクション (8名構成) */
.executives-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 50px;
    border: 1px solid #fff0e2;
}

/* 集合写真エリア */
.group-photo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.group-photo-frame {
    width: 100%;
    max-width: 800px;
    /*height: 450px;*/
    aspect-ratio: 16 / 9; 
    background-color: #f1f5f9;
    /*border: 2px dashed #cbd5e1;*/
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.group-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-placeholder-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #94a3b8;
}

.photo-placeholder-text {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.photo-placeholder-sub {
    font-size: 14px;
    opacity: 0.8;
}

.executives-grid-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch; 
}

.executive-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #fff0e2;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    height: 100%;
}

.secretariat-card {
    grid-column: 2 / span 2;
}

.executive-card.primary {
    border: 2px solid #fff0e2;
    background-color: #fffaf5;
}

.secretariat-box {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
}

.secretariat-box .label {
    font-weight: 700;
    margin-right: 8px;
    color: #e56a03;
}

.exec-note {
    font-size: 13px;
    margin-bottom: 20px;
    text-align: left; /* 右寄せが大人っぽい */
}

.exec-role {
    min-height: 80px;
    background-color: #fffaf5;
    color: #e56a03;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    padding: 5px;
    text-align: center;
    flex-shrink: 0;
    flex-direction: column;
}

.exec-sub {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #64748b;
    margin-top: 4px;
}

.executive-card.primary .exec-role {
    background-color: #fff0e2;
    color: white;
    border-right: none;
}

.exec-info {
    flex: 1;
    padding: 12px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.exec-order {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.exec-name {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    word-break: keep-all;
}

.executive-card.primary .exec-name {
    font-weight: 700;
    color: #e56a03;
}

@media screen and (max-width: 768px) {
    .executives-grid-bottom {
        grid-template-columns: 1fr;
    }

    .exec-name {
        font-size: 17px;
    }

    .exec-order {
        font-size: 12px;
    }
}

/* 支部行事報告セクション */
.events-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.event-card {
    align-self: start;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s;
    border: 1px solid #fff0e2;
    display: flex;
    flex-direction: column;
    /*height: 100%;*/
}

/*.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}*/

.event-img-frame {
    height: 290px;
    width: 100%;
    position: relative;
    background-color: #e2e8f0;
    overflow: hidden;
    flex-shrink: 0;
}

.event-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.event-card:hover .event-img-frame img {
    transform: scale(1.05);
}

.event-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(30, 58, 95, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.event-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 20px;
    font-weight: 700;
    color: #4C2E30;
    margin-bottom: 10px;
    line-height: 1.4;
}

.event-desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    overflow: hidden;
    max-height: 67px;
    transition: max-height 0.3s ease;
    /*display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;*/
}

/* 開いた状態 */
.event-desc.open {
    max-height: 500px;
    /*line-clamp: unset;
    -webkit-line-clamp: unset;
    display: block;*/
}

/* ボタン */
.event-toggle {
    font-size: 13px;
    color: #e56a03;
    cursor: pointer;
    font-weight: 600;
    margin-top: auto;
    display: inline-block;
}

/*.event-date-badge {
    background-color: #f1f5f9;
    color: #1e3a5f;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    margin-top: auto;
    align-self: flex-start;
    border: 1px solid #e2e8f0;
}

.event-date-badge i {
    color: #e63946;
    margin-right: 8px;
    font-size: 14px;
}*/

/* リンク資料セクション（独立スタイル） */
.resources-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: 50px;
    border: 1px solid #fff0e2;
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.resource-card {
    background: #fffaf5;
    border: 1px solid #fff0e2;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s;
}

.resource-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    border-color: #f39801;
    transform: translateY(-2px);
    background: white;
}

.qr-frame {
    width: 100px;
    height: 100px;
    background: white;
    padding: 5px;
    border: 1px solid #fff0e2;
    border-radius: 8px;
    flex-shrink: 0;
}

.qr-frame img {
    width: 100%;
    height: 100%;
}

/* メディアクエリ - タブレット (1024px以下) */
@media (max-width: 1024px) {
    .side-nav {
        transform: translateX(-100%);
    }

    .side-nav.active {
        transform: translateX(0);
    }

    .hamburger-menu {
        display: block;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    /*.glass-floating-banner {
            display: none;
        }*/

    .member-header {
        padding: 30px;
    }

    .header-title h1 {
        font-size: 24px;
    }

    /* Topicセクション */
    .topic-upper-content {
        flex-direction: column;
        height: auto;
    }

    .topic-main-image {
        flex: none;
        width: 100%;
        height: 300px;
    }

    .topic-info-area {
        flex: none;
        width: 100%;
    }

    /* 執行部紹介 */
    .executives-row-top {
        flex-direction: column;
        align-items: center;
    }

    .executives-row-top .executive-card {
        width: 100%;
        max-width: 400px;
    }

    .executives-grid-bottom {
        grid-template-columns: repeat(2, 1fr);
    }

    /* イベントカード */
    .events-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* メディアクエリ - スマートフォン (600px以下) */
@media (max-width: 600px) {
    .member-header {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding-top: 60px;
        /* ハンバーガーメニュー分 */
    }

    .header-title h1 {
        font-size: 20px;
    }

    .user-status {
        width: 100%;
        justify-content: flex-end;
    }

    /* Topicセクション */
    .topic-section-container {
        padding: 20px;
    }

    .topic-lower-images {
        grid-template-columns: 1fr;
        height: auto;
        gap: 15px;
    }

    .topic-sub-image {
        height: 180px;
    }

    /* 執行部紹介 */
    /*.executives-section {
        padding: 20px;
    }

    .group-photo-frame {
        height: 230px;
    }

    .photo-placeholder-icon {
        font-size: 32px;
    }*/

    .executives-grid-bottom {
        grid-template-columns: 1fr;
    }

    /* イベントカード */
    .events-gallery {
        grid-template-columns: 1fr;
    }

    /* 資料セクション */
    .resources-section {
        padding: 20px;
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resource-card {
        flex-direction: column;
        text-align: center;
    }
}


/* ----------------------------------------------------
       7.会員専用　同好会
    ---------------------------------------------------- */
.brown{
    color: #624E3E;
}

/* 同好会リストコンテナ */
.clubs-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-bottom: 40px;
}

/* 同好会カード */
.club-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    overflow: visible;
    transition: transform 0.3s, box-shadow 0.3s;
}

.soft-card{
    box-shadow: inset 0 0 0 1px #1e4ed8;
}

.golf-card{
    box-shadow: inset 0 0 0 1px #15803d;

}

.boxing-card{
    box-shadow: inset 0 0 0 1px #c40c0c;
}

.club-image {
    width: 50%;
    max-width: 620px;
    background-color: #cbd5e1;
    position: relative;
    flex-shrink: 1;
    overflow: visible;
}

/* 枠 */
.soft-img::before {
    content: "";
    position: absolute;
    top: 10px;   /* ← ずらす量 */
    left: -10px; /* ← 左に出す */
    width: 100%;
    height: 100%;
    border: 2px solid #1e4ed8; /* ← 色は調整OK */
    z-index: 1;
}

.golf-img::before {
    content: "";
    position: absolute;
    top: 10px;   /* ← ずらす量 */
    left: -10px; /* ← 左に出す */
    width: 100%;
    height: 100%;
    border: 2px solid #15803d; /* ← 色は調整OK */
    z-index: 1;
}

.boxing-img::before {
    content: "";
    position: absolute;
    top: 10px;   /* ← ずらす量 */
    left: -10px; /* ← 左に出す */
    width: 100%;
    height: 100%;
    border: 2px solid #c40c0c; /* ← 色は調整OK */
    z-index: 1;
}

.club-image img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.club-content {
    flex: 1;
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.club-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    flex-wrap: wrap;
    /* レスポンシブ対応 */
    gap: 10px;
}

.soft-header{
    border-bottom: 2px solid #e3eaff;
}

.golf-header{
    border-bottom: 2px solid #e9fff1;
}

.boxing-header{
    border-bottom: 2px solid #ffe6e6;
}


.club-name {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.soft-name{
    color: #1e4ed8;
}

.golf-name{
    color: #15803d;
}

.boxing-name{
    color: #c40c0c;
}

.club-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    /* 縮小防止 */
}

.soft-icon{
    background: #e3eaff;
    color: #1e4ed8;
}

.golf-icon{
    background: #e9fff1;
    color: #15803d;
}

.boxing-icon{
    background: #ffe6e6;
    color: #c40c0c;
}

.club-status-label {
    color: #bd2031;
    border: 1px solid #bd2031;
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    /* 折り返し防止 */
}

.club-description {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
    flex-grow: 1;
    margin-top: 0;
}

/* カード内情報グリッド */
.club-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background-color: #fffaf5;
    border-radius: 16px;
    padding: 20px;
}

.soft-grid{
    background-color: #e3eaff;
}

.golf-grid{
    background-color: #e9fff1;
}

.boxing-grid{
    background-color: #ffe6e6;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-label {
    width: 80px;
    font-size: 13px;
    font-weight: 700;
    color: #4C2E30;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-value1 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.contact-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.contact-btn {
    background: #4C2E30;
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
    /*transition: background 0.2s;*/
    white-space: nowrap;
}

.contact-btn:hover {
    color: #fff;
}

.schedule-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #e63946;
    border-radius: 8px;
    padding: 15px;
}

/* ボクシング同好会（無効状態） */
.club-card.inactive {
    background-color: #f8fafc;
    border-style: dashed;
    border-width: 2px;
}

.club-card.inactive .club-image {
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    flex-direction: column;
}

.club-card.inactive .club-name,
.club-card.inactive .info-value {
    color: #64748b;
}

.club-card.inactive .club-icon {
    background-color: #f1f5f9;
    color: #94a3b8;
}

.club-card.inactive .schedule-box {
    border-left-color: #cbd5e1;
    background-color: #f1f5f9;
    color: #94a3b8;
}


/* レスポンシブ対応 - タブレット (1024px以下) */
@media (max-width: 1024px) {

    /* 同好会カードを縦長レイアウトに変更 */
    .club-card {
        flex-direction: column;
    }

    .club-image {
        width: 100%;
        height: 230px;
    }

    /* フローティングナビを非表示または調整 */
    .floating-nav {
        display: none;
        /* 画面が狭くなるので非表示にするか、下部固定バーに変更 */
    }
}

/* レスポンシブ対応 - スマートフォン (768px以下) */
@media (max-width: 768px) {
    .member-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px;
        padding-left: 70px;
        /* ハンバーガーメニュー用スペース */
        padding-top: 80px;
    }

    .menu-toggle {
        top: 15px;
        left: 15px;
    }

    .header-title h1 {
        font-size: 22px;
    }

    .page-tabs {
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

    .page-tab {
        padding: 10px 15px;
        font-size: 14px;
        white-space: nowrap;
    }

    .club-content {
        padding: 20px;
    }

    .club-name {
        font-size: 20px;
    }

    .club-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .club-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* レスポンシブ対応 - 小さいスマートフォン (480px以下) */
@media (max-width: 480px) {
    .club-image {
        height: 200px;
    }

    .header-title h1 {
        font-size: 20px;
    }

    .club-description {
        font-size: 14px;
    }

    .club-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .club-status-label {
        align-self: flex-start;
        margin-left: 65px;
        /* アイコン分のインデント */
        margin-top: -10px;
        font-size: 12px;
    }
}

/*会員登録*/

#wpmem_login,
#wpmem_msg,
#wpmem_reg,
.wpmem_msg {
    width: 90% !important;
    margin: 0 auto !important;
}