/*
Theme Name: Mirai Bank
Theme URI: https://miraibank.example.com
Author: Mirai Bank
Author URI: https://miraibank.example.com
Description: みらいBANK株式会社の公式テーマ。教育と食を通して、豊かな未来を持続する循環型社会貢献をテーマにしたデザイン。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mirai-bank
Tags: custom, business, education, food
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.75;
}

:root {
    --main-color: #5de2d3;
    --main-color-light: #e0faf8;
    --accent-color: #f9b163;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.py-40 {
    padding-top: 10rem;
    padding-bottom: 10rem;
}

/* Hanakago slider */
#hanakago-slider {
    height: 440px;
}
@media (min-width: 768px) {
    #hanakago-slider {
        height: 540px;
    }
}
.hanakago-slide {
    display: none;
    width: 100%;
    height: 100%;
}
.hanakago-slide.active {
    display: block;
}
.hanakago-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.hanakago-slider-btn.prev {
    left: 1rem;
}
.hanakago-slider-btn.next {
    right: 1rem;
}
.hanakago-slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.hanakago-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}
.hanakago-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 9999px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}
.hanakago-dot.active {
    background-color: #ffffff;
}

/* Menu section slider */
#menu-slider {
    height: 200px;
}
@media (min-width: 768px) {
    #menu-slider {
        height: 280px;
    }
}
.menu-slide {
    display: none;
    width: 100%;
    height: 100%;
}
.menu-slide.active {
    display: block;
}
.menu-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 2;
}
.menu-slider-btn.prev { left: 0.75rem; }
.menu-slider-btn.next { right: 0.75rem; }
.menu-slider-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.menu-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}
.menu-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    border: none;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}
.menu-dot.active {
    background-color: #ffffff;
}

.pt-20 {
    padding-top: 5rem;
}

.pt-40 {
    padding-top: 10rem;
    padding-bottom: 5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mt-auto {
    margin-top: auto;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-6 {
    margin-right: 1.5rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-y-12 > * + * {
    margin-top: 3rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-10 {
    gap: 2.5rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-16 {
    gap: 4rem;
}

/* Layout */
.fixed {
    position: fixed;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.w-full {
    width: 100%;
}

.w-5 {
    width: 1.25rem;
}

.w-8 {
    width: 2rem;
}

.w-3 {
    width: 0.75rem;
}

.w-10 {
    width: 2.5rem;
}

.w-16 {
    width: 4rem;
}

.w-20 {
    width: 5rem;
}

.w-32 {
    width: 8rem;
}

.w-48 {
    width: 12rem;
}

.w-64 {
    width: 16rem;
}

.w-80 {
    width: 20rem;
}

.w-px {
    width: 1px;
}

.h-3 {
    height: 0.75rem;
}

.h-5 {
    height: 1.25rem;
}

.h-8 {
    height: 2rem;
}

.h-1 {
    height: 0.25rem;
}

.h-10 {
    height: 2.5rem;
}

.h-16 {
    height: 4rem;
}

.h-20 {
    height: 5rem;
}

.h-32 {
    height: 8rem;
}

.h-48 {
    height: 12rem;
}

.h-64 {
    height: 16rem;
}

.h-80 {
    height: 20rem;
}

.h-screen {
    height: 100vh;
}

.h-full {
    height: 100%;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-3xl {
    max-width: 48rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.max-w-sm {
    max-width: 24rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.self-start {
    align-self: flex-start;
}

.flex-grow {
    flex-grow: 1;
}

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

.flex-1 {
    flex: 1 1 0%;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Display */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

/* Typography */
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.tracking-tighter {
    letter-spacing: -0.05em;
}

.tracking-widest {
    letter-spacing: 0.1em;
    text-align: center;
}

.leading-tight {
    line-height: 1.25;
}

.leading-loose {
    line-height: 2;
}

.leading-relaxed {
    line-height: 1.625;
}

.uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

.italic {
    font-style: italic;
}

/* Colors */
.bg-white {
    background-color: #fff;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-800 {
    background-color: #1f2937;
}

.bg-gray-900 {
    background-color: #111827;
}

.bg-slate-50 {
    background-color: #f8fafc;
}

.bg-main { 
    background-color: var(--main-color); 
}

.bg-main-light {
    background-color: var(--main-color-light);
}

.text-main { 
    color: var(--main-color); 
}

.text-white {
    color: #fff;
}

.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-gray-900 {
    color: #111827;
}

.border-main { 
    border-color: var(--main-color); 
}

.border-b {
    border-bottom-width: 1px;
}

.border-gray-100 {
    border-color: #f3f4f6;
}

.border-gray-800 {
    border-color: #1f2937;
}

.border-2 {
    border-width: 2px;
}

/* Background with opacity */
.bg-white\/90 {
    background-color: rgba(255, 255, 255, 0.9);
}

.bg-main\/10 {
    background-color: rgba(99, 229, 249, 0.1);
}

.bg-main\/20 {
    background-color: rgba(99, 229, 249, 0.2);
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Border Radius */
.rounded-full {
    border-radius: 9999px;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-tl-2xl {
    border-top-left-radius: 1rem;
}

.rounded-tr-2xl {
    border-top-right-radius: 1rem;
}

.rounded-bl-2xl {
    border-bottom-left-radius: 1rem;
}

.rounded-br-2xl {
    border-bottom-right-radius: 1rem;
}

.rounded-3xl {
    border-radius: 1.5rem;
}

.rounded-\[3rem\] {
    border-radius: 3rem;
}

/* Shadows */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-\[0_0_15px_rgba\(99\,229\,249\,0\.5\)\] {
    box-shadow: 0 0 15px rgba(99, 229, 249, 0.5);
}

.shadow-main\/20 {
    box-shadow: 0 25px 50px -12px rgba(99, 229, 249, 0.2);
}

/* Buttons */
.btn-main-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2.5rem;
    border-radius: 9999px;
    border: 2px solid transparent;
    background-color: var(--main-color);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.btn-main-outline:hover {
    border-color: var(--main-color);
    background-color: #f3f4f6;
    color: var(--main-color);
    transform: scale(1.05);
}

.btn-main-outline:active {
    transform: scale(0.95);
}

/* Effects */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.opacity-40 {
    opacity: 0.4;
}

.opacity-90 {
    opacity: 0.9;
}

.overflow-hidden {
    overflow: hidden;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

.-z-10 {
    z-index: -10;
}

/* Positioning */
.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.bottom-10 {
    bottom: 2.5rem;
}

.left-1\/2 {
    left: 50%;
}

.-translate-x-1\/2 {
    transform: translateX(-50%);
}

.-bottom-6 {
    bottom: -1.5rem;
}

.-right-6 {
    right: -1.5rem;
}

.-top-6 {
    top: -1.5rem;
}

.-left-6 {
    left: -1.5rem;
}

.-top-24 {
    top: -6rem;
}

.-right-24 {
    right: -6rem;
}

.-bottom-12 {
    bottom: -3rem;
}

.-left-12 {
    left: -3rem;
}

/* Padding */
.p-0 {
    padding: 0;
}

.p-8 {
    padding: 2rem;
}

.p-12 {
    padding: 3rem;
}

.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
}

.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-5 {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pb-2 {
    padding-bottom: 0.5rem;
}

.pb-6 {
    padding-bottom: 1.5rem;
}

.pt-8 {
    padding-top: 2rem;
}

/* Height */
.h-\[400px\] {
    height: 400px;
}

/* Transitions */
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hover Effects */
.hover\:text-main:hover {
    color: var(--main-color);
}

.hover\:opacity-70:hover {
    opacity: 0.7;
}

.hover\:opacity-90:hover {
    opacity: 0.9;
}

.hover\:bg-main:hover {
    background-color: var(--main-color);
}

.hover\:bg-gray-100:hover {
    background-color: #f3f4f6;
}

.hover\:text-white:hover {
    color: #fff;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hover\:bg-main:hover {
    background-color: var(--main-color);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

.active\:scale-95:active {
    transform: scale(0.95);
}

.cursor-pointer {
    cursor: pointer;
}

/* Animations */
.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

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

/* Custom Classes */
.hover-lift { 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.hover-lift:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); 
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--main-color);
    margin: 1rem auto 0;
}

.stat-card {
    background: white;
    border: 2px solid var(--main-color-light);
    border-radius: 2rem;
    padding: 2rem;
    text-align: center;
}

/* Gradient */
.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--main-color-light), white);
}

/* Kids page photo grid (irregular layout) */
.kids-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 110px;
    gap: 12px;
}

.kids-photo-grid-item {
    overflow: hidden;
    border-radius: 1rem;
    background-color: #e5e7eb;
}

.kids-photo-grid-item--large {
    grid-column: span 2;
    grid-row: span 2;
}

.kids-photo-grid-item--tall {
    grid-row: span 2;
}

.kids-photo-grid-item--wide {
    grid-column: span 2;
}

@media (min-width: 768px) {
    .kids-photo-grid {
        grid-auto-rows: 140px;
        gap: 16px;
    }
}

/* Mirai Kids overview vertical title */
.kids-overview-vertical-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.25em;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--main-color);
    font-weight: 700;
}

/* Responsive Design */
@media (min-width: 769px) {

    .md\:p-12 {
        padding: 3rem;
    }

    .items-end{
        align-items: flex-end;
    }
    .md\:flex {
        display: flex;
    }
    
    .md\:hidden {
        display: none;
    }
    
    .md\:flex-row {
        flex-direction: row;
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
    }
    
    .md\:text-6xl {
        font-size: 3.75rem;
        line-height: 4rem;
    }
    
    .md\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .md\:w-32 {
        width: 8rem;
    }
    
    .md\:mb-0 {
        margin-bottom: 0;
    }
    
    .md\:mr-6 {
        margin-right: 1.5rem;
    }
    
    .md\:text-left {
        text-align: left;
    }
    
    .md\:block {
        display: block;
    }
}

@media (min-width: 1024px) {
    .lg\:flex-row {
        flex-direction: row;
    }
    
    .lg\:w-1\/2 {
        width: 50%;
    }
    
    .lg\:w-\[45\%\] {
        width: 45%;
    }
    
    .lg\:w-\[55\%\] {
        width: 55%;
    }
    
    .lg\:text-left {
        text-align: left;
    }
}

@media (min-width: 768px) {
    .md\:w-2\/5 {
        width: 40%;
    }
    
    .md\:w-3\/5 {
        width: 60%;
    }
}

/* Special overrides */
.\!mx-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Message Section Styles */
.message-main-text {
    position: relative;
    padding: 2rem 0;
}

.message-description {
    position: relative;
    text-align: center;
}

.message-description::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 3rem;
    line-height: 1;
    color: var(--main-color-light);
    font-family: Georgia, serif;
    opacity: 0.3;
}

.message-description::after {
    content: '"';
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 3rem;
    line-height: 1;
    color: var(--main-color-light);
    font-family: Georgia, serif;
    opacity: 0.3;
}

@media (min-width: 768px) {
    .message-description::before {
        left: -1rem;
        font-size: 4rem;
    }
    
    .message-description::after {
        right: -1rem;
        font-size: 4rem;
    }
}

@media (min-width: 768px) {
    .md\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
    
    .md\:text-4xl {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
    
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
    
    .md\:text-xl {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .lg\:text-4xl {
        font-size: 2.25rem;
        line-height: 4rem;
        text-align: center;
    }
}

/* News Link Styles */
.news-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(99, 229, 249, 0.1), rgba(99, 229, 249, 0.05));
    border: 2px solid var(--main-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 50px;
    z-index: 1;
}

.news-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.news-link:hover::before {
    left: 100%;
}

.news-link:hover {
    background: var(--main-color);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 229, 249, 0.3);
}

.news-link:hover,
.news-link:hover.text-main,
.news-link:hover *,
.news-link:hover.text-main * {
    color: white !important;
}

.news-link::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.news-link:hover::after {
    transform: translateX(4px);
}

.news-link > * {
    position: relative;
    z-index: 2;
}

/* News Link Mobile Styles */
@media (max-width: 767px) {
    .news-link {
        max-width: 60%;
        margin: 10px auto;
        display: block;
    }
    
}

/* Shoku page: news-link color overrides */
.page-template-shoku-page-php .news-link {
    background: linear-gradient(135deg, rgba(112, 188, 58, 0.1), rgba(112, 188, 58, 0.05)) !important;
    border-color: #70bc3a !important;
}
.page-template-shoku-page-php .news-link:hover {
    background: #70bc3a !important;
    box-shadow: 0 4px 12px rgba(112, 188, 58, 0.2) !important;
}

/* Header Navigation Links */
.header-nav-link {
    text-decoration: none;
    color: #374151;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
    border-bottom: none;
}

.header-nav-link:hover {
    color: var(--main-color);
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 10001;
    overflow: visible !important;
}

header nav {
    position: relative;
    z-index: 10001;
    overflow: visible;
}

.nav-dropdown::after {
    content: "";
    position: absolute;
    left: -12px;
    right: -12px;
    top: 100%;
    height: 14px; /* hover bridge */
}

.nav-submenu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    display: none;
    z-index: 10000 !important;
    pointer-events: auto;
    overflow: visible;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
    display: block !important;
}

.nav-submenu-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #374151;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-submenu-link:hover {
    background: rgba(99, 229, 249, 0.18);
    color: var(--main-color);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
}

/* Footer Navigation Links */
.footer-nav-link {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: var(--main-color);
}

/* Footer Contact Links */
.footer-contact-link {
    text-decoration: none;
    color: white;
    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--main-color);
}

/* Contact Buttons */
.contact-btn {
    text-decoration: none;
}

.contact-cta-btn {
    text-decoration: none;
}

@media (max-width: 767px) {
    /* お問い合わせカード余白縮小 */
    .contact-cta-card {
        padding: 2rem 1.5rem !important;
        border-radius: 2rem !important;
    }

    /* ボタン：改行させず、パディングをスマホ向けに縮小 */
    .contact-cta-btn {
        white-space: nowrap;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        font-size: 1rem !important;
    }
}

/* Seed Title (みらいへの種まきを...) */
.seed-title {
    font-size: 2rem;
    line-height: 1.8;
}

@media (max-width: 767px) {
    .seed-title {
        font-size: 2rem !important;
    }
}

@media (min-width: 768px) {
    .seed-title {
        font-size: 3rem;
        line-height: 1.6;
    }
}

@media (min-width: 1024px) {
    .seed-title {
        line-height: 1.7;
    }
}

/* Service Links (塾ページへ、KIDSページへ、食ページへ) */
.service-link {
    text-decoration: none;
    color: white !important;
    background-color: var(--main-color) !important;
    border: 2px solid var(--main-color) !important;
}

.service-link:hover {
    background-color: white !important;
    color: var(--main-color) !important;
    border-color: var(--main-color) !important;
}

/* Service Icons */
.service-icon {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

/* News Items */
.news-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1.5rem;
}

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

@media (max-width: 767px) {
    .news-item time {
        text-align: left;
        display: block;
    }
}

/* Utility Classes */
.no-underline {
    text-decoration: none;
}

.text-inherit {
    color: inherit;
}

/* Business List */
.business-list {
    list-style: none;
    padding-left: 0;
}

.business-list li {
    padding-left: 0;
}

/* Object Fit */
.object-cover {
    object-fit: cover;
}

/* Main Visual Background */
.main-visual-bg {
    background-image: url('images/main_bj.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.main-visual {
    z-index: 1;
    position: relative;
}

/* Service Image */
.service-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bg-cover {
    background-size: cover;
}

.bg-center {
    background-position: center;
}

/* Contact Dots Pattern */
.contact-dots {
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

/* Values Section Background */
.values-section {
    background-image: url('images/staff.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* About Title Background */
.about-title-bg {
    background-color: var(--main-color-light);
    background-image: url('images/staff.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.about-title-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.about-title-bg > * {
    position: relative;
    z-index: 2;
}

/* Custom Width Classes */
.w-\[45\%\] {
    width: 45%;
}

.w-\[55\%\] {
    width: 55%;
}

/* Numbers & Impact Section - Override flex-col */
.numbers-impact-section {
    flex-direction: row;
}

@media (max-width: 1023px) {
    .numbers-impact-section {
        flex-direction: column;
    }
}

/* Single Post Header */
/* Related Section */
.single-related-section {
    padding: 4rem 0;
}

.single-related-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

/* 関連ニュース・その他のメニュー リスト */
.single-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.single-related-item {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.single-related-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.single-related-item-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.single-related-badge {
    display: inline-block;
    padding: 1px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.single-related-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.5;
    margin: 0;
}

/* Single Post Back */
.single-post-back-wrap {
    text-align: center;
    margin-bottom: 1.25rem;
}

.single-post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.single-post-back-link:hover {
    opacity: 0.7;
}

.single-post-header {
    text-align: center;
    margin-bottom: 0;
}

.single-post-header-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

.single-post-header-badge {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.single-post-header-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

@media (min-width: 768px) {
    .single-post-header-title {
        font-size: 2.25rem;
    }
}

/* Single Post Content Styles */

/* Featured Image Styles */
.single-post-content .featured-image-wrapper {
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 1rem;
    aspect-ratio: 16 / 9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.single-post-content .featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
}

.single-post-content img,
article .rounded-3xl img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.single-post-content img.alignleft,
article .rounded-3xl img.alignleft {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.single-post-content img.alignright,
article .rounded-3xl img.alignright {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.single-post-content img.aligncenter,
article .rounded-3xl img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.single-post-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: #1f2937;
    position: relative;
    padding-left: 1.5rem;
}

.single-post-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.5rem;
    background-color: var(--category-color, #5de2d3);
    border-radius: 0.25rem;
}

.single-post-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #1f2937;
    position: relative;
    padding-left: 1.5rem;
}

.single-post-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.5rem;
    background-color: var(--category-color, #5de2d3);
    border-radius: 0.25rem;
}

.single-post-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    color: #374151;
    position: relative;
    padding-left: 1.5rem;
}

.single-post-content h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0.5rem;
    background-color: var(--category-color, #5de2d3);
    border-radius: 0.25rem;
}

.single-post-content h5,
article .rounded-3xl h5 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #374151;
}

.single-post-content h6,
article .rounded-3xl h6 {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: #4b5563;
}

.single-post-content p,
article .rounded-3xl p {
    margin-bottom: 1.5rem;
    line-height: 1.875;
    color: #374151;
    font-size: 1rem;
}

.single-post-content p:first-child,
article .rounded-3xl p:first-child {
    margin-top: 0;
}

.single-post-content p:last-child,
article .rounded-3xl p:last-child {
    margin-bottom: 0;
}

.single-post-content ul,
.single-post-content ol,
article .rounded-3xl ul,
article .rounded-3xl ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: #374151;
    line-height: 1.875;
}

.single-post-content ul,
article .rounded-3xl ul {
    list-style-type: disc;
}

.single-post-content ol,
article .rounded-3xl ol {
    list-style-type: decimal;
}

.single-post-content li,
article .rounded-3xl li {
    margin-bottom: 0.75rem;
}

.single-post-content li:last-child,
article .rounded-3xl li:last-child {
    margin-bottom: 0;
}

.single-post-content ul ul,
.single-post-content ol ol,
.single-post-content ul ol,
.single-post-content ol ul,
article .rounded-3xl ul ul,
article .rounded-3xl ol ol,
article .rounded-3xl ul ol,
article .rounded-3xl ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.single-post-content blockquote,
article .rounded-3xl blockquote {
    border-left: 4px solid var(--category-color, var(--main-color));
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #4b5563;
    background-color: rgba(93, 226, 211, 0.05);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.single-post-content blockquote p,
article .rounded-3xl blockquote p {
    margin-bottom: 0.5rem;
}

.single-post-content blockquote p:last-child,
article .rounded-3xl blockquote p:last-child {
    margin-bottom: 0;
}

.single-post-content a,
article .rounded-3xl a {
    color: var(--category-color, var(--main-color));
    text-decoration: underline;
    transition: color 0.3s ease;
}

.single-post-content a:hover,
article .rounded-3xl a:hover {
    opacity: 0.8;
}

.single-post-content strong,
article .rounded-3xl strong {
    font-weight: 700;
    color: #1f2937;
}

.single-post-content em,
article .rounded-3xl em {
    font-style: italic;
}

.single-post-content code,
article .rounded-3xl code {
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #dc2626;
    font-family: 'Courier New', monospace;
}

.single-post-content pre,
article .rounded-3xl pre {
    background-color: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    line-height: 1.75;
}

.single-post-content pre code,
article .rounded-3xl pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

.single-post-content table,
article .rounded-3xl table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.single-post-content table th,
.single-post-content table td,
article .rounded-3xl table th,
article .rounded-3xl table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.single-post-content table th,
article .rounded-3xl table th {
    background-color: var(--main-color-light);
    font-weight: 600;
    color: #1f2937;
}

.single-post-content table tr:nth-child(even),
article .rounded-3xl table tr:nth-child(even) {
    background-color: #f9fafb;
}

.single-post-content hr,
article .rounded-3xl hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2.5rem 0;
}

.single-post-content figure,
article .rounded-3xl figure {
    margin: 2rem 0;
}

.single-post-content figure img,
article .rounded-3xl figure img {
    margin: 0;
}

.single-post-content figcaption,
article .rounded-3xl figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    article .rounded-3xl img.alignleft,
    article .rounded-3xl img.alignright {
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.5rem;
    }
    
.single-post-content h2 {
    font-size: 1.5rem;
}
    
.single-post-content h3 {
    font-size: 1.25rem;
}
    
.single-post-content h4 {
    font-size: 1.125rem;
}
}

/* Pagination Styles */
.pagination-wrapper,
nav.pagination,
.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.page-numbers,
nav.pagination .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.page-numbers li,
nav.pagination .nav-links > * {
    display: inline-block;
    margin: 0;
}

.page-numbers a,
.page-numbers span,
nav.pagination .nav-links a,
nav.pagination .nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    color: #374151;
}

.page-numbers a:hover,
nav.pagination .nav-links a:hover {
    background-color: var(--main-color-light);
    color: var(--main-color);
    border-color: var(--main-color);
}

.page-numbers .current,
.page-numbers span.current,
nav.pagination .nav-links .current,
nav.pagination .nav-links span.current {
    background-color: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}

.page-numbers .dots,
.page-numbers span.dots,
nav.pagination .nav-links .dots,
nav.pagination .nav-links span.dots {
    border: none;
    background-color: transparent;
    color: #6b7280;
}

.page-numbers .prev,
.page-numbers .next,
nav.pagination .nav-links .prev,
nav.pagination .nav-links .next {
    font-weight: 600;
}

.page-numbers .prev:hover,
.page-numbers .next:hover,
nav.pagination .nav-links .prev:hover,
nav.pagination .nav-links .next:hover {
    background-color: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
}

/* 404 Error Page */
.error-404-page {
    background-color: #e6fffc;
}

/* About Page Decorative Patterns */
.about-pattern-dots {
    background-image: radial-gradient(circle, rgba(99, 229, 249, 0.4) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0;
}

.about-pattern-circles {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 229, 249, 0.3) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(99, 229, 249, 0.3) 0%, transparent 60%);
    background-size: 500px 500px;
}

.about-decorative-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
}

.about-section-overlay {
    position: relative;
    overflow: hidden;
}

.about-section-overlay::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 229, 249, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.about-section-overlay::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -3%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 229, 249, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* Contact Form 7 Styles */
.wpcf7-form {
    max-width: 100%;
}

.wpcf7-form p {
    margin-bottom: 1.5rem;
}

.wpcf7-form label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.wpcf7-form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: #1f2937;
    background-color: #ffffff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.wpcf7-form-control:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(93, 226, 211, 0.1);
}

.wpcf7-form-control.wpcf7-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.75;
}

.wpcf7-form-control.wpcf7-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
    appearance: none;
}

.wpcf7-submit {
    background-color: var(--main-color);
    color: #ffffff;
    font-weight: 700;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 9999px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.wpcf7-submit:hover {
    background-color: #4dd1c2;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.wpcf7-submit:active {
    transform: translateY(0);
}

.wpcf7-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wpcf7-response-output {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    text-align: center;
}

.wpcf7-mail-sent-ok {
    background-color: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
    background-color: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.wpcf7-spam {
    background-color: #fef3c7;
    color: #92400e;
    border: 2px solid #f59e0b;
}

.wpcf7-validation-errors {
    background-color: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.wpcf7-form-control.wpcf7-not-valid {
    border-color: #ef4444;
}

.wpcf7-form-control.wpcf7-not-valid:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.wpcf7-checkbox,
.wpcf7-radio {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.wpcf7-list-item {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.wpcf7-list-item label {
    margin-bottom: 0;
    margin-left: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

/* Contact Form Section Specific Styles */
.contact-form-section .wpcf7-form {
    padding: 0;
}

@media (min-width: 768px) {
    .wpcf7-form p {
        margin-bottom: 2rem;
    }
    
    .wpcf7-submit {
        width: auto;
        min-width: 200px;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: block;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 10001;
    overflow-y: auto;
}

.mobile-menu:not(.hidden) {
    left: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    pointer-events: none;
}

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

.mobile-menu-content {
    padding: 2rem 1.5rem;
    padding-top: 2rem;
}

.menu-title {
    position: relative;
    text-align: center;
    letter-spacing: 0.2em;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
}

.menu-title::before,
.menu-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1.5rem;
    height: 2px;
    background: var(--main-color);
    transform: translateY(-50%);
}

.menu-title::before {
    left: 1rem;
}

.menu-title::after {
    right: 1rem;
}

.desktop-nav {
    display: none;
}

.desktop-nav.hidden {
    display: none !important;
}

/* Show mobile menu only below 992px */
@media (max-width: 991px) {
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
}

/* Show desktop nav at 992px and above */
@media (min-width: 992px) {
    .desktop-nav {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-menu {
        display: none !important;
    }
}

/* Hide mobile menu at 992px and above */
@media (min-width: 992px) {
    .mobile-menu.hidden {
        display: none !important;
    }
}

.mobile-menu-item {
    border-bottom: none;
}

.mobile-menu-item a,
.mobile-menu a {
    border-bottom: none !important;
    text-decoration: none !important;
}

.mobile-submenu {
    border-left: 2px solid #e5e7eb;
    padding-left: 12px;
}

.mobile-submenu a {
    border-bottom: none !important;
    text-decoration: none !important;
}

/* Header width fix for mobile */
header {
    max-width: 100vw;
    overflow: visible !important;
}

header .container {
    max-width: 1280px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: visible !important;
}

header .container > * {
    overflow: visible;
}

/* Footer Menu and Contact hide on mobile */
.footer-menu-contact {
    display: none;
}

@media (min-width: 768px) {
    .footer-menu-contact {
        display: grid;
    }
}
@media (max-width: 991px) {
    .sp{
        display: none !important;
    }
}

/* Tablet styles (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Ensure grid layouts don't overflow */
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    
    .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }
    
    /* Adjust spacing for tablet */
    .space-x-8 > * + * {
        margin-left: 1rem;
    }
    
    .gap-8 {
        gap: 1.5rem;
    }
    
    .gap-12 {
        gap: 2rem;
    }
    
    /* Text sizes for tablet */
    .text-4xl {
        font-size: 2rem;
        line-height: 2.5rem;
    }
    
    .text-5xl {
        font-size: 2.5rem;
        line-height: 3rem;
    }
    
    /* Footer adjustments */
    footer .grid {
        gap: 1.5rem;
    }
}

/* ============================================
   Scroll Fade-in Animation
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay variants for staggered children */
.fade-in-up.delay-1 { transition-delay: 0.1s; }
.fade-in-up.delay-2 { transition-delay: 0.2s; }
.fade-in-up.delay-3 { transition-delay: 0.3s; }
.fade-in-up.delay-4 { transition-delay: 0.4s; }
.fade-in-up.delay-5 { transition-delay: 0.5s; }

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-in-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   Page Watermark (縦書き)
   ============================================ */
.page-watermark {
    position: fixed;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    pointer-events: none;
    z-index: 0;
    user-select: none;
    opacity: 0.12;
    color: var(--main-color);
    font-family: 'Arial Black', 'Arial', sans-serif;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .page-watermark {
        font-size: 3rem;
        right: 0.5rem;
        opacity: 0.09;
    }
}

/* ============================================
   Section Background Images (透過背景)
   ============================================ */
.section-bg-image {
    position: relative;
}

.section-bg-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.section-bg-image > * {
    position: relative;
    z-index: 1;
}

/* 各ページ用の背景画像 */
.section-bg-tanbo::before {
    background-image: url('images/top-tanbo.jpg');
}

.section-bg-juku03::before {
    background-image: url('images/juku03.jpg');
}

.section-bg-juku01::before {
    background-image: url('images/juku01.png');
}

.section-bg-kids::before {
    background-image: url('images/kids.jpg');
}

.section-bg-top-kids::before {
    background-image: url('images/top-kids.jpg');
}

.section-bg-restran::before {
    background-image: url('images/top-restran.jpg');
}

.section-bg-staff::before {
    background-image: url('images/staff.jpg');
}

/* ============================================
   Color Overlay Gradients (カラーオーバーレイ)
   ============================================ */
.section-color-overlay {
    position: relative;
}

.section-color-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.section-color-overlay > * {
    position: relative;
    z-index: 1;
}

/* メインカラーの右→透明グラデーション */
.overlay-main-right::after {
    background: linear-gradient(to left, var(--main-color, #5de2d3), transparent);
    opacity: 0.08;
}

/* メインカラーの上→透明グラデーション */
.overlay-main-top::after {
    background: linear-gradient(to bottom, var(--main-color, #5de2d3), transparent);
    opacity: 0.10;
}

/* メインカラーの下→透明グラデーション */
.overlay-main-bottom::after {
    background: linear-gradient(to top, var(--main-color, #5de2d3), transparent);
    opacity: 0.10;
}

/* ============================================
   Orb Animation (写真入り玉・ふわふわアニメーション)
   ============================================ */
@keyframes orb-float-1 {
    0%   { transform: translateY(0px)   translateX(0px); }
    25%  { transform: translateY(-22px) translateX(10px); }
    50%  { transform: translateY(-12px) translateX(-8px); }
    75%  { transform: translateY(-28px) translateX(6px); }
    100% { transform: translateY(0px)   translateX(0px); }
}
@keyframes orb-float-2 {
    0%   { transform: translateY(0px)   translateX(0px); }
    30%  { transform: translateY(-18px) translateX(-12px); }
    60%  { transform: translateY(-30px) translateX(8px); }
    100% { transform: translateY(0px)   translateX(0px); }
}
@keyframes orb-float-3 {
    0%   { transform: translateY(0px)   translateX(0px); }
    20%  { transform: translateY(-25px) translateX(-6px); }
    55%  { transform: translateY(-10px) translateX(14px); }
    80%  { transform: translateY(-20px) translateX(-4px); }
    100% { transform: translateY(0px)   translateX(0px); }
}
@keyframes orb-float-4 {
    0%   { transform: translateY(0px)   translateX(0px); }
    40%  { transform: translateY(-15px) translateX(10px); }
    70%  { transform: translateY(-26px) translateX(-10px); }
    100% { transform: translateY(0px)   translateX(0px); }
}

.orb-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.18),
        inset 0 0 0 3px #5EE2D3;
    opacity: 1;
}

/* 各玉の位置・サイズ・アニメーション */
.orb-1 {
    width: 270px;
    height: 270px;
    left: 3%;
    top: 10%;
    animation: orb-float-1 9s ease-in-out infinite;
    background-position: top center !important;
}
.orb-2 {
    width: 150px;
    height: 150px;
    right: 5%;
    top: 12%;
    animation: orb-float-2 11s ease-in-out infinite;
    animation-delay: 1.5s;
}
.orb-3 {
    width: 170px;
    height: 170px;
    left: 8%;
    bottom: 12%;
    animation: orb-float-3 10s ease-in-out infinite;
    animation-delay: 3s;
}
.orb-4 {
    width: 130px;
    height: 130px;
    right: 4%;
    bottom: 18%;
    animation: orb-float-4 12s ease-in-out infinite;
    animation-delay: 0.8s;
}

@media (max-width: 768px) {
    .orb-1 { width: 110px; height: 110px; left: 1%;  top: 10%; }
    .orb-2 { width:  90px; height:  90px; right: 2%; top: 8%;  }
    .orb-3 { width: 100px; height: 100px; left: 2%;  bottom: 8%; }
    .orb-4 { width:  80px; height:  80px; right: 2%; bottom: 12%; }
}

@media (prefers-reduced-motion: reduce) {
    .orb {
        animation: none;
    }
}

/* ============================================
   Floating Shapes Animation (juku page)
   ============================================ */
.floating-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    opacity: 0;
    animation: shape-float linear infinite;
}

/* 三角形 */
.floating-shape.triangle {
    width: 0;
    height: 0;
    border-style: solid;
    background: transparent !important;
}
.floating-shape.triangle::after { display: none; }

/* 四角形・ひし形 */
.floating-shape.square {
    border-radius: 4px;
}

/* 丸 */
.floating-shape.circle {
    border-radius: 50%;
}

/* 六角形 */
.floating-shape.hexagon {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

@keyframes shape-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120px) rotate(720deg);
        opacity: 0;
    }
}

/* 各図形の個別設定 */
.floating-shape:nth-child(1)  { left:  5%; width: 24px; height: 24px; animation-duration: 14s; animation-delay:  0s;   opacity: 0.18; }
.floating-shape:nth-child(2)  { left: 12%; width: 14px; height: 14px; animation-duration: 18s; animation-delay:  2s;   opacity: 0.14; }
.floating-shape:nth-child(3)  { left: 22%; width: 32px; height: 32px; animation-duration: 11s; animation-delay:  4s;   opacity: 0.12; }
.floating-shape:nth-child(4)  { left: 34%; width: 18px; height: 18px; animation-duration: 16s; animation-delay:  1s;   opacity: 0.16; }
.floating-shape:nth-child(5)  { left: 45%; width: 28px; height: 28px; animation-duration: 13s; animation-delay:  3s;   opacity: 0.13; }
.floating-shape:nth-child(6)  { left: 55%; width: 20px; height: 20px; animation-duration: 19s; animation-delay:  5s;   opacity: 0.15; }
.floating-shape:nth-child(7)  { left: 65%; width: 36px; height: 36px; animation-duration: 12s; animation-delay:  0.5s; opacity: 0.11; }
.floating-shape:nth-child(8)  { left: 74%; width: 16px; height: 16px; animation-duration: 17s; animation-delay:  2.5s; opacity: 0.17; }
.floating-shape:nth-child(9)  { left: 83%; width: 26px; height: 26px; animation-duration: 15s; animation-delay:  4.5s; opacity: 0.13; }
.floating-shape:nth-child(10) { left: 91%; width: 22px; height: 22px; animation-duration: 10s; animation-delay:  1.5s; opacity: 0.15; }
.floating-shape:nth-child(11) { left: 18%; width: 30px; height: 30px; animation-duration: 20s; animation-delay:  6s;   opacity: 0.10; }
.floating-shape:nth-child(12) { left: 58%; width: 12px; height: 12px; animation-duration: 13s; animation-delay:  3.5s; opacity: 0.16; }

/* 三角形は border trick で描く */
.floating-shape.triangle:nth-child(1)  {
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 22px solid currentColor;
}
.floating-shape.triangle:nth-child(4)  {
    width: 0; height: 0;
    border-left:  9px solid transparent;
    border-right:  9px solid transparent;
    border-bottom: 16px solid currentColor;
}
.floating-shape.triangle:nth-child(8)  {
    width: 0; height: 0;
    border-left:  8px solid transparent;
    border-right:  8px solid transparent;
    border-bottom: 14px solid currentColor;
}

@media (prefers-reduced-motion: reduce) {
    .floating-shape { animation: none; opacity: 0; }
}

/* ============================================
   ① Header Scroll Shrink Effect
   ============================================ */
header {
    transition: box-shadow 0.35s ease, background-color 0.35s ease;
}

header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.10);
    background-color: rgba(255, 255, 255, 0.99) !important;
}

header.scrolled .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* ============================================
   ③ Hero H1 Gradient Shimmer
   ============================================ */
.main-visual h1 {
    background: linear-gradient(
        105deg,
        #1a1a1a 0%,
        #1a1a1a 30%,
        var(--main-color) 50%,
        #1a1a1a 70%,
        #1a1a1a 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hero-shimmer 7s ease-in-out infinite;
}

@keyframes hero-shimmer {
    0%   { background-position: 100% center; }
    100% { background-position: -100% center; }
}

@media (prefers-reduced-motion: reduce) {
    .main-visual h1 {
        background: none;
        -webkit-text-fill-color: initial;
        color: #1a1a1a;
        animation: none;
    }
}

/* ============================================
   ④ Counter Number Display
   ============================================ */
.count-num {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}
}