/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
:root {
    --primary-purple: #C9B6E4;
    --primary-green: #A6D75B;
    --primary-blue: #3C7DD5;
    --light-purple: #F8F6FC;
    --light-green: #F0F8E8;
    --light-blue: #F0F6FF;
    --dark-purple: #8B7AA8;
    --dark-green: #7FB069;
    --dark-blue: #2C5AA0;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-600: #6C757D;
    --gray-800: #343A40;
    --black: #000000;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
}

.header-content .nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo img {
    height: 50px;
    width: auto;
}

.company-name h1 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
    line-height: 1.3;
}

.header-contact {
    display: flex;
    align-items: center;
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-green);
    padding: 8px 15px;
    border-radius: 25px;
    color: var(--white);
    font-weight: 600;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-info:hover {
    background: var(--dark-green);
    transform: translateY(-2px);
    color: var(--white);
}

.phone-info i {
    font-size: 1.2rem;
}

.phone-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* 電話リンクのスタイル */
.phone-link {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

.phone-number {
    font-size: 0.9rem;
    margin: 0;
    font-weight: 700;
}

.phone-hours {
    font-size: 0.7rem;
    margin: 0;
    opacity: 0.9;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--gray-800);
    transition: all 0.3s ease;
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 182, 228, 0.8), rgba(166, 215, 91, 0.6));
}

/* ヒーローキャラクター */
.hero-characters {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.hero-character {
    position: absolute;
    height: 80%;
    max-height: 600px;
    width: auto;
    object-fit: contain;
    opacity: 0.9;
    animation: float 6s ease-in-out infinite;
}

.hero-character-left {
    left: 5%;
    bottom: 0;
    animation-delay: 0s;
}

.hero-character-right {
    right: 5%;
    bottom: 0;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

/* ヒーローテキストとCTAの分離レイアウト */
.hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.hero-cta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.btn-secondary:hover {
    background: var(--dark-green);
    color: var(--white);
    border-color: var(--dark-green);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* セクション共通 */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--gray-800);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 2px;
}

/* 施設紹介 */
.facility-intro {
    padding: 100px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                url('img/background01.png') center/cover no-repeat;
    position: relative;
}

.facility-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-item h3 {
    padding: 20px;
    text-align: center;
    color: var(--gray-800);
    font-weight: 600;
}

.facility-message {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-600);
    font-style: italic;
}

.facility-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    background: var(--light-green);
    border: 1px solid var(--primary-green);
    border-radius: 8px;
    color: var(--gray-800);
    font-size: 0.95rem;
}

.facility-address i {
    color: var(--primary-green);
}

/* サービス・強み紹介 */
.services {
    padding: 100px 0;
    background: var(--light-green);
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.strength-card {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    background: transparent;
    box-shadow: none;
}

.strength-card::before {
    display: none;
}

.strength-card:hover {
    transform: none;
    box-shadow: none;
}

.strength-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 2rem;
}

.strength-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--gray-800);
}

.strength-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ご利用案内 */
.usage-flow {
    padding: 100px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                url('img/background02.png') center/cover no-repeat;
    position: relative;
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.step {
    flex: 1;
    min-width: 200px;
    padding: 30px;
    text-align: center;
    position: relative;
    background: transparent;
    box-shadow: none;
    border: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--gray-800);
}

.step p {
    color: var(--gray-600);
}

.target-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    background: transparent;
    box-shadow: none;
    border: none;
}

.info-box {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    border: 2px solid var(--primary-green);
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.target-info h3 {
    color: var(--primary-green);
    margin-bottom: 10px;
}

.target-info p {
    margin-bottom: 20px;
    color: var(--gray-600);
}

/* 月額費用の詳細スタイル */
.fee-details {
    text-align: left;
}

.fee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

.fee-item:last-of-type {
    border-bottom: none;
}

.fee-label {
    font-weight: 600;
    color: var(--gray-800);
    min-width: 120px;
}

.fee-amount {
    font-weight: 700;
    color: var(--primary-green);
    text-align: right;
}

.fee-note {
    margin-top: 15px;
    padding: 10px;
    background: var(--light-green);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark-green);
    text-align: center;
    border-left: 4px solid var(--primary-green);
}

/* 入居不可の方のリストスタイル */
.exclusion-list {
    text-align: left;
}

.exclusion-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    color: #d32f2f;
    position: relative;
    padding-left: 20px;
    font-weight: 500;
}

.exclusion-item:last-child {
    border-bottom: none;
}

.exclusion-item::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #d32f2f;
    font-weight: bold;
    font-size: 1.2rem;
}

/* スタッフ紹介 */
.staff {
    padding: 100px 0;
    background: var(--light-green);
}

.staff-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.staff-photo img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    object-position: 50% 40%; /* 少し上に寄せる */
}

.staff-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--gray-800);
}

.staff-info p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 15px;
}

/* スタッフ資格・役職 */
.staff-qualifications {
    margin-top: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.staff-qualifications h4 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 20px;
    font-weight: 600;
}

.qualifications-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.qualification-item {
    background: var(--primary-green);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.qualifications-message {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0 0 0;
    padding: 20px;
    background: linear-gradient(135deg, var(--light-green) 0%, #f8fdf4 100%);
    border-radius: 15px;
    border: 2px solid var(--primary-green);
    position: relative;
    overflow: hidden;
}

.qualifications-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--dark-green));
}

.message-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.message-content {
    flex: 1;
}

.message-text {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--gray-700);
    font-weight: 500;
}

.message-highlight {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* モバイル対応 */
@media (max-width: 768px) {
    .qualifications-message {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 15px;
    }
    
    .message-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .message-text {
        font-size: 1rem;
    }
    
    .message-highlight {
        font-size: 1.2rem;
    }
}

/* ご家族・関係者様の声 */
.testimonials {
    padding: 100px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                url('img/background03.png') center/cover no-repeat;
    position: relative;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    padding: 30px;
    border-radius: 20px;
    position: relative;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-green);
    margin-bottom: 20px;
}

/* 吹き出しの三角形部分 */
.testimonial::before {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--white);
    z-index: 2;
}

/* 吹き出しの三角形の境界線 */
.testimonial::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 48px;
    width: 0;
    height: 0;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-top: 17px solid var(--primary-green);
    z-index: 1;
}

.testimonial-content {
    position: relative;
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 3rem;
    color: var(--primary-green);
    font-family: serif;
    opacity: 0.7;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-800);
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    text-align: right;
    margin-top: 15px;
}

.testimonial-author p {
    color: var(--gray-600);
    font-weight: 600;
    font-size: 0.95rem;
}

/* 理念 */
.mission {
    padding: 100px 0;
    background: var(--light-green);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-statement {
    padding: 40px;
    border-radius: 15px;
    background: transparent;
    box-shadow: none;
    margin-bottom: 40px;
}

.mission-statement h3 {
    color: var(--primary-green);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.mission-statement p {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.6;
    text-align: center;
}

.mission-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.mission-point {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 15px 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    gap: 20px;
}

.mission-point:hover {
    transform: none;
}

.mission-point i {
    color: var(--primary-green);
    font-size: 2rem;
    margin-bottom: 0;
    flex-shrink: 0;
    width: 60px;
    display: flex;
    justify-content: center;
}

.mission-point span {
    font-weight: 500;
    color: var(--gray-800);
    line-height: 1.4;
}

/* 法人情報 */
.company-info {
    padding: 100px 0;
    background: var(--gray-100);
}

.company-basic {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.company-basic h3 {
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.company-details-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--gray-600);
    display: flex;
    align-items: flex-start;
}

.detail-value {
    color: var(--gray-800);
    line-height: 1.6;
}

/* お問い合わせ */
.contact {
    padding: 100px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), 
                url('img/background04.png') center/cover no-repeat;
    position: relative;
}

.contact-content {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.contact-info {
    padding: 40px;
    border-radius: 15px;
    background: transparent;
    box-shadow: none;
    border: none;
}

.contact-form {
    padding: 40px;
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
    border: 2px solid var(--primary-green);
    max-width: 600px;
    width: 100%;
}

.contact-form-subtitle {
    color: var(--gray-700);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: left;
    font-style: italic;
}

.contact-response-time {
    color: var(--primary-green);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 25px;
    padding: 10px 15px;
    background: var(--light-green);
    border-radius: 8px;
    border-left: 4px solid var(--primary-green);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item i {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-top: 5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--gray-800);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* プレイスホルダーのスタイル */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
    opacity: 0.7;
}

/* 送信ボタンを横幅いっぱいに */
.btn-full-width {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 10px;
}

.map-container {
    padding: 40px;
    border-radius: 15px;
    background: transparent;
    box-shadow: none;
    border: none;
}

.map-container h3 {
    margin-bottom: 20px;
    color: var(--gray-800);
}

.map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

/* フッター */
.footer {
    background: var(--light-green);
    color: var(--gray-800);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 30px;
    align-items: start;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer-logo .company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin: 0;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.info-item i {
    color: var(--primary-green);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.info-item span {
    color: var(--gray-700);
    font-size: 0.95rem;
    margin: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }
    
    .footer-logo {
        margin-bottom: 20px;
    }
    
    .footer-info {
        align-items: flex-start; /* 左寄せ */
    }
    
    .info-item {
        justify-content: flex-start; /* 左寄せ */
        align-items: flex-start; /* 複数行テキストの先頭にアイコンを揃える */
        gap: 10px;
    }
    
    .info-item i {
        margin-top: 2px; /* 視覚的な縦位置調整 */
    }

    /* フッターの住所を1行表示に（改行禁止） */
    .footer .info-item:nth-child(1) span {
        white-space: nowrap;
        word-break: keep-all;
        overflow-wrap: normal;
    }
}

.footer-bottom {
    border-top: 1px solid var(--gray-600);
    padding-top: 20px;
    text-align: center;
    color: var(--gray-700);
    font-weight: 500;
}

/* ページトップボタン */
.page-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.page-top.show {
    opacity: 1;
    visibility: visible;
}

.page-top:hover {
    background: var(--dark-blue);
    transform: translateY(-2px);
}

/* 施設紹介スライダー */
.facility-slider-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto 50px auto;
    overflow: hidden;
}

.facility-slider {
    position: relative;
    width: 100%;
    height: 500px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facility-slider img {
    width: 700px;
    height: auto;
    display: none;
    margin: 0 auto;
    object-fit: contain;
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    max-width: 100%;
    max-height: 100%;
    z-index: 1;
    transition: opacity 0.7s;
}

.facility-slider img.active {
    display: block;
    opacity: 1;
    z-index: 2;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.85;
    transition: background 0.2s, opacity 0.2s;
}
.slider-btn:hover {
    background: var(--dark-green);
    opacity: 1;
}
.slider-btn.prev {
    left: 10px;
}
.slider-btn.next {
    right: 10px;
}

/* 施設紹介画像 */
.facility-images {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.main-facility-image {
    width: 600px;
    height: 300px;
    object-fit: cover;
    margin: 0 auto 20px;
    display: block;
}

.sub-facility-images {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.sub-facility-images img {
    width: 400px;
    height: 300px;
    object-fit: contain;
}

/* 施設画像のクリック可能UI */
.main-facility-image,
.sub-facility-images img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.main-facility-image:hover,
.sub-facility-images img:hover {
    transform: scale(1.02);
}

/* 施設画像のレスポンシブデザイン */
@media (max-width: 768px) {
    .main-facility-image {
        width: 100%;
        max-width: 400px;
        height: 250px;
    }
    
    .sub-facility-images {
        flex-direction: row; /* 横並び */
        justify-content: center;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .sub-facility-images img {
        width: calc((100% - 20px) / 3);
        max-width: 120px;
        height: 90px;
        object-fit: cover;
    }
}





/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .strengths-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* ヘッダーのモバイル最適化 */
    .header {
        padding: 8px 0;
    }
    
    .header-contact {
        display: none;
    }
    
    .header-content .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo img {
        height: 40px;
    }
    
    .company-name h1 {
        font-size: 1.1rem;
        line-height: 1.2;
    }
    
    /* ヒーローセクションのモバイル最適化 */
    .hero {
        padding: 80px 0 50px;
        min-height: 100vh;
    }
    
    .hero-content {
        margin-top: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    /* ヒーロー内の縦並び: テキストは上、CTAは下 */
    .hero > .container {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: inherit;
    }

    .hero-cta {
        margin-top: auto;
        margin-bottom: 30px;
    }
    
    .hero-character {
        height: 60%;
        max-height: 400px;
        opacity: 0.7;
    }

    /* ヘッダー横幅あふれ対策（スマホ）*/
    .header-content { padding: 8px 10px; gap: 8px; min-width: 0; }
    .logo { flex: 1 1 auto; min-width: 0; }
    .logo-link { display: flex; align-items: center; gap: 8px; min-width: 0; }
    .company-name { min-width: 0; }
    .company-name h1 { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .mobile-menu-btn { flex-shrink: 0; }
    
    .hero-character-left {
        left: 2%;
    }
    
    .hero-character-right {
        right: 2%;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 20px;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 25px;
        font-size: 0.95rem;
        opacity: 0.9;
    }
    
    /* セクション共通のモバイル最適化 */
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 25px;
    }
    
    /* 施設紹介のモバイル最適化 */
    .facility-images {
        margin-bottom: 25px;
    }
    
    .main-facility-image {
        height: 200px;
        margin-bottom: 12px;
    }
    
    .sub-facility-images {
        gap: 8px;
    }
    
    .sub-facility-images img {
        height: 70px;
    }
    
    .facility-message {
        font-size: 0.9rem;
    }
    
    .facility-address {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
    
    /* 強みセクションのモバイル最適化 */
    .strengths-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .strength-card {
        padding: 25px 20px;
    }
    
    .strength-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
    
    .strength-card h3 {
        font-size: 1.1rem;
        margin: 12px 0 10px;
    }
    
    .strength-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    /* ご利用の流れのモバイル最適化 */
    .flow-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .step {
        min-width: auto;
        width: 100%;
        padding: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .step h3 {
        font-size: 1.05rem;
    }
    
    .step p {
        font-size: 0.85rem;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: -5px 0;
        font-size: 1.2rem;
    }
    /* ご利用案内のモバイル最適化 */
    .target-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .info-box {
        min-width: auto;
        width: 100%;
        padding: 20px;
    }
    
    .info-box h3 {
        font-size: 1.15rem;
        margin-bottom: 12px;
    }
    
    .fee-details {
        font-size: 0.85rem;
    }
    
    .fee-item {
        padding: 8px 0;
        gap: 8px;
        justify-content: space-between; /* 金額を右端へ */
        align-items: flex-start;
    }

    .fee-label {
        min-width: auto; /* モバイルでは固定幅を解除 */
        margin-right: 8px;
        flex: 1 1 auto;
    }

    /* 金額を改行させない（例：42,000円 / 10円〜39,000円） */
    .fee-amount {
        white-space: nowrap;
        flex-shrink: 0;
        margin-left: auto;
        text-align: right;
    }
    
    /* スタッフ紹介のモバイル最適化 */
    .staff-profile {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    /* スタッフ画像を円形＋外周グローで表示 */
    .staff-photo {
        width: 180px;
        height: 180px;
        margin: 0 auto;
        border-radius: 50%;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12), 0 0 0 8px rgba(166, 215, 91, 0.15);
    }

    .staff-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        box-shadow: none;
    }
    
    .staff-info h3 {
        font-size: 1.2rem;
    }
    
    .staff-info p {
        font-size: 0.9rem;
    }
    
    /* 資格のモバイル最適化 */
    .qualifications-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .qualification-item {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
    
    /* お客様の声のモバイル最適化 */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .testimonial::before {
        left: 30px;
        border-left: 12px solid transparent;
        border-right: 12px solid transparent;
        border-top: 12px solid var(--white);
        bottom: -12px;
    }
    
    .testimonial::after {
        left: 28px;
        border-left: 14px solid transparent;
        border-right: 14px solid transparent;
        border-top: 14px solid var(--primary-green);
        bottom: -14px;
    }
    
    .testimonial-content::before {
        font-size: 2.5rem;
        top: -15px;
        left: -5px;
    }
    
    .mission-points {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .mission-statement {
        padding: 30px 20px;
    }
    
    /* 私たちの使命の改行と読みやすさを最適化 */
    .mission-statement p {
        font-size: 1.1rem;
        line-height: 2.1; /* 行間を広げて可読性向上 */
        letter-spacing: 0.02em;
        text-align: center;
        word-break: normal; /* 不要な分割を防ぐ */
        overflow-wrap: anywhere; /* はみ出し防止 */
    }
    
    /* 句点付近での良い改行を促す（日本語向けのヒント） */
    .mission-statement p br {
        display: inline;
    }
    
    .mission-point {
        padding: 10px 0;
        gap: 15px;
    }
    
    .mission-point i {
        font-size: 1.5rem;
        width: 50px;
    }
    
    .detail-item {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: left;
    }
    
    .detail-label {
        font-weight: 700;
        color: var(--primary-blue);
    }
    
    /* お問い合わせのモバイル最適化 */
    .contact-content {
        justify-content: center;
    }
    
    .contact-form {
        padding: 25px 20px;
        max-width: 100%;
    }
    
    .contact-form h3 {
        font-size: 1.2rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* iOSズーム防止 */
        padding: 12px;
    }
    
    .btn-full-width {
        font-size: 1rem;
        padding: 14px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    /* 地図のモバイル最適化 */
    .map-container {
        padding: 25px 15px;
    }
    
    .map {
        height: 300px;
    }
    
    /* コンテナのモバイル最適化 */
    .container {
        padding: 0 15px;
    }

    .facility-slider-wrapper {
        max-width: 100%;
    }
    .gallery-item img {
        max-width: 90%;
        max-height: 160px;
    }
    .facility-slider {
        height: 220px;
    }
    .facility-slider img {
        width: 90vw;
        max-width: 95vw;
        max-height: 200px;
    }
    .slide-item img {
        width: 90vw;
        max-width: 95vw;
        max-height: 200px;
    }
    .facility-slick-slider .slick-prev {
        left: 10px;
    }
    .facility-slick-slider .slick-next {
        right: 10px;
    }
    .facility-slick-slider .slick-dots {
        bottom: -30px;
        gap: 25px;
    }
    .facility-slick-slider .slick-dots li button {
        width: 40px;
        height: 2px;
    }
}

@media (max-width: 480px) {
    /* コピーライトはより控えめに */
    .footer-bottom p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    /* ご利用までの流れセクションの縦幅圧縮 */
    .usage-flow {
        padding: 28px 0 !important;
    }

    .usage-flow .section-title {
        margin-bottom: 14px !important;
    }

    .usage-flow .flow-steps {
        gap: 10px !important;
        margin-bottom: 14px !important;
    }

    .usage-flow .step {
        padding: 14px 12px !important;
    }

    .usage-flow .step-number {
        width: 36px !important;
        height: 36px !important;
        font-size: 1.05rem !important;
        margin-bottom: 12px !important;
    }

    .usage-flow .step h3 {
        margin-bottom: 8px !important;
    }

    .usage-flow .step p {
        margin: 0 !important;
        line-height: 1.45 !important;
    }

    /* 番号と見出しの高さを揃える（番号サイズを文字基準に） */
    .usage-flow .step-number {
        width: 1.4em !important;
        height: 1.4em !important;
        font-size: 1em !important;
        line-height: 1 !important;
        margin: 0 0.5em 0 0 !important;
    }

    .usage-flow .step h3 {
        line-height: 1.2 !important;
        margin-bottom: 0 !important;
    }
    /* ① を見出しと同じ行・高さに配置（左=番号／中央=見出し） */
    .usage-flow .step {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
        align-items: center;
        text-align: center !important;
    }

    .usage-flow .step-number {
        grid-column: 1;
        grid-row: 1;
        margin: 0 8px 0 0 !important;
        align-self: center;
    }

    .usage-flow .step h3 {
        grid-column: 2;
        grid-row: 1;
        display: block !important;
        justify-self: center;
        margin-bottom: 0 !important;
    }

    .usage-flow .step p {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 8px !important;
    }
    
    /* 文言中央揃え + 番号は左、タイトルは中央固定（左右対称の3カラム） */
    .usage-flow .step {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        grid-template-rows: auto auto !important;
        align-items: center !important;
        text-align: center !important;
    }

    .usage-flow .step-number {
        grid-column: 1 !important;
        justify-self: start !important;
        margin: 0 8px 0 0 !important;
    }

    .usage-flow .step h3 {
        grid-column: 2 !important;
        justify-self: center !important;
        text-align: center !important;
        margin-bottom: 0 !important;
    }

    .usage-flow .step p {
        grid-column: 1 / -1 !important;
        text-align: center !important;
    }
    /* ①②③④は左寄せ、文言は中央揃え */
    .usage-flow .step {
        display: grid !important;
        justify-items: center;
        text-align: center !important;
    }

    .usage-flow .step-number {
        justify-self: start !important;
        display: inline-flex !important;
        margin: 0 0 8px 0 !important;
    }

    .usage-flow .step h3 {
        display: block !important;
    }

    /* ① を見出しの横に配置（例: ① お問い合わせ） */
    .usage-flow .step-number {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin: 0 8px 0 0 !important;
        vertical-align: middle;
    }

    .usage-flow .step h3 {
        display: inline-block !important;
        vertical-align: middle;
    }
    /* 超小型画面用の追加調整 */
    .company-name h1 {
        font-size: 0.95rem;
        white-space: nowrap;
    }
    
    .logo img {
        height: 32px;
    }
    
    .hero {
        padding: 70px 0 40px;
        min-height: 100vh;
    }
    
    .hero-content {
        margin-top: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
    }

    /* さらに小さい画面でも上下分離を維持 */
    .hero > .container {
        display: flex;
        flex-direction: column;
        height: 100%;
        min-height: inherit;
    }

    .hero-cta {
        margin-top: auto;
        margin-bottom: 25px;
    }
    
    .hero-character {
        height: 50%;
        max-height: 300px;
        opacity: 0.6;
    }
    
    .hero-character-left {
        left: 1%;
    }
    
    .hero-character-right {
        right: 1%;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.35;
        margin-bottom: 18px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 50px;
    }
    
    .hero-cta {
        margin-top: 15px;
        align-items: center;
    }
    
    /* スタッフ紹介・ご家族の声・法人情報・お問い合わせの見出し直下だけ少し広く */
    .staff .section-title,
    .testimonials .section-title,
    .company-info .section-title,
    .contact .section-title {
        margin-bottom: 32px !important;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .strength-card,
    .step,
    .testimonial,
    .company-basic,
    .company-mission,
    .contact-info,
    .contact-form {
        padding: 25px;
    }
} 

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 2rem;
    padding: 0 10px;
} 

/* モバイルでのメインビジュアル縦幅の是正 */
@media (max-width: 480px) {
    .hero .hero-content {
        /* 高さを必要最小限にするため、親フレックスの伸長を無効化 */
        flex: 0 0 auto !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    /* テキスト間の余白も適度に圧縮 */
    .hero .hero-title {
        margin-bottom: 10px !important;
    }

    .hero .hero-subtitle {
        margin-bottom: 12px !important;
    }

    /* ヒーローボタンの上下パディングを縮小（タップ領域44pxは維持） */
    .hero .hero-buttons .btn {
        padding-top: 10px !important;
        padding-bottom: 8px !important;
        min-height: 44px;
    }

    /* ボタンブロック自体を上に寄せる */
    .hero .hero-buttons {
        margin-top: 0 !important;
    }

    /* CTA全体の上余白をさらに圧縮してボタンを上へ */
    .hero .hero-cta {
        margin-top: 4px !important;
        margin-bottom: 20px !important;
    }

    /* テキストブロックをわずかに下げる */
    .hero .hero-text {
        margin-top: 60px !important;
    }

    /* 資格・役職を2列×2行（計4項目）で表示 */
    .staff-qualifications .qualifications-list {
        display: grid !important;
        grid-template-columns: repeat(2, auto);
        justify-content: center;
        justify-items: center;
        column-gap: 12px;
        row-gap: 8px;
    }

    .staff-qualifications .qualification-item {
        white-space: nowrap;
    }
}