/*
Theme Name: Obihiro Lash Academy
Theme URI: https://example.com/obihiro-lash-academy
Author: Claude
Description: A custom WordPress theme for Obihiro Lash Academy
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: obihiro-lash
*/

:root {
    --primary-color: #F06292;     /* メインカラー - ピンク */
    --secondary-color: #FCE4EC;   /* サブカラー - 薄いピンク */
    --dark-color: #E91E63;        /* 暗めのアクセントカラー - 濃いピンク */
    --text-color: #333;
    --light-text: #777;
    --white: #fff;
    --light-gray: #f9f9f9;
    --accent: #EC407A;            /* アクセントカラー - 鮮やかなピンク */
    --font-main: 'Noto Sans JP', sans-serif;
    --font-accent: 'Playfair Display', serif;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--white);
    font-weight: 300;
    overflow-x: hidden; /* 横スクロールを防止 */
}

/* Header styles */
header {
    background-color: var(--white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
}

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

.logo {
    color: var(--primary-color);
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

nav ul li {
    margin-left: 2.5rem;
    position: relative;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

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

nav ul li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    outline: none;
}

/* Hero section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    align-items: center;
    color: var(--white);
    margin-top: 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,1), rgba(255,255,255,0));
}

.hero-content {
    max-width: 700px;
    z-index: 1;
    animation: fadeIn 1.5s ease;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-accent);
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.9rem 2rem;
    text-decoration: none;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Section styles */
section {
    padding: 7rem 0;
}

section.alternate {
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-family: var(--font-accent);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Courses section */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.course-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.course-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.course-img {
    height: 250px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    position: relative;
}

.course-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4));
}

.course-content {
    padding: 2rem;
}

.course-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-family: var(--font-accent);
}

.course-meta {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--light-text);
    flex-wrap: wrap; /* モバイル対応のための追加 */
}

.course-meta span {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    margin-bottom: 0.5rem; /* モバイル対応のための追加 */
}

.course-meta i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.course-desc {
    margin-bottom: 1.5rem;
    color: var(--light-text);
    line-height: 1.7;
}

.course-features {
    margin-bottom: 1.5rem;
}

.course-features li {
    list-style: none;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.course-features li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.course-price {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-accent);
}

.course-btn {
    width: 100%;
    text-align: center;
}

/* Instructors section */
.instructors {
    background-color: var(--light-gray);
}

.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
}

.instructor-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.instructor-img {
    height: 350px;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.instructor-content {
    padding: 2rem;
    text-align: center;
}

.instructor-name {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-accent);
}

.instructor-role {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instructor-bio {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.instructor-social {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.instructor-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    transition: all 0.3s;
    text-decoration: none;
}

.instructor-social a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Gallery section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.gallery-item:nth-child(4) {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-title {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.gallery-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img-container {
    position: relative;
}

.about-img-main {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-img-accent {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
    border: 10px solid var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.about-exp {
    position: absolute;
    top: -30px;
    left: -30px;
    background-color: var(--primary-color);
    color: var(--white);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.about-exp span {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    font-family: var(--font-accent);
    position: relative;
    padding-bottom: 15px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.about-feature {
    display: flex;
    align-items: flex-start;
}

.about-feature i {
    color: var(--primary-color);
    margin-right: 0.7rem;
    font-size: 1.2rem;
    margin-top: 3px;
}

.about-feature-text {
    font-weight: 500;
}

/* Contact section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    background-color: var(--primary-color);
    border-radius: 12px;
    padding: 3rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/pattern.jpg');
    background-size: cover;
    opacity: 0.1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: var(--font-accent);
    position: relative;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--white);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    margin-right: 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.contact-text {
    line-height: 1.6;
}

.contact-text strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    margin-top: 2.5rem;
    flex-wrap: wrap; /* モバイル対応のための追加 */
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    margin-right: 1rem;
    margin-bottom: 1rem; /* モバイル対応のための追加 */
    transition: all 0.3s;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    background-color: var(--white);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    color: var(--text-color);
    background-color: #f9f9f9;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(240, 98, 146, 0.1);
}

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

.form-label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-right: 0.7rem;
}

.form-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* CTA section */
.cta {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-accent);
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta .btn {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
    font-size: 1rem;
    padding: 1rem 2.5rem;
}

.cta .btn:hover {
    background-color: transparent;
    color: var(--white);
}

/* CTA特別ボタン - モバイル対応 */
.btn-cta {
    display: inline-block;
    margin-top: 1rem;
}

/* Footer */
footer {
    background-color: #222;
    color: rgba(255, 255, 255, 0.7);
    padding: 5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: var(--white);
    font-family: var(--font-accent);
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-about {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-heading {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-links a i {
    margin-right: 0.7rem;
    font-size: 0.9rem;
}

.footer-contact li {
    display: flex;
    margin-bottom: 1rem;
}

.footer-contact i {
    margin-right: 1rem;
    color: var(--primary-color);
}

.footer-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.footer-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 5px;
}

.footer-gallery img {
    width: 100%;
    transition: transform 0.3s;
}

.footer-gallery a:hover img {
    transform: scale(1.1);
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Page styles */
.page-header {
    background-color: var(--primary-color);
    padding: 8rem 0 4rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--white);
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to top left, var(--white) 50%, transparent 50%);
}

.page-title {
    font-size: 3rem;
    font-family: var(--font-accent);
    margin-bottom: 1rem;
}

.page-content {
    padding-bottom: 4rem;
}

/* Success message */
.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

/* WordPress Specific Styles */
.wp-custom-logo .logo {
    display: block;
}

.wp-custom-logo .logo img {
    height: auto;
    max-height: 50px;
    width: auto;
}

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

.primary-menu li {
    margin-left: 2.5rem;
    position: relative;
}

.primary-menu li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    padding-bottom: 5px;
    display: block;
}

.primary-menu li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

.primary-menu li a:hover {
    color: var(--primary-color);
}

.primary-menu li a:hover::after {
    width: 100%;
}

/* Widget Styles */
.widget {
    margin-bottom: 2rem;
}

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

.widget ul li {
    margin-bottom: 0.8rem;
}

.widget ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* WordPress Core Styles */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* モバイルメニュー修正 */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .mobile-menu-toggle {
        display: block;
        z-index: 110;
        position: relative;
    }
    
    /* ナビゲーションメニューの修正 */
    .primary-menu {
        display: none !important; /* !important を追加して確実に非表示に */
        position: fixed; /* absolute から fixed に変更 */
        top: 0;
        left: 0;
        right: 0;
        bottom: 0; /* 全画面表示に */
        background-color: var(--white);
        flex-direction: column;
        justify-content: center; /* 中央揃え */
        padding: 4rem 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        z-index: 100;
        width: 100%;
        height: 100vh; /* 高さを画面いっぱいに */
        overflow-y: auto; /* スクロール可能に */
    }
    
    .primary-menu.show {
        display: flex !important;
    }
    
    .primary-menu li {
        margin: 0;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
    
    .primary-menu li a {
        width: 100%;
        display: block;
        padding: 0.5rem 0;
        font-size: 1.2rem; /* フォントサイズを大きく */
    }
    
    .primary-menu li a::after {
        display: none; /* モバイルではホバーエフェクトを無効化 */
    }
    
    /* ヒーローセクションの修正 */
    .hero {
        min-height: 100vh;
        height: auto;
        padding: 140px 0 60px; /* ヘッダー分の余白を確保 */
        background-attachment: scroll; /* モバイルでは固定背景を無効化 */
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .hero .btn, .hero .btn-outline {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .hero .btn-outline {
        margin-left: 0;
    }
    
    /* コースグリッドの修正 */
    .course-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .course-card {
        margin-bottom: 0;
    }
    
    .course-content {
        padding: 1.5rem;
    }
    
    /* インストラクターグリッドの修正 */
    .instructor-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .instructor-img {
        height: 300px;
    }
    
    /* ギャラリーグリッドの修正 */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 250px);
        gap: 1rem;
    }
    
    .gallery-item:nth-child(n) {
        grid-column: 1;
        height: 250px;
    }
    
    .gallery-item:nth-child(1) {
        grid-row: 1;
    }
    
    .gallery-item:nth-child(2) {
        grid-row: 2;
    }
    
    .gallery-item:nth-child(3) {
        grid-row: 3;
    }
    
    .gallery-item:nth-child(4) {
        grid-row: 4;
    }
    
    /* ギャラリーオーバーレイを常に表示 */
    .gallery-overlay {
        opacity: 1;
    }
    
    /* Aboutセクションの修正 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-img-container {
        margin-bottom: 2rem;
    }
    
    .about-img-main {
        height: 350px;
    }
    
    .about-img-accent {
        bottom: -30px;
        right: -30px;
        width: 180px;
        height: 180px;
    }
    
    .about-exp {
        width: 100px;
        height: 100px;
        top: -20px;
        left: -20px;
        font-size: 1.1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    /* コンタクトフォームの修正 */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info, .contact-form {
        padding: 2rem;
    }
    
    .contact-grid-mobile {
        display: flex;
        flex-direction: column-reverse;
    }

    /* セクション間隔の調整 */
    section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* CTAセクションの修正 */
    .cta h2 {
        font-size: 2rem;
    }
    
    .cta p {
        font-size: 1rem;
    }
    
    /* フッターの修正 */
    footer {
        padding: 3rem 0 0;
    }
    
    .footer-grid {
        gap: 2rem;
    }
}

/* 小さいスマホ画面用の追加調整 */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.8rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-img-accent {
        width: 120px;
        height: 120px;
        bottom: -15px;
        right: -15px;
    }
    
    .about-exp {
        width: 80px;
        height: 80px;
        top: -15px;
        left: -15px;
        font-size: 0.9rem;
    }
    
    .about-exp span {
        font-size: 0.7rem;
    }
    
    .course-card {
        border-radius: 8px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .form-control {
        padding: 0.8rem;
    }
    
    .contact-info, .contact-form {
        padding: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* メディアクエリの修正（ナビゲーションの表示状態改善） */
@media (min-width: 769px) {
    .primary-menu {
        display: flex !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}