/* リセットとベース */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'ヒラギノ角ゴシック', 'メイリオ', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #2d3748;
    background: linear-gradient(135deg, #f5f7fa 0%, #f8f9fa 100%);
    font-size: 16px;
    overflow-x: hidden;
}

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

/* ヘッダー - モダンでクリーンなデザイン */
.header {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    letter-spacing: 0.5px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo i {
    color: #fef08a;
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.nav {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.7rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    left: 0;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.nav-link.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* ヒーローセクション - 洗練されたグラデーション */
.hero {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.70) 0%, rgba(6, 182, 212, 0.70) 50%, rgba(16, 185, 129, 0.65) 100%), 
                url('https://images.unsplash.com/photo-1584515933487-779824d29309?w=1600&q=80') center/cover;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(14, 165, 233, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-overlay {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.supervisor-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #0284c7;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.supervisor-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.supervisor-badge i {
    color: #f59e0b;
    margin-right: 0.7rem;
    font-size: 1.2rem;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ボタン - モダンで魅力的なデザイン */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn i {
    margin-right: 0.6rem;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.3);
}

.btn-large {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

/* 監修者セクション - エレガントなカードデザイン */
.supervisor {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.supervisor-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(14, 165, 233, 0.1);
    transition: all 0.3s ease;
}

.supervisor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

.supervisor-profile {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.supervisor-photo {
    flex-shrink: 0;
}

.supervisor-photo img {
    width: 200px;
    height: 200px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2);
    border: 4px solid #fff;
    transition: all 0.3s ease;
}

.supervisor-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 50px rgba(14, 165, 233, 0.3);
}

.supervisor-info {
    flex: 1;
    min-width: 300px;
}

.supervisor-name {
    font-size: 2rem;
    margin-bottom: 1.2rem;
    color: #0284c7;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.supervisor-title {
    font-size: 1.3rem;
    color: #64748b;
    font-weight: 600;
}

.supervisor-description {
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
    color: #475569;
}

.supervisor-message {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 2.5rem;
    border-radius: 20px;
    border-left: 5px solid #0ea5e9;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
}

.supervisor-message h4 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    color: #0284c7;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
}

.supervisor-message h4 i {
    color: #06b6d4;
    font-size: 1.2rem;
}

.supervisor-message p {
    font-size: 1.05rem;
    line-height: 2;
    color: #334155;
    font-weight: 500;
}

/* セクションタイトル */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #0f172a;
    font-weight: 800;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #0ea5e9 0%, #10b981 100%);
    border-radius: 5px;
}

/* サービスカード */
.services {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0ea5e9 0%, #10b981 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: #0ea5e9;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #0f172a;
    font-weight: 700;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    padding: 0.6rem 0;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.service-list li i {
    color: #10b981;
    font-size: 0.9rem;
}

/* フローセクション */
.flow {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.flow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.flow-arrow {
    font-size: 2rem;
    color: #0ea5e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .flow-arrow {
        transform: rotate(90deg);
        margin: 0;
    }
}

.flow-step {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(14, 165, 233, 0.08);
    transition: all 0.3s ease;
    position: relative;
    flex: 0 1 220px;
}

.flow-step::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 5px;
    background: linear-gradient(90deg, #0ea5e9 0%, #10b981 100%);
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flow-step:hover::before {
    opacity: 1;
}

.flow-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(14, 165, 233, 0.15);
}

.flow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    color: #fff;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.flow-step h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #0f172a;
    font-weight: 700;
}

.flow-step p {
    font-size: 1rem;
    line-height: 1.8;
    color: #64748b;
}

/* エリアグリッド */
.areas {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.area-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.area-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.area-card h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.area-card h3 i {
    color: #0ea5e9;
}

.area-card p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #64748b;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.area-item {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    font-weight: 600;
    color: #334155;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.area-item:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(14, 165, 233, 0.2);
    border-color: #0ea5e9;
}

.area-item i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* FAQ */
.faq {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
}

.faq-list {
    max-width: 900px;
    margin: 3rem auto 0;
}

.faq-item {
    background: #ffffff;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.faq-item:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: #0ea5e9;
}

.faq-question {
    padding: 1.8rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: #0f172a;
    transition: all 0.3s ease;
}

.faq-question span {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.faq-question span i:first-child {
    color: #0ea5e9;
    font-size: 1.3rem;
}

.faq-question > i {
    color: #0ea5e9;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.faq-item.active .faq-question > i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    padding: 2rem;
    border-top: 2px solid #e0f2fe;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer p {
    line-height: 1.9;
    color: #475569;
    font-size: 1.05rem;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.supervisor-credit {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.supervisor-credit i {
    color: #f59e0b;
    margin-right: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section ul li a:hover {
    color: #0ea5e9;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-supervisor {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* 検索ページ専用スタイル */
.search-container {
    padding: 3rem 0;
}

/* コンタクトページ専用スタイル */
.contact-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #0f172a;
    font-weight: 800;
}

.contact-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.contact-intro p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #475569;
    margin-bottom: 1rem;
}

.contact-intro p:last-child {
    margin-bottom: 0;
}

.contact-flow-card,
.contact-info-card,
.contact-form-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    border: 2px solid rgba(14, 165, 233, 0.1);
}

.contact-flow-card h3,
.contact-info-card h3,
.contact-form-card h3 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-flow-card h3 i,
.contact-info-card h3 i,
.contact-form-card h3 i {
    color: #0ea5e9;
}

.contact-flow-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-flow-item {
    text-align: center;
    flex: 0 1 150px;
}

.contact-flow-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.3);
}

.contact-flow-item p {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.6;
}

.contact-flow-arrow {
    font-size: 2rem;
    color: #0ea5e9;
    font-weight: 700;
}

.contact-fee {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.contact-fee strong {
    font-size: 1.6rem;
    color: #10b981;
}

.contact-note {
    font-size: 0.95rem;
    color: #64748b;
    font-style: italic;
}

.contact-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2.5rem 0 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    border-left: 5px solid #0ea5e9;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-section-title i {
    color: #0ea5e9;
}

.required {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    background: #f1f5f9;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin-bottom: 0;
}

.checkbox-label:hover {
    background: #e0f2fe;
    border-color: #0ea5e9;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    accent-color: #0ea5e9;
}

.form-submit {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
}

@media (max-width: 768px) {
    .contact-flow-steps {
        flex-direction: column;
    }
    
    .contact-flow-arrow {
        transform: rotate(90deg);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-flow-card,
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
}

.search-container {
    padding: 3rem 0;
}

.search-box {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    border: 2px solid rgba(14, 165, 233, 0.1);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 700;
    color: #334155;
    font-size: 1.05rem;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.8rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: #f1f5f9;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.checkbox-group label:hover {
    background: #e0f2fe;
    border-color: #0ea5e9;
}

.checkbox-group input[type="checkbox"]:checked + label {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    color: #fff;
    font-weight: 700;
}

/* 施設カード */
.results {
    margin-top: 3rem;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
}

.sort-select {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.facility-list {
    display: grid;
    gap: 2rem;
}

.facility-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #0ea5e9 0%, #10b981 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.facility-card:hover::before {
    transform: scaleY(1);
}

.facility-card:hover {
    transform: translateX(8px);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.12);
    border-color: #0ea5e9;
}

.facility-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.facility-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.facility-area {
    color: #64748b;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.facility-services {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.service-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0284c7;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid #bae6fd;
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.facility-info {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    color: #475569;
    line-height: 1.6;
}

.info-item i {
    color: #0ea5e9;
    width: 20px;
    margin-top: 0.3rem;
}

.facility-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

/* ペジネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.8rem 1.5rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #475569;
}

.pagination button:hover:not(:disabled) {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    color: #fff;
    border-color: #0ea5e9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination span {
    font-weight: 600;
    color: #334155;
    padding: 0.8rem 1.2rem;
}

/* 詳細ページ */
.detail-container {
    padding: 3rem 0;
}

.detail-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(14, 165, 233, 0.1);
}

.detail-section {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 3px solid #f1f5f9;
}

.detail-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-section h2 i {
    color: #0ea5e9;
}

/* 管理画面専用スタイル */
.admin-container {
    padding: 3rem 0;
}

.admin-header {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.admin-header h1 {
    font-size: 2.2rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border-left: 5px solid;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.stat-card.pending {
    border-left-color: #f59e0b;
}

.stat-card.approved {
    border-left-color: #10b981;
}

.stat-card.total {
    border-left-color: #0ea5e9;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid #e2e8f0;
    flex-wrap: wrap;
}

.tab-button {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    color: #64748b;
    transition: all 0.3s ease;
    margin-bottom: -3px;
}

.tab-button:hover {
    color: #0ea5e9;
}

.tab-button.active {
    color: #0ea5e9;
    border-bottom-color: #0ea5e9;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.request-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.request-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.request-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.btn-approve {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
}

.btn-reject {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
}

/* フォームスタイル */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #334155;
    font-size: 1.05rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #fff;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* アラートメッセージ */
.alert {
    padding: 1.5rem 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 2px solid #6ee7b7;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 2px solid #fca5a5;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 2px solid #93c5fd;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }

    .nav-link {
        display: block;
        text-align: center;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .supervisor-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .supervisor-photo img {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .area-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .search-filters {
        grid-template-columns: 1fr;
    }

    .facility-header {
        flex-direction: column;
    }

    .detail-card {
        padding: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .tab-button {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        padding-left: 1.5rem;
    }

    .tab-button.active {
        border-left-color: #0ea5e9;
        border-bottom-color: transparent;
    }
}

/* ローディングアニメーション */
.loading {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top-color: #0ea5e9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0ea5e9 0%, #10b981 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0284c7 0%, #059669 100%);
}
