/*
Theme Name: Verdegym Theme
Theme URI: https://verdegym.com
Description: Custom theme for Verdegym - Personal Training Gym
Author: Antigravity
Version: 1.0.1
Text Domain: verdegym
*/

/* Variables */
:root {
    --color-moss-green: #4A5D4F;
    --color-moss-dark: #3a4a3e;
    --color-ivory: #F8F7F2;
    --color-wood: #8B5A2B;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-white: #ffffff;
    --color-bg-gray: #f9f9f9;

    --font-heading: "Zen Old Mincho", "Yu Mincho", serif;
    --font-body: "Zen Kaku Gothic New", "Helvetica Neue", sans-serif;
    --font-en: "Outfit", sans-serif;

    --header-height: 70px;
    --admin-bar-height: 0px;
}

body.admin-bar {
    --admin-bar-height: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        --admin-bar-height: 46px;
    }
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Main Content Spacing */
main {
    margin-top: calc(var(--header-height) + var(--admin-bar-height));
    padding-bottom: 100px;
    min-height: calc(100vh - var(--header-height) - var(--admin-bar-height) - 100px);
}

/* Base Styles */
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    background-color: var(--color-white);
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

/* Hide Page Titles */
.page-title,
.entry-title {
    display: none !important;
}

/* Adjust spacing for page-header */
.page-header {
    padding: 80px 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

ul {
    list-style: none;
}

/* Utils */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.container--sm {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-40 {
    margin-bottom: 40px;
}

.text-white {
    color: var(--color-white);
}

.bg-green {
    background-color: var(--color-moss-green);
}

.bg-ivory {
    background-color: var(--color-ivory);
}

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s, transform 0.8s;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn--primary {
    background-color: var(--color-moss-green);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(74, 93, 79, 0.3);
}

.btn--primary:hover {
    background-color: var(--color-moss-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(74, 93, 79, 0.4);
}

.btn--white {
    background-color: var(--color-white);
    color: var(--color-moss-green);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn--lg {
    padding: 18px 60px;
    font-size: 1.1rem;
}

.btn--sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 70px;
    display: flex;
    align-items: center;
}

/* Admin Bar Adjustment */
body.admin-bar .header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header {
        top: 46px;
    }
}

.header__inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-moss-green);
}

.header__list {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.95rem;
}

.header__item--trial {
    margin-left: 10px;
}

.header__item--login {
    font-size: 0.9rem;
}

.header__hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    position: absolute;
    transition: 0.3s;
}

.header__hamburger span:nth-child(1) {
    top: 0;
}

.header__hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.header__hamburger span:nth-child(3) {
    bottom: 0;
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
        /* Mobile menu implementation needed later */
    }

    .header__hamburger {
        display: block;
    }
}

/* FV */
.fv {
    position: relative;
    height: calc(90vh - var(--admin-bar-height));
    /* 少し短めにして次を見せる */
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 40px;
    /* Extra room below header */
}

.fv__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.fv__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    /* 少し暗くして文字可読性UP */
}

.fv__content {
    text-align: center;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 0 20px;
}

.fv__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.4;
}

.fv__subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .fv__title {
        font-size: 2.2rem;
    }

    .fv__subtitle {
        font-size: 1rem;
    }
}

/* Section Common */
.section {
    padding: 100px 0;
}

.section:last-of-type {
    padding-bottom: 140px;
}

.section__title {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    text-align: center;
    width: 100%;
}

.section__title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--color-accent);
}

/* Intro */
.intro__text {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Concept Gallery */
.concept-gallery {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.concept-gallery__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    /* Space for scrollbar if visible */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.concept-gallery__track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.concept-gallery__track img {
    flex: 0 0 85%;
    /* Show part of next image to encourage scroll */
    scroll-snap-align: center;
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

@media (min-width: 769px) {
    .concept-gallery__track img {
        flex: 0 0 300px;
        /* Fixed width for square images on PC */
    }
}

/* Gallery Navigation */
.gallery-container {
    position: relative;
    width: 100%;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s;
    font-size: 1.2rem;
    color: var(--color-moss-green);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-nav--prev {
    left: -20px;
}

.gallery-nav--next {
    right: -20px;
}

@media (max-width: 768px) {
    .gallery-nav {
        display: none;
        /* Hide arrows on mobile, rely on swipe */
    }
}

.gallery-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.gallery-dot.is-active {
    background-color: var(--color-moss-green);
}

/* Concept */
.concept__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.concept__card {
    text-align: center;
}

.concept__icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.concept__head {
    font-size: 1.3rem;
    color: var(--color-moss-green);
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.concept__desc {
    font-size: 0.95rem;
    text-align: left;
}

@media (max-width: 768px) {
    .concept__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .concept__desc {
        text-align: center;
    }
}

/* Plans */
.plans__list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.plan-card {
    background-color: var(--color-white);
    border: 1px solid #eee;
    border-radius: 8px;
    width: 290px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card__head {
    background-color: var(--color-bg-gray);
    padding: 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid #eee;
}

.plan-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-wood);
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 20px;
    font-weight: bold;
}

.plan-card__title {
    font-size: 1.4rem;
    color: var(--color-text);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.plan-card__sub {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.plan-card__body {
    padding: 30px 20px;
}

.plan-card__price {
    text-align: center;
    font-size: 2rem;
    color: var(--color-moss-green);
    font-family: var(--font-en);
    font-weight: 700;
    margin-bottom: 20px;
}

.plan-card__price .tax {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: normal;
}

.plan-card__features {
    font-size: 0.9rem;
}

.plan-card__features li {
    margin-bottom: 10px;
    padding-left: 1.2em;
    position: relative;
}

.plan-card__features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--color-moss-green);
}

/* Trial */
.trial {
    padding: 100px 0;
}

.trial__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.mock-calendar {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.mock-calendar__note {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.mock-calendar__ui {
    height: 300px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Map */
.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Footer */
.footer {
    padding: 30px 0;
    font-size: 0.8rem;
}

/* Page Header */
.page-header {
    padding: 100px 0 60px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-moss-green);
    margin-bottom: 10px;
}

.page-subtitle {
    font-family: var(--font-en);
    color: var(--color-wood);
    font-size: 1rem;
    letter-spacing: 0.1em;
}

/* Mock UI Specifics */
.trial-flow {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.trial-step {
    text-align: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.trial-step::after {
    content: '▶';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ddd;
}

.trial-step:last-child::after {
    display: none;
}

.step-num {
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background: var(--color-moss-green);
    color: white;
    border-radius: 50%;
    margin: 0 auto 10px;
    font-weight: 700;
}

.mock-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.form-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .trial-flow {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .trial-step::after {
        content: '▼';
        right: 50%;
        top: auto;
        bottom: -20px;
        transform: translateX(50%);
    }
}

/* Access & Map */
.access__content {
    max-width: 800px;
    margin: 0 auto;
}

.map-outer {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: #f0f0f0;
}

.map-outer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* FAQ */
.faq-category {
    margin-bottom: 60px;
}

.faq-category__title {
    font-size: 1.4rem;
    color: var(--color-moss-green);
    border-bottom: 2px solid var(--color-moss-green);
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.faq-item {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
}

.faq-item__question {
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    padding-right: 50px;
    list-style: none;
    /* Hide default triangle */
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__icon {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    transition: transform 0.3s;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: var(--color-moss-green);
    transform: translate(-50%, -50%);
}

.faq-item__icon::before {
    width: 16px;
    height: 2px;
}

.faq-item__icon::after {
    width: 2px;
    height: 16px;
    transition: transform 0.3s;
}

details[open] .faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    /* + to - animation */
}

.faq-item__answer {
    padding: 0 20px 20px;
    color: var(--color-text);
    line-height: 1.8;
}



/* Legal Pages */
.legal-page .page-title {
    display: block !important;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    padding: 20px;
    border: 1px solid #eee;
    text-align: left;
}

.legal-table th {
    background-color: #fcfcfc;
    width: 30%;
    font-weight: 700;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--color-moss-green);
}

.legal-content h3 {
    font-size: 1.1rem;
    margin: 40px 0 15px;
    border-left: 4px solid var(--color-moss-green);
    padding-left: 15px;
}

.legal-content p {
    margin-bottom: 15px;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {

    .legal-table th,
    .legal-table td {
        display: block;
        width: 100%;
    }

    .legal-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }

    .legal-table td {
        padding-top: 5px;
    }
}

/* Footer Links */
.footer__nav {
    margin-bottom: 20px;
}

.footer__list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer__list a:hover {
    text-decoration: underline;
}