/* --- Reset & Base Styles --- */
:root {
    --color-primary: #7CB342; /* 明るい緑 */
    --color-primary-dark: #558B2F;
    --primary-green: #84a64e; /* メインの緑 */
    --accent-brown: #cba876; /* ボタン等の茶色 */
    --text-dark: #333333;
    --text-gray: #666666;
    --bg-beige: #fbfbf8; /* 全体の背景色 */
    --card-bg: #ffffff;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-rounded: 'Zen Maru Gothic', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-beige);
    color: var(--text-dark);
    line-height: 1.6;
}

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

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

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

/* --- Layout Utility --- */
.section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

/* --- Header --- */
.header {
    background-color: #fff; /* もしくは透明 */
    padding: 15px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .header {
        position: relative;
    }
}

.header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header__logo {
    font-family: var(--font-rounded);
    color: var(--primary-green);
    font-size: 1.5rem;
}

.header__nav ul {
    display: flex;
    gap: 20px;
}

.header__nav a {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 750px;
    overflow: hidden;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .hero {
        height: 400px;
    }
}

.hero__bg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    animation: heroFade 14s infinite;
    will-change: opacity, transform;
}

.hero__bg img:nth-child(1) {
    animation-delay: 0s;
}

.hero__bg img:nth-child(2) {
    animation-delay: 7s;
}

@keyframes heroFade {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    10% {
        opacity: 1;
        transform: scale(1.05);
    }
    45% {
        opacity: 1;
        transform: scale(1.01);
    }
    55% {
        opacity: 0;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Waves */
.wave-top, .wave-bottom, .wave-footer {
    position: absolute;
    width: 100%;
    left: 0;
    line-height: 0;
}

.wave-top {
    top: 0;
    z-index: 1;
}

.wave-bottom {
    bottom: -1px;
}

.wave-footer {
    top: -72px;
    height: 100px;
}

@media (max-width: 768px) {
    .wave-footer {
        top: -20px;
    }
}

/* Hero Overlay Card */
.hero__content {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: end;
    position: relative;
    z-index: 2;
}

.hero__card {
    background-color: rgba(132, 166, 78, 0.9); /* 半透明の緑 */
    padding: 20px 40px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.hero__card h2 {
    font-family: var(--font-rounded);
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.hero__card p {
    font-size: 1rem;
}

/* --- Headings --- */
.section-title {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #558b2f;
    margin-bottom: 20px;
}

.section-title i {
    margin-right: 10px;
    color: #7cb342;
}

/* --- Pharmacy Grid (Main) --- */
.pharmacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.pharmacy-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-header {
    background-color: #a78e72; /* デフォルト（茶系） */
    color: #fff;
    padding: 10px;
    text-align: center;
    font-family: var(--font-rounded);
    font-size: 1.1rem;
}
.card-header.brown { background-color: #a78e72; }
.pharmacy-card:first-child .card-header { background-color: #8dae72; /* 左側の緑ヘッダー */ }

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

.card-body {
    padding: 20px;
}

/* DL List Style */
.info-list {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px 15px;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.info-list dt {
    font-weight: 700;
    color: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .info-list {
        grid-template-columns: 1fr; /* ラベルと内容を縦積みに */
    }
    .info-list dt {
        margin-top: 10px;
    }
}

.tag {
    display: inline-block;
    background-color: #E8F5E9;
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--color-primary);
    margin-top: 5px;
}

.map-link-small {
    display: inline-block;
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    margin-top: 5px;
}

/* Hours Table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 5px;
}
.hours-table th, .hours-table td {
    border: 1px solid #eee;
    padding: 4px;
    text-align: center;
}
.hours-table th {
    background-color: #f9f9f9;
    color: #558b2f;
}

/* Action Buttons */
.btn-map {
    display: block;
    width: 100%;
    background: linear-gradient(to right, #d4b585, #cba876);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.card-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-top: 10px;
}

/* Right Card Specifics */
.service-list {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.service-list p {
    font-weight: 500;
    margin-bottom: 10px;
}
.service-list li {
    font-size: 1rem;
    margin-bottom: 5px;
}
.service-list li::before {
    content: '✔';
    color: var(--color-primary);
    margin-right: 10px;
}

.board-list li {
    font-size: 1rem;
    margin-bottom: 5px;
}
.board-list li::before {
    content: '✔';
    color: var(--color-primary);
    margin-right: 10px;
}
.board-list li a:hover {
    color: var(--color-primary-dark);
}

.icon-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.icon-box {
    background: #f4f1ea;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 5px;
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80px;
}

.icon-box i {
    font-size: 1.5rem;
    color: var(--accent-brown);
    margin-bottom: 5px;
}

.icon-box span {
    font-size: 0.7rem;
    line-height: 1.2;
    font-weight: bold;
    color: var(--text-dark);
}

/* --- Wide Card (Info) --- */
.wide-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wide-card__content {
    flex: 1;
}

.wide-card__illustration {
    width: 150px;
    text-align: right;
}

/* --- News Section --- */
.news-section {
    position: relative;
    padding-bottom: 40px;
}

.news-list {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
}

.news-list li {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.news-date {
    font-weight: bold;
    margin-right: 15px;
    font-size: 1rem;
}

.illustration-bottom {
    position: absolute;
    bottom: 0;
    right: 20px;
    width: 120px;
}

/* --- DX Section --- */
.dx-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    font-size: 1rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-green);
    color: #fff;
    padding: 80px 0 20px;
    position: relative;
}

.footer__content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px 40px;
    position: relative;
}

.footer__tagline {
    font-size: 1rem;
    margin-bottom: 5px;
}

.footer__logo {
    font-family: var(--font-rounded);
    font-size: 2rem;
}

.footer__contact {
    font-size: 1rem;
}
.footer__contact p { margin-bottom: 5px; }
.footer__contact i { margin-right: 8px; }

.footer__illustration {
    position: absolute;
    right: 20px;
    bottom: 40px;
    width: 80px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 20px;
    font-size: 0.8rem;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 768px) {
    .header__inner {
        flex-direction: column;
        gap: 10px;
    }

    .pharmacy-grid {
        grid-template-columns: 1fr; /* 縦積み */
    }

    .wide-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wide-card__illustration {
        width: 100px;
        align-self: flex-end;
        margin-top: -20px;
    }

    .footer__content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .hero__card {
        width: 90%;
        padding: 15px;
    }
    
    .hero__card h2 { font-size: 1.4rem; }
}
