/*
Theme Name: Lien助産院テーマ (Lien Maternity Home Theme)
Theme URI: https://example.com/lien-theme/
Author: あなたの名前 (Your Name)
Author URI: https://example.com/
Description: Lien助産院および同様のケア施設向けに設計された、温かみのあるデザインのWordPressテーマです。SEOとレスポンシブデザインに対応しています。提供されたロゴとデザインモックアップに基づいています。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, theme-options, threaded-comments, translation-ready, responsive-layout, one-column, accessibility-ready, blog, health, maternity
Text Domain: lien-theme
*/

/* --- グローバルスタイル (変更なし) --- */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #0056b3;
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}
.button { /* 汎用ボタンスタイル */
    display: inline-block;
    background-color: #e67e22;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.button:hover {
    background-color: #d35400;
    color: #fff;
}


/* --- ヘッダー (変更なし) --- */
.site-header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-branding {
    display: flex;
    align-items: center;
}
.site-branding .custom-logo {
    max-height: 60px;
    width: auto;
    margin-right: 15px;
}
.site-branding .site-title a {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}
.site-branding .site-description {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 2px;
}

/* --- ナビゲーション (変更なし) --- */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.main-navigation li {
    margin-left: 25px;
}
.main-navigation a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #e67e22;
    border-bottom-color: #e67e22;
}
.social-media-icons a {
    margin-left: 15px;
    color: #777;
    font-size: 20px;
}
.social-media-icons a:hover {
    color: #e67e22;
}


/* --- フロントページ スライダーセクション --- */
.hero-slider-section {
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    background-color: #ddd;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    z-index: 2;
}
.hero-content-overlay {
    position: relative;
    z-index: 3;
    color: #fff;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.35);
    padding: 30px 40px;
    border-radius: 10px;
    max-width: 750px;
    margin: 20px;
}
.hero-content-overlay h1 {
    font-size: 2.8em;
    margin-top: 0;
    margin-bottom: 20px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}
.hero-content-overlay p {
    font-size: 1.2em;
    margin-bottom: 0;
    color: #f0f0f0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.hero-slider-section .scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9em;
    letter-spacing: 1px;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    padding-bottom: 20px;
    z-index: 3;
}
.hero-slider-section .scroll-indicator::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 20px;
    background-color: #fff;
}
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 4;
    padding: 0 15px;
    box-sizing: border-box;
}
.slider-nav button {
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    line-height: 1;
}
.slider-nav button:hover {
    background-color: rgba(0,0,0,0.7);
}
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
}
.slider-dots .dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    margin: 0 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.slider-dots .dot.active,
.slider-dots .dot:hover {
    background-color: white;
    transform: scale(1.2);
}

/* --- フローティングお問い合わせボタン (変更なし) --- */
.floating-contact-button {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(calc(100% - 40px));
    background-color: #2ecc71;
    color: #fff;
    padding: 15px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s ease;
    font-size: 1.1em;
    letter-spacing: 2px;
}
.floating-contact-button:hover {
    transform: translateY(-50%) translateX(0);
    color: #fff;
    text-decoration: none;
}
.floating-contact-button a {
    color: inherit;
    text-decoration: none;
    display: block;
}

/* --- コンテンツエリア --- */
.site-content {
    padding: 40px 0;
}
.home-section { /* 共通のセクションスタイル */
    padding: 50px 0; /* 少しパディングを調整 */
    /* text-align: center; */ /* セクション全体の中央寄せは必要に応じて */
    background-color: #fff;
    margin-bottom: 30px; /* セクション間のマージン */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* 軽い影 */
}
.home-section .section-title { /* セクションタイトルの共通スタイル */
    font-size: 2.2em;
    margin-bottom: 40px;
    color: #34495e;
    text-align: center;
}

/* --- 特集記事セクション --- */
.featured-articles-section {
    /* home-section のスタイルを継承 */
}
.featured-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* レスポンシブなグリッド */
    gap: 30px; /* グリッドアイテム間の隙間 */
}
.featured-article-item {
    background-color: #fdfdfd; /* 個々の記事の背景 */
    border-radius: 8px;
    overflow: hidden; /* サムネイルの角丸のため */
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.featured-article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.article-item-thumbnail img {
    width: 100%;
    height: 200px; /* サムネイルの高さを固定 */
    object-fit: cover; /* アスペクト比を保ちつつコンテナにフィット */
    border-top-left-radius: 8px; /* 上部の角丸 */
    border-top-right-radius: 8px;
    border-bottom: 1px solid #eee;
}
.article-item-header {
    padding: 15px 20px 10px;
}
.article-item-title {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 8px;
}
.article-item-title a {
    color: #333;
    text-decoration: none;
}
.article-item-title a:hover {
    color: #e67e22;
}
.article-item-meta {
    font-size: 0.85em;
    color: #777;
    margin-bottom: 10px;
}
.article-item-excerpt {
    padding: 0 20px 20px;
    font-size: 0.95em;
    color: #555;
    flex-grow: 1; /* 残りのスペースを埋める */
}
.article-item-excerpt p {
    margin-bottom: 0;
}


/* --- お知らせセクション (news-grid, news-itemなど既存のもの) --- */
/* 必要であれば home-section のスタイルに合わせて調整 */
#latest-news .news-grid { /* 特集記事と似たようなグリッドにする場合 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
#latest-news .news-item {
    background-color: #fdfdfd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}


/* --- ブログ・個別記事 (変更なし) --- */
.entry-header .entry-title {
    font-size: 2.2em;
    margin-bottom: 0.5em;
}
.entry-header .entry-title a {
    color: #333;
    text-decoration: none;
}
.entry-header .entry-title a:hover {
    color: #e67e22;
}
.entry-meta {
    font-size: 0.9em;
    color: #777;
    margin-bottom: 1.5em;
}
.entry-content p,
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
}
.entry-content h2, .entry-content h3, .entry-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: #34495e;
}

/* --- フッター (変更なし) --- */
.site-footer {
    background-color: #34495e;
    color: #ecf0f1;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}
.site-footer a {
    color: #ecf0f1;
}
.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* --- レスポンシブ対応 --- */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-navigation {
        margin-top: 15px;
        width: 100%;
    }
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
    }
    .main-navigation li {
        margin-left: 0;
        margin-bottom: 5px;
        text-align: left;
    }
    .main-navigation a {
        display: block;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }
    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        border-bottom-color: #e67e22;
    }
    .social-media-icons {
        margin-top: 10px;
        align-self: flex-start;
    }
    .social-media-icons a {
        margin-left: 0;
        margin-right: 15px;
    }

    .hero-content-overlay h1 {
        font-size: 2em;
    }
    .hero-content-overlay p {
        font-size: 1em;
    }
    .hero-content-overlay {
        padding: 20px;
        max-width: 90%;
    }
    .slider-nav button {
        padding: 8px 12px;
        font-size: 18px;
    }
    .slider-dots {
        bottom: 15px;
    }
    .slider-dots .dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
    .hero-slider-section .scroll-indicator {
        bottom: 50px;
        font-size: 0.8em;
    }

    .floating-contact-button {
        padding: 12px 8px;
        font-size: 1em;
        transform: translateY(-50%) translateX(calc(100% - 35px));
    }

    .home-section .section-title {
        font-size: 1.8em; /* スマホではセクションタイトルを少し小さく */
        margin-bottom: 30px;
    }
    .featured-articles-grid {
        grid-template-columns: 1fr; /* スマホでは1カラム */
        gap: 20px;
    }
    .article-item-thumbnail img {
        height: 180px; /* スマホでのサムネイル高さを調整 */
    }
}

/* --- SEOのための基本的な非表示クラス (変更なし) --- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
