/* ====================================
   CSS変数・基本設定
==================================== */
:root {
    /* カラーパレット */
    --primary: #2a2a2a;
    --primary-dark: #1a1a1a;
    --secondary: #808080;
    --accent: #5a5a5a;
    --background: #f5f5f5;
    --foreground: #1a1a1a;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --text-color: #2a2a2a;
    --text-light: #666666;

    /* ダークグリーンアクセント */
    --subtle-green: #2F5233;
    --muted-green: #3D6B41;
    --soft-green: #E8F5E8;
    --forest-green: #1B3B36;
    --sage-green: #4A6741;
    --elegant-green-gradient: linear-gradient(135deg, #2F5233 0%, #3D6B41 100%);
    --deep-green-gradient: linear-gradient(135deg, #1B3B36 0%, #2F5233 100%);

    /* 共通値 */
    --radius: 4px;
    --header-height: 64px;
}

/* ====================================
   基本スタイル
==================================== */
body {
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
}

.container {
    max-width: 1200px;
}

.section {
    padding: 6rem 1.5rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ====================================
   ナビゲーション
==================================== */
.navbar {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar-brand .navbar-item {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

.navbar-item {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-item:hover {
    color: var(--subtle-green) !important;
    background-color: transparent !important;
}

.navbar-item.is-active {
    color: var(--subtle-green) !important;
    position: relative;
}

.navbar-item.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--subtle-green);
    transition: width 0.3s ease;
}

.navbar-burger span {
    background-color: var(--text-color);
}

/* ====================================
   カード・ボタン
==================================== */
.card {
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    background-color: var(--card-background);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(193, 154, 91, 0.2);
}

.button.is-primary {
    background-color: var(--primary);
    transition: all 0.2s ease;
    border-radius: var(--radius);
    font-weight: 500;
    border: none;
    height: 2.75rem;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.button.is-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transition: all 0.6s ease;
    z-index: -1;
}

.button.is-primary:hover::before {
    left: 100%;
}

.button.is-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(6, 59, 46, 0.4);
}

.button.is-outlined {
    border-color: var(--secondary);
    color: var(--secondary);
    background-color: transparent;
    border-radius: var(--radius);
}

.button.is-outlined:hover {
    background-color: var(--secondary);
    color: white;
}

/* ====================================
   画像・ギャラリー
==================================== */
.image-gallery img {
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.image-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ギャラリー画像の基本スタイル */
.gallery-image {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.gallery-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(47, 82, 51, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-image::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(47, 82, 51, 0.2);
}

.gallery-image:hover::before,
.gallery-image:hover::after {
    opacity: 1;
}

/* ====================================
   特徴・プロセス・セクション
==================================== */
.about-section,
.instagram-section,
#process {
    background-color: var(--background);
}

.info-section,
.news-section,
.price-section
 {
    background: linear-gradient(to bottom, #ffffff, var(--background));
}

.info-table {
    background-color: transparent;
}

.info-table td,
.info-table th {
    border: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-table th {
    color: var(--text-light);
    font-weight: 500;
    width: 30%;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.features-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.features-list li i {
    color: var(--secondary);
    margin-right: 0.75rem;
}

/* 特徴ボックス */
.feature-box {
    text-align: center;
    padding: 40px 20px;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--elegant-green-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(193, 154, 91, 0.2);
}

.feature-box:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--elegant-green-gradient) !important;
    border-radius: 50%;
    margin-bottom: 25px;
    color: white;
    font-size: 30px;
    transition: transform 0.3s ease;
}

.feature-box:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--subtle-green) !important;
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-text {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* プロセスステップ */
.process-step {
    background-color: var(--card-background);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--elegant-green-gradient) !important;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(47, 82, 51, 0.15);
}

.process-step:hover::before {
    transform: scaleX(1);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 1.5rem;
    background: var(--elegant-green-gradient) !important;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(47, 82, 51, 0.25) !important;
    z-index: 2;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(193, 154, 91, 0.1), rgba(6, 59, 46, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.process-step:hover .step-icon {
    background: var(--elegant-green-gradient) !important;
    color: white !important;
    transform: scale(1.1) rotateY(180deg) !important;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.step-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.step-time {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--muted-green) !important;
    background-color: var(--soft-green) !important;
    color: var(--subtle-green) !important;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

.step-time i {
    margin-right: 0.5rem;
    color: var(--subtle-green) !important;
}

.feature-tag {
    border-color: var(--soft-green) !important;
    color: var(--subtle-green) !important;
    background-color: rgba(6, 59, 46, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(6, 59, 46, 0.2);
}

.step-features {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* プロセスフロー */
.process-flow {
    position: relative;
    height: 60px;
    margin-top: -2rem;
    margin-bottom: 2rem;
}

.flow-line {
    position: absolute;
    top: 50%;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--elegant-green-gradient) !important;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flow-arrow {
    width: 0;
    height: 0;
    border-left: 12px solid var(--subtle-green) !important;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    position: relative;
}

.flow-arrow::before {
    content: '';
    position: absolute;
    left: -24px;
    top: -6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--subtle-green) !important;
    animation: pulse-dot 2s infinite ease-in-out;
}

/* ====================================
   Lightbox
==================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--elegant-green-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(47, 82, 51, 0.4);
    transition: all 0.3s ease;
    border: none;
    z-index: 10001;
}

.close-lightbox:hover {
    background: var(--deep-green-gradient);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(47, 82, 51, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    opacity: 0.7;
}

.lightbox-nav:hover {
    background: rgba(47, 82, 51, 1);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    display: none;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #3D6B41;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.no-scroll {
    overflow: hidden;
}

/* ====================================
   フッター
==================================== */
.footer {
    background-color: #031f17;
    color: #f5f5f5;
    padding: 4rem 1.5rem;
}

.footer-title {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: #f5f5f5;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary);
}

.social-buttons .button {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    margin-right: 0.5rem;
    transition: all 0.2s;
}

.social-buttons .button:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

/* ====================================
   スクロールボタン
==================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(193, 154, 91, 0.3);
    z-index: 20;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(193, 154, 91, 0.4);
}

/* ====================================
   ページローダー
==================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-logo {
    animation: pulse 1.5s infinite ease-in-out;
}

body.loaded .page-loader {
    opacity: 0;
    visibility: hidden;
}

/* ====================================
   アニメーション
==================================== */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* スクロールアニメーション */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-left.animated,
.animate-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.fade-in.animated {
    opacity: 1;
}

.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.zoom-in.animated {
    opacity: 1;
    transform: scale(1);
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.delay-800 {
    transition-delay: 0.8s;
}

.delay-1000 {
    transition-delay: 1.0s;
}

/* ====================================
   アクセシビリティ対応
==================================== */
@media (prefers-reduced-motion: reduce) {

    .process-step:hover .step-icon,
    #price .button:hover,
    #process .button:hover,
    .lightbox,
    .lightbox-content,
    .gallery-image,
    .close-lightbox,
    .lightbox-nav {
        transform: none !important;
        transition: background-color 0.2s ease, color 0.2s ease !important;
        animation: none !important;
    }
}

@media (prefers-contrast: high) {
    :root {
        --subtle-green: #1B3B36;
        --muted-green: #2F5233;
    }
}

.button:focus,
.card:focus-within,
.close-lightbox:focus,
.lightbox-nav:focus {
    outline: 2px solid var(--subtle-green);
    outline-offset: 2px;
}