/*
Theme Name: Kagabu Lab / 水環境科学研究室
Theme URI: https://kagabumakoto.com/
Author: 水環境科学研究室
Description: 長崎大学・水環境科学研究室のデモデザインをWordPressで運用するためのオリジナルテーマ。
Version: 1.0.18
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: kagabu-lab
*/

.member-card-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: var(--tint);
    margin-bottom: 20px;
}
.member-hobby { color: var(--muted); font-size: 14px; }
.member-hometown { color: var(--muted); font-size: 14px; }
.member-theme { color: var(--ink); font-size: 14px; line-height: 1.7; }
.visitor-counter { font-variant-numeric: tabular-nums; color: var(--muted); }
.alumni-section { margin-top: 76px; padding-top: 58px; border-top: 1px solid var(--line); }
.alumni-list { border-top: 2px solid var(--teal); }
.alumni-list article { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); gap: 30px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.alumni-list h3 { margin-bottom: 3px; font-size: 18px; }
.alumni-list p { color: var(--muted); font-size: 14px; margin: 0; }
.alumni-period { color: var(--teal) !important; font: 700 13px/1.6 Arial, sans-serif !important; }
.alumni-theme { line-height: 1.9; }
.single-kagabu_member .portrait-photo {
    height: auto;
    max-height: 580px;
    object-fit: contain;
}

/* Top photo slider: click the image, or choose a small dot. */
.hero-visual { z-index: 0; }
.hero-overlay { z-index: 0; pointer-events: none; }
.hero-image-button { appearance: none; background: transparent; border: 0; cursor: pointer; inset: 0; margin: 0; padding: 0; position: absolute; width: 100%; }
.hero-image-button img { height: 100%; transition: opacity .35s ease; }
.hero-slider-status { align-items: center; bottom: 24px; display: flex; gap: 14px; left: 50%; margin: 0; position: absolute; transform: translateX(-50%); width: min(1180px, calc(100% - 96px)); z-index: 2; }
#hero-counter { color: #e2f0f3; font: 700 11px/1.5 Arial, sans-serif; letter-spacing: .08em; min-width: 42px; }
.hero-dots { align-items: center; display: flex; gap: 8px; }
.hero-dot { background: rgba(255,255,255,.42); border: 1px solid rgba(255,255,255,.78); border-radius: 50%; height: 7px; margin: 0; padding: 0; transition: transform .18s ease, background-color .18s ease; width: 7px; }
.hero-dot:hover, .hero-dot:focus-visible { background: white; transform: scale(1.28); }
.hero-dot[aria-selected="true"] { background: white; transform: scale(1.18); }
@media (max-width: 700px) {
    .header-inner .brand { flex: 1 1 150px; min-width: 0; }
    .header-inner .brand-logo { max-width: 100%; }
    .hero-slider-status { bottom: 17px; gap: 12px; width: calc(100% - 40px); }
    #hero-counter { font-size: 10px; }
    .hero-dots { gap: 7px; }
}

/* Editorial About page and consistent Latin typography. */
h1, h2, h3, .eyebrow, .brand-university, .brand-lab, nav a > span,
.integration-label, .source-label, time, .badge, #hero-label, .hero-kicker {
    font-family: Arial, "Helvetica Neue", var(--font);
    font-weight: 700;
}
.about-overview { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-overview-image img { height: 430px; object-fit: cover; }
.about-overview-copy h2 { font-size: 36px; margin-bottom: 20px; }
.about-overview-copy > p:not(.eyebrow) { color: var(--muted); line-height: 2.1; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.about-facts div { border-top: 2px solid var(--teal); padding-top: 12px; }
.about-facts strong, .about-facts span { display: block; }
.about-facts strong { font: 700 12px/1.5 Arial, sans-serif; letter-spacing: .12em; color: var(--teal); }
.about-facts span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.about-detail { max-width: 980px; }
.legacy-page-content { background: #f5f9fa; border-top: 3px solid var(--teal); padding: 42px 50px; }
.legacy-page-content h2 { font-size: 28px; color: var(--ink); margin: 34px 0 14px; }
.legacy-page-content h2:first-child { margin-top: 0; }
.legacy-page-content h3 { font-size: 20px; color: var(--teal); border-left: 3px solid var(--teal); padding-left: 14px; margin: 32px 0 12px; }
.legacy-page-content p { color: #536d7c; line-height: 2.05; }
.legacy-page-content ul { color: #536d7c; line-height: 2; padding-left: 1.4em; }
.about-link-band { background: var(--tint); }
.about-link-band h2 { margin-bottom: 20px; }
.legacy-age-article { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.legacy-age-article h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 32px; }
.legacy-age-article h3 { font-size: clamp(21px, 2.4vw, 30px); margin: 38px 0 14px; }
.legacy-age-article p, .legacy-age-article li { font-size: 17px; line-height: 2; color: var(--ink); }
.legacy-age-article ul { padding-left: 1.4em; }
.legacy-age-article figure { margin: 34px 0 42px; padding: 18px; background: #fff; border: 1px solid var(--line); }
.legacy-age-article figure img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; background: #f4f6f7; }
.legacy-age-article figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.legacy-age-article .article-source { font-size: 13px; color: var(--muted); }
.research-topic-heading { max-width: 920px; }
.research-topic-heading p { color: var(--muted); font-size: 18px; line-height: 1.9; max-width: 740px; }
.research-topic-content { max-width: 920px; }
.research-topic-content .prose { border-top: 3px solid var(--teal); padding-top: 42px; }
.research-topic-back { margin-top: 54px; }
.research-equipment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 8px; }
.research-equipment-grid section { border-top: 2px solid var(--teal); background: #f4f8f8; padding: 24px 22px; }
.research-equipment-grid h3 { font-size: 19px; margin: 0 0 12px; }
.research-equipment-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.pillar-heading { align-items: center; display: flex; gap: 15px; margin-bottom: 24px; min-height: 43px; }
.pillar-heading .pillar-number { margin-bottom: 0; }
.pillar-theme-icon { color: #333333; display: inline-flex; flex: 0 0 42px; height: 42px; width: 42px; }
.pillar-theme-icon svg { display: block; fill: none; height: 100%; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.55; width: 100%; }
.water-archive-heading { max-width: 860px; }
.water-archive-intro { align-items: end; display: flex; gap: 56px; justify-content: space-between; padding-top: 18px; }
.water-archive-intro > div:first-child { max-width: 690px; }
.water-archive-intro h2 { margin-bottom: 14px; }
.water-archive-intro h2 strong { color: var(--teal); font: 700 clamp(42px, 6vw, 70px)/1 Arial, sans-serif; margin-right: 10px; }
.water-archive-intro p { color: var(--muted); line-height: 2; }
.water-archive-stat { border-left: 2px solid var(--teal); display: flex; gap: 30px; margin: 0; padding-left: 22px; white-space: nowrap; }
.water-archive-stat div { display: grid; gap: 4px; }
.water-archive-stat dt, .water-specs dt { color: var(--muted); font-size: 12px; }
.water-archive-stat dd { color: var(--ink); font: 700 30px/1 Arial, sans-serif; margin: 0; }
.water-archive-section { padding-top: 28px; }
.water-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.water-card { background: #fff; border-top: 2px solid var(--teal); box-shadow: 0 10px 24px rgba(22, 53, 68, .07); display: flex; flex-direction: column; min-width: 0; }
.water-card-image { align-items: center; background: linear-gradient(145deg, #dceff0, #f7faf9); color: var(--teal); display: flex; justify-content: center; min-height: 205px; overflow: hidden; text-align: center; }
.water-card-image img { height: 205px; object-fit: cover; width: 100%; }
.water-card-image span, .water-detail-image span { font: 700 15px/1.4 Arial, sans-serif; letter-spacing: .16em; }
.water-card-copy { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.water-card-copy .eyebrow { margin-bottom: 8px; min-height: 18px; }
.water-card-copy h2 { font-size: 21px; line-height: 1.55; margin-bottom: 18px; }
.water-card-copy h2 a { color: inherit; text-decoration: none; }
.water-card-copy h2 a:hover { color: var(--teal); }
.water-specs { border-top: 1px solid var(--line); margin: 0; }
.water-specs div { border-bottom: 1px solid var(--line); display: grid; gap: 13px; grid-template-columns: 52px 1fr; padding: 9px 0; }
.water-specs dt, .water-specs dd { margin: 0; }
.water-specs dd { color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.water-added { color: var(--muted); font: 700 11px/1.6 Arial, sans-serif; letter-spacing: .04em; margin: auto 0 0; padding-top: 16px; }
.water-detail { align-items: start; display: grid; gap: 54px; grid-template-columns: minmax(260px, .88fr) minmax(0, 1.12fr); }
.water-detail-image { align-items: center; background: linear-gradient(145deg, #dceff0, #f7faf9); color: var(--teal); display: flex; justify-content: center; min-height: 390px; text-align: center; }
.water-detail-image img { height: auto; max-height: 560px; object-fit: contain; width: 100%; }
.water-specs-large div { grid-template-columns: 100px 1fr; padding: 13px 0; }
.water-specs-large dt { font: 700 12px/1.6 Arial, sans-serif; }
.water-specs-large dd { font-size: 16px; }
.water-detail-body { margin: 35px 0; }
.footer-contact-button { margin-top: 8px; }
.footer-contact-area { border-top: 1px solid #c8d9e0; display: grid; gap: 48px; grid-template-columns: minmax(210px, .65fr) minmax(0, 1.35fr); margin-top: 54px; padding-top: 45px; }
.footer-contact-area h3 { font-size: 22px; margin-bottom: 12px; }
.footer-contact-area > div > p:not(.eyebrow) { color: #536d7c; font-size: 14px; line-height: 1.9; }
.kagabu-contact-form { margin: 0; }
.kagabu-contact-fields { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.kagabu-contact-form p { margin: 0 0 16px; }
.kagabu-contact-form label { color: var(--ink); font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.kagabu-contact-form label span { color: #a44b43; font-size: 11px; margin-left: 5px; }
.kagabu-contact-form input, .kagabu-contact-form textarea { background: #fff; border-color: #c5d4d9; }
.kagabu-contact-form textarea { line-height: 1.8; }
.kagabu-contact-form .button { width: auto; }
.kagabu-contact-consent { color: #607380; font-size: 12px; line-height: 1.7; }
.kagabu-contact-honeypot { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }
.kagabu-contact-notice { border-left: 3px solid #4f8588; font-size: 13px; line-height: 1.8; margin-bottom: 18px !important; padding: 10px 13px; }
.kagabu-contact-notice.is-success { background: #eaf4f1; color: #276755; }
.kagabu-contact-notice.is-error { background: #f9eeee; border-left-color: #a44b43; color: #8d3731; }
@media (max-width: 700px) {
    .about-overview { grid-template-columns: 1fr; gap: 30px; }
    .about-overview-image img { height: 280px; }
    .about-overview-copy h2 { font-size: 28px; }
    .about-facts { grid-template-columns: 1fr; gap: 18px; }
    .legacy-page-content { padding: 28px 22px; }
    .legacy-page-content h2 { font-size: 24px; }
    .research-topic-content .prose { padding-top: 28px; }
    .research-equipment-grid { grid-template-columns: 1fr; }
    .pillar-heading { gap: 13px; margin-bottom: 18px; min-height: 38px; }
    .pillar-theme-icon { flex-basis: 38px; height: 38px; width: 38px; }
    .water-archive-intro { align-items: start; flex-direction: column; gap: 24px; }
    .water-archive-stat { gap: 25px; }
    .water-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .water-detail { gap: 30px; grid-template-columns: 1fr; }
    .water-detail-image { min-height: 280px; }
    .footer-contact-area { gap: 28px; grid-template-columns: 1fr; margin-top: 40px; padding-top: 34px; }
    .kagabu-contact-fields { gap: 0; grid-template-columns: 1fr; }
    .alumni-list article { grid-template-columns: 1fr; gap: 8px; }
}
