/* ========================================
   style.css - 共通CSS（全ページ共通）
   フォレストハウス - 2024
======================================== */

:root {
    --color-primary: #0066CC;
    --color-primary-dark: #004499;
    --color-primary-light: #E6F2FF;
    --color-white: #FFFFFF;
    --color-black: #333333;
    --color-gray: #666666;
    --color-gray-light: #F5F5F5;
    --color-gray-border: #DDDDDD;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-line: #06C755;
    
    --font-family: 'Noto Sans JP', sans-serif;
    
    --header-height: 80px;
    --container-width: 1200px;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    --transition: all 0.3s ease;
}

/* === リセット・ベース === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-black);
    background-color: var(--color-white);
    padding-top: var(--header-height);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    display: block;
}

ul, ol {
    list-style: none;
}

/* === コンテナ === */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* === ボタン === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
    opacity: 1;
}

.btn--secondary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--secondary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    opacity: 1;
}

.btn--outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    opacity: 1;
}

.btn--large {
    padding: 20px 40px;
    font-size: 18px;
}

.btn--full {
    width: 100%;
}

/* === セクションタイトル === */
.section__title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-black);
    position: relative;
    padding-bottom: 25px;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--color-primary);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* ========================================
   ヘッダー
======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.header__logo {
    flex-shrink: 0;
}

.header__logo img {
    height: 40px;
    width: auto;
}

.header__nav {
    display: block;
    flex: 1;
}

.nav__list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav__item {
    flex-shrink: 0;
}

.nav__link {
    color: var(--color-black);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-primary);
    opacity: 1;
}

.header__cta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.header__tel {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.header__tel-icon {
    font-size: 16px;
}

.header__btn {
    padding: 10px 20px;
    font-size: 14px;
}

/* ハンバーガーメニュー */
.header__hamburger {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 1001;
}

.header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-black);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 9px; }
.header__hamburger span:nth-child(3) { bottom: 0; }

.header__hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 9px;
}

.header__sp-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-white);
    padding: 20px;
    overflow-y: auto;
    z-index: 999;
}

.header__sp-nav.is-active {
    display: block;
}

.sp-nav__list {
    display: flex;
    flex-direction: column;
}

.sp-nav__list li {
    border-bottom: 1px solid var(--color-gray-border);
}

.sp-nav__list li:last-child {
    border-bottom: none;
}

.sp-nav__list a {
    display: block;
    padding: 20px 10px;
    font-size: 16px;
    color: var(--color-black);
}

.sp-nav__list .btn {
    margin: 20px 10px;
    text-align: center;
}

/* ========================================
   ページヒーロー（下層ページ）
======================================== */
.page-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    padding: 60px 20px;
}

.page-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--color-primary);
}

.page-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85), rgba(0, 68, 153, 0.9));
}

.page-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 800px;
}

.page-hero__title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-hero__subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.page-hero--simple {
    min-height: 200px;
    background-color: var(--color-primary);
}

/* ========================================
   フォーム共通スタイル
======================================== */
.form-section {
    margin-bottom: 40px;
}

.form-section__title {
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-black);
}

.required {
    color: var(--color-danger);
    font-size: 12px;
    margin-left: 5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid var(--color-gray-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.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='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

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

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-input,
.form-row .form-select {
    flex: 1;
}

.form-input-unit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-input-unit .form-input {
    width: 150px;
    flex: none;
}

.form-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-radio-group--vertical {
    flex-direction: column;
}

.form-radio,
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}

.form-radio input,
.form-checkbox input {
    margin-top: 4px;
    flex-shrink: 0;
}

.form-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-agreement {
    text-align: center;
    margin: 30px 0;
}

.form-submit {
    text-align: center;
}

.form-submit .btn {
    min-width: 300px;
}

/* ========================================
   フッター
======================================== */
.footer {
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 60px 0 0;
}

.footer__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer__main {
    display: grid;
    grid-template-columns: 200px 1fr 250px;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: start;
}

.footer__logo {
    flex-shrink: 0;
}

.footer__logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__nav {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer__nav-column {
    min-width: 120px;
}

.footer__nav-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-white);
}

.footer__nav-list li {
    margin-bottom: 10px;
}

.footer__nav-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    transition: var(--transition);
}

.footer__nav-list a:hover {
    color: var(--color-white);
    opacity: 1;
}

.footer__contact {
    text-align: right;
}

.footer__contact-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.footer__tel {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 5px;
}

.footer__tel:hover {
    color: var(--color-primary-light);
    opacity: 1;
}

.footer__contact-note {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.footer__line {
    display: inline-block;
    background-color: var(--color-line);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
}

.footer__line:hover {
    opacity: 0.9;
    color: var(--color-white);
}

.footer__bottom {
    padding: 20px 0;
    text-align: center;
}

.footer__copyright {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   LINE誘導セクション（共通）
======================================== */
.line-cta {
    padding: 60px 0;
    background-color: var(--color-line);
}

.line-cta__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    color: var(--color-white);
    flex-wrap: wrap;
}

.line-cta__content {
    text-align: center;
}

.line-cta__title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.line-cta__text {
    margin-bottom: 20px;
    opacity: 0.9;
}

.line-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-white);
    color: var(--color-line);
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: var(--transition);
}

.line-cta__btn:hover {
    opacity: 0.9;
    color: var(--color-line);
}

.line-cta__btn img {
    width: 30px;
    height: 30px;
}

.line-cta__image img {
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    padding: 10px;
    width: 150px;
    height: 150px;
}

/* ========================================
   CTAセクション（共通）
======================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
}

.cta-section__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section__title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-section__text {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-section__buttons .btn--primary {
    background-color: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-white);
}

.cta-section__buttons .btn--primary:hover {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}

.cta-section__buttons .btn--secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.cta-section__buttons .btn--secondary:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
}

.cta-section__note {
    font-size: 14px;
    opacity: 0.8;
}

/* ========================================
   ユーティリティクラス
======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

/* ========================================
   レスポンシブ（タブレット）
======================================== */
@media (max-width: 1024px) {
    .header__nav {
        display: none;
    }
    
    .header__cta {
        display: none;
    }
    
    .header__hamburger {
        display: block;
    }
}

/* ========================================
   レスポンシブ（スマホ）
======================================== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .page-hero {
        min-height: 200px;
        padding: 40px 20px;
    }
    
    .page-hero__title {
        font-size: 28px;
    }
    
    .section__title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-input-unit {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .form-input-unit .form-input {
        width: 100%;
    }
    
    .form-submit .btn {
        min-width: auto;
        width: 100%;
    }
    
    .footer__main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__logo {
        text-align: center;
    }
    
    .footer__nav {
        justify-content: center;
    }
    
    .footer__contact {
        text-align: center;
    }
    
    .line-cta__inner {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-section__buttons {
        flex-direction: column;
    }
    
    .cta-section__buttons .btn {
        width: 100%;
    }
}

/* ========================================
   レスポンシブ（スマホ小画面）
======================================== */
@media (max-width: 480px) {
    .section__title {
        font-size: 20px;
    }
    
    .cta-section__title {
        font-size: 24px;
    }
    
    .footer__tel {
        font-size: 18px;
    }
}
