/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img, picture, video, iframe {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Noto Sans JP', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1A1A1A;
    background-color: #FFFFFF;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* セクション共通 */
section {
    padding: 80px 0;
}

/* achievementsセクションは例外 */
section.achievements {
    padding: 0;
}

/* heroセクションのサイズを基準に調整 */
.hero {
    padding: 80px 0;
    min-height: auto;
}

@media (max-width: 639px) {
    section {
        padding: 50px 0;
    }
    
    section.achievements {
        padding: 0;
    }
    
    .hero {
        padding: 50px 0;
        min-height: auto;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-title {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    color: #2E6B57;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: #7A7A7A;
    max-width: 600px;
    margin: 0 auto;
}

/* ヘッダー */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid #F3F4F6;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav {
    margin-left: auto;
    margin-right: 20px;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo-image {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.logo-text h1 {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: #2E6B57;
    white-space: nowrap;
    margin: 0;
}

.tagline {
    font-size: 12px;
    color: #7A7A7A;
    display: block;
    line-height: 1.3;
    margin-top: 3px;
    white-space: nowrap;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: nowrap;
}

.nav-list a {
    text-decoration: none;
    color: #444444;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 10px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-list a:hover {
    color: #2E6B57;
}

.header-cta {
    flex-shrink: 0;
}

.phone-btn {
    background: #FF6B8A;
    color: white;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: transform 0.3s ease;
    white-space: nowrap;
}

.phone-btn:hover {
    transform: translateY(-2px);
}

/* PC版では電話リンクを無効化 */
@media (min-width: 1024px) {
    .phone-btn,
    .footer-phone-link {
        pointer-events: none;
        cursor: default;
    }
}

.phone-btn-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
    text-align: center;
}

.phone-btn-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
}

.phone-btn-number-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-icon-small {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.phone-btn-number {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 0.9;
    margin: -2px 0 0 0;
    padding: 0;
    display: block;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: #2E6B57;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 12px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 20px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 28px;
}

/* ハンバーガーメニューが開いているときのアニメーション */
.mobile-menu-toggle.active span:nth-child(1) {
    top: 20px;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    top: 20px;
    transform: translateX(-50%) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    padding: 20px 0;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin: 16px 0;
}

.mobile-nav-list a {
    text-decoration: none;
    color: #444444;
    font-weight: 500;
    font-size: 18px;
}

.mobile-phone {
    background: linear-gradient(135deg, #A8D5C2, #2E6B57);
    color: white !important;
    padding: 12px 24px;
    border-radius: 25px;
    display: inline-block;
    margin-top: 16px;
}

/* ヘッダー用レスポンシブ */
@media (max-width: 639px) {
    .nav, .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .logo-image {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .tagline {
        font-size: 11px;
    }
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, rgba(207, 233, 222, 0.1) 0%, rgba(247, 221, 230, 0.5) 100%), 
                url('img/background10.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0 0 80px 0;
    overflow: hidden;
    position: relative;
    min-height: auto;
    margin-top: 80px;
}

@media (min-width: 640px) {
    .hero {
        background: linear-gradient(to right, rgba(207, 233, 222, 0.3) 0%, rgba(247, 221, 230, 0.3) 100%),
                    url('img/background10.png');
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        position: relative;
        padding: 100px 0 80px 0;
        min-height: 650px;
        overflow: visible;
    }
    
    .hero::after {
        display: none;
    }
}

@media (max-width: 639px) {
    .hero {
        padding: 0;
        min-height: auto;
        background-size: cover;
        background-position: 20% center;
        margin-top: 80px; /* ヘッダーの高さ分のマージンを確保 */
        background: linear-gradient(135deg, rgba(207, 233, 222, 0.1) 0%, rgba(247, 221, 230, 0.5) 100%), 
                    url('img/background10.png');
        background-repeat: no-repeat;
    }
}

.hero-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 0px;
}

@media (min-width: 640px) {
    .hero-content {
        display: grid;
        grid-template-columns: 50% 50%;
        gap: 0;
        align-items: center;
        min-height: 550px;
        padding: 0 40px;
        max-width: 1400px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
    }
}

@media (min-width: 640px) {
    .hero-text {
        margin-left: -100px;
    }
}

.hero-text {
    max-width: 800px;
    margin-left: 0;
    margin-right: auto;
    padding: 0;
    background: none;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
}

.hero-achievement-text {
    font-size: 18px;
    color: #7c6363;
    font-weight: 600;
    text-align: left;
    margin-bottom: 24px;
    background: #FFFFFF;
    padding-top: 8px;
    padding-bottom: 12px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 25px;
    display: inline-block;
    text-shadow: none;
    position: relative;
    top: 0px;
}

@media (min-width: 640px) {
    .hero-achievement-text {
        color: #1A1A1A;
        font-size: 18px;
        padding: 12px 28px;
    }
}

@media (min-width: 640px) {
    .hero-achievement-text {
        position: absolute;
        top: 20px;
        left: 40px;
        right: auto;
        margin-bottom: 0;
        width: auto;
        max-width: 600px;
        text-align: left;
        z-index: 10;
        background: rgba(255, 255, 255, 0.95);
        padding: 12px 28px;
        border-radius: 25px;
    }
    
    .hero-text {
        margin-top: 100px;
        grid-column: 1;
        padding-left: 0;
        padding-right: 40px;
        position: relative;
        z-index: 3;
        background: transparent;
    }
    
    .hero-catchphrases {
        grid-column: 2;
        position: relative;
        height: 100%;
        display: block;
        z-index: 1;
        min-height: 550px;
        background: transparent !important;
    }
}

.hero-achievement-text .emphasis-number {
    font-size: 26px;
    font-weight: 700;
    color: #FF6B8A;
}

@media (min-width: 640px) {
    .hero-achievement-text .emphasis-number {
        color: #FF6B8A;
    }
}

.hero-title {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: clamp(36px, 4.5vw, 56px);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 10px;
    text-align: left;
}

.title-line {
    display: block;
}

.title-line.nowrap {
    white-space: nowrap;
}

.nowrap {
    white-space: nowrap;
}

.title-line.accent {
    color: #2E6B57;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 56px;
        margin-bottom: 24px;
    }
    
    .title-line.nowrap {
        color: #ED6D3D;
    }
    
    .title-line.accent {
        color: #2E6B57;
    }
}

/* ヒーロー見出し内の「40」を強調（柿色・サイズ拡大） */
.emphasis-40 {
    color: #ED6D3D;
    font-size: 2.0em;
}

/* 統計数値の強調（藍色・サイズ拡大） */
.emphasis-stats {
    color: #1E3A8A;
    font-size: 1.3em;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    color: #FFFFFF;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 0 3px 6px rgba(0,0,0,0.7);
    line-height: 1.6;
}

.hero-description {
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 32px;
    line-height: 1.7;
    font-weight: 600;
    text-align: left;
}

@media (min-width: 640px) {
    .hero-description {
        color: #1A1A1A;
        font-size: 18px;
        line-height: 1.8;
        margin-bottom: 40px;
    }
    
    .hero-description .emphasis-number {
        color: #FF6B8A;
        font-size: 1.3em;
        font-weight: 700;
    }
}

.hero-cta-primary {
    margin-bottom: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .hero-cta-primary {
        gap: 20px;
        margin-bottom: 0;
    }
}

.hero-secondary {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-secondary-title {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 700;
    color: #2E6B57;
    margin-bottom: 24px;
    line-height: 1.4;
    text-shadow: none;
}

.hero-cta-secondary {
    text-align: center;
}

.btn-large {
    padding: 24px 48px;
    font-size: 20px;
}

.btn-urgent {
    background: #FF6B6B;
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
}

.btn-urgent:hover {
    background: #FF5555;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    flex-direction: row;
    gap: 24px;
    margin-bottom: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.stat-number {
    display: none;
}

.stat-label {
    font-size: 14px;
    color: #2E6B57;
    font-weight: 600;
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
}

.btn-primary {
    background: #2E6B57;
    color: white;
}

.btn-primary:hover {
    background: #1E5A47;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #FFFFFF !important;
    border: 2px solid #2E6B57 !important;
    color: #1A1A1A !important;
    text-shadow: none !important;
}

.btn-secondary:hover {
    background: #F0F0F0 !important;
    transform: translateY(-2px);
}

/* ヒーローキャッチフレーズ */
.hero-catchphrases {
    position: absolute;
    right: 0%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (min-width: 640px) {
    .hero-catchphrases {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        display: flex;
        flex-direction: column;
        gap: 40px;
        align-items: center;
        justify-content: center;
        height: 100%;
    }
}

.catchphrase-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 640px) {
    .catchphrase-item {
        background: rgba(240, 240, 240, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(5px);
    }
}

.catchphrase-item:nth-child(2) {
    margin-left: 100px;
}

@media (min-width: 640px) {
    .catchphrase-item {
        width: 200px;
        height: 200px;
        position: absolute;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 50%;
        backdrop-filter: blur(8px);
        border: 2px solid rgba(255, 255, 255, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        z-index: 4;
    }
    
    .catchphrase-item:nth-child(1) {
        top: 20%;
        left: 20%;
        right: auto;
        margin: 0;
    }
    
    .catchphrase-item:nth-child(2) {
        top: auto;
        bottom: 20%;
        right: 2%;
        left: auto;
        margin: 0;
    }
}

.catchphrase-text {
    font-size: 16px;
    font-weight: 700;
    color: #2E6B57;
    line-height: 1.3;
    display: block;
    padding: 12px;
}

@media (min-width: 640px) {
    .catchphrase-text {
        font-size: 15px;
        color: #1A1A1A;
        font-weight: 600;
        line-height: 1.4;
    }
}


/* ヒーローセクション レスポンシブ */
@media (max-width: 639px) {
    .hero {
        padding: 0;
        background-size: cover;
        background-position: 57% center;
        min-height: 60vh; /* 高さを狭く調整 */
        display: flex;
        align-items: center; /* 中央配置 */
        margin-top: 80px; /* ヘッダーの高さ分のマージンを確保 */
    }
    
    .hero-content {
        justify-content: center; /* 中央配置 */
        text-align: left;
        padding-top: 30px !important;
        padding-left: 0 !important;
        flex-direction: column;
        width: 100% !important;
        max-width: 100% !important;
        min-height: auto;
        position: relative;
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin: 0 !important;
        top: 0 !important;
    }
    
    .hero .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    
    .hero-text {
        max-width: 100%;
        padding: 0 !important;
        margin: 0 30px !important;
        margin-top: 0 !important;
        text-align: left;
        display: flex;
        flex-direction: column;
        min-height: 100%;
        position: relative;
        padding-top: 0 !important;
        padding-left: 0 !important;
        margin-left: 30px !important;
        margin-right: 30px !important;
    }
    
    .hero-title {
        margin-top: 0 !important;
        padding-top: 10px !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-description {
        padding-left: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-cta-primary {
        padding-left: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-title {
        text-align: left;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn {
        font-size: 16px;
        padding: 18px 12px;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-cta-primary .btn {
        max-width: 180px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        text-align: center !important;
    }
    
    .hero-catchphrases {
        right: 1%;
        gap: 20px;
    }
    
    .catchphrase-item {
        width: 160px;
        height: 160px;
    }
    
    .catchphrase-item:nth-child(2) {
        margin-left: 80px;
    }
    
    .catchphrase-text {
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 639px) {
    .hero-stats {
        flex-direction: row;
        gap: 12px;
        justify-content: center;
    }
    
    .stat-item {
        min-width: 100px;
        flex: 1;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 18px;
        font-weight: 600;
        text-align: left;
        margin-top: auto;
        margin-left: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .hero-subtitle {
        font-size: 16px;
        font-weight: 700;
    }
    
    .btn {
        width: 100%;
        padding: 16px 12px;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .hero-cta-primary {
        justify-content: flex-start;
        align-self: flex-start;
        margin-left: 0 !important;
        margin-top: 0px !important;
        margin-bottom: 0 !important;
        padding-left: 0 !important;
    }
    
    .hero-cta-primary .btn {
        width: auto;
        max-width: 180px;
        padding-left: 12px !important;
        padding-right: 12px !important;
        text-align: center !important;
    }
    
    .hero-catchphrases {
        display: none;
    }
    
    .hero-achievement-text {
        display: none;
    }
    
    .hero-content {
        margin-top: 0 !important;
        padding-top: 30px !important;
        padding-bottom: 0 !important;
        padding-left: 0 !important;
        top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
    }
    
    .hero-text {
        margin-top: 0 !important;
        padding-left: 0 !important;
        margin-left: 30px !important;
        margin-right: 30px !important;
        padding-top: 0 !important;
        padding: 0 !important;
        margin: 0 30px !important;
    }
    
    .hero-title {
        margin-top: 0 !important;
        padding-top: 10px !important;
        padding-left: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-description {
        padding-left: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .hero-cta-primary {
        padding-left: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .hero-achievement-text .emphasis-number {
        font-size: 16px;
    }
}

/* 誠心堂について */
.about {
    background-color: #F5F2EC;
}

/* 実績（ヒーロー直下） */
.achievements { 
    background-color: transparent;
    padding: 0;
    position: relative;
    margin: 0;
}

.achievements .container {
    position: relative;
    z-index: 1;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.achievements-image-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    overflow: hidden;
}

.achievements-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0 !important;
    padding: 0;
}

.achievements-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.achievements-left {
    flex: 1;
}

.achievements-main-title {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: #2E6B57;
    margin-bottom: 24px;
    line-height: 1.4;
}

.achievements-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    color: #333;
    line-height: 1.6;
}

.achievements .stat-number {
    display: inline;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 800;
    color: #E74C3C;
}

.reason-statistics-title {
    color: #FF6B8A !important;
}

.reason-achievements-content {
    background: transparent;
    padding: 0;
}

.reason-detail .achievements-content {
    gap: 60px;
}

.reason-detail .stat-number {
    display: inline;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 800;
    color: #E74C3C;
}

.reason-detail .stat-item {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 500;
    color: #333;
    line-height: 1.6;
}

.achievements-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.achievements-chart-image {
    width: 100%;
    max-width: 500px;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.about-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 3px solid #FF6B6B;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.about-box h3 {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #2E6B57;
    margin-bottom: 12px;
}

.about-box p {
    font-size: 14px;
    line-height: 1.7;
    color: #444444;
    margin: 0;
}

@media (min-width: 640px) {
    .about-image {
        position: relative;
        height: 100%;
        min-height: auto;
        aspect-ratio: 16/9;
        overflow: hidden;
        border-radius: 12px;
    }

    .about-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-radius: 12px;
    }
}

@media (max-width: 639px) {
    .about-image {
        position: relative;
        width: 100%;
        height: auto;
        margin: 20px 0;
        border-radius: 12px;
    }

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: 12px;
    }
}

.about-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    z-index: 0;
}

.about-main-image {
    position: relative;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    z-index: 1;
}

.about-images-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 500px;
    margin: 0 auto;
}

.about-image-additional {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.about-image-additional img {
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

@media (max-width: 639px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .about-images-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .about-main-image {
        position: relative;
        height: auto;
        max-height: 250px;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
        z-index: 1;
    }
    
    .about-bg-image {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
        z-index: 0;
    }
    
    .about-image-additional {
        position: relative;
        height: auto;
        max-height: 250px;
        width: 100%;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .about-image-additional img {
        height: auto;
        max-height: 250px;
        width: 100%;
        object-fit: cover;
        display: block;
        border-radius: 12px;
    }
    
    .about-box {
        margin-bottom: 0;
    }
}

/* サービス */
.services {
    background-color: #FFFFFF;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.service-card {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 28px;
}

.service-title {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2E6B57;
    margin-bottom: 16px;
}

.service-description {
    margin-bottom: 20px;
    color: #444444;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: #CFE9DE;
    color: #2E6B57;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

@media (max-width: 639px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
/* 選ばれる6つの理由 */
.reasons {
    background-color: #CFE9DE;
    padding: 80px 0;
}

.reasons-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.reason-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.reason-item-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 32px;
}

.reason-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: #2E6B57;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
}

.reason-image {
    flex-shrink: 0;
    width: 240px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
}

.reason-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reason-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reason-title {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2E6B57;
    margin: 0;
}

.reason-description {
    color: #444444;
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
}

.reason-toggle-btn {
    background: #2E6B57;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.reason-toggle-btn:hover {
    background: #1F4A3A;
    transform: translateY(-2px);
}

.reason-toggle-btn.active .btn-icon {
    transform: rotate(45deg);
}

.btn-icon {
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

/* 詳細表示エリア */
.reason-detail {
    max-height: 0;
    overflow: hidden;
    border-top: 2px solid #E0E0E0;
}

.reason-detail.active {
    max-height: 5000px;
}

.detail-content {
    padding: 32px;
}

.detail-intro {
    color: #444444;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
    text-align: center;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.detail-text-box {
    background: #F8F9FA;
    padding: 24px;
    border-radius: 8px;
}

.detail-top-section {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
}

.detail-text-image {
    flex-shrink: 0;
    width: 120px;
}

.detail-portrait-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.detail-text-header {
    flex: 1;
}

.detail-company {
    font-size: 14px;
    color: #666;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.detail-title {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px 0;
    font-weight: 400;
    line-height: 1.6;
}

.detail-name {
    font-size: 18px;
    color: #2E6B57;
    margin: 0;
    font-weight: 700;
}

.detail-main-title {
    font-size: 20px;
    color: #2E6B57;
    margin: 0 0 16px 0;
    font-weight: 700;
    line-height: 1.5;
}

.detail-body-text p {
    font-size: 14px;
    color: #444;
    line-height: 1.8;
    margin: 0;
}

.detail-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 理由3の画像表示 */
.reason-detail-image-wrapper {
    width: 100%;
}

.reason-detail-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 漢方×鍼灸の両輪アプローチ */
.dual-approach-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.approach-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.approach-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.approach-text p {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* 妊活専門スタッフ */
.staff-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.staff-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.staff-image-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
}

.staff-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2E6B57;
    margin: 0 0 16px 0;
}

.staff-text p {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* 自社開発妊活サプリメント */
.supplement-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.supplement-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.supplement-image-item {
    text-align: center;
}

.supplement-name {
    font-size: 14px;
    font-weight: 600;
    color: #2E6B57;
    margin-top: 12px;
    margin-bottom: 12px;
}

.supplement-name ruby {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    text-align: center;
    vertical-align: bottom;
}

.supplement-name rt {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 400;
    color: #666;
    margin-top: 4px;
}

.supplement-image-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.supplement-text p {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 16px 0;
}

.supplement-method-image {
    margin-top: 24px;
}

.supplement-method-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
}

/* 生殖医療クリニック連携 */
.clinic-collaboration-header {
    margin-bottom: 32px;
}

.clinic-collaboration-header p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: center;
    margin: 0;
}

.clinic-collaboration-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.clinic-images-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.clinic-image-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
}

.clinic-text-section h4 {
    font-size: 20px;
    font-weight: 700;
    color: #2E6B57;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.clinic-text-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin: 0 0 16px 0;
}

/* 身体づくりセクション */
.body-building-section {
    margin-top: 32px;
    padding: 24px;
    background-color: #F8F9FA;
    border-radius: 8px;
}

.body-building-item {
    margin-bottom: 24px;
}

.body-building-item:last-child {
    margin-bottom: 0;
}

.body-building-title {
    font-size: 18px;
    font-weight: 700;
    color: #2E6B57;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 3px solid #2E6B57;
    display: inline-block;
}

.body-building-title.pregnancy-preparation {
    border-bottom-color: #FF6B8A;
}

.body-building-title.safe-pregnancy {
    border-bottom-color: #7CB342;
}

.body-building-title.postpartum-care {
    border-bottom-color: #42A5F5;
}

.body-building-text {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin: 0;
}

/* スマホ対応 (〜639px) */
@media (max-width: 639px) {
    .reasons {
        padding: 50px 0;
    }
    
    .reasons-list {
        gap: 20px;
    }
    
    .reason-item-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .reason-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .reason-image {
        width: 100%;
        height: 200px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .reason-image img {
        border-radius: 8px;
    }
    
    .reason-title {
        font-size: 18px;
    }
    
    .reason-description {
        font-size: 13px;
    }
    
    .reason-toggle-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .detail-content {
        padding: 20px;
    }
    
    .detail-intro {
        font-size: 13px;
        text-align: left;
        margin-bottom: 20px;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .detail-text-box {
        padding: 16px;
    }
    
    .detail-top-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .detail-text-image {
        width: 100px;
    }
    
    .detail-main-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .detail-body-text p {
        font-size: 13px;
    }
    
    /* 漢方×鍼灸 */
    .dual-approach-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .approach-text p {
        font-size: 13px;
    }
    
    .approach-text p br {
        display: none;
    }
    
    /* スタッフ */
    .staff-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .staff-text h4 {
        font-size: 16px;
        text-align: center;
        margin-bottom: 12px;
    }
    
    .staff-text p {
        font-size: 13px;
    }
    
    /* サプリメント */
    .supplement-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .supplement-name {
        font-size: 13px;
        margin-top: 12px;
    }
    
    .supplement-name rt {
        font-size: 10px;
        margin-top: 2px;
    }
    
    .supplement-text p {
        font-size: 13px;
    }
    
    /* クリニック連携 */
    .clinic-collaboration-header p {
        font-size: 13px;
        text-align: left;
    }
    
    .clinic-images-section {
        grid-template-columns: 1fr;
    }
    
    .clinic-text-section h4 {
        font-size: 16px;
    }
    
    .clinic-text-section p {
        font-size: 13px;
    }
    
    /* 身体づくり */
    .body-building-section {
        padding: 20px;
        margin-top: 20px;
    }
    
    .body-building-item {
        margin-bottom: 20px;
    }
    
    .body-building-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .body-building-text {
        font-size: 13px;
    }
}

/* お悩みセクション */
.problems {
    background: linear-gradient(135deg, #F8F9FA, #E8F4F8);
    color: #333333;
    text-align: center;
}

.problems-title {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 700;
    color: #2E6B57;
    margin-bottom: 20px;
}

.problems-subtitle {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 600;
    color: #555555;
    margin-bottom: 40px;
    text-align: center;
}

.problems-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.problem-item {
    background: #FFFFFF;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 16px;
    color: #4A90E2;
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.problem-item:hover .problem-icon {
    transform: scale(1.1);
    opacity: 1;
}

.problem-item p {
    color: #2E6B57;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
}

.problem-details {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #E0E0E0;
}

.detail-item {
    color: #666666;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
    padding-left: 4px;
    text-align: left;
}

.detail-item:last-child {
    margin-bottom: 0;
}

/* 45歳超え妊娠実績メッセージセクション */
.problems-message-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* お客様インタビュー動画セクション内のメッセージ */
.problems-message-section-inner {
    margin-bottom: 30px;
}

.problems-message {
    text-align: center;
}

.problems-message p {
    font-size: 20px;
    font-weight: 700;
    color: #2E6B57;
    background: #FFFFFF;
    padding: 20px 32px;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* mobile-onlyクラス: PC版では非表示、スマホ版では表示 */
.mobile-only {
    display: none;
}

@media (max-width: 639px) {
    .mobile-only {
        display: inline;
    }
    
    .problems-subtitle {
        margin-bottom: 20px;
    }
    
    .problems-message-section {
        padding: 30px 0;
    }
    
    .problems-message-section-inner {
        margin-bottom: 20px;
    }
    
    .problems-message p {
        font-size: 15px;
        display: block;
        width: 100%;
        padding: 16px 20px;
    }
    
    .problems-list {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .problem-item {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .problem-item:first-child {
        margin-top: 0;
    }
    
    .problem-item p {
        font-size: 18px;
    }
    
    .detail-item {
        font-size: 15px;
    }
}


/* 体験談 */
.testimonials {
    background-color: #FFFFFF;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}


/* お客様インタビュー動画セクション */
.interview-video {
    padding: 80px 0;
    background: #F8F9FA;
}

/* YouTube動画セクション */
.youtube-video-section {
    margin: 40px 0;
    text-align: center;
}

.video-section-title {
    color: #2E6B57;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 640px; /* サムネイルが見やすいサイズに調整 */
    margin: 0 auto 20px;
    aspect-ratio: 16 / 9; /* アスペクト比を維持 */
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
}

.video-description {
    color: #666666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    border: 1px solid #E0E0E0;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.testimonial-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.testimonial-content {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-profile {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #7A7A7A;
}

.age {
    background: #CFE9DE;
    color: #2E6B57;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.testimonial-text {
    color: #444444;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-action {
    margin-top: 0;
    margin-bottom: 0;
}

.read-more-btn,
.watch-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2E6B57;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.read-more-btn .btn-icon {
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.read-more-btn.active .btn-icon {
    transform: rotate(180deg);
}

.read-more-btn:hover,
.watch-video-btn:hover {
    background: #1E5A47;
}

.testimonials-disclaimer {
    margin-top: 24px;
    text-align: center;
}

.testimonials-disclaimer p {
    font-size: 12px;
    color: #7A7A7A;
    line-height: 1.4;
    margin: 0;
}

.testimonials-footer {
    text-align: center;
    margin-top: 40px;
}

.testimonials-footer p {
    font-size: 18px;
    font-weight: 600;
    color: #2E6B57;
    margin-bottom: 16px;
}

.testimonials-footer p:first-child {
    background: none;
    padding: 0;
    border-radius: 0;
    display: block;
    color: #333333;
}

.testimonials-footer p:last-child {
    background: rgba(46, 107, 87, 0.1);
    padding: 16px 32px;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 0;
}

.testimonials-footer a {
    color: #2E6B57;
    text-decoration: none;
    transition: color 0.3s ease;
}

.testimonials-footer a:hover {
    color: #1E5A47;
}

/* 詳細体験談コンテナ */
.first-row-details,
.second-row-details {
    grid-column: 1 / -1; /* グリッドの全列を使用 */
    width: 100%;
}

/* 詳細体験談 */
.detailed-testimonial {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 32px;
    margin: 32px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #E0E0E0;
    transition: all 0.3s ease;
    scroll-margin-top: 100px; /* スクロール時のオフセット */
    animation: fadeInUp 0.5s ease-out;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detailed-testimonial-title {
    color: #2E6B57;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 2px solid #2E6B57;
    padding-bottom: 8px;
}

.testimonial-subtitle {
    color: #FF6B8A;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.testimonial-name {
    color: #666666;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
    padding-left: 16px;
}

.testimonial-qa {
    margin-top: 24px;
}

.qa-item {
    margin-bottom: 24px;
    padding: 20px;
    background: #F8F9FA;
    border-radius: 8px;
    border-left: 4px solid #2E6B57;
}

.qa-item:last-child {
    margin-bottom: 0;
}

.question {
    color: #2E6B57;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.5;
}

.answer {
    color: #333333;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        max-width: 600px;
    }
    
    /* タブレット以下では通常のグリッドレイアウトに戻す */
    .testimonial-card:nth-child(1),
    .testimonial-card:nth-child(2),
    .testimonial-card:nth-child(3),
    .testimonial-card:nth-child(4),
    .testimonial-card:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }
    
    /* 詳細体験談コンテナはタブレットでも全列使用 */
    .first-row-details,
    .second-row-details,
    .detailed-testimonial {
        grid-column: 1 / -1;
    }
    
    /* YouTube動画セクションのレスポンシブ */
    .youtube-video-section {
        margin: 40px 0;
        padding: 30px 15px;
    }
    
    .video-section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .video-description {
        font-size: 14px;
    }
    
    .detailed-testimonial {
        padding: 24px;
        margin: 24px 0;
    }
    
    .detailed-testimonial-title {
        font-size: 18px;
    }
    
    .testimonial-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 639px) {
    .testimonials-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        justify-items: stretch;
    }
    
    .testimonial-card {
        width: 100%;
        margin-bottom: 20px;
    }
    
    /* スマホ版では詳細コンテンツをカードの直後に配置 */
    .first-row-details,
    .second-row-details {
        display: none; /* スマホ版ではコンテナを非表示 */
    }
    
    .detailed-testimonial {
        width: 100%;
        padding: 20px;
        margin: 0 0 40px 0;
        order: initial; /* 通常のフロー順序 */
    }
    
    .detailed-testimonial-title {
        font-size: 16px;
    }
    
    .testimonial-subtitle {
        font-size: 15px;
    }
    
    .testimonial-name {
        font-size: 14px;
    }
    
    .qa-item {
        padding: 16px;
    }
    
    .question {
        font-size: 15px;
    }
    
    .answer {
        font-size: 14px;
    }
    
    .testimonial-image {
        aspect-ratio: 4 / 3;
        background-color: transparent;
        position: static;
        overflow: hidden;
    }
    
    .testimonial-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
    
    .testimonial-image img.position-lower {
        object-position: center 30%;
    }
    
    .testimonial-content {
        padding: 20px;
    }
}

/* 初回相談のご案内 */
.counseling {
    background-color: #F5F2EC;
}

.counseling-content {
    max-width: 800px;
    margin: 0 auto;
}

.counseling-flow {
    margin-bottom: 48px;
}

.flow-title {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #2E6B57;
    text-align: center;
    margin-bottom: 32px;
}

.flow-steps {
    display: grid;
    gap: 20px;
}

.step-item {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid #E0E0E0;
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.step-image {
    flex-shrink: 0;
    width: 200px;
}

.step-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.step-item.step-reverse {
    flex-direction: row-reverse !important;
}

.step-number {
    background: #2E6B57;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.step-item h4 {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #2E6B57;
    margin: 0;
    line-height: 1.4;
}

.step-item p {
    color: #444444;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.step-note {
    color: #666666 !important;
    font-size: 12px !important;
    font-style: italic;
    margin-top: 12px !important;
    padding-left: 8px;
    border-left: 2px solid #E0E0E0;
}

.counseling-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.feature-box {
    background: #CFE9DE;
    padding: 24px;
    border-radius: 0;
    text-align: center;
}

.feature-box h4 {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #2E6B57;
    margin: 0;
}

.counseling-cta {
    text-align: center;
    margin-top: 40px;
}

.counseling-cta .btn {
    background-color: #FF8C00;
    padding: 24px 48px;
    font-size: 28px;
}

.counseling-cta .btn:hover {
    background-color: #E67E00;
}

@media (max-width: 639px) {
    .counseling {
        padding: 30px 0;
    }
    
    .counseling-flow {
        margin-bottom: 32px;
    }
    
    .flow-title {
        margin-bottom: 20px;
    }
    
    .flow-steps {
        gap: 20px;
    }
    
    .step-item,
    .step-item.step-reverse {
        flex-direction: column !important;
        text-align: left;
        gap: 12px;
        padding: 16px 20px;
    }
    
    .step-image {
        width: 100%;
        margin: 0 auto;
    }
    
    .step-content {
        align-items: flex-start;
        text-align: left;
    }
    
    .step-header {
        margin-bottom: 12px;
        justify-content: flex-start;
    }
    
    .counseling-features {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }
    
    .feature-box {
        padding: 20px;
    }
    
    .counseling-cta {
        text-align: center;
        margin-top: 30px;
    }
    
    .counseling-cta .btn {
        padding: 20px 32px !important;
        font-size: 22px !important;
        width: 100%;
    }
    
    .step-item h4 {
        font-size: 16px !important;
    }
}

/* FAQ */
.faq {
    background-color: #FFFFFF;
}

.faq-header-image {
    margin-bottom: 32px;
}

.faq-header-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
    display: block;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #E0E0E0;
    margin-bottom: 16px;
    border-radius: 0;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #2E6B57;
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    color: #A8D5C2;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 24px;
    display: none;
    color: #444444;
    line-height: 1.8;
}

.faq-answer.active {
    display: block;
}

/* 最終訴求・クロージング */
.closing {
    background-color: #CFE9DE;
    color: #2E6B57;
    text-align: center;
}

.closing-content {
    max-width: 800px;
    margin: 0 auto;
}

.closing-title {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 40px;
    color: #2E6B57;
}

.closing-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.closing-message {
    text-align: center;
    margin-bottom: 48px;
}

.closing-message p {
    font-size: 25px;
    font-weight: 700;
    color: #2E6B57;
    margin: 0;
}

.closing-point {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px 32px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.point-icon {
    font-size: 24px;
    color: #A8D5C2;
    flex-shrink: 0;
}

.closing-point p {
    font-size: 23px;
    font-weight: 600;
    margin: 0;
    color: #2E6B57;
}

.closing-cta {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

/* クロージング内のボタンは常に横並び・自動幅 */
.closing-cta .btn {
    width: auto !important;
    margin: 0 !important;
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
}

.closing-cta .btn-outline {
    background: #FFFFFF;
    color: #2E6B57;
    border: 2px solid #2E6B57;
    text-align: center;
}

.closing-cta .btn-outline:hover {
    background: #F0F0F0;
    color: #2E6B57;
    transform: translateY(-2px);
}

@media (max-width: 639px) {
    .closing-points {
        margin-bottom: 24px;
    }
    
    .closing-message {
        margin-bottom: 32px;
    }
    
    .closing-message p {
        font-size: 16px;
    }
    
    .closing-point {
        padding: 16px 24px;
    }
    
    .closing-point p {
        font-size: 16px;
    }
    
    .closing-cta {
        gap: 12px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    
    .closing-cta .btn {
        width: 70% !important;
        max-width: 300px;
        white-space: normal;
        padding: 24px 20px;
        font-size: 14px;
        line-height: 1.4;
        align-self: center;
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center !important;
    }
}

/* 会社情報 */
.company {
    background: linear-gradient(135deg, #CFE9DE 0%, #F7DDE6 100%);
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.company-info-box,
.locations-box {
    background: white;
    padding: 32px;
    border-radius: 0;
    border: 1px solid #E0E0E0;
}

.info-box-title {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2E6B57;
    margin-bottom: 24px;
    text-align: center;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table td {
    padding: 16px 0;
    border-bottom: 1px solid #F3F4F6;
    vertical-align: top;
}

.company-table .label {
    font-weight: 700;
    color: #2E6B57;
    width: 120px;
    white-space: nowrap;
}

.company-table .value {
    color: #444444;
    padding-left: 24px;
}

.locations h3 {
    display: none;
}

.location-grid {
    display: grid;
    gap: 24px;
}

.location-area {
    background: #CFE9DE;
    padding: 24px;
    border-radius: 0;
}

.location-area h4 {
    font-size: 18px;
    font-weight: 700;
    color: #2E6B57;
    margin-bottom: 12px;
}

.location-area p {
    color: #444444;
    line-height: 1.6;
}

@media (max-width: 639px) {
    .company .section-header {
        display: none;
    }
    
    .company-info-box {
        display: none;
    }
    
    .company-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .locations-box {
        padding: 24px;
    }
}

/* お問い合わせ */
.contact {
    background-color: #FFFFFF;
}

.response-time {
    font-size: 18px;
    font-weight: 700;
    color: #2E6B57;
    text-align: center;
    margin-bottom: 16px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-form-container {
    background: white;
    padding: 32px;
    border-radius: 0;
    border: 1px solid #E0E0E0;
    order: 1;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    order: 2;
}

.contact-box {
    background: white;
    padding: 28px;
    border-radius: 0;
    border: 1px solid #E0E0E0;
    margin-bottom: 0;
}

.contact-box h3 {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2E6B57;
    margin-bottom: 16px;
}

.phone-number {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.phone-number a {
    color: #2E6B57;
    text-decoration: none;
}

.phone-hours {
    color: #7A7A7A;
    font-size: 14px;
}

.sns-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sns-link {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.sns-link.youtube {
    background: #FF0000;
    color: white;
}

.sns-link.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
    color: white;
}

.sns-link.twitter {
    background: #1DA1F2;
    color: white;
}

.sns-link:hover {
    transform: translateY(-2px);
}

/* フォーム */
.contact-form-container {
    background: white;
    padding: 32px;
    border-radius: 0;
    border: 1px solid #E0E0E0;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #2E6B57;
    margin-bottom: 8px;
}

.required {
    color: #FF6B6B;
    font-size: 0.85em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #A8D5C2;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #A8D5C2, #2E6B57);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease;
    min-height: 48px;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* フォームステータスメッセージ */
.form-status {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.form-status-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-status-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.form-status p {
    margin: 0;
}

@media (max-width: 639px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .sns-links {
        justify-content: center;
    }
}

/* フッター */
.footer {
    background-color: #2E6B57;
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-logo {
    text-decoration: none;
    color: inherit;
}

.footer-logo h3 {
    font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-logo p {
    color: #A8D5C2;
    font-size: 13px;
    text-align: left;
}

.footer-info {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.footer-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #CFE9DE;
    text-align: left;
}

.footer-info p {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 8px;
    text-align: left;
}

.footer-info a {
    color: #A8D5C2;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

.footer-phone-label {
    font-size: 12px;
    color: #A8D5C2;
    margin-bottom: 4px;
}

.footer-phone-link {
    color: #A8D5C2;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

.footer-phone-link:hover {
    text-decoration: underline;
}

.footer-reception-time {
    font-size: 11px;
    color: #A8D5C2;
    margin-top: 4px;
}

.footer-bottom {
    text-align: left;
    padding-top: 24px;
    border-top: 1px solid rgba(168, 213, 194, 0.3);
    font-size: 13px;
    color: #A8D5C2;
}

.footer-bottom p {
    text-align: left;
    margin: 0;
}

@media (max-width: 639px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: left;
    }
    
    .footer-info {
        flex-direction: row;
        gap: 24px;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .footer-contact,
    .footer-address {
        text-align: left;
        flex: 1;
    }
    
    .footer-contact h4 {
        padding-left: 20px;
    }
    
    .footer-contact p {
        padding-left: 20px;
    }
}

/* モバイル最適化 */
@media (max-width: 639px) {
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 10px !important;
        margin-top: 20px !important;
    }
    
    .section-title {
        font-size: 22px !important;
        text-align: center !important;
        margin: 0 auto 10px auto !important;
        width: 100% !important;
    }
    
    .contact .section-header {
        padding-left: 0;
    }
    
    .contact .section-title {
        text-align: center !important;
        padding-left: 0 !important;
        margin: 0 auto 10px auto !important;
    }
    
    .contact .response-time {
        text-align: center !important;
        padding-left: 0 !important;
    }
    
    /* mobile-hideクラス: スマホ版で非表示 */
    .mobile-hide {
        display: none;
    }
    
    .hero .hero-title .title-line {
        font-size: 22px !important;
        white-space: nowrap !important;
        text-align: left !important;
        display: block !important;
        margin: 0 !important;
    }
    
    .hero .hero-title .emphasis-40 {
        font-size: 1.6em !important;
    }
    
    .hero-description {
        font-size: 12px !important;
        text-align: left !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
    }
    
    .hero-achievement-text {
        text-align: left !important;
    }
    
    body {
        font-size: 12px;
    }
    
    h3 {
        font-size: 16px !important;
    }
    
    h4 {
        font-size: 14px !important;
    }
    
    .stat-number {
        font-size: 1.2rem !important;
    }
    
    .btn {
        font-size: 1rem !important;
        padding: 14px 24px;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .service-card,
    .reason-card {
        margin-bottom: 16px;
    }
    
    .testimonial-card {
        margin-bottom: 0;
    }
    
    .about-box,
    .contact-box,
    .contact-form-container {
        padding: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    /* ボックスや画像の上下に20pxの余白 */
    .service-card,
    .reason-card,
    .contact-box,
    .contact-form-container,
    .step-item,
    .faq-item {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    /* お悩みセクションのカードは上下の余白を統一 */
    .problem-item {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .problem-item:first-child {
        margin-top: 0;
    }
    
    /* 体験談カードはgapで余白を管理するため、marginは0 */
    .testimonial-card {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    /* 画像の上下に20pxの余白（横幅いっぱいの画像は除く） */
    img:not(.w-full):not([class*="w-full"]) {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    /* 横幅いっぱいの画像は余白なし */
    img.w-full,
    img[class*="w-full"],
    .achievements-image,
    .reason-detail-image,
    .about-image img {
        margin-top: 0;
        margin-bottom: 0;
    }
    
    .nav-list a,
    .mobile-nav-list a {
        white-space: nowrap !important;
    }
    
    .phone-btn {
        white-space: nowrap !important;
    }
    
    .problems-title {
        font-size: 22px !important;
        text-align: center !important;
        margin: 0 auto 20px auto !important;
    }
    
    /* 見出し下の余白を20pxに統一 */
    h2, h3, h4, h5, h6 {
        margin-bottom: 20px;
    }
    
    /* ボタンのフォントサイズを12pxに */
    .btn {
        font-size: 12px !important;
    }
    
    /* その他の要素のフォントサイズ調整 */
    .section-subtitle {
        font-size: 12px !important;
    }
    
    .service-title {
        font-size: 16px !important;
    }
    
    .testimonial-text {
        font-size: 12px !important;
    }
    
    .reason-description,
    .service-description,
    .answer,
    .detail-body-text p,
    .step-item p,
    .faq-answer p {
        font-size: 12px !important;
    }
    
    /* お客様インタビュー動画セクションの上下余白を小さく */
    .interview-video {
        padding-top: 5px !important;
        padding-bottom: 20px !important;
    }
    
    .interview-video .section-header {
        margin-bottom: 10px !important;
    }
    
    .youtube-video-section {
        margin-top: 0 !important;
        margin-bottom: 20px !important;
    }
    
    .video-container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }
    
    /* その他の見出しのフォントサイズ調整 */
    .problems-subtitle {
        font-size: 16px !important;
    }
    
    .flow-title {
        font-size: 23px !important;
    }
    
    /* 誠心堂薬局についてセクションの並び替え（カード、カード、画像、画像の順） */
    .about-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .about-content > div:nth-child(1) { 
        order: 1 !important; 
        margin-bottom: -5px !important; /* カード間の余白を狭く */
    } /* ミッション */
    .about-content > div:nth-child(2) { order: 2 !important; } /* ハーブ画像 */
    .about-content > div:nth-child(3) { 
        order: 3 !important; 
        margin-bottom: 0 !important;
    } /* 専門性 */
    .about-content > div:nth-child(4) { order: 4 !important; } /* 鍼灸画像 */

    /* 誠心堂薬局についてセクションの画像 - 1枚目（ハーブ） */
    .about-image-herbs {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important; /* アスペクト比は維持 */
        overflow: hidden !important;
        margin: 0 !important; /* 余白はgapで制御 */
        padding: 0 !important;
        border-radius: 12px !important;
        display: block !important;
        /* 以前の100vw用の設定をリセット */
        position: static !important;
        transform: none !important;
        left: auto !important;
        margin-left: 0 !important;
    }
    
    .about-image-herbs img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
        display: block !important;
    }
    
    /* 2枚目（鍼灸）はそのまま */
    .about-image-acupuncture {
        width: 100% !important;
        margin: 0 !important; /* 余白はgapで制御 */
    }
    
    .about-image-acupuncture img {
        width: 100% !important;
        height: auto !important;
        object-fit: cover !important;
        margin: 0 !important;
        border-radius: 12px !important;
        display: block !important;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* スクロール時のアニメーション用 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}


.service-card:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.service-card:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.service-card:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス表示 */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid #A8D5C2;
    outline-offset: 2px;
}

/* クリック後のフォーカスアウトラインを非表示 */
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
a:focus:not(:focus-visible),
.btn:focus:not(:focus-visible),
.submit-btn:focus:not(:focus-visible),
.checkbox-label:focus:not(:focus-visible) {
    outline: none;
}

/* 無料カウンセリングセクション */
.counseling-section {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    border: 1px solid #e9ecef;
}

.counseling-section h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.counseling-section p {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.counseling-section small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* チェックボックスグリッド */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.time-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.checkbox-grid .checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin: 0;
    padding: 8px 12px;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: visible;
    white-space: normal;
    text-overflow: clip;
    min-width: 0;
    min-height: 44px;
    text-align: center;
    word-break: keep-all;
    line-height: 1.4;
    color: #2c3e50;
}

.checkbox-grid .checkbox-label:hover {
    background-color: #f8f9fa;
    border-color: #A8D5C2;
}

.checkbox-grid .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #A8D5C2;
    border-color: #A8D5C2;
}

.checkbox-grid .checkbox-label input[type="checkbox"]:checked ~ span:not(.checkmark) {
    color: #2c3e50;
    font-weight: 500;
}

/* モバイル対応 */
@media (max-width: 639px) {
    .counseling-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .checkbox-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 8px;
    }
    
    .time-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
    
    .checkbox-grid .checkbox-label {
        padding: 8px 10px;
        font-size: 13px;
        box-sizing: border-box;
        overflow: visible;
        white-space: normal;
        text-overflow: clip;
        min-width: 0;
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        word-break: keep-all;
        line-height: 1.4;
        color: #2c3e50;
    }
}

/* 妊活チェックシート */
.checksheet-section {
    background-color: #fff;
    padding: 24px;
    border-radius: 8px;
    margin: 24px 0;
    border: 1px solid #e9ecef;
}

.checksheet-section h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.checksheet-section p {
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.checksheet-section p:first-of-type {
    text-align: center;
    margin-bottom: 8px;
}

.checksheet-category {
    margin-bottom: 32px;
    padding: 20px;
    background-color: #fff;
}

.checksheet-category:last-child {
    margin-bottom: 0;
}

.checksheet-category h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

.checksheet-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
}

.checksheet-items .checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin: 0;
    padding: 12px 16px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.checksheet-items .checkbox-label:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.checksheet-items .checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #A8D5C2;
    border-color: #A8D5C2;
}

.checksheet-items .checkbox-label input[type="checkbox"]:checked ~ span:not(.checkmark) {
    color: #2c3e50;
    font-weight: 500;
}

/* モバイル対応 */
@media (max-width: 639px) {
    .checksheet-section {
        padding: 16px;
        margin: 16px 0;
    }
    
    .checksheet-category {
        padding: 16px;
        margin-bottom: 24px;
    }
    
    .checksheet-items {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .checksheet-items .checkbox-label {
        padding: 10px 12px;
        font-size: 16px !important;
        line-height: 1.5;
    }
    
    .checksheet-items .checkbox-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .checksheet-items .checkbox-label .checkmark {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .checksheet-section h3 {
        font-size: 1.2rem;
    }
    
    .checksheet-category h4 {
        font-size: 1rem;
    }
}

/* お問い合わせ種類選択 */
.inquiry-type-section {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.inquiry-type-section .section-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    display: block;
    font-size: 1rem;
}

.inquiry-type-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inquiry-type-options .checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin: 0;
    padding: 8px 12px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.inquiry-type-options .checkbox-label:hover {
    background-color: #f8f9fa;
}

.inquiry-type-options .checkbox-label input[type="radio"]:checked + .checkmark {
    background-color: #A8D5C2;
    border-color: #A8D5C2;
}

.inquiry-type-options .checkbox-label input[type="radio"]:checked ~ span:not(.checkmark) {
    color: #2c3e50;
    font-weight: 500;
}

/* 寄り添いメッセージ */
.supportive-message {
    margin-top: 16px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #A8D5C2;
}

.supportive-message p {
    margin: 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

/* 体質チェックなしの場合の案内文 */
.no-checksheet-notice {
    text-align: center;
    margin: 16px 0;
}

.no-checksheet-notice p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* モバイル対応 */
@media (max-width: 639px) {
    .inquiry-type-section {
        padding: 16px;
        margin-bottom: 20px;
    }
    
    .inquiry-type-options .checkbox-label {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .no-checksheet-notice {
        margin: 12px 0;
    }
    
    .no-checksheet-notice p {
        font-size: 0.85rem;
    }
    
    .supportive-message {
        margin-top: 12px;
        padding: 16px;
    }
    
    .supportive-message p {
        font-size: 0.9rem;
    }
}

/* お問い合わせ情報セクション */
.contact-info-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

/* フッターロゴ */
.footer-logo-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-logo-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.footer-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-logo-text {
    flex: 1;
}

.footer-logo-text h3 {
    margin: 0 0 4px 0;
}

.footer-logo-text p {
    margin: 0;
    font-size: 13px;
    text-align: left;
}

/* モバイル対応 */
@media (max-width: 639px) {
    .footer-logo-content {
        gap: 12px;
    }
    
    .footer-logo-icon {
        display: none;
    }
    
    .footer-logo-icon-inline {
        display: inline-flex;
        align-items: center;
        margin-right: 8px;
        vertical-align: middle;
        position: relative;
        top: -1px;
    }
    
    .footer-logo-icon-inline img {
        width: 28px;
        height: 28px;
        object-fit: contain;
    }
    
    .footer-logo-text p {
        padding-left: 36px;
        margin-top: -25px;
    }
}

@media (min-width: 640px) {
    .footer-logo-icon-inline {
        display: none;
    }
}

/* 高コントラスト対応 */
@media (prefers-contrast: high) {
    .faq-question {
        border-bottom: 2px solid #E0E0E0;
    }
}

/* スマホ固定電話バー */
.mobile-fixed-phone-bar {
    display: none;
}

@media (max-width: 639px) {
    .mobile-fixed-phone-bar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: linear-gradient(135deg, #E07B4C 0%, #D4652F 100%);
        padding: 8px 16px;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .mobile-fixed-phone-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: white;
    }
    
    .mobile-fixed-phone-label {
        font-size: 10px;
        font-weight: 500;
        margin-bottom: 2px;
        opacity: 0.9;
    }
    
    .mobile-fixed-phone-number {
        display: flex;
        align-items: center;
        gap: 5px;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 1px;
    }
    
    .mobile-fixed-phone-number .icon {
        width: 16px;
        height: 16px;
        fill: white;
    }
    
    .mobile-fixed-phone-time {
        font-size: 9px;
        margin-top: 1px;
        opacity: 0.8;
    }
    
    /* スマホ固定電話バーの高さ分だけbodyに余白を追加 */
    body {
        padding-bottom: 80px;
    }
}

/* 遊び心のあるデザイン要素 */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 5%;
    width: 100px;
    height: 100px;
    background: rgba(168, 213, 194, 0.3);
    border-radius: 50%;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 5%;
    width: 60px;
    height: 60px;
    background: rgba(255, 182, 193, 0.4);
    border-radius: 50%;
    z-index: 1;
}

.hero {
    position: relative;
}

/* カードにほんの少しの傾き */
.service-card:nth-child(1) {
    transform: rotate(-0.5deg);
}

.service-card:nth-child(3) {
    transform: rotate(0.5deg);
}

/* ホバー時の微調整 */
.service-card:hover {
    transform: translateY(-4px);
}

/* セクション間の装飾 */
.about::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #A8D5C2, transparent);
}

.about {
    position: relative;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F7DDE6, transparent);
}

.services {
    position: relative;
}

/* 統計数字にアニメーション */
@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

.stat-number {
    animation: countUp 0.6s ease-out 1s both;
}

/* ボタンのマイクロインタラクション */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* 写真の配置を左右非対称に */
/* 中央カードの高さズレ防止のためマージンを削除 */
/* .testimonial-card:nth-child(2) { margin-top: 20px; } */

.solution-item:nth-child(2) .solution-image {
    margin-top: -20px;
}

/* SNSリンクの配色調整 */
.sns-link.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D, #F56040, #F77737, #FCAF45, #FFDC80);
}

/* 微細な影効果（背景のみ） */
.hero {
    /* 背景は上部で定義済み。ここでは位置調整のみ */
    position: relative;
}

.contact {
    background-color: #FFFFFF;
    position: relative;
}

.icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: inline-block;
    vertical-align: -3px;
}

.phone-btn .icon {
    width: 18px;
    height: 18px;
}

.mobile-phone .icon {
    margin-right: 6px;
}

.hero-text,
.hero-title,
.hero-description,
.hero .stat-number,
.hero .stat-label,
.hero-buttons .btn {
    color: #7c6363;
}

/* ボタンは塗りつぶしとアウトラインで色分け */
.btn-primary {
    background: rgba(46,107,87,0.9);
    color: #FFFFFF;
}

/* ヒーローセクションのボタンスタイルは上部で定義済み */


/* 妊娠成功実績統計レイアウト */
.statistics-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem 2rem 0 2rem;
    border-radius: 8px;
}

.statistics-left {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
}

.statistics-header h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.highlight-kanpo {
    color: #4A90E2;
    font-weight: 600;
}

.highlight-shinkyu {
    color: #E74C3C;
    font-weight: 600;
}

.period-badge {
    background-color: #E74C3C;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.statistics-main {
    margin: 0.2rem 0 1rem 0;
    position: relative;
}

.statistics-content {
    display: block;
}

.statistics-image {
    margin-top: 1rem;
}

.statistics-baby-image {
    width: 80%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
}

.statistics-number {
    flex: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 0.2rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.period-text {
    font-size: 0.9rem;
    color: #666;
    display: inline;
    margin-bottom: 0;
    margin-right: 0.1rem;
}

.main-number {
    font-size: 3rem;
    font-weight: 700;
    color: #E74C3C;
    margin: 0 0.1rem;
    line-height: 1;
    background: linear-gradient(135deg, #E74C3C 0%, #FF6B6B 50%, #E74C3C 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite, bounce 2s ease-in-out infinite;
}

.unit {
    font-size: 1.5rem;
    font-weight: 600;
    color: #E74C3C;
    line-height: 1;
    background: linear-gradient(135deg, #E74C3C 0%, #FF6B6B 50%, #E74C3C 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite 0.5s, bounce 2s ease-in-out infinite 0.5s;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.statistics-illustration {
    flex-shrink: 0;
    align-self: flex-end;
}

.mother-baby-image {
    width: 250px;
    height: auto;
}

.statistics-note {
    text-align: center;
    margin-top: 1rem;
}

.statistics-note p {
    font-size: 0.8rem;
    color: #999;
    margin: 0;
}

.statistics-right {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
}

.period-info {
    text-align: center;
    margin-top: 1rem;
}

.period-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.age-header {
    text-align: left;
    margin-bottom: 1rem;
}

.age-title {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.age-highlight {
    margin-top: 0;
    position: relative;
    display: inline-block;
    background-color: #FFF;
    border: 3px solid #E74C3C;
    border-radius: 20px;
    padding: 1rem 1.5rem;
    animation: pulse 2s infinite;
}

.age-highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #E74C3C;
}

.age-text {
    font-size: 1rem;
    color: #333;
    display: block;
    margin-bottom: 0.3rem;
}

.age-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: #E74C3C;
    display: block;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.pie-chart {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.pie-chart-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(
        #FFB6C1 0% 29.3%,
        #FF91A4 29.3% 69.3%,
        #FF6B8A 69.3% 91.9%,
        #E91E63 91.9% 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
}


.pie-center {
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #E74C3C;
}

.center-text {
    font-size: 0.8rem;
    color: #333;
    line-height: 1.2;
}

.center-text strong {
    font-size: 1.2rem;
    color: #E74C3C;
    font-weight: 700;
}

.chart-legend {
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 0.5rem;
}

.legend-color.blue { background-color: #4A90E2; }
.legend-color.orange { background-color: #FFB6C1; }
.legend-color.yellow { background-color: #FF91A4; }
.legend-color.pink { background-color: #FF6B8A; }
.legend-color.red { background-color: #E91E63; }
.legend-color.dark-pink { background-color: #E91E63; }

.highlight-40s, .highlight-45plus {
    border: 2px solid #E74C3C;
    border-radius: 4px;
    padding: 0.2rem;
    background-color: rgba(231, 76, 60, 0.1);
}

.statistics-bottom-message {
    padding: 0.5rem;
    border-radius: 8px;
    text-align: center;
}

.statistics-bottom-message p {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 639px) {
    .achievements {
        padding: 0;
        margin: 0;
    }
    
    .achievements-image-wrapper {
        padding: 0;
        margin: 0;
        width: 100%;
        overflow: hidden;
        display: block;
    }
    
    .achievements-image {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }
    
    .achievements picture {
        width: 100%;
        display: block;
        margin: 0;
        padding: 0;
    }
    
    .achievements picture img {
        width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
        margin: 0 !important;
    }
    
    .achievements-image-wrapper picture {
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
    }
    
    .achievements-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .achievements-main-title {
        font-size: 24px;
        text-align: center;
    }
    
    .achievements-stats {
        gap: 8px;
    }
    
    .achievements .stat-item {
        font-size: 16px;
        text-align: center;
    }
    
    .achievements .stat-number {
        display: inline;
        font-size: 22px;
    }
    
    .reason-detail .stat-number {
        display: inline;
        font-size: 22px;
    }
    
    .reason-statistics-title {
        font-size: 20px !important;
        text-align: center;
    }
    
    .reason-detail .achievements-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .reason-detail .achievements-stats {
        gap: 8px;
    }
    
    .reason-detail .stat-item {
        font-size: 16px;
        text-align: center;
    }
    
    .reason-detail .achievements-main-title {
        font-size: 20px;
        text-align: center;
    }
    
    .statistics-layout {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .statistics-left, .statistics-right {
        padding: 0.5rem;
    }
    
    .main-number {
        font-size: 2.5rem;
    }
    
    .age-percentage {
        font-size: 1.5rem;
    }
    
    .statistics-bottom-message {
        padding: 0.5rem;
    }
    
    .statistics-bottom-message p {
        font-size: 1rem;
    }
    
    .pie-chart-container {
        width: 150px;
        height: 150px;
    }
    
    .pie-center {
        width: 60px;
        height: 60px;
    }
    
    .center-text {
        font-size: 0.7rem;
    }
    
    .center-text strong {
        font-size: 1rem;
    }
    
    .statistics-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .statistics-baby-image {
        width: 70%;
        max-height: 150px;
    }
    
    .pie-chart {
        flex-direction: column;
        gap: 1rem;
    }
    
    .chart-legend {
        width: 100%;
    }
    
    .age-highlight {
        padding: 0.8rem 1.2rem;
    }
    
    .age-text {
        font-size: 0.9rem;
    }
    
    .age-percentage {
        font-size: 1.5rem;
    }
}



/* 個人情報保護方針モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #E0E0E0;
    background-color: #F8F9FA;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #2E6B57;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #FF6B6B;
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.modal-body h3 {
    font-size: 1.2rem;
    color: #2E6B57;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
    border-left: 4px solid #2E6B57;
    padding-left: 12px;
}

.modal-body h3:first-of-type {
    margin-top: 0;
}

.modal-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #34495E;
    margin-bottom: 16px;
}

.modal-body ul {
    margin: 12px 0;
    padding-left: 24px;
}

.modal-body ul li {
    font-size: 1rem;
    line-height: 1.8;
    color: #34495E;
    margin-bottom: 8px;
}

.modal-body a {
    color: #2E6B57;
    text-decoration: underline;
    word-break: break-all;
}

.modal-body a:hover {
    color: #1a4d3a;
}

.policy-date {
    text-align: right;
    font-weight: 600;
    color: #2E6B57;
    margin-top: 32px;
}

#privacy-policy-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

#privacy-policy-link:hover {
    color: #0056b3;
}

/* モバイル対応 */
@media (max-width: 639px) {
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(85vh - 80px);
    }
    
    .modal-body h3 {
        font-size: 1.1rem;
    }
    
    .modal-body p,
    .modal-body ul li {
        font-size: 0.9rem;
    }
    
    .modal-body a {
        font-size: 0.85rem;
        word-break: break-all;
    }
    
}

/* 430px以下のスマホ版でheaderとheroが重ならないように調整（最後に配置して優先度を上げる） */
@media (max-width: 430px) {
    .hero {
        margin-top: 90px !important;
    }
}