/* =========================================================
CSS
========================================================= */

/* --- Base & Variables --- */
:root {
    --bg-white: #ffffff;
    --bg-cream: #FCFBF9;
    --text-black: #2E2E2E;
    --point-blue: #1576BD;
    --max-container: 1500px;
    --desktop-content: 1160px;
    
    --font-main-title: clamp(26px, 4.0vw, 44px);
    --font-section-title: clamp(22px, 2.8vw, 30px);
    --header-height: 90px;
    -webkit-font-smoothing: antialiased;
}

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

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-black);
    background-color: var(--bg-white);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Prevent scroll when menu is open */
body.menu-open {
    overflow: hidden;
}

.small{
    font-size:14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
    
}

ul {
    list-style: none;
}

img {
    width: 100%;
    height: auto;
    vertical-align: middle;
    object-fit: cover;
}

/* --- Layout Helper --- */
.inner {
    margin: 0 auto;
    width: 86%; 
    max-width: var(--max-container);
}

@media (min-width: 1260px) {
    .inner {
        width: var(--desktop-content);
    }
}

/* Section Spacing */
section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.section-footer {
    padding: clamp(10px, 2vw, 30px) 0;
}

/* Common Section Title */
.section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 60px);
}

.section-title {
    font-size: var(--font-section-title);
    font-weight: 500;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--point-blue);
}

/* --- Header --- */
header {
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 2000;
}

.header-container {
    width: 100%;
    padding: 0 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ★追加: ロゴ画像のスタイル調整 */
.logo-image {
    width: 280px;
    height: calc(var(--header-height) - 30px); 
    max-height: 60px; /* 必要に応じて最大高さを制限 */
    object-fit: contain; /* 画像全体を比率を保って収める */
}


/* Desktop Nav */
.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 45px);
}

.nav-menu li a { 
    font-size: 16px; 
    font-weight: 500; 
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu li a:hover { color: var(--point-blue); }

/* Hamburger Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    position: relative;
}

.hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--text-black);
    transition: all 0.3s ease;
    position: absolute;
}

/* Positioning bars */
.hamburger span:nth-child(1) { transform: translateY(-8px); }
.hamburger span:nth-child(2) { transform: translateY(0); }
.hamburger span:nth-child(3) { transform: translateY(8px); }

/* Hamburger Open State (X mark) */
.hamburger.active span:nth-child(1) {
    transform: translateY(0) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(0) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100dvh;
    background-color: var(--bg-white);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    padding-top: 150px;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.45, 0, 0.55, 1);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav ul li {
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

.mobile-nav.active ul li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav ul li a {
    font-size: 24px;
    font-weight: 500;
}

/* --- Breakpoint: 833px --- */
@media (max-width: 833px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
}

/* --- Main Visual --- */
.main-visual {
    width: 100%;
    height: 85vh;
    position: relative;
    overflow: hidden;
    min-height:700px;
}

@media (max-width: 833px) {
    .main-visual {
        height: 80vh;
    }
}
.slider-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide.active { opacity: 1; }

/* PC用：webp画像 */
.slide:nth-child(1) { background-image: url('../images/mv01.webp'); }
.slide:nth-child(2) { background-image: url('../images/mv02.webp'); }
.slide:nth-child(3) { background-image: url('../images/mv03.webp'); }

/* スマホ用：jpg画像への切り替え */
@media (max-width: 833px) {
    .slide:nth-child(1) { background-image: url('../images/mv01_sp.jpg'); }
    .slide:nth-child(2) { background-image: url('../images/mv02_sp.jpg'); }
    .slide:nth-child(3) { background-image: url('../images/mv03_sp.jpg'); }
}

.mv-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}


.mv-text-box { padding-top: var(--header-height); }

.tag {
    display: inline-block;
    border: 1.5px solid var(--text-black);
    padding: 8px 18px;
    font-size: 16px;
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
}

.mv-title {
    font-size: var(--font-main-title);
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 3.5rem;
    letter-spacing: 0.05em;
}

.mv-contact-box {
    background-color: var(--point-blue);
    color: #fff;
    padding: 20px 30px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
}

@media (max-width: 833px) {
    .mv-contact-box {
        margin-top:120px;
    }
    .tag{
        margin-bottom:1.25rem;
    }
}

.tel {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin: 8px 0;
    display: flex; /* アイコン並列用 */
    align-items: center;
    gap: 12px;
}

/* --- Symptoms Section --- */
.symptoms-open{
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 600;
}


.symptoms-lead {
    text-align: center;
    margin-bottom: 60px;
    font-size: clamp(18px, 2.0vw, 20px);
    font-weight: 500;
}

.symptoms-grid {
    display: grid;
    gap: 40px;
}

.symptom-item {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(20px, 4vw, 60px);
}

.symptom-img {
    border-radius: 4px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.symptom-content h3 {
    font-size: clamp(20px, 2vw, 24px);
    margin-top: 10px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 6px solid var(--point-blue);
    line-height: 1.2;
}

.symptom-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.symptom-list li {
    font-size: 17px; 
    position: relative;
    padding-left: 15px;
}

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

@media (max-width: 768px) {
    .symptom-item { grid-template-columns: 1fr; }
    .symptom-list { grid-template-columns: 1fr; }
}

/* --- Medical Info Section --- */
.bg-cream-section {
    background-color: var(--bg-cream);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.card {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid #e5e0d8;
    border-top: 14px solid #E5E0D8;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 25px;
    height: 3em;
    display: flex;
    align-items: center;
}

.card .main-val {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-black);
}

.main-val span{
    font-weight:normal;
    font-size:14px;
}

.card .desc {
    font-size: 16px; 
    color: #555;
    text-align: left;
}

.card a{
    text-decoration: underline;
}

.btn-blue {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--point-blue);
    color: #fff;
    width: fit-content;
    margin: 0 auto;
    padding: 15px 60px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 18px;
}

.btn-blue i { margin-left: 10px; }

@media (max-width: 900px) {
    .cards-grid { grid-template-columns: 1fr; }
}

/* --- Director Greeting Section --- */
.greeting-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: clamp(30px, 5vw, 80px);
    align-items: flex-start;
}

.director-profile {
    text-align: center;
}

.director-img {
    margin-bottom: 20px;
    border-radius: 4px;
}

.director-name {
    font-size: 16px; 
    font-weight: bold;
}

.director-name_span {
    display: block;
    font-size: 20px; 
    font-weight: normal;
    margin-top: 5px;
    font-weight: bold;
}

.director-name2 {
    font-size: 22px; 
    font-weight: bold;
    line-height:120%;
    margin-top:8px;
}

.director-name_span2 {
    font-size: 16px; 
    font-weight: normal;
}

.greeting-text p {
    font-size: 17px; 
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .greeting-layout { grid-template-columns: 1fr; }
    .director-img { max-width: 300px; margin: 0 auto 20px; }
}

/* --- Policy Section --- */
.policy-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.policy-item {
    display: flex;
    gap: 30px;
}

.policy-num {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-color: var(--point-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    border-radius: 4px;
}

.policy-content h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--point-blue);
}

.policy-content p {
    font-size: 16px; 
    color: #444;
}

@media (max-width: 600px) {
    .policy-item { flex-direction: column; gap: 15px; }
}

/* --- Access Section --- */
.footer-access {
    padding-top: clamp(30px, 4vw, 50px);
    border-top: 1px solid #eee;    
}

.access-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: flex-start;
}

.info-col .clinic-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.info-col .address {
    font-size: 16px; 
    margin-bottom: 30px;
    color: #444;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    text-align: center;
    font-size: 15px; 
}

.schedule-table th, .schedule-table td {
    border: 1px solid #ddd;
    padding: 10px 4px;
}

.schedule-table thead th {
    background-color: #f8f8f8;
    font-weight: normal;
}

.schedule-table .time-label {
    background-color: var(--point-blue);
    color: #fff;
    width: 100px;
}

.schedule-table .dot {
    color: var(--point-blue);
    font-size: 24px;
    line-height: 1;
    vertical-align: middle;
}

.schedule-note {
    font-size: 15px;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

.phone-bar {
    border-top: 2px solid var(--point-blue);
    border-bottom: 2px solid var(--point-blue);
    padding: 30px 0;
    text-align: center;
}

.phone-bar .tel-number {
    font-size: clamp(32px, 4vw, 44px);
    font-weight: bold;
    color: var(--text-black);
    line-height: 1;
    margin-bottom: 10px;
    display: flex; /* アイコン並列用 */
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.phone-bar .reception-time {
    font-size: 15px; 
    color: #666;
}

.map-col iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 530px;
}

@media (max-width: 1024px) {
    .access-layout { grid-template-columns: 1fr; }
    .map-col iframe { min-height: 350px; }
}

.copyright {
    padding: 30px 0;
    text-align: center;
    font-size: 14px; 
    color: #666;
    background-color: #fff;
}



/* --- 診療案内（about.html）専用スタイル --- */

/* 1. ページタイトルセクション */
.about-header {
    background-color: #DFDDBE;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--header-height);
}
.about-header h1 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.1em;
}
@media (max-width: 833px) {
    .about-header { height: 120px; }
}

/* セクション共通見出し（トップページと共通化） */
.about-sec-title {
    text-align: center;
    font-size: var(--font-section-title);
    font-weight: 500;
    margin-bottom: clamp(40px, 6vw, 60px);
    position: relative;
    padding-bottom: 15px;
}
.about-sec-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--point-blue);
}
.about-sec-title.left { text-align: left; }
.about-sec-title.left::after { left: 0; transform: none; }

/* 2. 料金の目安セクション */
.about-price-sec { padding: clamp(60px, 8vw, 100px) 0; }
.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
}
.price-item {
    border-left: 6px solid var(--point-blue);
    padding-left: 20px;
}
.price-item h3 { font-size: 18px; margin-bottom: 10px; font-weight: 500; }
.price-item .amount { font-size: 18px;  }

.price-info-box {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-black);
}

.mobile-only { display: none; }

@media (max-width: 833px) {
    .price-grid { grid-template-columns: 1fr; gap: 30px; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }
}

/* 3. 写真セクション (100%幅・隙間なし) */
.about-images { width: 100%; display: flex; }
.image-strip-pc { display: flex; width: 100%; }
.image-strip-pc img { width: 33.333%; height: auto; display: block; }
.image-strip-sp { display: none; }

@media (max-width: 833px) {
    .image-strip-pc { display: none; }
    .image-strip-sp { display: block; width: 100%; }
    .image-strip-sp img { width: 100%; display: block; }
}

/* 4. お支払いセクション */
.about-payment-sec { background-color: #FCFBF9; padding: clamp(60px, 8vw, 100px) 0; }
.payment-content { text-align: center; }
.payment-main { font-size: 20px; font-weight: bold; margin-bottom: 15px; }
.payment-sub { font-size: 16px; color: #666; }

/* 5. 診察の流れセクション */
.about-flow-sec { background-color: #fff; padding: clamp(60px, 8vw, 100px) 0; padding-bottom:40px;}
.flow-block { margin-bottom: 60px; }
.flow-block-head { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.flow-num {
    background: var(--point-blue);
    color: #fff;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.flow-block-head h3 { font-size: 20px; font-weight: 600; }
.flow-block-body p { font-size: 17px; line-height: 1.8; margin-bottom: 25px; }

/* 角丸ボックス（添付画像参考） */
.flow-check-box {
    border: 5px solid #DEDCC3;
    border-radius: 40px;
    padding: 40px 60px;
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
}
.check-col { flex: 1; }
.check-col h4 {
    color: #937a4d;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}
.check-col ul li {
    font-size: 16px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 1.2em;
}
.check-col ul li::before { content: '・'; position: absolute; left: 0; }

@media (max-width: 833px) {
    .flow-check-box {
        flex-direction: column;
        gap: 40px;
        padding: 30px;
        border-radius: 25px;
    }
}

/* 6. かかりつけ連携セクション */
.about-collab-sec { 
    padding: clamp(60px, 8vw, 100px) 0; 
    background-color: #FCFBF9; /* 添付画像に合わせ白背景に変更 */
}

/* タイトル下のレイアウト：左右に分割 */
.collab-layout { 
    display: flex; 
    align-items: flex-start; 
    gap: clamp(40px, 6vw, 80px); 
    margin-top: 50px;
}

.collab-text { 
    flex: 1.2; /* テキスト側を少し広く */
}

.collab-text p { 
    font-size: 17px; 
    margin-bottom: 25px; 
    line-height: 2; /* 添付画像に合わせ行間をゆったり */
}

.collab-img { 
    flex: 1; 
}

.collab-img img { 
    width: 100%; 
    height: auto;
    border-radius: 4px; 
}

@media (max-width: 833px) {
    .collab-layout { 
        flex-direction: column; 
        gap: 30px; 
        margin-top: 30px;
    }
}




/* --- アクセス（access.html）専用スタイル --- */

/* 地図セクション */
.access-map-sec {
    padding: clamp(60px, 8vw, 100px) 0;
}

.map-wrapper {
    max-width: 800px; /* 指示通り最大幅700px */
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

/* アクセス方法セクション */
.access-guide-sec {
    padding-bottom: clamp(60px, 8vw, 100px);
    background-color: #FCFBF9;
}

.access-guide-layout {
    display: flex;
    gap: clamp(40px, 6vw, 80px);
    margin-top: 50px;
}

.access-guide-text {
    flex: 1;
}

.guide-sub-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-black);
    border-left: 6px solid var(--point-blue);
    padding-left: 15px;
    margin-bottom: 30px;
}

.guide-list {
    list-style: none;
}

.guide-list li {
    font-size: 17px; /* 記事本文と同じサイズ */
    line-height: 2.0; /* ゆったりした行間 */
    margin-bottom: 25px;
    position: relative;
    padding-left: 1.2em;
}

.guide-list li::before {
    content: "・";
    position: absolute;
    left: 0;
}

.access-guide-img {
    flex: 1;
}

.access-guide-img img {
    width: 100%;
    border-radius: 4px;
}

@media (max-width: 833px) {
    .access-guide-layout {
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }
    
    .guide-sub-title {
        margin-bottom: 20px;
    }
}


/* --- 採用情報（recruitment.html）専用スタイル --- */

.rec-main-sec {
    padding: clamp(60px, 8vw, 100px) 0;
}

.rec-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.rec-message {
    color: #937a4d; /* 診察の流れの小見出しと統一 */
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.rec-lead {
    font-size: 17px;
    margin-bottom: 30px;
}

.rec-link-btn {
    display: inline-block;
    font-size: 18px;
    text-decoration: none;
    margin-bottom: 60px;
    transition: color 0.3s;
    font-weight: bold;
}

.rec-link-btn:hover {
    color: var(--point-blue);
}

.rec-image-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.rec-image-wrapper img {
    width: 100%;
    height: auto;
    border: 1px solid #eee; /* バナー風の枠線 */
}

@media (max-width: 833px) {
    .rec-message {
        font-size: 18px;
    }
    .rec-link-btn {
        margin-bottom: 40px;
    }
}

.lead{
    font-size: 18px; margin-bottom: 10px;
}
.reception-time span{
    color:#000;
    font-size: 22px;
}



/* --- Header Default --- */
header {
    height: var(--header-height); /* PCは常に90px */
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    transition: height 0.3s ease;
    box-shadow: none; /* 影をなしに */
}

.logo-image {
    /* ロゴのサイズをPC・スマホ・スクロール前後すべてで280x60に固定 */
    width: 280px !important;
    height: 60px !important;
    object-fit: contain;
}

/* --- Mobile Styles (833px以下) --- */
@media (max-width: 833px) {
    header {
        height: 90px; /* 初期状態は90px */
    }

    /* スマホでスクロールした時 */
    header.scrolled {
        height: 60px !important;
        box-shadow: none !important; /* スクロールしても影を出さない */
    }

    /* header.scrolled 時の .logo-image のサイズ指定をあえて書かないことで
       上の「280x60固定」がそのまま引き継がれます */
}