:root {
    /* Pastel Palette */
    --color-phn: #E3F2FD;
    /* Public Health Nurse - Sky Blue */
    --color-phn-dark: #64B5F6;
    --color-midwife: #FFF3E0;
    /* Midwife - Apricot */
    --color-midwife-dark: #FFB74D;
    --color-nurse: #E8F5E9;
    /* Nurse - Mint Green */
    --color-nurse-dark: #81C784;

    /* Neutrals */
    --text-primary: #333333;
    --text-secondary: #666666;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;

    /* Layout */
    --header-height: 80px;
    --container-width: 1000px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Shippori Mincho B1', serif;
    /* Elegant Mincho */
    color: var(--text-primary);
    line-height: 1.8;
    background-color: var(--bg-white);
    padding-top: var(--header-height);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

.sp-only {
    display: none;
}

.bg-white {
    background-color: var(--bg-white);
}


/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.logo-sub {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 5px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.nav-list a:hover {
    color: var(--text-secondary);
}

.btn-outline {
    border: 1px solid var(--text-primary);
    padding: 8px 24px;
    border-radius: 2px;
    /* Slight rounding for elegance */
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background-color: var(--bg-white);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 500;
    /* Regular weight for Mincho looks elegant */
    letter-spacing: 0.05em;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 2;
}

/* Professions Grid (3 Columns) */
.professions-section {
    width: 100%;
    /* No padding, full bleed */
}

.profession-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* Full height viewport minus header and hero estimate */
    min-height: 600px;
}

.profession-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
}

/* Specific Colors per card */
.card-phn {
    background-color: var(--color-phn);
    color: #447fa8;
    /* Muted blue for text contrast */
}

.card-phn:hover {
    background-color: #d1ecfe;
}

.card-midwife {
    background-color: var(--color-midwife);
    color: #b37e36;
    /* Muted orange for text contrast */
}

.card-midwife:hover {
    background-color: #ffecd2;
}

.card-nurse {
    background-color: var(--color-nurse);
    color: #558b58;
    /* Muted green for text contrast */
}

.card-nurse:hover {
    background-color: #dceddd;
}

.card-inner {
    z-index: 10;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-text-content {
    flex-grow: 1;
}

.profession-card:hover .card-inner {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 24px;
    opacity: 0.8;
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.card-copy {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 500;
}

.card-link-text {
    font-size: 0.9rem;
    font-weight: 700;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
}

.card-link-text i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.profession-card:hover .card-link-text i {
    transform: translateX(5px);
}

.card-img-preview {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-featured-img {
    max-width: 75%;
    height: auto;
    display: block;
    margin: 15px auto 0;
    border-radius: 4px;
}

.card-signature {
   /* text-align: right; */
    font-size: 0.85rem;
    margin-top: 10px;
    color: var(--text-secondary);
    line-height: 1.5;
    min-height: 4.5em;
    /* 最大の3行分に高さを固定して画像位置を揃える */
}

.card-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

.card-phn .card-subtitle {
    color: #2c5875;
}

.card-midwife .card-subtitle {
    color: #8d5d1e;
}

.card-nurse .card-subtitle {
    color: #2e5831;
}

.card-copy-long {
    font-size: 0.9rem;
    /* Slightly smaller */
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.7;
    display: inline-block;
    /* Helps with text alignment in centered flex container if needed, but mostly for structure */
    width: 100%;
}

/* News Section */
.section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.section-line {
    width: 60px;
    height: 1px;
    background-color: var(--text-secondary);
    margin: 0 auto;
}

.news-list {
    border-top: 1px solid var(--border-color);
}

.news-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: background-color 0.2s;
}

.news-item:hover {
    background-color: #fafafa;
}

.news-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: sans-serif;
    /* Date looks better in sans usually */
}

.news-tag {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 2px;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
}

.tag-all {
    background-color: #eee;
    color: #666;
}

.tag-phn {
    background-color: var(--color-phn);
    color: #447fa8;
}

.tag-midwife {
    background-color: var(--color-midwife);
    color: #b37e36;
}

.tag-nurse {
    background-color: var(--color-nurse);
    color: #558b58;
}

.news-title {
    flex: 1;
    color: var(--text-primary);
    font-weight: 500;
}

.news-title:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: 60px 0;
    background-color: #f9f9f9;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-nav a:hover {
    color: var(--text-primary);
}

/* Committees Section */
.committees-section {
    padding: 100px 0;
    background-color: #fafafa;
}

.committees-section .container {
    max-width: 1200px;
}

.committee-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 45px;
}

.committee-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 50px 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.committee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.committee-card.committee-nurse {
    border-top: 5px solid #2e5831;
}

.committee-card.committee-midwife {
    border-top: 5px solid #8d5d1e;
}

.committee-badge {
    display: inline-block;
    padding: 8px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 25px;
    width: fit-content;
}

a.committee-badge:hover {
    opacity: 0.85;
}

.badge-nurse {
    background-color: var(--color-nurse);
    color: #2e5831;
}

.badge-midwife {
    background-color: var(--color-midwife);
    color: #8d5d1e;
}

.committee-topics {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
    justify-content: flex-start;
}

.committee-topic {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.committee-topic-title {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.03em;
    position: relative;
    padding-left: 18px;
}

.committee-nurse .committee-topic-title {
    color: #2e5831;
}

.committee-nurse .committee-topic-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 6px;
    height: 1.1em;
    background-color: #81C784;
}

.committee-midwife .committee-topic-title {
    color: #8d5d1e;
}

.committee-midwife .committee-topic-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 6px;
    height: 1.1em;
    background-color: #FFB74D;
}

.committee-topic-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    text-align: justify;
}

.committee-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 10px 0;
}

.committee-link-text {
    margin-top: auto;
    padding-top: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: right;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
    width: fit-content;
    align-self: flex-end;
}

.committee-link-text i {
    margin-left: 8px;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.committee-card:hover .committee-link-text i {
    transform: translateX(5px);
}

.committee-nurse .committee-link-text {
    color: #2e5831;
}

.committee-midwife .committee-link-text {
    color: #8d5d1e;
}

.img-figure {
    margin: 15px 0;
}

.img-figure .committee-img,
.img-figure .content-img {
    margin: 0;
}

.img-caption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 8px;
    line-height: 1.5;
}

.img-caption-left {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: left;
    margin-top: 5px;
    line-height: 1.5;
}

.committee-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .sp-only {
        display: block;
    }

    .nav-list {
        display: none;
    }

    /* Mobile toggle script needed */
    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .profession-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
    }

    .profession-card {
        padding: 60px 20px;
        min-height: 300px;
        /* Limit height on mobile */
    }

    .news-item {
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-title {
        width: 100%;
        margin-top: 5px;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }

    .committee-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .committee-card {
        padding: 40px 25px;
    }
}

/* Page Headers (Subpages) */
.page-header {
    background-color: var(--bg-white);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-color);
}

.header-phn {
    background-color: var(--color-phn);
    color: var(--color-phn-dark);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    letter-spacing: 0.1em;
}

/* Profile Section */
.profile-section {
    padding: 80px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-heading {
    font-size: 1.8rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--color-phn-dark);
    padding-bottom: 20px;
}

.profile-body p {
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 2;
    text-align: justify;
}

.back-link-container {
    margin-top: 60px;
}

.btn-back {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    border-radius: 30px;
    transition: all 0.3s;
}

.btn-back:hover {
    background-color: var(--text-secondary);
    color: white;
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}