/*
Theme Name: Yuukyuu Pecall
Theme URI: https://example.invalid/yuukyuu-pecall
Author: Codex
Description: シェアハウス悠久の家・悠久の杜の静的HTMLプロトタイプをWordPressへ移植した専用テーマ。
Version: 1.0.0
Text Domain: yuukyuu-pecall
*/

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --main:   #5a8a6a;
    --sub:    #f4f0e8;
    --accent: #7bbfcf;
    --bg:     #fafaf7;
    --text:   #4a3f35;
    --white:  #ffffff;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
}
h1, h2, h3, h4 { font-family: 'M PLUS Rounded 1c', sans-serif; }

/* ===== HEADER ===== */
header {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 12px 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-weight: 800; font-size: 1.05rem;
    color: var(--main); text-decoration: none; line-height: 1.3;
}
.logo span { display: block; font-size: 0.7rem; color: var(--text); font-weight: 400; }
nav { display: flex; gap: 24px; align-items: center; }
nav a { text-decoration: none; color: var(--text); font-size: 0.85rem; font-weight: 500; transition: color .2s; }
nav a:hover { color: var(--main); }
nav a.active { color: var(--main); font-weight: 700; }
.btn-nav {
    background: var(--main); color: var(--white) !important;
    padding: 8px 22px; border-radius: 30px; font-weight: 700 !important;
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #2f4d3a 0%, var(--main) 100%);
    padding: 64px 6%;
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 52px; align-items: center;
    max-width: 1240px; margin: 0 auto;
}
.hero-photo-frame {
    position: relative; border-radius: 22px; overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 24px 60px rgba(0,0,0,.32);
}
.hero-photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero-content { color: var(--white); }
.hero-eyebrow {
    font-size: .82rem; letter-spacing: .18em; opacity: .9;
    margin-bottom: 18px;
    border-left: 3px solid var(--accent); padding-left: 10px;
}
.hero-catch {
    font-size: clamp(2.3rem, 4.2vw, 3.4rem);
    font-weight: 800; line-height: 1.22;
    margin-bottom: 22px;
}
.hero-sub {
    font-size: .94rem; line-height: 2; opacity: .92;
    margin-bottom: 36px; font-style: italic;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent); color: var(--white);
    text-decoration: none; padding: 14px 30px;
    border-radius: 50px; font-weight: 700; font-size: .95rem;
    box-shadow: 0 4px 18px rgba(123,191,207,.4);
    transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(123,191,207,.5); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.15); color: var(--white);
    text-decoration: none; padding: 14px 30px;
    border-radius: 50px; font-weight: 700; font-size: .95rem;
    border: 2px solid rgba(255,255,255,.6);
    backdrop-filter: blur(4px); transition: background .2s;
}
.btn-secondary:hover { background: rgba(255,255,255,.28); }

/* ===== PAGE HEADER (サブページ用) ===== */
.page-header {
    background: linear-gradient(135deg, #2f4d3a 0%, var(--main) 100%);
    padding: 52px 6%; text-align: center; color: var(--white);
}
.page-header-eyebrow {
    font-size: .78rem; letter-spacing: .22em; opacity: .85;
    text-transform: uppercase; margin-bottom: 10px;
}
.page-header-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; }

/* スマホ幅でのみ有効にする改行（単語の途中で折り返さないための調整用） */
.mobile-break { display: none; }
@media (max-width: 480px) {
    .mobile-break { display: inline; }
}
.breadcrumb { font-size: .78rem; opacity: .8; margin-top: 12px; }
.breadcrumb a { color: var(--white); text-decoration: underline; }

/* ===== 戻るフローティングボタン ===== */
.float-back-btn {
    position: fixed; bottom: 24px; right: 24px; z-index: 300;
    background: var(--main); color: var(--white); text-decoration: none;
    padding: 14px 24px; border-radius: 50px; font-weight: 700; font-size: .85rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.28);
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform .2s, box-shadow .2s;
}
.float-back-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.32); }

/* ===== SECTION BASE ===== */
section { padding: 88px 5%; }
.section-eyebrow {
    text-align: center; font-size: .78rem; letter-spacing: .22em;
    color: var(--main); font-weight: 700; text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    text-align: center; font-size: clamp(1.55rem, 3vw, 2.2rem);
    font-weight: 800; margin-bottom: 14px; color: var(--text);
}
.section-desc {
    text-align: center; color: #6b5e55;
    max-width: 540px; margin: 0 auto 56px;
    font-size: .94rem; line-height: 2;
}

/* ===== EMPATHY ===== */
.empathy { background: var(--sub); }
.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px; max-width: 920px; margin: 0 auto;
}
.check-item {
    display: flex; align-items: flex-start; gap: 14px;
    background: var(--white);
    padding: 18px 20px; border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    font-size: .9rem; line-height: 1.7;
}
.check-icon {
    width: 24px; height: 24px; min-width: 24px;
    background: var(--main); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white); font-size: .75rem; margin-top: 2px;
}

/* ===== REASONS ===== */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px; max-width: 1020px; margin: 0 auto;
}
.reason-card {
    background: var(--white); border-radius: 18px;
    padding: 38px 28px;
    box-shadow: 0 4px 22px rgba(0,0,0,.06);
    text-align: center;
}
.reason-num {
    font-size: 3.2rem; font-weight: 800;
    color: var(--accent); line-height: 1; margin-bottom: 18px;
}
.reason-title { font-size: 1.08rem; font-weight: 700; margin-bottom: 12px; color: var(--main); }
.reason-body { font-size: .88rem; line-height: 1.9; color: #6b5e55; }

/* ===== PRICE ===== */
.price-section { background: var(--main); color: var(--white); text-align: center; }
.price-section .section-title { color: var(--white); }
.price-section .section-eyebrow { color: var(--accent); }
.price-main {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: clamp(3rem, 7.5vw, 5.5rem);
    font-weight: 800; margin: 14px 0;
}
.price-main small { font-size: .38em; }
.price-includes {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 12px; margin: 24px auto; max-width: 620px;
}
.price-tag {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.3);
    padding: 7px 20px; border-radius: 30px; font-size: .86rem;
}
.price-compare {
    font-size: .9rem; opacity: .85; margin-top: 22px;
    background: rgba(0,0,0,.15); display: inline-block;
    padding: 12px 28px; border-radius: 10px; line-height: 1.7;
}

/* ===== FACILITIES ===== */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 40px; max-width: 1020px; margin: 0 auto;
}
.facility-card {
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 4px 26px rgba(0,0,0,.09);
    background: var(--white);
}
.facility-img { width: 100%; height: 260px; object-fit: cover; }
.facility-body { padding: 30px; }
.facility-label {
    font-size: .73rem; color: var(--accent); font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px;
}
.facility-name { font-size: 1.45rem; font-weight: 800; margin-bottom: 14px; color: var(--main); }
.facility-info { list-style: none; font-size: .88rem; line-height: 2.1; color: #6b5e55; }

/* ===== STAFF ===== */
.staff-section { background: var(--sub); }
.staff-facility-label {
    font-size: 1.1rem; font-weight: 700; color: var(--main);
    border-left: 4px solid var(--accent); padding-left: 16px;
    margin: 52px auto 24px; max-width: 940px;
}
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    gap: 18px; max-width: 940px; margin: 0 auto;
}
.staff-card {
    background: var(--white); border-radius: 14px;
    padding: 22px 14px; text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.staff-photo {
    width: 80px; height: 80px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 12px; display: block;
    border: 3px solid var(--sub);
}
.staff-name { font-size: .88rem; font-weight: 700; margin-bottom: 4px; }
.staff-role { font-size: .73rem; color: var(--accent); font-weight: 600; }
.staff-msg { font-size: .73rem; color: #6b5e55; margin-top: 8px; line-height: 1.6; }

/* ===== PHILOSOPHY ===== */
.philosophy { background: var(--text); color: var(--white); }
.philosophy .section-title { color: var(--white); }
.philosophy .section-eyebrow { color: var(--accent); }
.philosophy .section-desc { color: rgba(255,255,255,.72); }
.phil-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 36px; max-width: 1020px; margin: 0 auto;
}
.phil-card { border-left: 4px solid var(--accent); padding-left: 26px; }
.phil-label {
    font-size: .73rem; color: var(--accent); font-weight: 700;
    letter-spacing: .2em; margin-bottom: 12px;
}
.phil-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; line-height: 1.45; }
.phil-body { font-size: .88rem; line-height: 1.95; opacity: .82; }

.phil-more {
    text-align: center; text-decoration: none;
    display: block; max-width: 420px; margin: 44px auto 0;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.3);
    color: var(--white); font-weight: 700; font-size: .92rem;
    padding: 16px 24px; border-radius: 12px;
    transition: background .2s, transform .2s;
}
.phil-more:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* ===== PRINCIPLES PAGE（理念・ビジョン・ミッション・行動指針） ===== */
.principle-section { text-align: center; }
.principle-quote {
    font-size: 1.15rem; font-weight: 800; line-height: 1.9;
    max-width: 640px; margin: 0 auto 36px; color: var(--main);
}
.principle-section.principle-vision .principle-quote { color: var(--white); font-size: 1.3rem; }
.principle-body { max-width: 620px; margin: 0 auto; }
.principle-body p { font-size: .94rem; line-height: 2; color: #6b5e55; margin-bottom: 20px; }
.principle-emphasis {
    font-size: 1.15rem; font-weight: 800; color: var(--main) !important;
    margin: 32px 0 !important;
}

.mission-list { max-width: 680px; margin: 0 auto; text-align: center; }
.mission-item { padding: 26px 0; border-bottom: 1px solid var(--sub); }
.mission-item:last-child { border-bottom: none; }
.mission-title { font-size: 1.05rem; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.mission-desc { font-size: .9rem; line-height: 1.9; color: #6b5e55; }

.guideline-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px; max-width: 1020px; margin: 0 auto;
    text-align: center;
}
.guideline-item {
    background: var(--white); border-radius: 16px; padding: 30px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
.guideline-title { font-size: 1.05rem; font-weight: 800; color: var(--main); margin-bottom: 12px; }
.guideline-desc { font-size: .86rem; line-height: 1.9; color: #6b5e55; }

/* ===== VOICES ===== */
.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px; max-width: 1020px; margin: 0 auto;
}
.voice-card {
    background: var(--white); border-radius: 18px;
    padding: 28px; box-shadow: 0 4px 22px rgba(0,0,0,.06);
}
.voice-quote {
    font-size: 3.2rem; color: var(--accent);
    line-height: 1; margin-bottom: 10px; font-family: Georgia, serif;
}
.voice-text { font-size: .91rem; line-height: 2; margin-bottom: 20px; }
.voice-from {
    font-size: .8rem; color: #8c7e75;
    border-top: 1px solid var(--sub); padding-top: 14px;
}

/* ===== TEASER CARDS（トップページ用の各ページ誘導） ===== */
.teaser-section { background: var(--sub); }
.teaser-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px; max-width: 1020px; margin: 0 auto;
}
.teaser-card {
    background: var(--white); border-radius: 16px; padding: 30px 24px;
    text-decoration: none; color: var(--text);
    box-shadow: 0 4px 20px rgba(0,0,0,.05);
    transition: transform .2s, box-shadow .2s;
    display: block;
}
.teaser-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.teaser-icon { font-size: 1.8rem; margin-bottom: 14px; display: block; }
.teaser-title { font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; color: var(--main); }
.teaser-desc { font-size: .82rem; color: #6b5e55; line-height: 1.8; margin-bottom: 12px; }
.teaser-link {
    display: block; text-align: center;
    font-size: .85rem; font-weight: 700; color: var(--white);
    background: var(--accent);
    padding: 11px 16px; border-radius: 10px;
    margin-top: 6px;
}

/* ===== CTA / CONTACT FORM ===== */
.cta-section {
    background: linear-gradient(135deg, var(--sub) 0%, #e4f3f8 100%);
    text-align: center;
}
.cta-lead { font-size: 1rem; line-height: 2.1; max-width: 480px; margin: 0 auto 38px; color: #6b5e55; }
.btn-cta-main {
    display: inline-flex; align-items: center; justify-content:center; gap: 10px;
    background: var(--main); color: var(--white);
    text-decoration: none; padding: 18px 38px;
    border-radius: 50px; font-weight: 700; font-size: 1rem;
    box-shadow: 0 4px 22px rgba(90,138,106,.35);
    transition: transform .2s; border: none; cursor: pointer;
    font-family: inherit; width: 100%; max-width: 320px;
}
.btn-cta-main:hover { transform: translateY(-2px); }
.cta-note { font-size: .82rem; color: #8c7e75; margin-top: 20px; }
.cta-note a { color: var(--main); text-decoration: none; }

.contact-form {
    max-width: 560px; margin: 0 auto; text-align: left;
    background: var(--white); border-radius: 20px;
    padding: 40px 36px; box-shadow: 0 6px 30px rgba(0,0,0,.07);
}
.form-row { margin-bottom: 22px; }
.form-row label.field-label {
    display: block; font-size: .86rem; font-weight: 700;
    margin-bottom: 8px; color: var(--text);
}
.required-tag {
    display: inline-block; background: var(--accent); color: var(--white);
    font-size: .68rem; font-weight: 700; padding: 2px 8px;
    border-radius: 4px; margin-left: 6px; vertical-align: middle;
}
.contact-form input[type="email"],
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%; font-family: inherit; font-size: .92rem;
    padding: 13px 16px; border: 1px solid #ddd5c8;
    border-radius: 10px; background: var(--bg); color: var(--text);
    transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--accent);
}
.contact-form textarea { resize: vertical; line-height: 1.7; }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-pill {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg); border: 1px solid #ddd5c8;
    border-radius: 30px; padding: 10px 20px; font-size: .88rem;
    cursor: pointer; transition: background .2s, border-color .2s;
}
.checkbox-pill input { accent-color: var(--main); width: 16px; height: 16px; }
.checkbox-pill:has(input:checked) { background: rgba(90,138,106,.1); border-color: var(--main); }
.form-submit-row { text-align: center; margin-top: 30px; }
.form-note { font-size: .78rem; color: #8c7e75; margin-top: 14px; text-align: center; }

/* ===== FOOTER ===== */
footer { background: var(--text); color: rgba(255,255,255,.75); padding: 52px 5% 30px; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 44px; max-width: 1020px; margin: 0 auto 36px;
}
.footer-brand {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.05rem; font-weight: 800;
    color: var(--white); margin-bottom: 14px;
}
.footer-desc { font-size: .82rem; line-height: 2; }
.footer-desc a { color: rgba(255,255,255,.85); text-decoration: underline; transition: color .2s; }
.footer-desc a:hover { color: var(--white); }
.footer-heading { font-size: .85rem; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.62); text-decoration: none; font-size: .82rem; transition: color .2s; line-height: 1.8; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 22px; text-align: center;
    font-size: .78rem; max-width: 1020px; margin: 0 auto;
}
.footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    header { padding: 12px 20px; }
    nav { display: none; }
    .hero { padding: 40px 6%; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    section { padding: 64px 5%; }
    .facilities-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .phil-grid { grid-template-columns: 1fr; }
    .float-back-btn { bottom: 16px; right: 16px; padding: 12px 18px; font-size: .78rem; }
}
