/* main.css - 共通スタイル */
:root {
    --primary-color: #4a7c59;
    --secondary-color: #c9e4ca;
    --accent-color: #f5b895;
    --light-bg: #f8f9fa;
    --dark-text: #333;
    --light-text: #fff;
    --shadow-sm: 0 2px 10px rgba(0,0,0,0.08);
    --shadow-md: 0 5px 20px rgba(0,0,0,0.12);
    --card-border-radius: 12px;
    --transition-normal: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans JP', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #fff;
}

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

/* Header styles */
header {
    background-color: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    height: 80px;
}

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

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

.logo img {
    height: 50px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1.4rem;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* mobile-header-left のスタイル */
.mobile-header-left {
    display: none;
}

/* ハンバーガーメニュースタイル */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 100;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ハンバーガーメニューアイコンの強化 */
.hamburger-menu {
    cursor: pointer;
    width: 30px;
    height: 22px;
    position: relative;
    z-index: 2001;
    display: none;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
    top: 0px;
}

.hamburger-menu span:nth-child(2) {
    top: 9px;
}

.hamburger-menu span:nth-child(3) {
    top: 18px;
}

.hamburger-menu.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-menu.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* 新しいモバイルメニュー */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 70px 20px 30px;
}

.mobile-menu.open {
    right: 0;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin: 0 0 15px 0;
    padding: 0 0 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu li:last-child {
    border-bottom: none;
}

.mobile-menu a {
    display: block;
    font-size: 18px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 5px;
    transition: all 0.2s ease;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    background-color: rgba(74, 124, 89, 0.08);
    transform: translateX(5px);
}

.mobile-menu a:active {
    background-color: rgba(74, 124, 89, 0.15);
}

/* モバイルメニューのオーバーレイ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* 「トップに戻る」ボタン */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 990;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #3d6a4b;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top .arrow-up {
    font-size: 24px;
    font-style: normal;
    font-weight: bold;
}

/* Section titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.section-title p {
    max-width: 700px;
    margin: 15px auto 0;
    color: #555;
    font-size: 1.05rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition-normal);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(74, 124, 89, 0.2);
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    background-color: #3d6a4b;
    box-shadow: 0 5px 15px rgba(74, 124, 89, 0.3);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(74, 124, 89, 0.2);
}

/* アニメーション効果付きのリップル */
.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.4s, opacity 0.8s;
}

.btn:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* PDFダウンロードリンクスタイル */
.pdf-download-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    background-color: rgba(74, 124, 89, 0.08);
    margin-left: 10px;
}

.pdf-download-link:hover {
    background-color: rgba(74, 124, 89, 0.15);
    transform: translateY(-2px);
}

.pdf-download-link i {
    margin-right: 8px;
    color: #d32f2f;
    font-size: 1.1em;
}

@media (max-width: 768px) {
    .contact-methods {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pdf-download-link {
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
}

.footer-info {
    max-width: 50%;
}

.footer-links {
    max-width: 50%;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
}

.footer-info p {
    margin-bottom: 10px;
}

.footer-links h3,
.footer-contact h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: var(--light-text);
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links ul li a:hover {
    opacity: 0.8;
}

.footer-contact p {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* モーダルスタイル */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-md);
    padding: 30px;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--secondary-color);
}

.modal-body {
    margin-top: 15px;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.7;
}

/* モーダル（ポップアップ）スタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    max-width: 90%;
    width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #e0e0e0;
}

.modal-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 課題モーダルと解決策モーダルの色分け */
.modal-content.challenge-modal .modal-title {
    color: #d32f2f;
}

.modal-content.solution-modal .modal-title {
    color: #388e3c;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
    }
    
    .modal h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .close-modal {
        top: 10px;
        right: 15px;
        font-size: 1.5rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-info, .footer-links {
        max-width: 100%;
        margin-bottom: 30px;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 0;
        align-items: center;
    }
    
    /* モバイル表示時のみmobile-header-leftを表示 */
    .mobile-header-left {
        display: block;
        order: 1;
    }
    
    .logo {
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
        order: 2;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 40px;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    nav.nav-menu {
        display: none;
    }

    /* モバイル時のボタンサイズ調整 */
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }

    .hamburger-menu span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: var(--primary-color);
        transition: all 0.3s ease;
        border-radius: 2px;
    }

    /* ハンバーガーメニュー アクティブ状態 */
    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -280px; /* 画面外に配置 */
        width: 250px;
        height: 100vh;
        background-color: #fff;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 1000; /* オーバーレイより上、ハンバーガーより下 */
        padding: 80px 20px 20px;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0; /* 画面内に表示 */
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .nav-menu ul li {
        margin: 12px 0;
        width: 100%;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 12px;
    }
    
    .nav-menu ul li:last-child {
        border-bottom: none;
    }
    
    .nav-menu ul li a {
        display: block;
        font-size: 1.1rem;
        padding: 8px 0;
        width: 100%;
        transition: all 0.3s ease;
    }

    /* オーバーレイ */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999; /* メニューの下、他のコンテンツの上に */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* 利用者ポータルリンクのモバイルスタイル */
    .user-portal-link {
        display: inline-block;
        width: auto;
        padding: 8px 15px;
        margin-top: 10px;
        text-align: center;
        border-radius: 4px;
    }

    /* メニュー項目のクリック問題を解決 */
    /* メニュー全体のスタイル */
    .nav-menu {
        display: none;
        position: fixed;
        top: 60px; /* ヘッダーの高さに合わせて調整 */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #fff;
        overflow-y: auto;
        z-index: 999; /* 高い値を設定 */
        touch-action: auto; /* タッチイベントを有効化 */
        pointer-events: auto; /* ポインターイベントを有効化 */
    }
    
    /* メニューが開いたときのスタイル */
    .nav-menu.mobile-active {
        display: block !important;
    }
    
    /* メニューリストのスタイル */
    .nav-menu ul {
        flex-direction: column;
        padding: 20px;
        list-style: none;
        margin: 0;
    }
    
    /* 各メニュー項目のスタイル */
    .nav-menu li {
        margin: 10px 0;
        padding: 0;
        width: 100%;
    }
    
    /* メニュー項目のリンクスタイル */
    .nav-menu li a {
        display: block;
        padding: 12px 15px;
        text-decoration: none;
        color: #333;
        font-size: 16px;
        position: relative;
        z-index: 1000; /* 高い値を設定 */
        pointer-events: auto !important; /* 強制的にイベントを有効化 */
    }
    
    /* アクティブ状態のハイライト */
    .nav-menu li a:hover,
    .nav-menu li a:active,
    .nav-menu li a:focus {
        background-color: rgba(0, 0, 0, 0.05);
    }
    
    /* メニュー展開時に他の要素がクリックを妨げないようにする */
    body.menu-open .container:not(.header-content) {
        pointer-events: none;
    }
}

/* タッチデバイス専用スタイル */
.touch-device .nav-menu li a {
    padding: 15px; /* タッチしやすいよう大きめに */
}

.touch-device .nav-menu li a.touch-active {
    background-color: rgba(0, 0, 0, 0.1); /* タッチフィードバック */
}

/* アクティブなリンクのスタイル強化 */
.nav-menu li a:active,
.nav-menu li a.touch-active {
    transform: scale(0.98); /* わずかに押し込まれる効果 */
    transition: transform 0.1s;
}

/* PCサイズでハンバーガーメニューを非表示 */
@media (min-width: 769px) {
    .hamburger-menu {
        display: none;
    }
    
    .nav-menu {
        display: block !important;
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
        z-index: auto;
        overflow: visible;
    }
    
    .menu-overlay {
        display: none;
    }
}

/* トップページのカードセクション */
.targets {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin: 50px 0;
}

/* ターゲットセクション */
.targets-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 90%;
    max-width: 1200px;
    margin: 70px auto; /* 上下の余白を増加 */
    gap: 30px;
}

/* ターゲットカードのモダンデザイン */
.target-card {
    flex: 1;
    background-color: #fff;
    border-radius: var(--card-border-radius);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    border-top: none; /* 元のボーダーを削除 */
}

/* カード上部のアクセントバー */
.target-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    z-index: 1;
}

/* カードホバー効果 */
.target-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.target-card h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}

/* 見出し下の装飾ライン */
.target-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    transition: var(--transition-normal);
}

.target-card:hover h3::after {
    width: 80px;
}

.target-card p {
    flex-grow: 1;
    margin-bottom: 25px;
    color: #555;
    line-height: 1.7;
}

/* カードの種類別スタイル */
.medical::before {
    background: linear-gradient(90deg, #a7c5eb, #839ecd); /* 医療向けのグラデーション */
}

.corporate::before {
    background: linear-gradient(90deg, #f9ebc8, #f5d7a1); /* 企業向けのグラデーション */
}

/* レスポンシブ対応 - モバイル向け最適化 */
@media (max-width: 768px) {
    .targets-container {
        flex-direction: column;
        width: 95%;
        gap: 20px;
        margin: 30px auto;
    }
    
    .target-card {
        width: 100%;
        min-height: auto;
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .target-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .target-card p {
        flex-grow: 0;
        margin-bottom: 15px;
        font-size: 0.95rem;
    }
    
    .target-card .btn {
        font-size: 0.9rem;
        padding: 8px 20px;
        display: block;
        text-align: center;
        margin-top: 10px;
    }
}

/* ヒーローセクション（トップページ専用） - デザイン改善 */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    padding: 70px 40px;
    overflow: hidden;
    background-color: var(--light-bg);
    background-image: url('../images/hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: -1px; /* ヘッダーとの隙間を埋める */
}

/* オーバーレイ効果 - コントラスト調整 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* オーバーレイを少し濃くして、コントラスト向上 */
    z-index: 1;
}

/* テキストブロック - モダンデザイン適用 */
.hero-text {
    position: relative;
    width: 380px;
    padding: 25px 30px;
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-md);
    z-index: 2;
    margin-right: 40px;
    transition: var(--transition-normal);
    border: none; /* 左ボーダーを削除 */
}

/* テキストブロックのホバーエフェクト */
.hero-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.18);
}

/* テキストブロックにアクセント */
.hero-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 0 0 var(--card-border-radius) var(--card-border-radius);
}

.hero-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* ロゴスタイル - 視認性向上 */
.hero-logo {
    position: relative;
    width: 45%;
    max-width: 450px;
    z-index: 2;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-normal);
}

/* ロゴの背景オーバーレイ */
.hero-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* オパシティを0.15から0.7に上げて視認性向上 */
    backdrop-filter: blur(5px);
    border-radius: 50%;
    z-index: -1;
    transition: var(--transition-normal);
}

.hero-logo:hover::before {
    background-color: rgba(255, 255, 255, 0.8); /* ホバー時のオパシティも調整 */
    transform: scale(1.05);
}

/* ロゴ画像に軽いシャドウ効果 */
.hero-logo img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
    transition: var(--transition-normal);
}

.hero-logo:hover img {
    transform: scale(1.03);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
}

/* モバイル対応 */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding: 25px 20px 50px;
        min-height: 450px;
        background-position: center 20%;
        background-size: cover;
        justify-content: center;
    }
    
    .hero-text {
        display: none;
    }
    
    /* モバイルでのロゴ視認性向上 */
    .hero-logo {
        width: 85%;
        max-width: 300px;
        margin: 20px auto;
        padding: 25px;
    }
    
    /* モバイルではロゴの背景円を大きめに */
    .hero-logo::before {
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.75); /* モバイル時のオパシティも調整 */
    }
}

/* さらに小さい画面サイズ向け */
@media (max-width: 480px) {
    .hero {
        min-height: 380px;
        padding: 20px 15px 40px;
    }
    
    .hero-logo {
        max-width: 260px;
        padding: 20px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
}

/* 最も小さい画面向けの追加調整 */
@media (max-width: 360px) {
    .hero {
        min-height: 320px;
        padding: 15px 10px 30px;
    }
    
    .hero-logo {
        max-width: 220px;
        padding: 15px;
    }
}

/* メリットセクションのモダン化 */
.benefits {
    padding: 80px 0;
    background-color: #f9fafb;
    position: relative;
    overflow: hidden;
}

/* 背景のアクセント装飾 */
.benefits::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(201, 228, 202, 0.15);
    border-radius: 50%;
    z-index: 1;
}

.benefits::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(245, 184, 149, 0.1);
    border-radius: 50%;
}

.benefits .container {
    position: relative;
    z-index: 2;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.benefit-card {
    background-color: #fff;
    border-radius: var(--card-border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(201, 228, 202, 0.2);
    border-radius: 50%;
    margin-bottom: 20px;
    font-size: 2.5rem;
    transition: var(--transition-normal);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.05);
    background-color: rgba(201, 228, 202, 0.3);
}

.benefit-card h3 {
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.benefit-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* アクセントラインの追加 */
.benefit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: var(--transition-normal);
}

.benefit-card:hover::after {
    width: 40%;
}

/* フォーム部分のモダン化 */
.contact {
    padding: 80px 0;
    background-color: #fff;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-sm);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: var(--transition-normal);
    font-family: 'Noto Sans JP', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.1);
    outline: none;
}

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

/* Admin Link Styles */
.copyright {
    position: relative;
}

.admin-link {
    position: absolute;
    right: 0;
    bottom: 0;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    font-size: 12px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.admin-link:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Admin Modal Styles */
.admin-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.admin-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    animation: adminModalFadeIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes adminModalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.admin-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 50%;
}

.admin-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.admin-modal-body {
    padding: 30px 25px;
}

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

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.admin-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #fafafa;
}

.admin-form-group input:focus {
    outline: none;
    border-color: #667eea;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.admin-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.admin-btn:active {
    transform: translateY(0);
}

.admin-error-msg {
    color: #e74c3c;
    background-color: #fdf2f2;
    border: 1px solid #f5c6cb;
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-error-msg::before {
    content: '⚠️';
    font-size: 16px;
}

/* === Instagram 簡易紹介セクション === */
.instagram-overview {
    padding: 70px 0 60px;
    background: #fff;
}
.instagram-overview .container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
}
.instagram-overview-icon {
    width: 140px;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.12));
    transition: transform .3s ease;
}
.instagram-overview-link:hover .instagram-overview-icon {
    transform: scale(1.05) rotate(-3deg);
}
.instagram-overview-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
}
.instagram-overview-text a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid rgba(74,124,89,.3);
    padding-bottom: 2px;
    transition: .25s;
}
.instagram-overview-text a:hover {
    border-color: var(--primary-color);
}

/* 調整: Instagram 簡易紹介セクションのアイコンサイズ制御を強化 */
.instagram-overview-link {
    display: inline-block;
    max-width: 160px;
    width: 100%;
}
.instagram-overview-icon {
    width: 100% !important; /* 強制縮小 */
    height: auto;
}
@media (min-width: 1200px) {
    .instagram-overview-link { max-width: 150px; }
}
@media (max-width: 780px) {
    .instagram-overview-link { max-width: 120px; }
}

/* === Responsive adjustments for Instagram icon (mobile) === */
@media (max-width: 600px) {
  .instagram-overview { padding: 50px 0 45px; }
  .instagram-overview-link { max-width: 90px; }
  .instagram-overview-icon { width: 100% !important; }
  .instagram-overview-text p { font-size: 0.95rem; }
}
@media (max-width: 420px) {
  .instagram-overview-link { max-width: 80px; }
}

/* 視覚的に不要な見出しを隠す */
.visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
