/* Penta Koubou Demo Site */
/* ===========================
   Medical A - 清潔感のあるデザイン（一般医院）
   =========================== */

/* リセット・基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* 段落のマージン */
p {
    margin-bottom: 0.5rem;
}

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

/* ===========================
   ヘッダー
   =========================== */
.med-a-header {
    background: #fff;
    box-shadow: 0 1px 5px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.med-a-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.med-a-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #1976d2;
}

.med-a-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.med-a-nav a {
    color: #333;
    font-weight: 500;
}

.med-a-nav a:hover {
    color: #1976d2;
}

.med-a-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.med-a-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .med-a-nav {
        display: none;
    }
    
    .med-a-menu-toggle {
        display: flex;
    }
}

/* ===========================
   ヒーローセクション - 縦型カードレイアウト
   =========================== */
.med-a-hero-card {
    padding: 80px 0;
    background: #fff;
}

.med-a-hero-main {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.med-a-hero-image {
    width: 100%;
    background-size: cover;
    background-position: center;
}

.med-a-hero-content {
    padding: 60px 50px;
    text-align: center;
}

.med-a-hero-title {
    font-size: 42px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
}

.med-a-hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
}

.med-a-hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 768px) {
    .med-a-hero-title {
        font-size: 28px;
    }
    
    .med-a-hero-subtitle {
        font-size: 16px;
    }
    
    .med-a-hero-content {
        padding: 40px 30px;
    }
    
    .med-a-hero-cta {
        flex-direction: column;
    }
}

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

.med-a-section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.med-a-section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
    font-size: 16px;
}

.med-a-section-badge {
    font-size: 14px;
    color: #1976d2;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* ===========================
   ボタン
   =========================== */
.med-a-btn-primary {
    display: inline-block;
    padding: 18px 50px;
    background: #1976d2;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
}

.med-a-btn-primary:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 3px 12px rgba(25, 118, 210, 0.3);
}

.med-a-btn-secondary {
    display: inline-block;
    padding: 18px 50px;
    background: #fff;
    color: #1976d2;
    border: 2px solid #1976d2;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.med-a-btn-secondary:hover {
    background: #1976d2;
    color: #fff;
}

/* ===========================
   お知らせ
   =========================== */
.med-a-news {
    background: #fafafa;
}

.med-a-news-list {
    max-width: 900px;
    margin: 0 auto;
}

.med-a-news-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
}

.med-a-news-date {
    color: #1976d2;
    font-weight: 600;
    min-width: 100px;
}

.med-a-news-category {
    display: inline-block;
    padding: 5px 15px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 14px;
    min-width: 100px;
    text-align: center;
}

.med-a-news-item a {
    color: #333;
    flex: 1;
}

.med-a-news-item a:hover {
    color: #1976d2;
}

@media (max-width: 768px) {
    .med-a-news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===========================
   診療内容
   =========================== */
.med-a-services {
    background: #fff;
    padding: 100px 0;
}

.med-a-services-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.med-a-service-card-vertical {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.med-a-service-card-vertical:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.med-a-service-image {
    width: 100%;
    background-size: cover;
    background-position: center;
}

.med-a-service-content {
    padding: 35px;
}

.med-a-service-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.med-a-service-content p {
    color: #666;
    line-height: 1.8;
}

.med-a-services-cta {
    text-align: center;
    margin-top: 50px;
}

/* ===========================
   診療時間
   =========================== */
.med-a-hours {
    background: #fafafa;
    padding: 100px 0;
}

.med-a-hours-content {
    max-width: 900px;
    margin: 0 auto;
}

.med-a-hours-table {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    margin-bottom: 30px;
}

.med-a-hours-table table {
    width: 100%;
    border-collapse: collapse;
}

.med-a-hours-table th,
.med-a-hours-table td {
    padding: 20px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.med-a-hours-table th {
    background: #1976d2;
    color: #fff;
    font-weight: 600;
}

.med-a-hours-table td {
    background: #fff;
    color: #333;
}

.med-a-hours-note {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.med-a-hours-note p {
    margin-bottom: 10px;
}

/* ===========================
   当院について
   =========================== */
.med-a-about {
    background: #fff;
    padding: 100px 0;
}

.med-a-about-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.med-a-about-image {
    width: 100%;
    background-size: cover;
    background-position: center;
}

.med-a-about-text {
    padding: 50px;
}

.med-a-about-text h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: #333;
    text-align: left;
}

.med-a-about-text p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.med-a-about-text .med-a-btn-secondary {
    margin-top: 20px;
}

@media (max-width: 768px) {
    .med-a-about-text {
        padding: 40px 30px;
    }
}

/* ===========================
   医院の様子（ギャラリー）
   =========================== */
.med-a-gallery {
    background: #fafafa;
    padding: 100px 0;
}

.med-a-gallery-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.med-a-gallery-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.med-a-gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.med-a-gallery-image {
    width: 100%;
    background-size: cover;
    background-position: center;
}

.med-a-gallery-label {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background: #fff;
}

/* ===========================
   CTA
   =========================== */
.med-a-cta {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: #fff;
    text-align: center;
    padding: 100px 0;
}

.med-a-cta h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.med-a-cta p {
    margin-bottom: 35px;
    font-size: 16px;
    opacity: 0.95;
}

.med-a-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.med-a-cta .med-a-btn-primary {
    background: #fff;
    color: #1976d2;
}

.med-a-cta .med-a-btn-primary:hover {
    background: #fafafa;
}

.med-a-cta .med-a-btn-secondary {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.med-a-cta .med-a-btn-secondary:hover {
    background: #fff;
    color: #1976d2;
}

@media (max-width: 768px) {
    .med-a-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* ===========================
   フッター
   =========================== */
.med-a-footer {
    background: #fafafa;
    color: #333;
    padding: 50px 0 0;
    border-top: 1px solid #e5e5e5;
}

.med-a-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 35px;
}

.med-a-footer-info h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 18px;
    font-weight: 600;
}

.med-a-footer-info p {
    margin-bottom: 10px;
    line-height: 1.8;
    color: #666;
    font-size: 14px;
}

.med-a-footer-links h4 {
    color: #333;
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 16px;
}

.med-a-footer-links ul {
    list-style: none;
}

.med-a-footer-links li {
    margin-bottom: 10px;
}

.med-a-footer-links a {
    color: #666;
    font-size: 14px;
}

.med-a-footer-links a:hover {
    color: #1976d2;
}

.med-a-footer-bottom {
    border-top: 1px solid #e5e5e5;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.med-a-footer-credit {
    margin-top: 8px;
    font-size: 11px;
    color: #999;
}

@media (max-width: 768px) {
    .med-a-footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ===========================
   下層ページ共通
   =========================== */
.med-a-page-header {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}

.med-a-page-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.med-a-page-header p {
    font-size: 16px;
    opacity: 0.95;
}

.med-a-page-content {
    padding: 80px 0;
    background: #fff;
}

.med-a-content {
    max-width: 900px;
    margin: 0 auto;
    color: #333;
    line-height: 1.6;
}

/* ===========================
   診療内容詳細ページ
   =========================== */
.med-a-service-detail {
    background: #fafafa;
    padding: 100px 0;
}

.med-a-service-detail-item {
    background: #fff;
    border-radius: 15px;
    padding: 50px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.med-a-service-detail-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.med-a-service-detail-item.reverse .med-a-service-detail-content {
    order: 2;
}

.med-a-service-detail-item.reverse .med-a-service-detail-image {
    order: 1;
}

.med-a-service-detail-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
    border-left: 5px solid #1976d2;
    padding-left: 20px;
}

.med-a-service-lead {
    font-size: 18px;
    margin-bottom: 35px;
    color: #666;
    line-height: 1.6;
}

.med-a-service-features h3,
.med-a-service-note h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.med-a-service-features ul {
    list-style: none;
    margin-bottom: 30px;
}

.med-a-service-features li {
    padding: 12px 0 12px 30px;
    position: relative;
    color: #666;
    line-height: 1.8;
}

.med-a-service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #1976d2;
    font-weight: bold;
    font-size: 18px;
}

.med-a-service-note p {
    color: #666;
    line-height: 1.6;
}

.med-a-service-detail-image {
    width: 100%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

@media (max-width: 992px) {
    .med-a-service-detail-item,
    .med-a-service-detail-item.reverse {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    
    .med-a-service-detail-item.reverse .med-a-service-detail-content,
    .med-a-service-detail-item.reverse .med-a-service-detail-image {
        order: unset;
    }
}

/* ===========================
   医院案内ページ
   =========================== */
.med-a-clinic {
    background: #fafafa;
    padding: 100px 0;
}

.med-a-clinic-content {
    background: #fff;
    border-radius: 15px;
    padding: 50px;
    margin-bottom: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.med-a-clinic-text h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    border-left: 5px solid #1976d2;
    padding-left: 20px;
}

.med-a-clinic-text p {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.med-a-clinic-photo {
    width: 100%;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.med-a-clinic-info {
    background: #fff;
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.med-a-clinic-info h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.med-a-clinic-table {
    width: 100%;
    border-collapse: collapse;
    background: #fafafa;
    border: 2px solid #1976d2;
}

.med-a-clinic-table th,
.med-a-clinic-table td {
    padding: 20px 30px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.med-a-clinic-table th {
    background: #1976d2;
    color: #fff;
    font-weight: 600;
    width: 200px;
    vertical-align: top;
}

.med-a-clinic-table td {
    background: #fff;
    color: #333;
    line-height: 2;
}

@media (max-width: 992px) {
    .med-a-clinic-content {
        grid-template-columns: 1fr;
    }
    
    .med-a-clinic-table th {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .med-a-clinic-table th,
    .med-a-clinic-table td {
        display: block;
        width: 100%;
    }
    
    .med-a-clinic-table th {
        padding-bottom: 10px;
    }
    
    .med-a-clinic-table td {
        padding-top: 10px;
    }
}

/* ===========================
   お問い合わせページ
   =========================== */
.med-a-contact {
    background: #fafafa;
    padding: 100px 0;
}

.med-a-contact-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.med-a-contact-intro p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.med-a-contact-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.med-a-contact-method {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.med-a-contact-method h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.med-a-contact-method h3 .med-a-service-icon {
    font-size: 28px;
}

.med-a-contact-method .med-a-btn-primary {
    margin-top: 20px;
    display: inline-block;
}

.med-a-contact-tel {
    font-size: 32px;
    font-weight: bold;
    color: #1976d2;
    margin: 20px 0;
}

.med-a-contact-method p {
    color: #666;
}

/* ===========================
   急患の場合は
   =========================== */
.med-a-emergency {
    background: #fff;
    border-radius: 15px;
    padding: 50px;
    margin-top: 60px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.med-a-emergency h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.med-a-emergency h2 .med-a-service-icon {
    font-size: 32px;
}

.med-a-emergency-content {
    text-align: center;
}

.med-a-emergency-content p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.med-a-emergency-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
    text-align: left;
}

.med-a-emergency-info p {
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 0;
}

.med-a-emergency-info p strong {
    display: block;
    color: #1976d2;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 18px;
}

.med-a-access {
    background: #fff;
    padding: 100px 0;
}

.med-a-access-image {
    width: 100%;
    margin-bottom: 50px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.med-a-access-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.med-a-access-map iframe {
    border-radius: 15px;
}

.med-a-access-info {
    background: #fafafa;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.med-a-access-info h2,
.med-a-access-info h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #1976d2;
    font-weight: 700;
    border-bottom: 3px solid #1976d2;
    padding-bottom: 15px;
}

.med-a-access-info p {
    margin-bottom: 20px;
    color: #333;
    line-height: 1.6;
}

.med-a-access-info p strong {
    display: block;
    color: #1976d2;
    font-weight: 600;
    margin-bottom: 5px;
}

@media (max-width: 992px) {
    .med-a-emergency-info {
        grid-template-columns: 1fr;
    }
    
    .med-a-access-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .med-a-contact-tel {
        font-size: 24px;
    }
}

