/*
Theme Name: Sulphur Noboribetsu Theme
Description: サルファー登別様向けオリジナルテーマ
Version: 1.0.1
Author: Gemini
*/

/* ベーススタイル */
body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    background-color: #FFFDF5;
    color: #5A4A42;
    background-image: radial-gradient(#5D9C59 1px, transparent 1px);
    background-size: 40px 40px; 
}

/* --- 共通コンポーネント --- */

.hand-drawn-border {
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    border: 3px solid #5A4A42;
}

.hand-drawn-box {
    border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
    box-shadow: 4px 4px 0px 0px #5A4A42;
    transition: all 0.2s ease;
}

.hand-drawn-box:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px 0px #5A4A42;
}

.hand-drawn-box:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px 0px #5A4A42;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 2px solid #5D9C59;
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    font-weight: bold;
    color: #5D9C59;
    box-shadow: 2px 2px 0 #EBF7E3;
}

.marker-yellow {
    background: linear-gradient(transparent 60%, #FFD966 60%);
}

.wave-divider {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 10;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 50px;
}

/* アニメーション関連 */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.staff-img-container {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FFF;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background-color: #f0f0f0;
}
@media (min-width: 768px) {
    .staff-img-container {
        width: 120px;
        height: 120px;
    }
}
/* --- ステップフォームの表示制御 --- */
.step-content {
    display: none; 
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.step-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.option-card {
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid #e5e7eb;
}
.option-card:hover {
    border-color: #5D9C59;
    background-color: #F0FDF4;
}

/* --- 工賃シミュレーター用レンジスライダー --- */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

/* Chrome/Safari用 */
input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: #E5E7EB;
    border-radius: 9999px;
    border: 1px solid #D1D5DB;
}

input[type=range]::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #5D9C59;
    cursor: pointer;
    -webkit-appearance: none;
    margin-top: -8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 2px solid #fff;
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

/* Firefox用 */
input[type=range]::-moz-range-track {
    width: 100%;
    height: 10px;
    cursor: pointer;
    background: #E5E7EB;
    border-radius: 9999px;
    border: 1px solid #D1D5DB;
}
input[type=range]::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #5D9C59;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* --- ブログ一覧ページネーション --- */
ul.page-numbers {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e5e7eb;
    color: #5A4A42;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s;
}

.page-numbers.current {
    background: #5D9C59;
    color: white;
    border-color: #5D9C59;
}

.page-numbers:hover:not(.current) {
    background: #EBF7E3;
    border-color: #5D9C59;
    color: #5D9C59;
}

/* --- CF7隠しフィールド --- */
.hidden-cf7-wrapper {
    display: none !important;
}
.bg-noboribetsu-green {
    background: #5d9c59;
}
.bg-warm-orange {
    background: rgb(244, 132, 95);
}
.step-content .bg-black {
    background: #5d9c59;
}
.step-content .hover\:bg-gray-50:hover {
    color: #000;
}
/* --- タグボタンのレスポンス改善 --- */
.step-content .tag-btn {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* タップ時の青い枠を消す */
    touch-action: manipulation; /* ブラウザのダブルタップズームを抑制し反応を速める */
    transition: background-color 0.1s, color 0.1s; /* アニメーションを極短にする */
}

/* スマホではhover時のスタイル（グレーの背景など）を無効化するか、activeクラスを優先させる */
@media (hover: none) {
.step-content .tag-btn:hover {
        background-color: transparent;
    }
}

.step-content .tag-btn.active {
    background-color: #5d9c59 !important;
    color: #ffffff !important;
}