/*
Theme Name: Motivation Studio
Theme URI: https://motivationstudio.net
Author: Motivation Studio LLC
Author URI: https://motivationstudio.net
Description: モチベーションスタジオ合同会社の公式サイトテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: motivation-studio
Tags: business, corporate, custom-menu, featured-images, responsive
*/

/* ========================================
   リセット & ベーススタイル
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット - モチスタブランド（WCAG準拠コントラスト比） */
    --color-primary: #F4E4A6;
    --color-primary-dark: #C4A000;
    --color-primary-light: #FFF9E6;
    --color-accent: #2A2A2A;
    --color-accent-light: #4A4A4A;
    --color-text-dark: #1A1A1A;
    --color-text-medium: #3D3D3D;
    --color-text-light: #6B6B6B;
    --color-bg-white: #FFFFFF;
    --color-bg-cream: #FFFBF0;
    --color-bg-beige: #FFF9E6;
    --color-border: #D0D0D0;

    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-2xl: 8rem;
    --spacing-3xl: 12rem;

    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text-dark);
    line-height: 1.8;
    background-color: var(--color-bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* コンテナ */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

/* WordPress管理バー対応 */
.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}

/* ========================================
   ナビゲーション
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem clamp(1.5rem, 5vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-accent);
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary-dark);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--color-primary-dark);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-cta {
    background: var(--color-accent);
    color: var(--color-bg-white);
    padding: 0.75rem 1.75rem;
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition-normal);
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 背景画像設定: 画像がある場合は表示し、ない場合はグラデーションのみ */
    background: linear-gradient(180deg, rgba(255, 251, 240, 0.65) 0%, #FFFFFF 100%), var(--hero-bg-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
}

.hero-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--color-accent);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.125rem);
    color: var(--color-text-medium);
    line-height: 1.8;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1.25rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--transition-normal);
    display: inline-block;
}

.btn-hero-primary {
    background: #F59E0B;
    color: #FFFFFF;
    border: 2px solid #F59E0B;
}

.btn-hero-primary:hover {
    background: #D97706;
    border-color: #D97706;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.btn-hero-secondary {
    background: #EA580C;
    color: #FFFFFF;
    border: 2px solid #EA580C;
}

.btn-hero-secondary:hover {
    background: #C2410C;
    border-color: #C2410C;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(234, 88, 12, 0.4);
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-light);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-bar {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-primary-dark), transparent);
    animation: scrollAnimation 2s infinite;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollAnimation {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(20px);
    }
}

/* ========================================
   セクション共通スタイル
   ======================================== */
.section-label,
.section-label-light {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-label {
    color: var(--color-primary-dark);
}

.section-label-light {
    color: rgba(255, 255, 255, 0.8);
}

.section-title-large {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.section-intro {
    margin-bottom: 6rem;
}

/* ========================================
   事業紹介セクション
   ======================================== */
.business {
    padding: var(--spacing-3xl) 0;
    background: var(--color-bg-white);
}

.business-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 8rem;
}

.business-item:last-child {
    margin-bottom: 0;
}

.business-item-reverse {
    direction: rtl;
}

.business-item-reverse>* {
    direction: ltr;
}

.business-number {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.business-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.business-description {
    font-size: 1.0625rem;
    color: var(--color-text-medium);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.business-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.business-features li {
    font-size: 0.9375rem;
    color: var(--color-text-dark);
    padding-left: 1.5rem;
    position: relative;
}

.business-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--color-primary-dark);
    border-radius: 50%;
}

.business-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.business-link:hover {
    gap: 1rem;
    color: var(--color-primary-dark);
}

.business-link svg {
    transition: var(--transition-normal);
}

.business-visual {
    width: 100%;
}

.business-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

/* ========================================
   使命セクション
   ======================================== */
.mission {
    padding: var(--spacing-3xl) 0;
    background: var(--color-accent);
    color: var(--color-bg-white);
    text-align: center;
}

.mission-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--color-bg-white);
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.mission-content {
    max-width: 700px;
    margin: 0 auto;
}

.mission-logo {
    margin-bottom: 3rem;
}

.mission-logo img {
    width: 140px;
    height: 140px;
    object-fit: contain;
}

.mission-statement {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--color-bg-white);
}

.mission-description {
    font-size: 1.0625rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   バリューセクション
   ======================================== */
.values {
    padding: var(--spacing-3xl) 0;
    background: var(--color-bg-cream);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.value-card {
    background: var(--color-bg-white);
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-normal);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.value-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.value-description {
    font-size: 1rem;
    color: var(--color-text-medium);
    line-height: 1.8;
}

/* ========================================
   会社概要セクション
   ======================================== */
.about {
    padding: var(--spacing-3xl) 0;
    background: var(--color-bg-white);
}

.about-table {
    margin-top: 4rem;
}

.about-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.about-row:first-child {
    border-top: 1px solid var(--color-border);
}

.about-label {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 0.9375rem;
}

.about-value {
    color: var(--color-text-dark);
    font-size: 1rem;
    line-height: 1.8;
}

/* ========================================
   ニュースセクション
   ======================================== */
.news {
    padding: var(--spacing-3xl) 0;
    background: var(--color-bg-beige);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
    text-decoration: none;
    transition: var(--transition-fast);
}

.news-item:first-child {
    border-top: 1px solid var(--color-border);
}

.news-item:hover {
    background: rgba(244, 228, 166, 0.15);
    padding-left: 1rem;
    padding-right: 1rem;
}

.news-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.news-title {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--color-text-dark);
}

.news-arrow {
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    transition: var(--transition-fast);
}

.news-item:hover .news-arrow {
    transform: translateX(8px);
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact {
    padding: var(--spacing-3xl) 0;
    background: var(--color-accent);
    color: var(--color-bg-white);
}

.contact-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--color-bg-white);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-align: center;
}

.contact-description {
    text-align: center;
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--color-bg-white);
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.required {
    color: var(--color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-bg-white);
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.15);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    background: var(--color-primary);
    color: var(--color-accent);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-normal);
    margin-top: 1rem;
}

.btn-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(244, 228, 166, 0.3);
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: var(--color-accent);
    color: var(--color-bg-white);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.footer-company {
    font-size: 1.125rem;
    font-weight: 700;
}

.footer-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    opacity: 0.7;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    opacity: 0.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    opacity: 0.6;
}

/* ========================================
   レスポンシブデザイン
   ======================================== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        transition: var(--transition-normal);
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .business-item,
    .business-item-reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        direction: ltr;
    }

    .business-features {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-2xl: 5rem;
        --spacing-3xl: 6rem;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   お問い合わせ情報カード
   ======================================== */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: var(--transition-normal);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.contact-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 8px;
    color: var(--color-accent);
}

.contact-card-content {
    flex: 1;
}

.contact-card-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-card-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-bg-white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    transition: var(--transition-fast);
}

.contact-card-value:hover {
    color: var(--color-primary);
}

.contact-card-hours {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
}

/* ========================================
   SNSリンク
   ======================================== */
.sns-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-bg-white);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sns-link:hover {
    transform: translateY(-4px);
    color: var(--color-bg-white);
}

.sns-x:hover {
    background: #000000;
    border-color: #000000;
}

.sns-instagram:hover {
    background: #E1306C;
    border-color: #E1306C;
}

.sns-facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.sns-line:hover {
    background: #06C755;
    border-color: #06C755;
}


/* ========================================
   オープニングアニメーション
   ======================================== */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading.loaded {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(244, 228, 166, 0.3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   スクロール連動アニメーション
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 遅延表示用クラス */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* ========================================
   トップへ戻るボタン
   ======================================== */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: var(--color-bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
}

/* ========================================
   ニュースカードスタイル（リストからの変更）
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-items: center;
    /* カードを中央寄せ */
}

.news-card {
    background: var(--color-bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 400px;
    /* カードの最大幅を制限 */
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.news-card-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background-color: #f0f0f0;
}

.news-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex: 1;
}

.news-card-arrow {
    align-self: flex-end;
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   スクロール進捗バー
   ======================================== */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    z-index: 10000;
    transition: width 0.1s ease;
}

/* ========================================
   パララックス効果（ヒーロー）
   ======================================== */
.hero {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ========================================
   3Dカードホバー効果の強化
   ======================================== */
.value-card,
.news-card,
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.value-card:hover,
.news-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ========================================
   スムーズスクロール
   ======================================== */
html {
    scroll-behavior: smooth;
}

/* セクション間のトランジション */
section {
    transition: opacity 0.3s ease;
}


/* ========================================
   ヒーローセクション強化（パララックス対応）
   ======================================== */
.hero {
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: 0;
    transform: translateZ(0);
}

.hero>* {
    position: relative;
    z-index: 1;
}

/* ========================================
   スクロールアニメーションの種類追加
   ======================================== */
/* 左からスライドイン */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* 右からスライドイン */
.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-slide-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* スケールアップ */
.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ヒーローコンテンツのアニメーション */
.hero-content {
    animation: heroFadeIn 1.2s ease-out 0.5s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ボタンホバー時のリッチなエフェクト */
.btn-hero-primary,
.btn-hero-secondary {
    position: relative;
    overflow: hidden;
}

.btn-hero-primary::after,
.btn-hero-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-hero-primary:hover::after,
.btn-hero-secondary:hover::after {
    width: 300px;
    height: 300px;
}


/* ========================================
   お客様の声セクション
   ======================================== */
.testimonials {
    padding: 6rem 2rem;
    background: var(--color-bg-cream);
}

.section-description {
    text-align: center;
    color: var(--color-text-medium);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 事業別タブ */
.testimonial-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.testimonial-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--color-border);
    background: var(--color-bg-white);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-medium);
    transition: all 0.3s ease;
}

.testimonial-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-accent);
}

.testimonial-tab.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg-white);
}

/* お客様の声グリッド */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* お客様の声カード */
.testimonial-card {
    background: var(--color-bg-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card.hidden {
    display: none;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: -1rem;
    opacity: 0.5;
}

.testimonial-content {
    color: var(--color-text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-content p {
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-avatar-placeholder {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.25rem;
}

.testimonial-info {
    flex: 1;
}

.testimonial-name {
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}

.testimonial-attribute {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.testimonial-business {
    font-size: 0.75rem;
    color: var(--color-bg-white);
    background: var(--color-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-tabs {
        gap: 0.25rem;
    }

    .testimonial-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   アクセシビリティ対応 (WCAG)
   ======================================== */

/* メインコンテンツへスキップ（キーボード操作用） */
.skip-link {
    position: absolute;
    top: -9999px;
    left: 1rem;
    background: var(--color-accent);
    color: #fff;
    padding: 1rem;
    z-index: 99999;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* キーボードフォーカスの視認性向上 */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* アニメーションの抑制（OS設定連動） */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero::before {
        background-attachment: scroll !important;
        /* パララックス無効化 */
    }

    .animate-on-scroll,
    .animate-slide-left,
    .animate-slide-right,
    .animate-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ========================================
   スクロール進捗バー
   ======================================== */
#scrollProgress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    z-index: 99999;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(244, 228, 166, 0.5);
}

/* WordPress管理バー対応 */
.admin-bar #scrollProgress {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar #scrollProgress {
        top: 46px;
    }
}

/* ========================================
   信頼バッジ（Trust Badges）
   ======================================== */
.trust-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(244, 228, 166, 0.2);
    border-bottom: 1px solid rgba(244, 228, 166, 0.2);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(244, 228, 166, 0.1);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(244, 228, 166, 0.2);
    transform: translateY(-2px);
}

.trust-badge svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

.trust-badge-text {
    display: flex;
    flex-direction: column;
}

.trust-badge-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-bg-white);
}

.trust-badge-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .trust-badges {
        gap: 1rem;
    }

    .trust-badge {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 150px;
        padding: 0.5rem 1rem;
    }

    .trust-badge-title {
        font-size: 0.8rem;
    }

    .trust-badge-desc {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .trust-badge {
        flex: 1 1 100%;
    }
}

/* ========================================
   LINE公式フローティングボタン
   ======================================== */
.line-float-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #06C755;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.line-float-btn:hover {
    background: #05b34c;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 25px rgba(6, 199, 85, 0.5);
    color: #fff;
}

.line-float-btn svg {
    flex-shrink: 0;
}

.line-float-text {
    white-space: nowrap;
}

/* パルスアニメーション（注目を引く） */
.line-float-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: #06C755;
    z-index: -1;
    animation: linePulse 2s ease-out infinite;
}

@keyframes linePulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .line-float-btn {
        bottom: 90px;
        right: 15px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .line-float-btn {
        padding: 12px;
        border-radius: 50%;
    }

    .line-float-text {
        display: none;
    }
}

/* お問い合わせセクション用LINEボタン */
.contact-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    background: #06C755;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.contact-line-btn:hover {
    background: #05b34c;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
    color: #fff;
}

/* ========================================
   パフォーマンス最適化
   ======================================== */

/* コンテンツ表示の安定化（CLS対策） */
img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* 画像のアスペクト比を保持 */
.business-image,
.news-card-image img,
.testimonial-avatar img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* フォント読み込み中のレイアウトシフト防止 */
body {
    font-display: swap;
}

/* スムーズなスクロール（パフォーマンス考慮） */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* GPU アクセラレーション用のヒント */
.animate-on-scroll,
.business-item,
.testimonial-card,
.news-card {
    will-change: transform, opacity;
}

/* アニメーション完了後にwill-changeを解除 */
.animated {
    will-change: auto;
}

/* ========================================
   ヒーローセクション背景画像の強調
   ======================================== */

/* 背景画像が設定されている場合 */
.hero[style*="--hero-bg-image"] {
    background: var(--hero-bg-image) center center / cover no-repeat !important;
}

/* 背景画像の上にオーバーレイ（バランス調整版：10-25%） */
.hero[style*="--hero-bg-image"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.25) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
}

/* コンテンツをオーバーレイの上に */
.hero[style*="--hero-bg-image"] .hero-content {
    position: relative;
    z-index: 2;
}

.hero[style*="--hero-bg-image"] .hero-scroll {
    z-index: 2;
}

/* ========================================
   スマホ対応調整
   ======================================== */



@media (max-width: 768px) {

    /* ロゴアイコンを小さく */
    .logo-icon {
        width: 28px !important;
        height: 28px !important;
    }

    /* 会社名テキストを小さく */
    .logo-text {
        font-size: 0.8rem !important;
        white-space: nowrap;
    }

    /* ナビゲーションコンテナのパディング調整 */
    .nav-container {
        padding: 1rem !important;
    }

    /* ロゴリンクの間隔調整 */
    .nav-logo {
        gap: 0.5rem;
    }
}

/* さらに小さい画面用 */
@media (max-width: 480px) {
    .logo-icon {
        width: 24px !important;
        height: 24px !important;
    }

    .logo-text {
        font-size: 0.7rem !important;
    }

    .nav-container {
        padding: 0.75rem !important;
    }
}

/* ========================================
   ニュース個別ページ
   ======================================== */
.single-news-page {
    padding-top: 100px;
}

.single-news-page .page-header {
    background: linear-gradient(135deg, var(--color-bg-cream) 0%, var(--color-bg-white) 100%);
    padding: 4rem 0;
    text-align: center;
}

.single-news-page .page-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-meta {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.news-meta time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-article {
    padding: 4rem 0;
}

.news-featured-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--color-text-dark);
}

.news-content p {
    margin-bottom: 2rem;
}

.news-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.news-content ul,
.news-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.news-content li {
    margin-bottom: 0.75rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.news-content blockquote {
    background: var(--color-bg-cream);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    gap: 1rem;
}

.news-navigation a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition-normal);
}

.news-navigation a:hover {
    background: var(--color-bg-cream);
    color: var(--color-primary-dark);
}

.nav-back a {
    background: var(--color-accent);
    color: #fff !important;
}

.nav-back a:hover {
    background: var(--color-accent-light);
}

@media (max-width: 768px) {
    .single-news-page .page-header {
        padding: 3rem 1.5rem;
    }

    .news-article {
        padding: 2rem 0;
    }

    .news-content {
        font-size: 1rem;
        line-height: 1.9;
    }

    .news-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .news-navigation>div {
        width: 100%;
        text-align: center;
    }

    .news-navigation a {
        display: block;
        width: 100%;
    }
}

/* ========================================
   Varista事業紹介ページ
   ======================================== */
.varista-page {
    width: 100%;
    overflow-x: hidden;
    padding-top: 140px;
    /* ヘッダー + パンくずリスト分の余白確保 */
}

.varista-hero {
    /* 画像がない場合のフォールバック色 */
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    position: relative;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    margin-bottom: 4rem;
}



/* ========================================
   ニュース個別ページ
   ======================================== */
.single-news-page {
    padding-top: 100px;
}

.single-news-page .page-header {
    background: linear-gradient(135deg, var(--color-bg-cream) 0%, var(--color-bg-white) 100%);
    padding: 4rem 0;
    text-align: center;
}

.single-news-page .page-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-accent);
    margin-top: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.news-meta {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.news-meta time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.news-article {
    padding: 4rem 0;
}

.news-featured-image {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-content {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--color-text-dark);
}

.news-content p {
    margin-bottom: 2rem;
}

.news-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-primary);
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.news-content ul,
.news-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.news-content li {
    margin-bottom: 0.75rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

.news-content blockquote {
    background: var(--color-bg-cream);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.news-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    gap: 1rem;
}

.news-navigation a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: var(--transition-normal);
}

.news-navigation a:hover {
    background: var(--color-bg-cream);
    color: var(--color-primary-dark);
}

.nav-back a {
    background: var(--color-accent);
    color: #fff !important;
}

.nav-back a:hover {
    background: var(--color-accent-light);
}

@media (max-width: 768px) {
    .single-news-page .page-header {
        padding: 3rem 1.5rem;
    }

    .news-article {
        padding: 2rem 0;
    }

    .news-content {
        font-size: 1rem;
        line-height: 1.9;
    }

    .news-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .news-navigation>div {
        width: 100%;
        text-align: center;
    }

    .news-navigation a {
        display: block;
        width: 100%;
    }
}

/* ========================================
   Varista事業紹介ページ
   ======================================== */
.varista-page {
    width: 100%;
    overflow-x: hidden;
    padding-top: 80px;
    /* ヘッダー分の余白確保 */
}

.varista-hero {
    /* 画像がない場合のフォールバック色 */
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    position: relative;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    margin-bottom: 4rem;
}

/* 画像がある場合は上書き */
.varista-hero.has-bg {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/varista-bg.jpg') center/cover;
}


.varista-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.varista-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.varista-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    /* 背景より手前に */
}

.varista-nav a {
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    /* 半透明の黒背景 */
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    display: inline-block;
}

.varista-nav a:hover {
    background: #fff;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Varistaコンテンツ共通 */
.varista-section {
    padding: 5rem 0;
}

.varista-section.bg-light {
    background: var(--color-bg-light);
}

/* 料金表 */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--color-text-light);
    /* デフォルト色 */
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.standard {
    border-top-color: var(--color-primary);
}

.pricing-card.premium {
    border-top-color: #C4A000;
    transform: scale(1.05);
    /* 強調 */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.pricing-card.light {
    border-top-color: var(--color-accent);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
    /* ボタンを下揃えに */
}

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-dark);
}

.pricing-features li::before {
    content: '✔';
    color: var(--color-accent);
    /* チェックマークの色 */
    margin-right: 0.5rem;
    font-weight: bold;
}

/* 割引・特典 */
.campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.campaign-card {
    background: #fff;
    border: 2px solid #FFE082;
    /* 薄いゴールド */
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.1);
}

.campaign-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.campaign-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #b45309;
    /* 濃いオレンジ */
    margin-bottom: 1rem;
}

.campaign-desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-dark);
}

.badge-recommend {
    background: #C4A000;
    color: #fff;
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .varista-page {
        padding-top: 60px;
    }

    .varista-hero {
        padding: 80px 0;
    }

    .pricing-card.premium {
        transform: none;
        /* スマホでは拡大しない */
        margin: 1rem 0;
    }
}

/* ========================================
   背景湯気エフェクト（Atmosphere）
   ======================================== */
.hero {
    position: relative;
    overflow: hidden;
    /* 湯気が枠外にはみ出さないように */
}

.steam-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* クリックを邪魔しない */
    z-index: 1;
    /* 背景と文字の間 */
    overflow: hidden;
}

/* ヒーローコンテンツを湯気の上に表示 */
.hero-content {
    position: relative;
    z-index: 2;
}

.steam-fog {
    position: absolute;
    bottom: -20%;
    left: 0;
    width: 200%;
    height: 100%;
    /* グラデーションの白を濃くする */
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    filter: blur(30px);
    opacity: 0;
    animation: fog-rise 15s infinite linear;
}

.steam-fog-1 {
    animation-duration: 20s;
    animation-delay: 0s;
    opacity: 0.7;
    /* 濃度アップ */
}

.steam-fog-2 {
    animation-duration: 25s;
    animation-delay: -5s;
    left: -50%;
    opacity: 0.5;
    /* 濃度アップ */
}

.steam-fog-3 {
    animation-duration: 18s;
    animation-delay: -10s;
    left: -20%;
    transform: scale(1.5);
    opacity: 0.4;
    /* 濃度アップ */
}

@keyframes fog-rise {
    0% {
        transform: translateY(20%) scale(1);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
        /* Max濃度アップ */
    }

    50% {
        transform: translateY(-20%) scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: translateY(-50%) scale(1.5);
        opacity: 0;
    }
}

/* ========================================
   マウスストーカー
   ======================================== */
#mouse-stalker {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background: rgba(30, 58, 138, 0.3);
    /* 薄いプライマリカラー */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    transition: width 0.3s cubic-bezier(0.2, 1, 0.3, 1), height 0.3s cubic-bezier(0.2, 1, 0.3, 1), background-color 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: multiply;
    will-change: transform;
    opacity: 0;
    /* JSで動き出してから表示 */
}

/* リンクホバー時 */
#mouse-stalker.is-hover {
    width: 60px;
    height: 60px;
    background: rgba(244, 228, 166, 0.4);
    /* アクセントカラー */
    mix-blend-mode: normal;
}

/* スマホ・タブレットでは無効（指で隠れるため） */
@media (hover: none) and (pointer: coarse) {
    #mouse-stalker {
        display: none !important;
    }
}

/* ========================================
   スクロール演出強化 (scroll-reveal)
   ======================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 追加の遅延クラス */
.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}