/*
Theme Name: WELLTY GYM Theme
Author: Your Name
Description: WELLTY GYMのオリジナルWordPressテーマです。
Version: 1.0
*/

/* 基本設定と変数 */
:root {
    --primary-color: #5d4f45; /* メインの茶色 */
    --accent-color: #9c8c81; /* やや薄い茶色 */
    --background-color: #fff;
    --text-color: #333;
    --light-gray: #f7f7f7;
}

.sp_none{
    display: block;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden; /* 横スクロールを防止 */
}

.page-wrapper {
 padding-top: 120px; /* ← この行を追加してヘッダーとの重なりを解消 */
    position: relative;
    overflow: hidden;
 

}

/* 背景の斜線 */
.page-wrapper::before,
.page-wrapper::after {
    content: '';
    position: absolute;
    background-color: #edeae8;
    width: 150%;
    height: 400px;
    z-index: -1;
    transform-origin: 0 0;
}

.page-wrapper::before {
   top: 1050px;
    transform: rotate(-15deg);
    left: -10%;
}
.page-wrapper::after {
    top: 2500px; /* 位置を調整 */
    transform: rotate(-15deg);
    left: -10%;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.section {
    padding: 80px 0;
}
/* --- NEW: アンカーリンクのスクロール位置調整 --- */
section[id] {
    scroll-margin-top: 100px; /* PC時のヘッダーの高さ */
}

/* セクションタイトル */
.section-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: self-start;
    margin-bottom: 60px;
}
.section-title-box {
    background-color: var(--primary-color);
    padding: 10px 40px;
    display: inline-block;
}
.section-title {
    font-family: serif;
    font-size: 2rem;
    color: #fff;
    font-weight: normal;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}
.section-title-jp {
    font-size: 1rem;
    font-weight: 400;
    color: var(--primary-color);
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: 1px solid var(--primary-color);
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover {
    opacity: 0.8;
}

/* ヘッダーエリア */
.header-area {
    padding: 40px 0;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.header-tagline {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.8;
}
.header-logo {
text-align: left;
z-index: 1;
}

/* ハンバーガーメニュー (右上固定) */
.hamburger-menu {
    width: 36px;
    height: 24px;
    cursor: pointer;
    z-index: 1700;
    position: fixed;
    top: 32px;       /* 上からの位置を微調整 */
    right: 30px;      /* 右からの位置を微調整 */
}
.hamburger-menu span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    border-radius: 2px;
}
.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

.hamburger-menu.active span { background-color: #fff; }
.hamburger-menu.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ナビゲーションメニュー */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: var(--primary-color);
    z-index: 1300;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 100px 50px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.nav-menu.active {
    transform: translateX(0);
}
body.nav-open {
    overflow: hidden;
}
.nav-content { color: #fff; }
.nav-menu .header-logo {
    color: #fff;
}
.nav-logo-link {
    text-align: center;
    display: block;
    margin-bottom: 50px;
    text-decoration: none;
}
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.nav-list li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 15px 0;
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: opacity 0.3s;
}
.nav-list li a:hover {
    opacity: 0.7;
}
.nav-instagram {
    display: block;
    margin-top: 40px;
    width: 40px;
    height: 40px;
}
.nav-instagram svg {
    width: 100%;
    fill: #fff;
    transition: opacity 0.3s;
}
.nav-instagram:hover {
    opacity: 0.7;
}


/* ヘッダーラッパー */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px; /* ヘッダーの高さを指定 */
    z-index: 1000;
    background-color: #fff; /* 常に白い背景を指定 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* 常に影を指定 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-sizing: border-box;
}
.site-header.scrolled {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ロゴのスタイル */
h1 a .logo{
    max-width: 100%;
}


/* ロゴのスタイル */
.site-logo {
    position: fixed;
    top: 30px; /* 上からの位置 */
    left: 30px; /* 左からの位置 */
    z-index: 1001;
    width: 30%; /* ロゴの幅 */
}


.site-logo img {
    width: 100%;
    height: auto;
    border-radius: 0; /* ロゴは角丸にしない場合 */
}


/* ナビゲーションオーバーレイ */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1300; /* メニュー(1400)より下、他より上 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
}
body.nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
}


/* ヒーローセクション */
.hero {
    padding: 20px 0 80px;
}
/* .hero-sign {
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
} */
.hero-title {
    font-family: '游明朝','Yu Mincho',YuMincho,'Hiragino Mincho Pro',serif;
    font-size: 4.5rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.8;
    color: #42210b;
    text-align: center;
    text-indent: 0.2em;

}

.hero-title span{
 padding: 2.5%;
    background: #42210b;
    color:#fff;
letter-spacing: 0.2em;
    text-indent: 0.2em;

}

.hero-title p{
    margin-bottom: 250px;
}


/* WGの特徴セクション */
.wg-features-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
    color: #42210b;
}
.wg-features-content h3 {
    font-size: 1.8rem;
    line-height: 2;
    margin-bottom: 30px;
}
.wg-features-content p {
    font-size: 1rem;
    line-height: 2;
}


/* 3つの特徴セクション */
.three-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.three-features-list li {
    display: flex;
    align-items: center;
    gap: 40px;
}
.three-features-list .feature-image {
    flex: 0 0 250px; /* 画像の幅を固定 */
}
.three-features-list .feature-text {
    flex: 1;
    color:#42210b;
}
.three-features-list h4 {
    font-size: 1.3rem;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}
.three-features-list p {
    margin: 0;
    line-height: 1.8;
}

/* お客様の声セクション */
.voice-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.voice-card {
    border: 1px solid #ddd;
    padding: 25px;
    border-radius: 8px;
}
.voice-card-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 10px;
}
.voice-card-text {
    line-height: 1.8;
}
.voice-card-meta {
    text-align: right;
    margin-top: 20px;
    color: #777;
    font-size: 0.9rem;
}

/* スタッフセクション */
.staff-header {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
}
.staff-header .section-title-wrapper {
    flex: 0 0 150px;
    align-items: flex-start;
    margin-bottom: 0;
}
.staff-header-image {
    flex: 1;
}
.staff-header-image img {
    border-radius: 20px;
}

.staff-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.staff-member {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}
.staff-member-image {
    flex: 0 0 200px;
    height: 200px;
    background-color: var(--accent-color);
    border-radius: 8px;
}
.staff-member-image-placeholder {
    flex: 0 0 200px;
    height: 200px;
    background-color: var(--accent-color);
    border-radius: 8px;
}
.staff-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.staff-member-info {
    flex: 1;
}
.staff-member-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 0 15px 0;
    position: relative;
    padding-left: 15px;
}
.staff-member-name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 1.2rem;
    background-color: var(--accent-color);
}
.staff-member-bio {
    margin: 0;
    line-height: 1.8;
}

/* お問い合わせセクション */
.contact-description {
    text-align: center;
    margin-bottom: 40px;
}
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group label span{
    color: #f00;
    font-size: 0.8rem;
    padding-left:10px ;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}
.contact-form .btn {
    width: 100%;
}

/* フッター */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* レスポンシブ対応 (スマートフォン) */
@media (max-width: 768px) {
    .sp_none{
    display: none;
}
    .section {
        padding: 60px 0;
    }
    .header-area { padding: 20px 0; }
    .header-content { flex-direction: column; gap: 10px; }
    .hamburger-menu { top: 20px; right: 20px; }
    
    .page-wrapper::before,
    .page-wrapper::after {
        height: 200px;
        width: 200%;   /* 幅を広げて隙間を防ぐ */
left: -50%;    /* 広げた分、左にずらして中央を保つ */
    }
    .page-wrapper::before { top: 600px; }
    .page-wrapper::after { top: 3200px; } /* 位置を調整 */

    .hero { padding: 10px 0 60px; }
    .hero-title { font-size: 2rem; letter-spacing: 0.1em;}

.hero-title p{
    margin-bottom: 150px;
}


    .nav-menu { width: 100%; }

        .site-header {
        height: 70px; /* ヘッダーの高さを少し低く調整 */
        padding: 0 20px;
    }

    .site-logo {
        top: 20px; /* 上からの位置 (スマホ) */
        left: 20px; /* 左からの位置 (スマホ) */
        width: 50%; /* ロゴの幅 (スマホ) */
    }
    
    .wg-features-content h3 { font-size: 1.5rem; }

    .three-features-list li {
        flex-direction: column;
        text-align: center;
    }
    .three-features-list .feature-image {
        flex: 0 0 auto;
        width: 100%;
    }

    .voice-list {
        grid-template-columns: 1fr;
    }

    .staff-header {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-bottom: 40px;
    }
    .staff-header .section-title-wrapper {
        align-items: center;
    }
    .staff-member {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .staff-member-image,
    .staff-member-image-placeholder {
        width: 150px;
        height: 150px;
        flex-basis: auto;
    }
    .staff-member-name {
        padding-left: 0;
    }
    .staff-member-name::before {
        left: 50%;
        top: -15px;
        transform: translateX(-50%);
        width: 30px;
        height: 4px;
    }
}

