@charset "UTF-8";

/* --- 基本設定 --- */
:root {
  --main-color: #0e354a; 
    --accent-color: #e67e22;
    --bg-light: #fdfaf5;
    --text-color: #333;
    --border-color: #ddd;
}

/* --- ヘッダーロゴの調整 --- */
.header-logo {
    height: 200px; /* PCでの表示サイズ */
    width: auto;
    margin: 10px 0;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.50); /* ロゴにマウスを乗せると少し大きく */
}




* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.8;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.bg-white { background-color: #fff; padding: 60px 0; }

img { max-width: 100%; height: auto; }

/* --- ヘッダー --- */
header {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    border-top: 6px solid var(--main-color);
}

header h1 { margin: 0; color: var(--main-color); font-size: 1.8rem; letter-spacing: 0.1em; }
.header-sub { font-size: 0.9rem; color: #666; margin: 5px 0; }
.header-sns { margin-top: 10px; }
.insta-link {
    text-decoration: none;
    color: #e1306c;
    font-size: 0.85rem;
    font-weight: bold;
}
.insta-link img { width: 16px; height: 16px; vertical-align: middle; margin-right: 4px; }

/* --- ヒーローエリア --- */
.hero {
    background-color: var(--main-color);
    background-image: linear-gradient(rgba(26, 60, 94, 0.7), rgba(26, 60, 94, 0.7)), url('/img/titleback.jpg'); /* 背景画像がある場合 */
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 100px 20px;
    text-align: center;
}

.hero h2 { font-size: 2.2rem; margin: 0 0 20px; line-height: 1.4; }
.hero p { font-size: 1.2rem; margin: 0; opacity: 0.9; }

/* --- セクションタイトル --- */
.section-title {
    text-align: center;
    color: var(--main-color);
    font-size: 1.8rem;
    margin: 40px 0 40px;
}
.section-title::after {
    content: ""; display: block; width: 40px; height: 3px; background: var(--accent-color); margin: 15px auto 0;
}

/* --- イベントグリッド --- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.event-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.event-img img { width: 100%; height: 240px; object-fit: cover; transition: 0.3s; }
.event-card:hover .event-img img { transform: scale(1.05); }
.event-info { padding: 25px; }
.event-info h3 { margin: 0 0 10px; color: var(--main-color); font-size: 1.2rem; }
.event-info p { font-size: 0.95rem; margin: 0; color: #555; }

/* --- サービスグリッド --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-item {
    padding: 40px 25px;
    background: var(--bg-light);
    border-radius: 8px;
    text-align: center;
    border-bottom: 5px solid var(--main-color);
}

.service-item .icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.service-item h3 { color: var(--main-color); margin-bottom: 15px; }

/* サービス項目の本文のみを右寄せにする */
.service-item p {
    text-align: left;
    margin-top: 10px; /* アイコンや見出しとのバランス調整 */
}

/* --- コンタクトエリア --- */
#contact { padding: 80px 20px; }
.contact-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.contact-info { flex: 1; min-width: 300px; }
.map-area { flex: 1.2; min-width: 300px; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* お問い合わせエリアのボタン調整 */
.contact-methods {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* ボタン同士の間隔 */
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
    flex: 1; /* 横に並んだ時、同じ幅にする */
    min-width: 280px;
    color: #fff;
}

/* 電話ボタン（アクセントカラー） */
.contact-btn.tel {
    background: var(--accent-color);
}
.contact-btn.tel:hover {
    background: #d35400;
    transform: translateY(-2px);
}

/* メールボタン（メインカラー） */
.contact-btn.mail {
    background: var(--main-color);
}
.contact-btn.mail:hover {
    background: #2c5680;
    transform: translateY(-2px);
}

.fax-number {
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
    color: #444;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .contact-btn {
        font-size: 1.2rem;
        padding: 12px 20px;
    }
}

.access-details p { margin: 5px 0; }

/* --- フッター --- */
footer {
    background: var(--main-color);
    color: #fff;
    text-align: center;
    padding: 40px 0;
    font-size: 0.85rem;
}

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .hero h2 { font-size: 1.6rem; }
    .tel-number { font-size: 1.4rem; width: 100%; text-align: center; padding: 15px; }
    .contact-layout { flex-direction: column; }
    .bg-white { padding: 40px 0; }
}


/* SNSエリア全体の調整 */
.sns-links {
    margin-top: 20px;
    display: flex;
    justify-content: center; /* 中央配置 */
    align-items: center;
}

.sns-icon {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px; /* アイコンと文字の間隔 */
    padding: 10px 20px;
    border: 2px solid #e1306c; /* インスタカラーの枠線で目立たせる */
    border-radius: 50px;
    color: #e1306c;
    transition: all 0.3s ease;
}

/* アイコン自体のサイズアップ */
.sns-icon i {
    font-size: 32px; 
}

/* テキストのスタイル */
.sns-text {
    font-size: 1rem;
    font-weight: bold;
}

/* ホバー時の演出（反転させて目立たせる） */
.sns-icon:hover {
    background-color: #2816c4;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}


/* FAQセクションのスタイル */
#faq { padding: 60px 20px; }

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-weight: bold;
    color: var(--main-color);
    cursor: pointer;
    list-style: none; /* デフォルトの矢印を隠す（ブラウザによる） */
    position: relative;
    padding-right: 50px;
}

/* 擬似要素でプラスアイコンを作成 */
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg); /* 開いた時に×にする */
}

.faq-item p {
    padding: 0 20px 20px;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid #eee;
    padding-top: 15px;
    color: #555;
}


/* ギャラリーセクション */
#shop-gallery {
    padding: 40px 20px 20px;
}

.gallery-layout {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右 50:50 */
    gap: 10px;
}

/* 左側：店外写真 */
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* 右側：2x2 グリッド */
.gallery-sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.sub-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    aspect-ratio: 4 / 3; /* 写真の比率を統一 */
}

/* レスポンシブ：スマホでは縦に並べる */
@media (max-width: 768px) {
    .gallery-layout {
        grid-template-columns: 1fr; /* 1列にする */
    }
    .gallery-main {
        margin-bottom: 10px;
    }
}


/* --- 店主挨拶セクション --- */
#owner-greeting {
    padding: 80px 20px;
}

.greeting-layout {
    display: flex;
    align-items: center;
    gap: 60px;
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.owner-photo {
    flex: 1;
    max-width: 400px;
}

.owner-photo img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 10px 10px 0 var(--bg-light); /* 少しずらした背景色で装飾 */
}

.greeting-text {
    flex: 1.5;
}

/* 挨拶セクション用の左寄せタイトル */
.section-title.left {
    text-align: left;
    margin-top: 0;
}
.section-title.left::after {
    margin: 15px 0 0; /* 中央寄せを解除 */
}

.greeting-text .lead {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.greeting-text p {
    margin-bottom: 1.5rem;
    color: #444;
}

.owner-name {
    font-weight: bold;
    text-align: right;
    font-size: 1.1rem;
    color: var(--main-color);
    margin-top: 30px !important;
}

/* レスポンシブ対応：スマホで縦並びにする */
@media (max-width: 900px) {
    .greeting-layout {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .owner-photo {
        max-width: 100%;
        width: 100%;
    }
    
    .section-title.left {
        text-align: center;
    }
    .section-title.left::after {
        margin: 15px auto 0;
    }
    
    .greeting-text .lead {
        text-align: center;
        font-size: 1.1rem;
    }
}

/* --- モーダル全体のスタイル --- */
.modal-overlay {
    display: none; /* 最初は隠す */
    position: fixed;
    z-index: 2000; /* ヘッダーより上に */
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#modal-img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation: modalZoom 0.3s ease-out;
}

@keyframes modalZoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}

/* --- クリック可能な画像への演出 --- */
.gallery-layout img, 
.event-img img {
    cursor: zoom-in;
}


/* --- 学校一覧アコーディオン専用 --- */
#partner-schools {
    margin-top: -30px; /* servicesセクションとの間隔調整 */
    margin-bottom: 60px;
}

.school-accordion .faq-item {
    border: 3px solid var(--border-color);
    box-shadow: none;
    background-color: #fff;
}

.school-accordion summary {
    padding: 25px;
    font-size: 1.1rem;
    background-color: #fcfcfc;
    transition: background-color 0.3s;
}

.school-accordion summary:hover {
    background-color: #f0f4f8;
}

.school-accordion .summary-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.school-list-content {
    padding: 20px 30px 40px;
    border-top: 1px solid #eee;
}

.school-notice {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 25px;
    text-align: center;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.school-cat h4 {
    color: var(--main-color);
    font-size: 1rem;
    margin-bottom: 10px;
    padding-left: 10px;
    border-left: 6px solid var(--accent-color);
}

.school-cat p {
    font-size: 0.9rem;
    line-height: 2;
    color: #555;
    margin: 0;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .school-list-content {
        padding: 20px;
    }
    .school-grid {
        gap: 20px;
    }
}