/*
Theme Name: LP Base
Description: ランディングページ共通ベーステーマ。CSS変数でLP個性を表現。
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.1
License: proprietary
Text Domain: lp-base
*/

/* =============================================
   CSS カスタムプロパティ（LP個性）
   実際の値は functions.php で wp_head に出力される
   ============================================= */
:root {
    --color-primary:   #1a73e8;
    --color-secondary: #1a1a2e;
    --color-bg:        #ffffff;
    --color-text:      #333333;
    --font-base:       'Noto Sans JP', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
}

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

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

/* =============================================
   レイアウト
   ============================================= */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-title-bar {
    display: block;
    width: 2.5rem;
    height: 3px;
    background: var(--color-primary);
    margin: 0.6rem auto 2rem;
    border-radius: 2px;
}

/* =============================================
   ヘッダー
   ============================================= */
.site-header {
    background-color: var(--color-secondary);
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-logo {
    height: 48px;
    width: auto;
}

.site-logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.site-nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.site-nav a:hover { color: #fff; text-decoration: none; }

@media (max-width: 680px) {
    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: var(--color-secondary);
        z-index: 99;
        white-space: nowrap;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .site-nav.is-open { display: block; }
    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
    }
    .site-nav ul li a {
        display: block;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

/* =============================================
   ボタン
   ============================================= */
.btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.03em;
}

.btn:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-cta {
    background-color: #e6392b;
    color: #fff;
    font-size: 1.1rem;
    padding: 1rem 3rem;
    border-radius: 9999px;
    box-shadow: 0 4px 16px rgba(230, 57, 43, 0.35);
}

.btn-cta:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(230,57,43,0.4); }

/* =============================================
   フッター
   ============================================= */
.site-footer {
    background-color: var(--color-secondary);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 2rem 0;
    font-size: 0.85rem;
}

/* =============================================
   Hero セクション
   ============================================= */
.section-hero { padding: 0; }

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 260px;
    overflow: hidden;
    background: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
}

@keyframes kenburns {
    from { transform: scale(1.0); }
    to   { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
    text-align: center;
    padding: 2rem 1.5rem;
    pointer-events: none;
}

.hero-tagline {
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

.hero-cta-wrap {
    pointer-events: auto;
}

.hero-no-image {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #2d3561 100%);
    text-align: center;
    padding: 4rem 1.5rem;
}

.hero-no-image .hero-tagline {
    margin-bottom: 1.5rem;
}

/* =============================================
   特徴セクション（固定ページ slug=features）
   ============================================= */
.section-features { background: #f8f9fa; }

/* =============================================
   お客様の声（固定ページ slug=testimonials）
   ============================================= */
.section-testimonials {}

/* =============================================
   お問い合わせ
   ============================================= */
.section-contact { background: #f8f9fa; }

.contact-tel-link {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =============================================
   アクセス
   ============================================= */
.access-info {
    line-height: 2;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.access-map { margin-bottom: 2rem; }

/* =============================================
   ページコンテンツ（features / testimonials）
   ============================================= */
.page-content h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
}

.page-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 1.75rem 0 0.6rem;
    padding-left: 0.6rem;
    border-left: 4px solid var(--color-primary);
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.page-content ul,
.page-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.page-content li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
}

/* =============================================
   お問い合わせフォーム (lp-contact)
   ============================================= */
.lpc-msg {
    padding: 1rem 1.25rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}
.lpc-msg-success { background: #d4edda; color: #155724; }
.lpc-msg-info    { background: #d1ecf1; color: #0c5460; }
.lpc-msg-error   { background: #f8d7da; color: #721c24; }

.lpc-form {
    max-width: 560px;
    margin: 0 auto 2rem;
}

.lpc-field {
    margin-bottom: 1.25rem;
}

.lpc-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.lpc-required {
    color: #e6392b;
    margin-left: 0.2em;
}

.lpc-input,
.lpc-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-base);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.lpc-input:focus,
.lpc-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.lpc-textarea {
    resize: vertical;
    min-height: 140px;
}

.lpc-form-note {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.lpc-form-email-note {
    font-size: 0.875rem;
    color: #444;
    background: #f0f4ff;
    border-radius: 4px;
    padding: 0.4rem 0.75rem;
    margin-bottom: 1.25rem;
}

.lpc-submit-wrap {
    text-align: center;
    margin-top: 1.5rem;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 600px) {
    .section { padding: 3rem 0; }
    .contact-tel-link { font-size: 1.5rem; }
    .btn-cta { font-size: 1rem; padding: 0.85rem 2rem; }
}
