@charset "UTF-8";

/* =========================================================================
   Project 003: ひだまりケア (Hidamari Care)
   介護施設向け 温かみのあるデザイン
   ========================================================================= */

/* ==========================================================================
   1. 変数定義 (CSS Variables)
   ========================================================================== */
:root {
    /* Colors - 温かみのあるパレット */
    --c-bg: #FDF8F3;
    /* クリームベージュ */
    --c-bg-alt: #F5EDE4;
    /* 少し濃いベージュ */
    --c-text: #5D5048;
    /* 温かみのある茶色 */
    --c-text-light: #8B7F77;
    /* 薄い茶色 */
    --c-primary: #E07B54;
    /* テラコッタオレンジ - メインカラー */
    --c-secondary: #7CB69D;
    /* セージグリーン */
    --c-accent: #D4A574;
    /* キャメル */
    --c-white: #FFFFFF;
    --c-border: #E8DED4;

    /* Typography */
    --f-ja: 'Zen Maru Gothic', 'Hiragino Kaku Gothic ProN', sans-serif;
    --f-en: 'Montserrat', sans-serif;

    /* Sizes */
    --header-height: 80px;
    --sidebar-width: 70px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow: 0 4px 20px rgba(93, 80, 72, 0.08);
}

/* ==========================================================================
   2. リセット & ベース (Reset & Base)
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-ja);
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 2;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--c-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-sm);
}

ul,
ol {
    list-style: none;
}

/* ==========================================================================
   3. レイアウト関連 (Layout Utilities)
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-alt {
    background-color: var(--c-bg-alt);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Flex Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -20px;
}

.col-md-6 {
    width: 100%;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .col-md-6 {
        width: 50%;
    }
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.gap-4 {
    gap: 2rem;
}

/* ==========================================================================
   4. ヘッダー (Header) - 通常の横型ナビゲーション
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 40px;
    border-bottom: 1px solid var(--c-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* ロゴ */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-ja {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--c-primary);
    letter-spacing: 0.1em;
}

.logo-en {
    font-size: 0.7rem;
    font-family: var(--f-en);
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--c-text-light);
    text-transform: uppercase;
}

/* 横型ナビゲーション（PC用） */
.header-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.header-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-text);
    position: relative;
    padding: 5px 0;
}

.header-nav a:hover {
    color: var(--c-primary);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-primary);
    transition: width 0.3s ease;
}

.header-nav a:hover::after {
    width: 100%;
}

.header-nav .nav-contact {
    background: var(--c-primary);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.header-nav .nav-contact:hover {
    background: var(--c-secondary);
    color: #fff;
}

.header-nav .nav-contact::after {
    display: none;
}

/* ==========================================================================
   5. サイドナビゲーション (Hidden on this variant - not used)
   ========================================================================== */
.side-nav {
    display: none;
}

/* 縦書きコンタクト (hidden) */
.side-contact {
    display: none;
}

/* ==========================================================================
   6. スライドメニュー (Slide-in Drawer) ★修正版
   ========================================================================== */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 190;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.slide-menu {
    position: fixed;
    top: 0;
    right: calc(-1 * 380px);
    /* 画面外 */
    width: 380px;
    max-width: 85vw;
    height: 100vh;
    background: var(--c-white);
    z-index: 195;
    padding: 100px 50px 50px;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.slide-menu.active {
    right: 0;
    /* スライドイン */
}

/* メニュー内閉じるボタン */
.menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.menu-close::before,
.menu-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--c-text);
    transition: background 0.3s ease;
}

.menu-close::before {
    transform: rotate(45deg);
}

.menu-close::after {
    transform: rotate(-45deg);
}

.menu-close:hover::before,
.menu-close:hover::after {
    background: var(--c-primary);
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 25px;
    border-bottom: 1px dotted var(--c-border);
    padding-bottom: 25px;
}

.nav-list li:last-child {
    border-bottom: none;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--c-text);
}

.nav-list a:hover {
    color: var(--c-primary);
}

.nav-list .num {
    font-family: var(--f-en);
    font-size: 0.9rem;
    color: var(--c-primary);
    font-weight: 700;
}

/* ==========================================================================
   7. ページヒーロー (Page Hero for Subpages)
   ========================================================================== */
.page-hero {
    position: relative;
    height: 400px;
    margin-top: var(--header-height);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(224, 123, 84, 0.6), rgba(124, 182, 157, 0.4));
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--c-white);
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-hero .subtitle {
    font-family: var(--f-en);
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ==========================================================================
   8. タイポグラフィ & コンポーネント
   ========================================================================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .en {
    font-family: var(--f-en);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--c-primary);
    display: block;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.4;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 45px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--c-primary);
    color: var(--c-white);
    border: 2px solid var(--c-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--c-primary);
}

.btn-outline {
    background: transparent;
    color: var(--c-text);
    border: 2px solid var(--c-text);
}

.btn-outline:hover {
    background: var(--c-text);
    color: var(--c-white);
}

/* Cards */
.card {
    background: var(--c-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-body {
    padding: 30px;
}

/* Info Box */
.info-box {
    background: var(--c-white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* Table */
.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th,
.profile-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
    vertical-align: top;
}

.profile-table th {
    width: 30%;
    font-weight: 700;
    color: var(--c-primary);
    background: var(--c-bg-alt);
}

/* ==========================================================================
   9. フッター (Footer)
   ========================================================================== */
.site-footer {
    background: var(--c-text);
    color: var(--c-white);
    padding: 60px 0 30px;
    margin-top: 0;
}

.footer-logo .logo-ja {
    color: var(--c-white);
    font-size: 1.5rem;
}

.footer-logo .logo-en {
    color: rgba(255, 255, 255, 0.6);
}

.footer-nav {
    margin: 40px 0;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--c-white);
}

.copyright {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   10. フォーム (Forms)
   ========================================================================== */
.form-section {
    background: var(--c-white);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.form-section-title {
    font-size: 1.3rem;
    color: var(--c-primary);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--c-primary);
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--c-text);
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--f-ja);
    background: var(--c-bg);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--c-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Contact Steps */
.contact-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.step-item {
    background: var(--c-border);
    color: var(--c-text-light);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
}

.step-item.active {
    background: var(--c-primary);
    color: var(--c-white);
}

/* Confirm Table */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--c-white);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.confirm-table th,
.confirm-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--c-border);
}

.confirm-table th {
    width: 30%;
    background: var(--c-bg-alt);
    color: var(--c-primary);
    font-weight: 700;
}

/* Privacy Box */
.privacy-box {
    background: var(--c-bg-alt);
    padding: 30px;
    border-radius: var(--radius-sm);
    height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* ==========================================================================
   11. Two Column Layout
   ========================================================================== */
.two-col {
    display: flex;
    align-items: center;
    gap: 60px;
}

.two-col-img {
    flex: 1;
}

.two-col-img img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.two-col-text {
    flex: 1;
}

.two-col-reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .two-col {
        flex-direction: column;
        gap: 30px;
    }

    .two-col-reverse {
        flex-direction: column;
    }
}

/* ==========================================================================
   12. Service Grid (Top Page)
   ========================================================================== */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-card {
    background: var(--c-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

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

.service-card-body {
    padding: 30px;
}

.service-card-body h3 {
    color: var(--c-primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card-body p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.service-card-body a {
    color: var(--c-primary);
    font-weight: 700;
}

@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   13. Common CTA Section
   ========================================================================== */
.common-cta {
    background: #E8DED4;
    padding: 80px 0;
    text-align: center;
}

.common-cta h3 {
    font-size: 1.8rem;
    color: var(--c-primary);
    margin-bottom: 15px;
}

.common-cta p {
    margin-bottom: 30px;
    color: var(--c-text-light);
}

/* ==========================================================================
   14. Mobile Menu Trigger (Header)
   ========================================================================== */
.mobile-menu-trigger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-trigger .bar {
    width: 24px;
    height: 2px;
    background: var(--c-text);
    transition: all 0.3s ease;
}

.mobile-menu-trigger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-trigger.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-trigger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .site-header {
        padding: 0 20px;
    }

    .logo-ja {
        font-size: 1.3rem;
    }

    /* Hide header nav on mobile */
    .header-nav {
        display: none;
    }

    /* Show mobile hamburger */
    .mobile-menu-trigger {
        display: flex;
    }

    .section {
        padding: 60px 0;
    }

    .page-hero {
        height: 300px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .info-box,
    .form-section {
        padding: 25px;
    }

    .profile-table th,
    .profile-table td {
        display: block;
        width: 100%;
    }

    .profile-table th {
        padding-bottom: 5px;
        border-bottom: none;
    }

    .slide-menu {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }

    .common-cta {
        padding: 50px 0;
    }

    .common-cta h3 {
        font-size: 1.4rem;
    }
}