/* header{
    background-image: url(imges/img_main.jpg);
}
.hedeimage img{
    with:150px;
} */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    line-height: 1.6;
}

/* ===== ヘッダースタイル ===== */
header {
    position: relative;
    background-color: #f5f5f5;
    text-align: center;
    width: 100%;
}

/* フロントページのヘッダー */
.home header {
    background-color: #f5f5f5;
    text-align: center;
}

/* フロントページ以外のヘッダー */
.site-header {
    height: 250px;
    position: relative;
    background-color: #FFB74D;
    margin-top:-50px;
    padding: 0;
    top: 0;
}


body.admin-bar {
    padding-top: 0;
}

/* フロントページでの管理バー対応 */
body.admin-bar.home {
    padding-top: 0;
}

body.admin-bar.home header {
    margin-top: 0;
}

/* ヘッダーアイコンのデフォルト表示設定 */
.header-close-icon {
    display: none !important;
}

.header-menu-icon {
    display: block;
}

/* ===== メインコンテンツスタイル ===== */
/* フロントページのメイン */
.home main {
    position: relative;
    min-height: 400px;
}

/* 固定ページのmain（page.php）はスタイルリセット */
.page main.page-main {
    position: static;
    min-height: auto;
}


/* ページコンテナ */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
}


/* メインビジュアル背景 */
.main-visual {
    position: relative;
    background-image: url(images/img_main.jpg);
    background-size: contain; /* PC向けにデフォルトでcontainに設定 */
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #ececec;
    padding-bottom: 150px;
    min-height: 900px;
    width: 100%;
}

/* メニューボタン */
/* .menu-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.menu-item {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 5px;
    text-align: center;
    width: 80px;
} */
/* 右上ボタンエリア */
.header-buttons {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 右上メニューボタン */
.header-menu-button {
    cursor: pointer;
    /* background: rgba(0, 200, 83, 0.95); */
    padding: 12px;
    /* border-radius: 50%; */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    position: relative;
    z-index: 2; /* メニューボタンを上に */
}

.header-menu-button:hover {
    background: rgba(0, 168, 68, 0.95);
    transform: scale(1.1);
}

.header-menu-icon,
.header-close-icon {
    width: 80px;
    height: 80px;
    display: block;
}

/* お問合せボタン */
.contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-top: -20px; 重ね配置のためのマイナスマージン */
}

.contact-button a {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: rgba(255, 235, 59, 0.95); */
    padding: 12px;
    /* border-radius: 50%; */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    width: 80px;
    height: 80px;
    position: relative;
    z-index: 1; /* お問合せボタンを下に */
}

.contact-button a:hover {
    /* background: rgba(255, 193, 7, 0.95); */
    transform: scale(1.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    display: block;
}

/* 左上の小さなメニューボタンは非表示 */
.menu-toggle {
    display: none;
}

/* オーバーレイメニュー */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;
    background: rgb(31 175 79 / 95%);
    z-index: 1000;
    transition: right 0.4s ease;
    overflow-y: auto;
}

.menu-overlay.active {
    right: 0;
}

.overlay-menu {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    padding: 40px 30px;
}

.overlay-menu ul,
.overlay-menu .overlay-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    width: 100%;
}

.overlay-menu li {
    margin: 15px 0;
}

.overlay-menu a {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 15px;
    border-radius: 6px;
    display: block;
}

.overlay-menu a:hover {
    color: #045827;
    background: rgba(0, 200, 83, 0.1);
    transform: scale(1.1);
}

/* メインタイトル（フロントページ専用） */
.home h1 {
    font-size: 68px;
    font-weight: bold;
    padding: 20px 15px;
    line-height: 110%;
    text-align: center;
    color: #ffffff;
    background-color: rgb(135 127 127 / 50%);
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin-top: 0;
    margin-bottom: 0;
    z-index: 10;
}

/* ページタイトル（フロントページ以外） */
.page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 0;
    font-weight: bold;
    background-color: transparent;
}

/* 大学生の写真部分 */
.student-photos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: absolute;
    bottom: 30px; 
    left: 0;
    right: 0;
    z-index: 20;
}

.student-photos img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: #fff solid 7px;
}

/* 実績部分 - 修正箇所 */
.stats {
    background-color: #FFB74D;
    color: #fff;
    padding-top: 80px;
    padding-bottom: 0px;
    font-weight: bold;
    font-size: 28px;
    position: absolute;
    bottom: -180px;
    left: 0;
    right: 0;
    z-index: 5;
}

.stats p {
    margin-top: -25px;
    font-size: 52px;
}

.highlight {
    font-size: 92px;
    color: #fbff00;
}

main {
    position: relative;
    top:180px;
    z-index: 30;
    background-color: #fff;
    margin-bottom: 150px;
}

#bt-area{
    padding-top: 10px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 15px;
}

.cta-button {
    display: flex;
    text-decoration: none;
    padding: 15px 40px;
    line-height: 130%;
    border-radius: 5px;
    text-align: center;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    transition: all 0.3s ease;
}

/* 左側のボタン - 現状維持（白背景、緑の枠線） */
.cta-button:first-child {
    background-color: #fff;
    border: 2px solid #4CAF50;
    color: #4CAF50;
    font-size: 38px;
}

/* 右側のボタン - 黄色の塗りつぶし */
.cta-button:last-child {
    background-color: #FFEB3B;
    border: 2px solid #FFEB3B;
    color: #547b56;
    font-size: 38px;
    font-weight: bold;
}

/* マウスオーバー時の効果 - 影をつける */
.cta-button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Features Section Styling */

#features {
    background-color: #4CAF50;
    padding: 20px 10px 40px;
    color: #fff;
    text-align: center;
    position: relative;
    margin-top: 40px;
    background-image: url(images/wave.svg);
    background-position: bottom;
    background-repeat: no-repeat;
}

#features h2 {
    font-size: 72px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: bold;
    line-height: 1.2;
}
#features .small{
    font-size: 60%;
}
.feature-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 110px;
}

.feature-item {
    position: relative;
    background-color: #fff;
    border-radius: 20px;
    padding: 25px 20px;
    margin-top: 30px;
    color: #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 365px; /* PC向けにデフォルトで幅を設定 */
    /* display: flex; PC向けにデフォルトでflexboxを使用
    flex-wrap: wrap; */
}

.feature-point {
    position: absolute;
    top: -48px;
    left: 0px;
    background-color: #FFEB3B;
    color: #3c73a1;
    font-weight: bold;
    width: 160px;
    height: 100px;
    border-radius: 10px 50px 50px 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1;
    z-index: 2;
}
.feature-point span:first-child {
    font-size: 28px;
    margin-bottom: 2px;
    margin-left: -20px;
}

.feature-point span:last-child {
    font-size: 50px;
    font-weight: bold;
    margin-left: -20px;
}

/* .feature-left, .feature-right {
    width: 50%; PC向けにデフォルトで幅を50%に設定
}

.feature-right {
    padding-left: 15px; PC向けにパディングを設定
} */

.feature-title {
    font-size: 28px;
    font-weight: bold;
    margin: 35px 0 15px;
    line-height: 1.5;
    text-align: center;
    color: #53a232;
    letter-spacing: -2px;
}

.feature-image {
    width: 100%;
    max-width: 280px;
    height: 170px;
    margin: 15px auto;
    /* border-radius: 5px; */
    display: block;
    object-fit: cover;
    border: 3px solid #53a232;
}

.feature-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 15px 0;
    text-align: left;
    font-size: 19px;
    font-weight: bold;
    text-align: center;
}

/* pタグ間の線 */
.first-description {
    border-bottom: 3px solid #0e0d0d;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 22px;

}

#infomation {
    padding: 20px 15px 40px;
    max-width: 1200px; /* PC表示用に幅を広げる */
    margin: 0 auto;
}

/* 横並び用のコンテナ */
.info-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 中央揃えに変更 */
    gap: 20px;
    width: 100%; /* 100%に変更 */
    margin: 0 auto; /* 中央に配置 */
}

.info-box {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    /* 固定幅から柔軟な幅に変更 */
    flex: 1 1 calc(33.333% - 20px);
    min-width: 300px; /* 最小幅を小さくして調整 */
    max-width: 400px; /* 最大幅を設定 */
}

.info-title {
    font-size: 34px;
    font-weight: bold;
    padding: 10px 15px;
    text-align: center;
    color: #333;
    border-bottom: 3px solid;
    width: 100%; /* 固定幅から100%に変更 */
    margin: 0 auto; /* 中央に配置 */
}

.info-content {
    padding: 20px;
    text-align: center;
    border: 2px solid;
    border-radius: 10px;
    margin-top: 5px;
    min-height: 450px;
    width: 100%; /* 固定幅から100%に変更 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


/* 料金セクションのスタイル */
.fee-box .info-title {
    border-bottom-color: #FFC107;
    margin: 0 0 5px 0;
}

.fee-box .info-content {
    border:4px solid #FFC107;
    background-color: #fff;
}

.fee-image img {
    width: 100%;
}

.fee-main {
    font-size: 18px;
    margin-bottom: 10px;
}

.fee-price {
    font-size: 32px;
    font-weight: bold;
}

.fee-tax {
    font-size: 14px;
}

.fee-sub {
    font-size: 23px;
    line-height: 1.5;
}

/* 場所セクションのスタイル */
.location-box .info-title {
    border-bottom-color: #F48FB1;
    margin: 0 0 5px 0;
}

.location-box .info-content {
    border:4px solid#F48FB1;
    background-color: #fff;
}

.map-container {
    margin-bottom: 15px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 280px;
}

.location-address {
    font-size: 12px;
    margin-bottom: 10px;
    text-align: left;
}

.location-note {
    font-size: 23px;
    line-height: 1.5;
}

/* カレンダーセクションのスタイル */
.calendar-box .info-title {
    border-bottom-color: #4FC3F7;
    margin: 0 0 5px 0;
}

.calendar-box .info-content {
    border:4px solid #4FC3F7;
    background-color: #fff;
}

.calendar-placeholder {
    /* background-color: #4FC3F7; */
    padding: 0px;
    margin-bottom: 15px;
}

.calendar-placeholder img {
    width: 100%;;
}

.calendar-info {
    font-size: 23px;
    line-height: 1.5;
}

.info-footer {
    text-align: center;
    font-size: 26px;
    font-weight: bold;
    margin-top: 20px;
    color: #000000;
}
/* Nagare Section Styling */
.nagare {
    /* max-width: 1026px;  */
    /* padding: 40px; */
    margin:10px auto;
    /* background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
}

/* 1カラムレイアウトに変更 */
.nagare-columns {
    display: block;
    margin-bottom: 40px;
}

/* 各カラム - 幅を広げて余白を追加 */
.nagare-column {
    width: 1026px;
    /* border: 1px solid #e0e0e0; */
    border-radius: 8px;
    padding: 20px;
    background-color: white;
    margin: 0 auto;
    margin-bottom: 30px;
}

/* カラムタイトル */
.nagare-column-title {
    /* background-color: #4CAF50; */
    background: linear-gradient(
        to right,
        #4CAF50 0%,
        #4CAF50 10%,
        #bde7be 10%,
        #bde7be 90%,
        #4CAF50 90%,
        #4CAF50 100%
    );
    /* color: white; */
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    margin: -20px -20px 20px -20px;
    font-size: 30px;
    font-weight: bold;
}

/* ステップのスタイル - 横並びレイアウトに修正 */
.nagare-step {
    border-bottom: 1px dashed #979696;
    padding: 20px 0;
    transition: background-color 0.3s;
}

.nagare-step:last-child {
    /* border-bottom: none; */
}

.nagare-step:hover {
    background-color: #f5f5f5;
}

/* ヘッダー部分を調整して横幅全体に */
.nagare-step-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
    width: 100%;
}

.step-number {
    color: #4CAF50;
    font-weight: bold;
    display: flex;
    align-items: baseline;
    width: 120px; /* STEP部分の幅を固定 */
    flex-shrink: 0;
}

.step-number::before {
    content: "STEP";
    margin-right: 5px;
    font-size: 28px;
}

.step-number span {
    font-size: 50px;
}

.step-toggle {
    color: #4CAF50;
    font-size: 42px;
    font-weight: bold;
    cursor: pointer;
    margin-left: auto; /* 右端に配置 */
}

/* テキスト部分を横並びに調整 */
.nagare-step p {
    font-size: 20px;
    line-height: 1.6;
    margin: 5px 0;
    padding-left: 0; /* パディングを削除 */
    flex-grow: 1; /* 利用可能な幅を使用 */
    display: inline-block; /* インラインブロック要素に変更 */
    vertical-align: middle; /* 垂直方向の配置を中央に */
    margin-left: 20px; /* STEP番号との間隔 */
    margin-right: 20px; /* プラスマークとの間隔 */
}

.nagare-step p a {
    color: #0000FF;
    text-decoration: underline;
}

/* 全体のレイアウトを調整 - フレックスボックスを使用 */
.nagare-step {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

/* Instructor Intro Section Styling */
/* Instructor Intro Section Styling */
#instructor-intro {
    background: linear-gradient(to bottom, #4CAF50 0%, #4CAF50 60%, #fff 60%, #fff 100%);
    padding: 20px 0px;
    border-radius: 90px 90px 0 0;
    margin: 10px 0;
}

.intro-header {
    text-align: center;
    margin-bottom: 10px;
}

.intro-title {
    background-color: #4CAF50;
    color: white;
    font-size: 72px;
    font-weight: bold;
    padding: 0px;
    border-radius: 30px 30px 0 0;
    margin: 0 auto 0;
    margin-bottom: 25px;
    max-width: 450px;
    line-height: 1.3;
    border-bottom: 4px solid #FFEB3B;
}

.intro-title .small{
    font-size: 60%;
}

.instructor-card {
    background-color: white;
    border-radius: 20px;
    padding: 30px 20px;
    margin: 0 auto 30px;
    max-width: 365px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.instructor-photo {
    width: 185px;
    height: 185px;
    background-color: #F8BBD0;
    border-radius: 50%;
    margin: 0 auto 15px;
    overflow: hidden; /* 画像が円からはみ出ないようにする */
    display: flex;
    align-items: center;
    justify-content: center;
}

.instructor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を円に収める */
    border-radius: 50%;
}

.instructor-name {
    font-size: 30px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #333;
}

.instructor-details {
    text-align: left;
}

.instructor-subject {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.instructor-message {
    font-size: 20px;
    line-height: 1.5;
    font-weight: bold;
}

.tutor-features {
    background-color: #4CAF50;
    color: white;
    padding: 5px;
    border-radius: 0 0 30px 30px;
    margin: 0 auto;
}

.tutor-features {
    background-color: #4CAF50;
    color: white;
    padding: 5px;
    border-radius: 0 0 30px 30px;
    margin: 0 auto;
    /* max-width: 300px; */
}

.features-title {
    font-size: 72px;
    font-weight: bold;
    text-align: center;
    margin: 10px 0;
    line-height: 1.2;
}

.features-title span {
    font-size: 60%;
}

.tutor-features div{
    width: 108%;
    background-color: #ffffff;
    margin-left: -5%;

}

.tutor-features div.triangle {
    width: 130px;
    height: 45px;
    background-color: #4CAF50;
    margin: 0 auto;
    margin-bottom: -30px;
    padding-bottom: 30px;
    clip-path: polygon(0 0, 100% 0%, 50% 100%);
}

/* Q&Aセクション - 白背景で交互配置 */
.qa-section {
    background-color: white;
    padding: 40px 20px;
    margin: 20px 0;
    margin-bottom: 0;
}

.qa-grid {
    max-width: 850px;
    margin: 0 auto;
}

.qa-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.qa-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-content {
    /* background-color: #F8BBD0; */
    padding: 15px;
    /* border-radius: 15px; */
    font-size: 14px;
    line-height: 1.4;
    width: 100%;
}

.question {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 28px;
}

.answer {
    margin: 0;
    font-size: 24px;
}

.qa-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qa-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 10px; */
    background-color: #f0f0f0;
}

        /* 家庭教師セクション */
        .home-tutor-section {
            margin: 0 auto;
            width: 100%;
        }

        /* 黄色背景部分 */
        .connection-section {
            background-color: #FFEB3B;
            padding: 15px;
            text-align: center;
            position: relative;
            margin-bottom: 20px;
            padding: 16px;
            font-size: 16px;
            font-weight: 400;
            line-height: 1.5;
            color: #000000;
        }

        .connection-section::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            border-style: solid;
            border-width: 20px 25px 0 25px;
            border-color: #FFEB3B transparent transparent;
            translate: -50% 100%;
        }

        .connection-text {
            color: #333;
            font-size: 48px;
            font-weight: bold;
            margin: 0;
        }

        .connection-text span{
            font-size: 75%;
            letter-spacing: -2px;
        }

        /* 緑背景部分 */
        .home-tutor-content {
            background-color: #4CAF50;
            padding: 30px 20px;
            border-radius: 0 0 20px 20px;
            text-align: center;
            width: 100vw;
            margin-left: calc(-50vw + 50%);
        }

        .home-tutor-title {
            color: white;
            font-size: 42px;
            font-weight: bold;
            margin: 0 0 20px 0;
            line-height: 1.3;
        }

        .home-tutor-title span {
            font-size: 200%;
        }

        .location-tags {
            margin: 20px 0;
        }

        .location-tag {
            background-color: #FF9800;
            color: white;
            padding: 10px 20px;
            border-radius: 37px;
            margin: 0 10px;
            font-weight: bold;
            font-size: 48px;
        }
        .location-tag span {
            background-color: #911d1d;
        }

        .location-ok {
            color: white;
            font-size: 47px;
            font-weight: bold;
            margin: 20px 0;
        }

        .tutor-description {
            position: relative;
            width: 500px;
            height: 280px;
            align-items: center;
            justify-content: center;
            margin: 40px auto;
            padding: 30px;
        }

        /* 右上コーナー */
        .tutor-description::before {
            content: '';
            position: absolute;
            width: 100px;
            height: 100px;
            top: -2px;
            right: -2px;
            border-top: 10px solid #f7e604;
            border-right: 10px solid #f7e604;
            border-left: none;
            border-bottom: none;
        }

        /* 左下コーナー */
        .tutor-description::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: -2px;
            width: 100px;
            height: 100px;
            border-top: none;
            border-right: none;
            border-bottom: 10px solid #f7e604;
            border-left: 10px solid #f7e604;
        }

        .one-on-one {
            color: white;
            font-size: 40px;
            font-weight: bold;
            margin-bottom: 5px;
            line-height: 1.3;
        }

        .price-note {
            color: white;
            font-size: 95px;
            margin: 0;
        }

        /* 講師カードリストの横並び設定（PC用） */
        .instructor-list {
            margin-top: 80px;
            margin-bottom: 30px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            align-items: flex-start;
        }

        .instructor-profile-card {
            border: 8px solid #FFEB3B;
            border-radius: 0 15px 15px 15px;
            width: 400px;
            padding: 0px;
            margin-bottom: 60px;
            position: relative;
            margin-top: 40px;
            background-color: white;
            flex: 0 0 auto; /* フレックスアイテムとして固定幅 */
        }

        .profile-name {
            position: absolute;
            top: -44px;
            left: -8px;
            background-color: #FFEB3B;
            font-size: 26px;
            line-height: 1;
            font-weight: bold;
            margin: 0;
            padding: 8px 20px;
            border-radius: 15px 15px 0 0;
            min-width: 100px;
            text-align: center;
        }

        .profile-content {
            padding: 30px 15px 15px;
            display: flex;
            gap: 15px;
        }

        .profile-left {
            display: flex;
            flex-direction: column;
            width: 180px;
            padding: 10px 0;
        }

        .profile-photo {
            width: 145px;
            height: 145px;
            background-color: #F8BBD0;
            border-radius: 50%;
            margin-bottom: 10px;
            overflow: hidden; /* 画像が円からはみ出ないようにする */
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .profile-photo img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* 画像を円に収める */
            border-radius: 50%;
        }

        .profile-info {
            text-align: left;
        }

        .profile-right {
            width: 180px;
            text-align: left;
        }

        .profile-rate, .profile-transport, .profile-content-text, .profile-subjects, .profile-hobby {
            font-size: 18px;
            line-height: 1.3;
            margin-bottom: 6px;
            font-weight: bold;
        }
        
.profile-rate span, .profile-transport span, .profile-content-text span, .profile-subjects span, .profile-hobby span {
    font-size: 150%;
}


.instructor-stats {
    background-color: #FF9800;
    color: white;
    padding: 20px;
    margin-top: -20px;
    /* border-radius: 15px; */
    text-align: center;
}

.stats-text {
    font-size: 32px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
}

.stats-text span{
    font-size: 72px;
    color: #FFEB3B;
}

.footer {
    padding: 32px 0 20px;
    background-color: #ffffff;
}
.wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}
.footer_menu {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
    font-size: 14px;
}

.footer_menu li {
    margin: 0.5em 1em;
}
li {
    list-style-type: none;
}
.mb24 {
    margin-bottom: 24px;
}
.footer_copy {
    font-size: 14px;
    text-align: center;
}



@media screen and (max-width: 960px) {
    .info-box {
        flex: 1 1 calc(50% - 20px); /* タブレット表示では2列に */
        min-width: 300px;
    }
    .menu-overlay {
        width: 100%;
        right: -100%;
    }
    
    .overlay-menu a {
        font-size: 18px;
    }
    
    .overlay-menu li {
        margin: 12px 0;
    }

}

@media screen and (min-width: 451px) and (max-width: 960px) {
    .overlay-menu a {
        font-size: 18px;
    }
    
    .header-menu-button,
    .contact-button a {
        width: 65px;
        height: 65px;
        padding: 14px;
    }
    
    .header-menu-icon,
    .header-close-icon,
    .contact-icon {
        width: 65px;
        height: 65px;
    }
    
    .contact-button {
        margin-top: -25px;
    }

        .instructor-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        max-width: 900px;
        margin: 60px auto 30px;
    }
    
    .instructor-profile-card {
        width: 350px;
        margin-bottom: 40px;
    }
    
    /* 2つまで横並び、3つ目は下に */
    .instructor-profile-card:nth-child(1),
    .instructor-profile-card:nth-child(2) {
        flex: 0 0 calc(50% - 15px);
        max-width: 350px;
    }
    
    .instructor-profile-card:nth-child(3) {
        flex: 0 0 350px;
    }

}

/* スマホ画面サイズ専用設定 (955px未満) */
@media screen and (max-width: 450px) {
    header{
        max-height: 300px;
        /* margin-bottom: -25px; */
    }

   .header-buttons {
        top: 15px;
        right: 15px;
    }
    
    .header-menu-button,
    .contact-button a {
        width: 50px;
        height: 50px;
        padding: 10px;
    }
    
    .header-menu-icon,
    .header-close-icon,
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-button {
        margin-top: -15px;
    }

    .overlay-menu a {
        font-size: 16px;
    }
    
    .overlay-menu li {
        margin: 10px 0;
    }

    /* メインビジュアルのスマホ用設定 */
    .main-visual {
        background-size: contain;
        position: relative;
        top:-276px;
    }
    .home h1{
        font-size: 30px;
        padding: 10px 0;
    }
    .student-photos img {
        border: #fff solid 3px;
    }
    .stats{
        top:595px;
        bottom: unset;
        padding-top: 40px;
    }
    .stats p{
        font-size: 28px;
        padding: 5px 0px;
        margin-top: -15px;;
    }
    .highlight{
        font-size: 38px;
    }
    .student-photos{
        position: relative;
        top: 565px;
    }
    .cta-buttons {
        gap: 16px;
        padding: 10px 15px;
    }
    .cta-button {
        padding: 5px 10px;
    }
    .cta-button:first-child {
        font-size: 16px;
    }
    .cta-button:last-child {
        font-size: 16px;
    }
    #features{
        margin-top: 10px;
    }
    #features h2{
        font-size: 53px;
        margin-bottom: 50px;
    }
    .feature-container {
        margin-bottom: 50px;
    }
    .feature-item {
        width: 100%;
        display: block; /* スマホ向けにflexboxを解除 */
    }
    
    .feature-left, .feature-right {
        width: 100%;
        margin: 0 auto;
    }
    
    .feature-right {
        margin-top: 15px;
        /* padding-top: 15px; */
        padding-left: 0; /* スマホ向けにパディングをリセット */
    }

    .info-box {
        flex: 1 1 100%; /* モバイル表示では1列に */
        min-width: unset;
    }
    
    .fee-price {
        font-size: 28px;
    }
    
    .info-title {
        font-size: 35px;
    }
    
    .info-content {
        padding: 15px 10px;
    }
    
    .placeholder-text {
        font-size: 16px;
    }

    .nagare {
        padding: 20px 15px;
        padding-bottom: 0px;
        /* margin: 20px 10px; */
        max-width: 100%;
    }
    
    .nagare-column-title {
        font-size: 24px;
        padding: 10px;
        margin-bottom: 0;
    }
    
    .nagare-column {
        width: 100%;
        padding: 5px;
    }
    .nagare-step {
        padding: 15px 0;
        flex-direction: column; /* スマホでは縦並びに */
        align-items: flex-start;
    }
    
    .nagare-step-header {
        width: 100%;
        /* margin-bottom: 10px; */
    }
    
    .step-number {
        width: auto;
    }
    
    .step-number::before {
        font-size: 25px;
    }
    
    .step-number span {
        font-size: 45px;
    }
    
    .step-toggle {
        font-size: 35px;
    }
    
    .nagare-step p {
        font-size: 22px;
        margin-left: 0;
        padding-left: 10px;
        width: 100%;
        margin-top: 10px;
    }

    #instructor-intro {
        padding: 20px 0px;
    }
    
    .intro-title {
        font-size: 53px;
        padding: 0px;
        max-width: 300px;
    }

    .intro-title .small {
        font-size: 60%;
    }
    
    .instructor-card {
        width: 100%;
        padding: 20px 15px;
    }
    
    .tutor-features {
        max-width: 400px;
    }
    
    .features-title {
        font-size: 58px;
    }
    
    .qa-section {
        padding: 20px 0px;
    }
    
    .qa-grid {
        max-width: 100%;
    }
    
    .qa-pair {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .qa-content {
        padding: 10px;
        font-size: 11px;
    }

    .question {
        font-size: 18px;
    }

    .answer {
        font-size: 14px;
    }

    .qa-image img {
        width: 100%;
        height: 100%;
    }
    
    .home-tutor-section {
        max-width: 100%;
        width: 100%;
    }
    
    .home-tutor-content {
        border-radius: 0;
        margin-left: 0;
        width: 100%;
    }
    
    .connection-text {
        font-size: 40px;
    }
    
    .home-tutor-title {
        font-size: 35px;
    }
    
    .location-tag {
        font-size: 36px;
        padding: 8px 15px;
        margin: 0 5px;
    }
    
    .location-ok {
        font-size: 40px;
    }
    
    .one-on-one {
        font-size: 27px;
    }
    .tutor-description {
        width: 100%;
        height: 220px;
    }

    .price-note {
        font-size: 70px;
    }

    .instructor-profile-card {
        width: 100%;
    }
    .profile-content {
        flex-direction: row;
        padding: 25px 10px 10px;
        gap: 8px;
    }
    
    .profile-left {
        flex-direction: column;
        align-items: center;
        /* flex: 1; */
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
        margin-bottom: 5px;
    }
    
    .profile-info {
        /* text-align: center; */
        flex: none;
        width: 160px;
    }
    
    .profile-right {
        /* flex: 1.5; */
    }
    
    .profile-rate, .profile-transport, .profile-content-text, .profile-subjects, .profile-hobby {
        font-size: 17px;
    }
    
    .stats-text {
        font-size: 22px;
    }

    .stats-text span {
        font-size: 37px;
    }

    .footer_menu {
        font-size: 12px;
    }

        .mb24 {
        margin-bottom: 12px;
    }

    .instructor-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        margin-top: 60px;
    }
    
    .instructor-profile-card {
        width: 100%;
        margin-bottom: 40px;
    }

}

/* アニメーション効果 */
.menu-overlay.active .overlay-menu li {
    animation: slideInFromRight 0.5s ease forwards;
    opacity: 0;
}

.menu-overlay.active .overlay-menu li:nth-child(1) { animation-delay: 0.1s; }
.menu-overlay.active .overlay-menu li:nth-child(2) { animation-delay: 0.2s; }
.menu-overlay.active .overlay-menu li:nth-child(3) { animation-delay: 0.3s; }
.menu-overlay.active .overlay-menu li:nth-child(4) { animation-delay: 0.4s; }
.menu-overlay.active .overlay-menu li:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInFromRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* サイト名表示エリア（フロントページ以外） */
.site-branding {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 100;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.3;
    max-width: 300px;
}

.site-title a {
    color: white;
    text-decoration: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.site-title a:hover {
    color: #f0f0f0;
}


/* ===== ページコンテンツスタイル ===== */
.page-header {
    margin-bottom: 40px;
    text-align: left;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.page-content {
    color: #333;
    font-size: 1.1rem;
    text-align: left;
    margin-top: 0;
}

.page-content h2 {
    font-size: 1.8rem;
    color: #333;
    margin: 40px 0 20px 0;
    border-left: 4px solid #FFB74D;
    padding-left: 15px;
}

.page-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 30px 0 15px 0;
}

.page-content p {
    margin-bottom: 20px;
}

/* サイト名とページコンテンツのレスポンシブ対応 */
@media screen and (max-width: 768px) {
    /* フロントページ以外のサイトタイトル */
    .site-title {
        font-size: 1.5rem;
        max-width: 250px;
    }
    
    
    .page-content {
        font-size: 1rem;
    }
    
    .page-content h2 {
        font-size: 1.5rem;
    }
    
    .page-content h3 {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    /* フロントページ以外のサイトタイトル */
    .site-title {
        font-size: 1.2rem;
        max-width: 200px;
    }
    
    /* ページタイトル（フロントページ以外）のスマホ用 */
    .page-title {
        font-size: 1.8rem;
    }
    
}

/* ===== フォームスタイル ===== */
.register_form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.register_form dl {
    margin-bottom: 20px;
}

.register_form dt {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.register_form dd {
    margin: 0;
}

.register_form input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.register_form input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.register_form_btn {
    background-color: #4CAF50;
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.register_form_btn:hover {
    background-color: #45a049;
}

.contact_form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .register_form {
        padding: 15px;
        margin: 0 10px;
    }
    
    .register_form input[type="text"] {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .register_form_btn {
        padding: 10px 30px;
        font-size: 16px;
    }
}

/* SNSセクション */
#sns-area {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
}

.sns-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.sns-button {
    display: inline-block;
    text-decoration: none;
    border-radius: 50%;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
}

.sns-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.sns-button img {
    width: 60px;
    height: 60px;
    display: block;
}

/* .sns-button.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
} */

/* .sns-button.line {
    background-color: #00c300;
} */

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    #sns-area {
        padding: 30px 20px;
    }
    
    .sns-buttons {
        gap: 20px;
    }
    
    .sns-button img {
        width: 50px;
        height: 50px;
    }
    
    .sns-button {
        padding: 12px;
    }
}