/* 統合されたスタイルシート - 西心塾 */

/* ==================== リセットとベース設定 ==================== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* 段落の基本スタイル */
p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

/* セクション間の余白 */
section {
    margin-bottom: 3em;
}

/* 最後の要素の余白を削除 */
p:last-child,
h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child {
    margin-bottom: 0;
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    opacity: 1;
}

a:hover {
    opacity: 0.5;
}

/* ==================== ヘッダー部分 ==================== */
.site-header {
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    position: relative !important;
    display: block !important;
    justify-content: unset !important;
    z-index: 10001;
    margin-bottom: 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

/* ロゴとタイトル */
.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-section .logoimg {
    height: 60px;
    width: auto;
}

.title-section img {
    height: 40px;
    width: auto;
}

/* 連絡先とCTAボタン */
.header-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tel-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
}

.tel-link:hover {
    color: #FF0000;
    opacity: 1;
}

.cta-button {
    background: #FF0000;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #CC0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,0,0,0.3);
    opacity: 1;
}

/* ==================== ナビゲーション部分 ==================== */
.navbar-r {
    background: #FF0000;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 10000;
    margin-top: 0;
}

/* ハンバーガーメニューボタン（デフォルトは非表示） */
.mobile-menu-toggle {
    display: none;
}

/* PC表示時は戻るボタンを非表示 */
.submenu-back {
    display: none;
}

/* モバイル用の常時表示メニュー（デフォルトは非表示） */
.mobile-quick-nav {
    display: none;
}

/* ナビゲーションメニュー */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
}

.dropmenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navmain {
    display: flex;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    font-size: 0;
}

.navmain > li {
    flex: 1;
    position: relative;
    display: inline-block;
    width: 16.66666%;
    margin: 0;
    padding: 0;
    background: #cc0000;
    text-align: center;
}

.navmain > li > a {
    display: block;
    padding: 15px 10px;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    transition: background 0.3s ease;
}

.navmain > li > a:hover {
    background: #CC0000;
    opacity: 1;
}

/* サブメニュー */
.navmain li ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 200px;
    background: #CC0000;
    list-style: none;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 10;
}

.navmain li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navmain li ul li {
    width: 100%;
    display: block;
}

.navmain li ul li a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s ease;
    text-align: left;
}

.navmain li ul li:last-child a {
    border-bottom: none;
}

.navmain li ul li a:hover {
    background: #990000;
    opacity: 1;
}

/* ==================== メインコンテンツ ==================== */
.indexmain {
    width: 70%;
    margin: 0 auto;
    padding: 0 1% 0 1%;
}

.main {
    width: 80%;
    border-left: 2px solid #dcdcdc;
    border-right: 2px solid #dcdcdc;
    margin: 0 auto;
    padding: 0 1% 0 1%;
}

/* ヒーローセクション（スライダー） */
.hero-section {
    margin-top: 0;
}

.slider {
    border: none !important;
}

.slider img {
    width: 100%;
    border-radius: 20px;
}

.bx-wrapper {
    background-color: transparent;
    margin: 0px auto;
    border: none !important;
    box-shadow: none;
}

/* bxSlider ページャーボタンのスタイル */
.bx-wrapper .bx-pager {
    text-align: center;
    font-size: 0;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 100;
}

.bx-wrapper .bx-pager.bx-default-pager a {
    background: rgba(255, 255, 255, 0.5);
    text-indent: -9999px;
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 8px;
    outline: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bx-wrapper .bx-pager.bx-default-pager a:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

.bx-wrapper .bx-pager.bx-default-pager a.active {
    background: #FF0000;
    border-color: #FF0000;
    width: 40px;
    height: 12px;
    border-radius: 20px;
    transform: scale(1);
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.4);
}

/* ホバー時のエフェクト */
.bx-wrapper .bx-pager.bx-default-pager a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 0, 0, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.bx-wrapper .bx-pager.bx-default-pager a:hover::before {
    width: 30px;
    height: 30px;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .bx-wrapper .bx-pager {
        bottom: 15px;
    }
    
    .bx-wrapper .bx-pager.bx-default-pager a {
        width: 10px;
        height: 10px;
        margin: 0 6px;
    }
    
    .bx-wrapper .bx-pager.bx-default-pager a.active {
        width: 30px;
        height: 10px;
    }
}

/* ==================== ニュースセクション ==================== */
.news-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    padding: 80px 0;
    position: relative;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
}

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

.startpic {
    width: 90%;
    margin: 2% auto;
}

.news {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.news:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.news h2 {
    background: #FF0000;
    color: white;
    margin: 0;
    padding: 25px 40px;
    font-size: 1.8rem;
    font-weight: 700;
    position: sticky;
    top: 0;
    z-index: 10;
    overflow: hidden;
    text-align: center;
    font-family: "ヒラギノ明朝　ProN";
    border-radius: 25px 25px 0 0 !important;
}

.news h2::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100px;
    width: 200px;
    height: 100%;
    background: rgba(255,255,255,0.1);
    transform: skewX(-20deg);
    transition: right 0.5s ease;
}

.news:hover h2::after {
    right: -50px;
}

.scroll {
    height: 450px;
    overflow-y: auto;
    padding: 0;
    position: relative;
    border-radius: 0 0 20px 20px;
    background: white;
}

.scroll::-webkit-scrollbar {
    width: 6px;
}

.scroll::-webkit-scrollbar-track {
    background: transparent;
}

.scroll::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.scroll::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* ニュースリスト */
.news ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.news ul li {
    padding: 20px 40px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 1px;
    cursor: pointer;
}

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

.news ul li:hover {
    background: #fafafa;
    padding-left: 50px;
}

.news ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #FF0000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.news ul li:hover::before {
    transform: translateX(0);
}

.news ul li strong {
    background: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.news ul li strong a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    position: relative;
}

.news ul li strong a::before {
    content: "\f0f6";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 1rem;
    color: #666;
}

.news ul li strong a::after {
    content: "\f061";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.9rem;
    color: #FF0000;
    transition: transform 0.3s ease;
}

.news ul li strong a:hover {
    color: #FF0000;
    background: #fff;
    border-color: #FF0000;
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(255,0,0,0.2);
    opacity: 1;
}

.news ul li strong a:hover::after {
    transform: translateX(5px);
}

/* 重要バッジ */
.news ul li span[style*="background: #FF0000"] {
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%) !important;
    color: white !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    margin-left: 12px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    animation: pulse 2s infinite;
}

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

/* ==================== 見出しスタイル ==================== */
h1 {
    font-size: 28px;
    text-align: center;
    margin: 0;
}

h2 {
    font-size: 20px;
    background-color: #FF0000;
    padding: 5px;
    color: #ffffff;
    text-align: center;
    border-radius: 25px;
    font-family: "ヒラギノ明朝　ProN";
    margin: 3% 0;
}

h3 {
    border-left: 5px solid #800000;
    border-bottom: 3px solid #b22222;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 10px;
    margin: 3% 0;
}

h4 {
    color: #000000;
    border-radius: 10px;
}

strong {
    background: linear-gradient(transparent 60%, #ffff66 60%);
}

/* ==================== コンテンツボックス ==================== */
.content-box {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: space-around;
    width: auto;
    margin: 0;
    padding: 0;
}

.content-item {
    flex-direction: column;
    background-color: #ffffff;
    padding: 10px 10px;
    border: solid #ffffff;
    border-width: 1px;
    width: 30%;
    margin: 10px 0px;
    border-radius: 10px;
    box-shadow: 1px 1px 10px -5px rgba(0.3,0.7,0.4,0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.content-item1 {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    padding: 10px 10px;
    border: solid #ffffff;
    border-width: 1px;
    width: 30%;
    margin: 10px auto;
    border-radius: 10px;
    min-height: 700px;
    height: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-item1:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.content-item1 h2 {
    background: linear-gradient(135deg, #20a999 0%, #1a8f82 100%);
    margin: 0;
    padding: 20px;
    border-radius: 0;
}

.content-item4 {
    display: flex;
    background-color: #ffffff;
    padding: 10px 10px;
    width: 100%;
    margin: 10px auto;
    border-radius: 10px;
}

.content-item7 {
    background-color: #ffffff;
    padding: 10px 10px;
    width: 30%;
    margin: 10px auto;
    border-radius: 10px;
}

/* 画像ボックス */
.image-box {
    width: 90%;
    margin: 0 auto;
    padding: 5px 0px;
}

.image-item {
    width: 100%;
    height: auto;
    margin: 0;
    text-align: center;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.image-item:hover {
    transform: scale(1.05);
}

/* メインボックス */
.mainbox, .mainbox1 {
    display: block;
    width: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 400px;
    height: auto;
    overflow-y: auto;
    max-height: 500px;
    padding-bottom: 20px;
}

.mainbox p, .mainbox1 p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin: 5px 25px;
    line-height: 1.8;
}

.mainbox ul, .mainbox1 ul {
    margin: 10px 25px;
    padding-left: 20px;
    line-height: 1.8;
}

.mainbox li, .mainbox1 li {
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* PC表示時の調整 */
@media (min-width: 769px) {
    .content-box {
        display: flex;
        align-items: stretch;
    }
    
    .content-item, .content-item7, .content-item1 {
        display: flex;
        flex-direction: column;
        height: auto;
    }
    
    .content-item1 {
        min-height: auto;
        height: auto;
    }
    
    .mainbox, .mainbox1 {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 350px;
        max-height: none;
        overflow-y: visible;
    }
    
    /* 詳細ボタンを下部に配置 */
    .content-item .details,
    .content-item7 .details {
        margin-top: auto;
    }
}

/* ==================== その他の要素 ==================== */
/* 動画セクション */
.video-section {
    padding: 60px 0;
    background: #fff;
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 詳細ボタン */
.details {
    display: block;
    text-align: center;
    border: solid #000000;
    border-width: 1px;
    margin: 0 auto;
    width: 90%;
    margin-top: auto;
    background: #FF0000;
    color: white;
    transition: background 0.3s ease;
    border-radius: 10px;
}

.details:hover {
    background: #CC0000;
    opacity: 1;
}

.details h4 {
    color: white;
    margin: 15px 0;
}

/* コラムセクション */
.koramu {
    border-radius: 10px;
    background-color: #ffffff;
    flex-direction: row;
    display: flex;
    margin: 10px auto;
}

/* 固定CTA - 削除（使用していないため） */
.fixed-cta {
    display: none;
}

.content-item6 {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.form1 {
    display: flex;
    flex-direction: row;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.form1 a {
    width: 50%;
    margin: 0;
}

.details1 {
    text-align: center;
    border: solid #ffe4c4;
    border-width: 1px;
    margin: 0;
    width: 100%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.details1:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
    opacity: 1;
}

.details1 h4 {
    color: #ffffff;
    margin: 0.75em 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ==================== フッター ==================== */
.site-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-bottom: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.footer-info h3,
.footer-links h4,
.footer-social h4 {
    color: white;
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #bdc3c7;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: white;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

/* ==================== その他のスタイル ==================== */
/* 画像の角丸 */
main img,
.indexmain img {
    border-radius: 15px;
}

.mainpic,
.taikenn {
    width: 80%;
    padding: 5%;
    border-radius: 10px;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-item,
.content-item1,
.content-item7 {
    animation: fadeInUp 0.6s ease-out;
}

/* ==================== レスポンシブ対応 ==================== */
@media (max-width: 768px) {
    /* ヘッダーのレスポンシブ */
    .site-header {
        padding: 10px 0;
    }
    
    .header-container {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
        align-items: center;
    }
    
    .logo-section {
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        flex-wrap: wrap;
        flex-direction: column;
    }
    
    .logo-section .logoimg {
        height: auto;
        max-width: 100%;
        width: 100%;
        max-height: 60px;
        object-fit: contain;
    }
    
    .title-section {
        text-align: center;
        width: 100%;
    }
    
    .title-section img {
        height: 30px;
        max-width: 100%;
    }
    
    .header-contact {
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 0 10px;
    }
    
    .tel-link {
        font-size: 14px;
        white-space: nowrap;
    }
    
    .tel-link i {
        font-size: 12px;
        margin-right: 3px;
    }
    
    .cta-button {
        padding: 8px 20px;
        font-size: 14px;
        white-space: nowrap;
    }
    
    /* ナビゲーションのレスポンシブ */
    .navbar-r {
        position: sticky !important;
        min-height: 55px;
        top: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        z-index: 9999 !important;
        background: #FF0000;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    /* navbar-rがsite-headerの位置で止まるように調整 */
    .navbar-r {
        top: 0 !important;
    }
    
    .nav-container {
        width: 100%;
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
    }
    
    /* モバイル用の常時表示メニュー項目 */
    .mobile-quick-nav {
        display: flex;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        gap: 5px;
        align-items: center;
    }
    
    .mobile-quick-nav a {
        color: white;
        text-decoration: none;
        font-size: 11px;
        font-weight: 600;
        padding: 6px 10px;
        border-radius: 20px;
        background: rgba(255,255,255,0.15);
        transition: all 0.3s ease;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 4px;
        height: 32px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .mobile-quick-nav a i {
        font-size: 14px;
    }
    
    .mobile-quick-nav a:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(0,0,0,0.15);
        opacity: 1;
    }
    
    .mobile-quick-nav a:active {
        transform: translateY(0);
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255,255,255,0.1);
        border: 2px solid white;
        color: white;
        font-size: 20px;
        width: 40px;
        height: 40px;
        padding: 0;
        cursor: pointer;
        border-radius: 4px;
        z-index: 10000;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: rgba(255,255,255,0.2);
    }
    
    .dropmenu {
        display: none;
        position: fixed;
        top: 55px;
        left: 0;
        width: 100%;
        height: calc(100vh - 55px);
        flex-direction: column;
        background: #FF0000;
        padding-top: 0;
        padding-bottom: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 9998;
        -webkit-overflow-scrolling: touch;
        margin-top: 0;
    }
    
    .dropmenu.active {
        display: flex;
    }
    
    /* モバイルでホーム、サポート、料金を非表示 */
    .dropmenu.active .navmain > li:nth-child(1),
    .dropmenu.active .navmain > li:nth-child(3),
    .dropmenu.active .navmain > li:nth-child(4) {
        display: none;
    }
    
    .navmain {
        flex-direction: column;
        width: 100%;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    
    .navmain > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .navmain > li:first-child {
        border-top: none;
    }
    
    .navmain > li > a {
        padding: 15px 20px;
        text-align: left;
        font-size: 16px;
    }
    
    /* モバイルでのサブメニュー */
    .navmain li ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        box-shadow: none;
        background: #CC0000;
        border-left: 3px solid #990000;
        margin: 0;
        padding-top: 0;
    }
    
    .navmain li:hover > ul {
        display: block;
    }
    
    
    .navmain li ul li {
        background: #B30000;
    }
    
    .navmain li ul li a {
        padding: 12px 20px 12px 40px;
        font-size: 14px;
        background: transparent;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        position: relative;
    }
    
    .navmain li ul li:last-child a {
        border-bottom: none;
    }
    
    .navmain li ul li a::before {
        content: "▸";
        position: absolute;
        left: 20px;
        color: rgba(255,255,255,0.6);
    }
    
    .navmain li ul li a:hover {
        background: rgba(0,0,0,0.3);
        padding-left: 45px;
    }
    
    /* コンテンツのレスポンシブ */
    .indexmain {
        width: 100%;
        margin: 0;
        padding: 15px 10px;
    }
    
    .main {
        width: 100%;
        border-left: none;
        border-right: none;
        margin: 0;
        padding: 15px 10px;
    }
    
    .startpic {
        width: 93%;
        margin: 4% auto;
    }
    
    /* ニュースセクションのモバイル対応 */
    .news-section {
        padding: 50px 0;
    }
    
    .news {
        border-radius: 15px;
    }
    
    .news h2 {
        padding: 15px 20px;
        font-size: 1.2rem;
    }
    
    .news ul li {
        padding: 15px 20px;
    }
    
    .news ul li:hover {
        padding-left: 30px;
    }
    
    .news ul li strong {
        font-size: 1rem;
    }
    
    .news ul li strong a {
        padding: 4px 10px;
        font-size: 0.95rem;
    }
    
    .news ul li strong a::before,
    .news ul li strong a::after {
        font-size: 0.85rem;
    }
    
    .scroll {
        height: 400px;
    }
    
    /* モバイル時のニュースヘッダー */
    .news h2 {
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    /* コンテンツボックスのレスポンシブ */
    .content-box {
        padding: 0;
    }
    
    .content-item {
        display: block;
        width: 100%;
        height: 100%;
        margin: 10px auto;
    }
    
    .content-item1 {
        display: block;
        width: 99%;
        height: auto;
        margin: 0;
        padding: 0;
    }
    
    .content-item4 {
        width: 100%;
        display: block;
    }
    
    .content-item7 {
        width: 100%;
        padding: 10px 0px;
    }
    
    .koramu {
        display: block;
    }
    
    .mainbox, .mainbox1 {
        height: auto;
        width: 100%;
        min-height: auto;
        max-height: none;
        overflow-y: visible;
    }
    
    .image-box {
        width: 97%;
    }
    
    /* フッターのレスポンシブ */
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* その他の調整 */
    p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 1.5em;
    }
    
    .mainpic2 {
        display: block !important;
        width: 95%;
        margin: 0 auto;
    }
    
    .mainpic1 {
        display: none !important;
    }
}

/* 超小型デバイス対応 */
@media (max-width: 380px) {
    /* 基本的な文字サイズと余白 */
    body {
        font-size: 14px;
        line-height: 1.7;
    }
    
    p {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 1.2em;
    }
    
    h1 {
        font-size: 22px;
        margin: 15px 0;
    }
    
    h2 {
        font-size: 18px;
        padding: 8px 10px;
        margin: 20px 0;
        border-radius: 25px !important;
    }
    
    h3 {
        font-size: 16px;
        padding: 8px;
        margin: 15px 0;
    }
    
    h4 {
        font-size: 15px;
        margin: 10px 0;
    }
    
    /* ヘッダー調整 */
    .header-container {
        gap: 8px;
        padding: 8px 10px;
    }
    
    .logo-section {
        gap: 8px;
    }
    
    .logo-section .logoimg {
        height: auto;
        max-height: 50px;
        width: 100%;
        object-fit: contain;
    }
    
    .title-section img {
        height: 25px;
    }
    
    .header-contact {
        gap: 5px;
        padding: 0;
    }
    
    .tel-link {
        font-size: 11px;
    }
    
    .tel-link i {
        font-size: 10px;
    }
    
    .cta-button {
        padding: 5px 10px;
        font-size: 11px;
        border-radius: 15px;
    }
    
    /* ナビゲーション調整 */
    .navbar-r {
        min-height: 55px;
    }
    
    .mobile-quick-nav {
        left: 8px;
        gap: 3px;
    }
    
    .mobile-quick-nav a {
        font-size: 10px;
        padding: 5px 8px;
        height: 28px;
        gap: 3px;
    }
    
    .mobile-quick-nav a i {
        font-size: 11px;
    }
    
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
        font-size: 18px;
        right: 10px;
    }
    
    /* コンテンツエリア */
    .indexmain, .main {
        padding: 10px 8px;
    }
    
    /* ニュースセクション */
    .news-section {
        padding: 30px 0;
    }
    
    .startpic {
        width: 95%;
        margin: 2% auto;
    }
    
    .news h2 {
        padding: 12px 15px;
        font-size: 1.1rem;
    }
    
    .news ul li {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .news ul li strong {
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .news ul li strong a {
        padding: 3px 8px;
        font-size: 13px;
        gap: 5px;
    }
    
    .news ul li strong a::before,
    .news ul li strong a::after {
        font-size: 11px;
    }
    
    .scroll {
        height: 350px;
    }
    
    /* コンテンツボックス */
    .content-box {
        margin: 10px 0;
    }
    
    .content-item,
    .content-item1,
    .content-item7 {
        padding: 10px;
        margin: 8px auto;
        width: 98%;
    }
    
    .content-item1 {
        height: auto;
    }
    
    /* 画像調整 */
    .image-item {
        border-radius: 10px;
    }
    
    .mainpic, .taikenn {
        width: 90%;
        padding: 3%;
    }
    
    /* フッター */
    .footer-container {
        padding: 0 10px;
        gap: 20px;
    }
    
    .footer-info h3,
    .footer-links h4,
    .footer-social h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .footer-links li {
        margin-bottom: 5px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    /* 詳細ボタン */
    .details {
        width: 95%;
        padding: 8px;
    }
    
    .details h4 {
        margin: 10px 0;
        font-size: 14px;
    }
    
    /* フォーム */
    .form1 {
        flex-direction: column;
    }
    
    .form1 a {
        width: 100%;
    }
    
    .details1 h4 {
        margin: 0.5em 0;
        font-size: 14px;
    }
}

/* PC表示時の特別な調整 */
@media (min-width: 769px) {
    body {
        padding-top: 0;
    }
    
    .site-header {
        position: relative;
        z-index: 1002;
        margin-bottom: 0;
    }
    
    .navbar-r {
        position: sticky;
        top: 0;
        z-index: 1001;
        margin-top: 0;
    }
    
    /* PC表示時のh2は角丸 */
    h2 {
        border-radius: 25px !important;
    }
    
    /* ニュースセクションのh2は上部のみ角丸 */
    .news h2 {
        border-radius: 25px 25px 0 0 !important;
    }
}

/* ==================== 追加の特定ページ用スタイル ==================== */
/* study.html用のスタイル */
.mainpic10 {
    display: block;
    width: 80%;
    margin: 20px auto;
}

.mainpic11 {
    display: none;
}

.youtube {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px auto;
}

.youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* access.html用のスタイル */
.google-maps {
    position: relative;
    padding-bottom: 75%; /* 4:3のアスペクト比 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px auto;
}

.google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.kousyascene {
    margin: 20px 0;
}

.kousyascene ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.kousyascene ul li {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.kousyascene ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.kousyascene ul li img {
    width: 100%;
    height: auto;
    display: block;
}

.otoiawase {
    margin: 40px 0;
}

/* モバイル時の特別な調整 */
@media (max-width: 768px) {
    /* h2要素の角丸を追加 */
    h2 {
        font-size: 18px;
        padding: 10px 15px;
        margin: 20px 0;
        border-radius: 25px !important;
    }
    
    .mainpic10 {
        display: none;
    }
    
    .mainpic11 {
        display: block;
        width: 95%;
        margin: 20px auto;
    }
    
    .kousyascene ul {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    /* h2要素の角丸を追加 */
    h2 {
        font-size: 16px;
        padding: 8px 12px;
        margin: 18px 0;
        border-radius: 25px !important;
    }
    
    .kousyascene ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .google-maps {
        margin: 15px 0;
    }
}

/* フッター */
#footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
    margin-bottom: 60px; /* 固定CTAボタンの高さ分の余白を追加 */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.footer-info p {
    color: #ccc;
    margin: 5px 0;
    font-size: 0.9em;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
}

.footer-info a:hover {
    color: #FF0000;
}

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

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF0000;
}

.footer-copyright {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #555;
    margin-top: 30px;
}

.footer-copyright p {
    color: #aaa;
    margin: 0;
    font-size: 0.9em;
}

/* モバイル対応 */
@media (max-width: 768px) {
    /* h2要素の角丸を追加 */
    h2 {
        font-size: 18px;
        padding: 10px 15px;
        margin: 20px 0;
        border-radius: 25px !important;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        margin-bottom: 20px;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links li {
        margin: 0;
    }
}

/* 無料体験の流れ */
.trial-flow {
    background: #f8f9fa;
    padding: 40px 20px;
    margin: 40px auto;
    border-radius: 20px;
    max-width: 1200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.trial-flow h3 {
    text-align: center;
    color: #333;
    font-size: 1.8em;
    margin-bottom: 30px;
    border: none;
    padding: 0;
}

.trial-flow h3 i {
    color: #FF0000;
    margin-right: 10px;
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.flow-step {
    flex: 1;
    min-width: 150px;
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.flow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: #FF0000;
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
}

.flow-step h4 {
    color: #333;
    font-size: 1.2em;
    margin: 15px 0 10px;
    border: none;
}

.flow-step p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
    line-height: 1.5;
}

.flow-arrow {
    color: #FF0000;
    font-size: 2em;
    flex: 0 0 auto;
}

/* モバイル対応 */
@media (max-width: 768px) {
    /* h2要素の角丸を追加 */
    h2 {
        font-size: 18px;
        padding: 10px 15px;
        margin: 20px 0;
        border-radius: 25px !important;
    }
    
    .trial-flow {
        padding: 30px 15px;
        margin: 30px 10px;
    }
    
    .trial-flow h3 {
        font-size: 1.4em;
        margin-bottom: 20px;
    }
    
    .flow-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .flow-step {
        width: 100%;
        padding: 20px 15px;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
        margin: 10px 0;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 1.2em;
    }
    
    .flow-step h4 {
        font-size: 1.1em;
        margin: 10px 0 8px;
    }
    
    .flow-step p {
        font-size: 0.85em;
    }
}

@media (max-width: 380px) {
    .trial-flow {
        padding: 20px 10px;
        margin: 20px 5px;
    }
    
    .trial-flow h3 {
        font-size: 1.2em;
    }
    
    .flow-step {
        padding: 15px 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 1em;
    }
    
    .flow-step h4 {
        font-size: 1em;
    }
    
    .flow-step p {
        font-size: 0.8em;
    }
}
EOF < /dev/null
