/*
Theme Name: School Theme
Theme URI: http://example.com/school-theme
Author: Example Author
Author URI: http://example.com
Description: A custom WordPress theme for schools.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/


/* ============================================
   グローバル
   ============================================ */

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
}

menu, ol, ul.wp-block-list {
    list-style: auto !important;
}


/* ============================================
   ヘッダー
   ============================================ */

/* フロントページ デスクトップメニュー */
#desktop-menu-front a {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}
#desktop-menu-front a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* ヘッダー 半透明グラスエフェクト（フロントページ） */
.header-glass {
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(8px);
}

/* 固定ヘッダー分のオフセット（フロントページ以外） */
body:not(.home) > main {
    padding-top: 96px;
}

/* モバイルメニュー */
#mobile-menu {
    padding: 4rem 1.6rem !important;
}
#mobile-menu > div > div {
    text-align: left;
}


/* ============================================
   ナビゲーション メニューアイテム 個別スタイル
   ============================================ */

/* ダークネイビー系ボタン */
.menu-item-47,
.menu-item-396,
.menu-item-397 {
    padding: 1rem 1.5rem;
    background: #242d4d;
    color: #fff;
    border-radius: 4px;
    width: 220px;
    text-align: center;
}

/* グラデーション系ボタン */
.menu-item-48,
.menu-item-475 {
    padding: 1rem 1.5rem;
    background: linear-gradient(45deg, #745CE6, #2411ED);
    color: #fff;
    border-radius: 4px;
}


/* ============================================
   ファーストビュー
   ============================================ */

.fv-label {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    max-width: 300px;
    width: 140px;
}

/* FVテキスト装飾 */
.fv-text {
    font-size: 1rem;
    letter-spacing: 2px;
    color: red;
    position: relative;
    font-weight: bold;
}
.fv-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 4px;
}
.fv-text-below {
    font-size: 14px;
}

/* FVタイトル */
body > section.text-left.text-white.py-12.px-12.md\:px-\[8\%\].h-\[90vh\].flex.flex-col.justify-center > h1 {
    color: red;
    text-decoration: underline;
    display: inline;
    padding: 0.2em;
    background: yellow;
    width: fit-content;
    font-weight: bold;
    font-style: normal;
}

/* FVボタン 均等幅 */
.first-view-buttons a,
body > section.text-left.text-white.py-12.px-12.md\:px-\[8\%\].h-\[90vh\].flex.flex-col.justify-center > div.flex.flex-col.items-start.space-y-4 > a {
    width: 220px;
    text-align: center;
    font-size: 16px;
}


/* ============================================
   CTAセクション
   ============================================ */

.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
}

body > section.p-8.text-center.text-white.cta-section.flex.flex-col.items-center.justify-center.space-y-8.h-\[64vh\] > p {
    max-width: 50%;
}


/* ============================================
   フォローバナー
   ============================================ */

.follow-banner {
    width: 100%;
}
@media (min-width: 768px) {
    .follow-banner {
        width: 300px;
        bottom: 16px;
        right: 16px;
        left: auto;
    }
}


/* ============================================
   フッター
   ============================================ */

footer {
    font-size: 1rem;
}

/* フッターSNSアイコン（色はフッター文字色に追従） */
.footer-sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid currentColor;
    border-radius: 50%;
    color: inherit;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
}
.footer-sns-link:hover {
    opacity: 0.6;
    transform: translateY(-2px);
}
.footer-sns-link svg {
    width: 18px;
    height: 18px;
    display: block;
}


/* ============================================
   ボタン 共通
   ============================================ */

.btn-primary {
    background-image: linear-gradient(to right, var(--btn-start, #4f46e5), var(--btn-end, #3b82f6));
    background-color: var(--btn-start, #4f46e5);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* ============================================
   特殊コンポーネント
   ============================================ */

/* 地図背景 */
.map {
    background-image: url(https://www.kikyojuji.ac.jp/wpkj/wp-content/uploads/2026/01/学校Map更新260122.jpg) !important;
    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* テキストブロック */
body > div.p-2.text-center {
    font-size: 2rem;
}

/* ガラスカード（投稿ギャラリー） */
.glass-card {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.glass-badge {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}


/* ============================================
   投稿ギャラリー（トップページ）
   ============================================ */

.post-gallery-section {
    margin: 2rem;
    position: relative;
    padding: 2rem 0 2rem 4rem;
    background-color: #f3f4f6;
    overflow: hidden;
}

#post-gallery::-webkit-scrollbar {
    display: none;
}

.post-gallery-section button {
    z-index: 10;
}

.gallery-card {
    flex: 0 0 calc(33.333% - 1.5rem);
    min-width: calc(33.333% - 1.5rem);
}

.slider-controls {
    justify-content: center;
    margin-top: 1rem;
}
.slider-controls button {
    background: #000;
    color: #fff;
    border: none;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}
.slider-controls input[type=range] {
    -webkit-appearance: none;
    width: 150px;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
    cursor: pointer;
}
.slider-controls input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
}
.slider-controls input[type=range]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #000;
    border: none;
    border-radius: 50%;
}


/* ============================================
   コンタクトフォーム
   ============================================ */

.contactform-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    font-family: 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

.contactform-row {
    margin-bottom: 24px;
}

.contact_title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #333;
}

/* 必須ラベル（「（必須）」表示に統一） */
.hissu::after {
    content: "（必須）";
    color: #e63946;
    font-weight: bold;
}

.contact_content input[type="text"],
.contact_content input[type="email"],
.contact_content input[type="tel"],
.contact_content input[type="date"],
.contact_content textarea {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f8f9fa;
    transition: border 0.3s, box-shadow 0.3s;
}

.contact_content textarea {
    min-height: 80px;
    resize: vertical;
}

.contact_content input:focus,
.contact_content textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    outline: none;
}

.contact_content label {
    display: inline-block;
    margin-right: 12px;
    font-size: 13px;
    cursor: pointer;
}

.contact_content input[type="radio"] {
    margin-right: 4px;
}

.form-row-2col {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.form-row-2col .contactform-row {
    flex: 1;
    min-width: 250px;
}

.btn_submit {
    text-align: center;
    margin-top: 30px;
}

.btn_submit input[type="submit"] {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 15px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.btn_submit input[type="submit"]:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

span.wpcf7-not-valid-tip {
    display: block;
    background: #ffe0e0;
    color: #e63946;
    padding: 6px 10px;
    font-size: 13px;
    margin-top: 6px;
    border-left: 4px solid #e63946;
    border-radius: 4px;
}

div.wpcf7-mail-sent-ok {
    background-color: #e6f9ec;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 24px;
    text-align: center;
}

div.wpcf7-mail-sent-ng {
    background-color: #fff3f3;
    color: #d32f2f;
    border: 1px solid #ef9a9a;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 24px;
    text-align: center;
}


/* ============================================
   記事本文 タイポグラフィ（.prose）
   ============================================ */

.prose h1 {
    font-size: 1.75rem;
    margin-top: 2rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

/* H2：左に太いボーダー＋薄い背景 */
.prose h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111827;
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding: 0.65rem 1rem;
    border-left: 5px solid #2563eb;
    background-color: #eff6ff;
    border-radius: 0 6px 6px 0;
    line-height: 1.5;
}

/* H3：左に細いボーダー＋下線 */
.prose h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1f2937;
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    padding-left: 0.75rem;
    border-left: 3px solid #93c5fd;
    border-bottom: 1px solid #e5e7eb;
    line-height: 1.5;
}

/* H4：左に青丸ドット */
.prose h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e40af;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    padding-left: 0.9rem;
    position: relative;
    line-height: 1.5;
}
.prose h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #3b82f6;
    border-radius: 50%;
}

.prose h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.prose h6 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.85;
    color: #374151;
}

.prose ul {
    margin-left: 0;
    margin-bottom: 1.25rem;
    padding-left: 0;
    list-style: none;
}
.prose ul li {
    padding-left: 1.4rem;
    position: relative;
    margin-bottom: 0.4rem;
    line-height: 1.7;
}
.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    background-color: #3b82f6;
    border-radius: 50%;
}

.prose ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
    padding-left: 0.25rem;
}
.prose ol li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

.prose blockquote {
    border-left: 4px solid #93c5fd;
    background-color: #f0f9ff;
    padding: 1rem 1.25rem;
    color: #374151;
    margin: 1.75rem 0;
    border-radius: 0 6px 6px 0;
    font-style: normal;
}

.prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    line-height: 1.7;
}
.prose code {
    background: #f1f5f9;
    color: #be185d;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
}
.prose pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.prose thead {
    background-color: #1d4ed8;
    color: #fff;
}
.prose th {
    padding: 0.65rem 0.75rem;
    font-weight: 700;
    text-align: left;
    border: 1px solid #1d4ed8;
}
.prose td {
    border: 1px solid #e2e8f0;
    padding: 0.6rem 0.75rem;
    line-height: 1.6;
}
.prose tr:nth-child(even) td {
    background-color: #f8fafc;
}

.prose strong {
    font-weight: 700;
    color: #111827;
}
.prose em {
    font-style: italic;
    color: #4b5563;
}


/* ============================================
   レスポンシブ（モバイル）
   ============================================ */

@media (max-width: 768px) {

    /* ファーストビュー */
    .fv-label {
        margin: 0 auto;
        width: auto;
    }
    .fv-label img {
        width: 90px !important;
        height: auto;
        margin: 0 auto;
    }
    .fv-text {
        font-size: 16px;
    }
    .fv-text-below {
        font-size: 14px;
    }

    /* FVセクション */
    body > section.text-left.text-white.py-12.px-12.md\:px-\[8\%\].h-\[90vh\].flex.flex-col.justify-center {
        background-position: 75% 65% !important;
        padding: 13rem 0.4rem 1rem;
        display: flex;
        justify-content: center;
    }
    body > section.text-left.text-white.py-12.px-12.md\:px-\[8\%\].h-\[90vh\].flex.flex-col.justify-center > div.flex.flex-col.items-start.space-y-4 {
        display: none;
    }
    body > section.text-left.text-white.py-12.px-12.md\:px-\[8\%\].h-\[90vh\].flex.flex-col.justify-center > h1 {
        margin: 0;
        font-size: 24px;
        line-height: 1.2;
        text-underline-offset: 6px;
        text-align: center;
    }
    body > section.text-left.text-white.py-12.px-12.md\:px-\[8\%\].h-\[90vh\].flex.flex-col.justify-center > div.mb-4 > img {
        width: 200px;
        right: 0 !important;
        top: 60px !important;
    }

    /* CTAセクション */
    body > section.p-8.text-center.text-white.cta-section.flex.flex-col.items-center.justify-center.space-y-8.h-\[64vh\] > p {
        font-size: 1rem;
        max-width: 100%;
    }

    /* フォローバナー */
    .follow-banner {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }
    div.flex.flex-col.space-y-2.md\:w-full.p-0.md\:p-4.w-full.px-4 {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
    }
    div.follow-banner.fixed.bottom-0.left-0.w-full.md\:w-\[300px\].md\:bottom-4.md\:left-auto.md\:right-4.bg-white.shadow-lg.p-4.md\:p-0.flex.items-center.justify-between.md\:flex-col.md\:space-x-0.md\:space-y-0.z-50 {
        padding: 0;
        font-size: 12px;
    }
    div.follow-banner.fixed.bottom-0.left-0.w-full.md\:w-\[300px\].md\:bottom-4.md\:left-auto.md\:right-4.bg-white.shadow-lg.p-4.md\:p-0.flex.items-center.justify-between.md\:flex-col.md\:space-x-0.md\:space-y-0.z-50 > div.flex.flex-col.space-y-2.md\:w-full.p-0.md\:p-4.w-full.px-4 > a:nth-child(1),
    div.follow-banner.fixed.bottom-0.left-0.w-full.md\:w-\[300px\].md\:bottom-4.md\:left-auto.md\:right-4.bg-white.shadow-lg.p-4.md\:p-0.flex.items-center.justify-between.md\:flex-col.md\:space-x-0.md\:space-y-0.z-50 > div.flex.flex-col.space-y-2.md\:w-full.p-0.md\:p-4.w-full.px-4 > a:nth-child(2) {
        margin: 0;
        border-radius: 0;
        padding: 1rem 0;
    }
    #follow-banner-close {
        display: none;
    }

    /* ギャラリー */
    .gallery-card {
        flex: 0 0 calc(100% - 1rem);
        min-width: calc(100% - 1rem);
    }
    .post-gallery-section {
        margin: 0;
        padding: 2rem 1rem;
    }
    .slider-controls {
        text-align: center;
    }
    #post-gallery .glass-badge {
        font-size: 10px;
    }
    #post-gallery h3 {
        font-size: 12px;
        padding: 0.8rem;
    }

    /* コンタクトフォーム */
    .form-row-2col {
        flex-direction: column;
    }
}
