@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@400;700&display=swap');

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background: #fff;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a237e;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-radius: 4px;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #e8eaf6;
    color: #1a237e;
}

.nav-link.active {
    background: #1a237e;
    color: #fff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
}

/* ヒーロー */
.hero {
    position: relative;
    height: 500px;
    margin-top: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #2962ff 0%, #448aff 30%, #82b1ff 60%, #b3d4fc 100%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(ellipse 400px 150px at 15% 30%, rgba(255,255,255,0.9) 0%, transparent 70%),
        radial-gradient(ellipse 300px 100px at 75% 20%, rgba(255,255,255,0.85) 0%, transparent 70%),
        radial-gradient(ellipse 500px 180px at 50% 60%, rgba(255,255,255,0.7) 0%, transparent 70%),
        radial-gradient(ellipse 350px 120px at 85% 50%, rgba(255,255,255,0.8) 0%, transparent 70%);
}

.hero-title {
    position: relative;
    z-index: 1;
    font-family: 'Noto Serif JP', serif;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.6),   /* 1. 輪郭をはっきりさせる影 */
        0 0 20px rgba(0, 0, 0, 0.8),      /* 2. 文字の周りをボワッと暗くする */
        0 0 40px rgba(0, 0, 0, 0.4) !important; /* 3. 全体に広がる薄い影 */
    letter-spacing: 0.1em;
}

/* ホーム専用 */
.home-hero {
    height: 95vh;
    margin-top: 0;
    background-position: center 85% !important;
}

.home-hero .hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.home-hero .hero-main-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    letter-spacing: 0.15em;
    line-height: 1.3;
}

.home-hero .hero-subtitle {
    font-size: 22px;
    color: #fff;
    margin-top: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

/* コンテンツ */
.content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #1a237e;
}

.text-block {
    margin-bottom: 20px;
    line-height: 2;
}

/* お知らせ */
.news-section {
    background: #fff;
    padding: 60px 20px;
}

.news-box {
    max-width: 900px;
    margin: 0 auto;
}

.news-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: #1a237e;
    margin-bottom: 30px;
}

.news-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.news-date {
    display: inline-block;
    background: #1a237e;
    color: #fff;
    padding: 2px 12px;
    border-radius: 3px;
    font-size: 14px;
    margin-bottom: 8px;
}

.news-highlight {
    background: #e8eaf6;
    padding: 20px;
    border-left: 4px solid #1a237e;
    margin-top: 20px;
}

/* 2枚画像並び */
.two-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.two-images img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* リハビリカード */
.rehab-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.rehab-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.rehab-card-header {
    background: #1a237e;
    color: #fff;
    padding: 15px;
    font-weight: 700;
    text-align: center;
}

/* プロフィール画像 */
.profile-section .profile-image {
    width: 250px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.rehab-detail {
    margin: 40px 0;
}

.rehab-detail h3 {
    font-size: 20px;
    color: #1a237e;
    margin: 30px 0 15px;
}

.rehab-detail p {
    line-height: 2;
    margin-bottom: 15px;
}

/* プロフィール */
.profile-section {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin: 30px 0;
    align-items: start;
}

.profile-section > img.profile-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
}

.profile-info p {
    margin-bottom: 10px;
    line-height: 1.8;
}

/* 論文 */
.papers-section {
    margin-top: 20px;
}

.papers-section h3 {
    font-size: 18px;
    color: #1a237e;
    margin: 25px 0 15px;
}

.papers-section p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* 対象者 */
.target-box {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.target-item {
    margin-bottom: 25px;
}

.target-item:last-child {
    margin-bottom: 0;
}

.target-item h4 {
    color: #1a237e;
    margin-bottom: 10px;
}

/* 料金表 */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.price-table th,
.price-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
}

.price-table thead {
    background: #1a237e;
    color: #fff;
}

.price-table tbody tr:nth-child(even) {
    background: #f5f5f5;
}

/* 利用の流れ */
.flow-section {
    margin-bottom: 40px;
}

.flow-section h3 {
    color: #1a237e;
    margin: 25px 0 15px;
}

.flow-list {
    margin: 15px 0 25px 25px;
}

.flow-list li {
    margin-bottom: 12px;
    line-height: 1.8;
    list-style: decimal;
}

/* 事業所案内 */
.office-info {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.office-info h3 {
    color: #1a237e;
    margin-bottom: 15px;
}

.office-info h3.office-name {
    color: #1a237e;
    font-size: 24px;
    margin-bottom: 20px;
}

.office-info h4 {
    color: #1a237e;
    margin: 20px 0 10px;
}

.office-info p {
    line-height: 1.8;
    margin-bottom: 8px;
}

.subsection-title {
    color: #1a237e;
    font-size: 18px;
    margin: 30px 0 15px;
    padding: 10px;
    background: #e8eaf6;
}

/* 利用者の声 */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.review-card {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    position: relative;
}

.review-card p {
    line-height: 2;
}

/* ギャラリー */
.gallery-title {
    font-size: 24px;
    color: #1a237e;
    text-align: center;
    margin: 50px 0 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    width: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* 法人概要 */
.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.company-table tr {
    border-bottom: 1px solid #ddd;
}

.company-table th,
.company-table td {
    padding: 18px;
    text-align: left;
}

.company-table th {
    width: 30%;
    background: #f5f5f5;
    font-weight: 500;
}

/* アクセス */
.access-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.access-info {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

/* リンク */
.links-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.link-btn {
    display: inline-block;
    min-width: 200px;
    padding: 20px 40px;
    background: #fff;
    border: 2px solid #1a237e;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    color: #1a237e;
    text-align: center;
    transition: all 0.3s;
}

.link-btn:hover {
    background: #1a237e;
    color: #fff;
}

/* フッター */
.footer {
    background: #1a237e;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.footer-contact-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.footer-contact-info {
    font-size: 26px;
    font-weight: 700;
}

.footer-contact-info a {
    color: #fff;
}

.footer-email {
    font-size: 22px;
    margin-top: 10px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 20px;
        display: none;
    }
    
    .nav.active { display: block; }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px;
        border-bottom: 1px solid #eee;
        border-radius: 0;
    }
    
    .hero { height: 300px; }
    .hero-title { font-size: 32px; }
    .home-hero { height: 100vh; }
    .home-hero .hero-main-title { font-size: 36px; }
    
    .rehab-cards { grid-template-columns: 1fr; }
    .profile-section { grid-template-columns: 1fr; }
    .access-content { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .links-grid { flex-direction: column; align-items: center; }
}
.home-hero .hero-overlay {
    background: rgba(0, 0, 0, 0.4) !important; /* 白色の透過(0.3)から、黒色の透過(0.4)へ変更 */
}

/* =========================================
   トップページ限定 カスタマイズ（完成版）
========================================= */

/* --- 背景フィルターの調整 --- */
.home-hero .hero-overlay {
    background: rgba(0, 0, 0, 0.3) !important;
}

/* --- メインタイトル（リハビリデイサービス希望） --- */
.home-hero .hero-main-title {
    font-size: 90px !important;
    letter-spacing: 0.2em !important;
    margin-bottom: 60px !important;
    
    /* 【重要】影を3重にかけて、明るい背景でも文字を浮き立たせるテクニック */
    text-shadow: 
        2px 2px 0px rgba(0, 0, 0, 0.6),   /* 1. 輪郭をはっきりさせる影 */
        0 0 20px rgba(0, 0, 0, 0.8),      /* 2. 文字の周りをボワッと暗くする */
        0 0 40px rgba(0, 0, 0, 0.4) !important; /* 3. 全体に広がる薄い影 */
}

/* --- サブタイトル（私たちは...） --- */
.home-hero .hero-subtitle {
    font-family: 'Noto Serif JP', serif !important;
    font-size: 32px !important;
    line-height: 2.2 !important;
    margin-top: 100px !important;
    
    /* メインタイトルと同じく、強力な影をつける */
    text-shadow: 
        1px 1px 0px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(0, 0, 0, 0.5) !important;
}


/* --- スマホ表示時の調整 --- */
@media (max-width: 768px) {
    .home-hero .hero-main-title {
        font-size: 48px !important;
        margin-bottom: 30px !important;
        /* スマホは画面が小さいので影を少し弱めに調整 */
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8) !important;
    }
    
    .home-hero .hero-subtitle {
        font-size: 20px !important;
        line-height: 1.8 !important;
        margin-top: 20px !important;
    }
}