/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

/* 変数定義 */
:root {
    /* カラーテーマ */
    --primary-color: #F2F2F2;
    --primary-dark: #D9D9D9;
    --secondary-color: #EAE4D5;
    --accent-color: #B6B09F;
    --blue-color: #1E88E5;
    --green-color: #00C923;
    --orange-color: #f97316;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* ===== ヒーロースライダー設定 ===== */
    /* スライダーの高さ */
    --slider-height: 100vh;
    --slider-min-height: 600px;

    /* ロゴサイズ（デスクトップ） */
    --hero-logo-width: 20rem;

    /* サブタイトルのフォントサイズ */
    --hero-subtitle-size: 1.5rem;

    /* 背景オーバーレイの不透明度 */
    --hero-overlay-opacity: 0.3;

    /* トランジション速度（JavaScriptのtransitionDurationと合わせる） */
    --slider-transition-duration: 3s;

    /* ドットナビゲーション */
    --dot-size: 12px;
    --dot-spacing: 1rem;
    --dot-bottom-position: 3rem;
    --dot-opacity: 0.5;
    --dot-opacity-hover: 0.8;
    --dot-scale-active: 1.3;
    --dot-scale-hover: 1.2;
}

/* 共通スタイル */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
}
.pc_only{
    display: block;
}
.sp_only{
    display: none;
}

/* ボタン */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-dark);
    border: 2px solid var(--accent-color);
}

.btn-outline:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--blue-color);
}

.header-contact {
    display: flex;
    align-items: center;
}

.phone-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    gap: 0.5rem;
}

.phone-link:hover {
    color: var(--blue-color);
}

.phone-link i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===================================
   ヒーローセクション - スライダー
   ================================ */
.hero-slider {
    position: relative;
    height: var(--slider-height);
    min-height: var(--slider-min-height);
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--slider-transition-duration) ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--hero-overlay-opacity));
}

.hero-slide .container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    color: white;
}

.hero-main-title {
    width: var(--hero-logo-width);
}

.hero-main-title img {
    height: 100%;
    width: 100%;
    display: block;
}

.hero-subtitle-text {
    font-size: var(--hero-subtitle-size);
    font-weight: 300;
    line-height: 1.8;
    opacity: 0.95;
}

/* スライダーナビゲーション */
.hero-slider-nav {
    position: absolute;
    bottom: var(--dot-bottom-position);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--dot-spacing);
    z-index: 10;
}

.hero-dot {
    width: var(--dot-size);
    height: var(--dot-size);
    border-radius: 50%;
    background: rgba(255, 255, 255, var(--dot-opacity));
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, var(--dot-opacity-hover));
    transform: scale(var(--dot-scale-hover));
}

.hero-dot.active {
    background: white;
    transform: scale(var(--dot-scale-active));
}

/* サービスセクション */
.services {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 1rem;
}

/* 新着情報セクション */
.news {
    padding: 5rem 0;
    background-color: white;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: var(--background-light);
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.news-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* 施工事例セクション */
.case-studies {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.case-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.case-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-content {
    padding: 1.5rem;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.case-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.case-specs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.case-spec {
    background-color: var(--background-light);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* クーリングオフセクション */
.cooling-off {
    padding: 4rem 0;
    background-image: url('../images/off001.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    text-align: center;
}

.cooling-off::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.cooling-off .container {
    position: relative;
    z-index: 2;
}

.cooling-off-content {
    max-width: 600px;
    margin: 0 auto;
}

.cooling-off-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cooling-off-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cooling-off-btn {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cooling-off-btn:hover {
    background-color: white;
    color: var(--text-dark);
}

/* 特徴セクション */
.features {
    padding: 5rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
}

.feature-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
}

/* お問い合わせセクション */
.contact {
    padding: 5rem 0;
    background-color: var(--background-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    color: var(--text-light);
    text-align: center;
}

.contact-icon {
    width: 200px;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.phone-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.business-hours {
    color: var(--text-light);
}

.contact-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Contact Form 7 スタイル調整 */
.wpcf7-form .form-group {
    margin-bottom: 1.5rem;
}

.wpcf7-form label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
}

.wpcf7-form .required {
    color: #dc2626;
}

/* Contact Form 7 入力フィールドを既存デザインに統一 */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* select要素用のカスタム矢印 */
.wpcf7-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.wpcf7-form textarea {
    resize: vertical;
    min-height: 120px;
}

.wpcf7-form .form-submit {
    text-align: center;
    margin-top: 2rem;
}

/* Contact Form 7 スピナーを非表示 */
.wpcf7-form .wpcf7-spinner {
    display: none;
}

/* バリデーションエラー */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.wpcf7-form .wpcf7-not-valid {
    border-color: #dc2626;
}

/* 送信後のメッセージ */
.wpcf7-response-output {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.wpcf7-mail-sent-ok {
    background-color: #dcfce7;
    border: 2px solid #16a34a;
    color: #16a34a;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: #fee2e2;
    border: 2px solid #dc2626;
    color: #dc2626;
}

.wpcf7-spam-blocked {
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
    color: #f59e0b;
}

/* フッター */
.footer {
    background-color: #f5f5f5;
    color: #333;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #555;
}

.footer-logo img {
    max-width: 150px;
    height: auto;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #d1d5db;
    color: #777;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .pc_only{
        display: none;
    }
    .sp_only{
        display: block;
    }
    .header-contact {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}