/*
Theme Name: Kishida Crane Theme
Theme URI: https://www.kishidacrane.com
Author: Kishida Crane
Version: 2.0
Description: 岸田クレーン専用WordPressテーマ - レスポンシブ対応版
License: GPL v2 or later
Text Domain: kishida-crane
*/

/* ========== リセット & 基本設定 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --secondary-color: #1a1a1a;
    --accent-color: #ff6b35;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background: var(--white);
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ========== ヘッダー ========== */
.site-header {
    background: var(--white);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    display: block;
}

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

/* ナビゲーション（デスクトップ） */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: block;
}

.main-navigation a:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

/* ハンバーガーメニューボタン */
.menu-toggle {
    display: none;
    background: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.7rem 1rem;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-icon {
    display: block;
}

/* メニューオーバーレイ */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ========== メインコンテンツ ========== */
.site-main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100%;
}

/* ========== ヒーローセクション ========== */
.hero-section-home {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('./assets/images/mainvisual.png') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 20px rgba(0,0,0,0.9),
        0 0 40px rgba(0,0,0,0.7),
        0 2px 10px rgba(0,0,0,0.8),
        2px 2px 4px rgba(0,0,0,0.9);
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-shadow:
        0 0 15px rgba(0,0,0,0.9),
        0 2px 8px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    text-shadow:
        0 0 10px rgba(0,0,0,0.9),
        0 2px 6px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    color: var(--white);
    font-size: 2rem;
    opacity: 0.7;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========== ボタン ========== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211,47,47,0.3);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

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

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

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

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

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

.btn-white:hover {
    background: var(--light-bg);
    transform: translateY(-2px);
    color: var(--primary-color);
}

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

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

.btn-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
}

.btn-instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: var(--white);
}

.instagram-icon {
    font-size: 1.3rem;
    margin-right: 0.5rem;
}

/* ========== スクロールアニメーション ========== */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ========== セクション ========== */
section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title-main {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.section-title-sub {
    display: block;
    font-size: 1rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* ========== サービス ========== */
.services-section {
    background: var(--light-bg);
}

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

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

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

.service-description {
    color: #666;
    line-height: 1.8;
}

/* ========== 強み（プロフェッショナルデザイン） ========== */
.features-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

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

.feature-item {
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(211,47,47,0.1);
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(211,47,47,0.05) 0%, rgba(255,107,53,0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 20px;
}

.feature-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(211,47,47,0.2);
    border-color: var(--primary-color);
}

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

.feature-item:hover::after {
    opacity: 1;
}

.feature-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.15));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
    display: inline-block;
}

.feature-item:hover .feature-icon {
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 8px 20px rgba(211,47,47,0.3));
}

.feature-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(211,47,47,0.35);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.feature-item:hover .feature-number {
    transform: rotate(360deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(211,47,47,0.5);
}

.feature-title {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-title {
    color: var(--primary-color);
}

.feature-text {
    color: #666;
    line-height: 1.9;
    font-size: 1.05rem;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.feature-item:hover .feature-text {
    color: #444;
}

/* ========== お知らせ ========== */
.news-section {
    background: var(--white);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.post-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-thumbnail-placeholder {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 250px;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-date {
    margin-right: 0.5rem;
}

.post-category {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.post-title a {
    color: var(--secondary-color);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
}

.read-more:hover {
    background: var(--accent-color);
    color: var(--white);
}

/* ========== CTA ========== */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 6rem 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ========== Instagram ========== */
.instagram-section {
    background: var(--light-bg);
}

.instagram-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.instagram-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ========== フッター ========== */
.site-footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.8);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* ========== 個別記事 ========== */
.single-post {
    max-width: 800px;
    margin: 0 auto;
}

.single-post .post-header {
    margin-bottom: 2rem;
}

.single-post .post-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.single-post .post-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.single-post .post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    color: var(--secondary-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.single-post .post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
}

.single-post .post-content p {
    margin-bottom: 1.2rem;
}

.single-post .post-content img {
    margin: 2rem 0;
    border-radius: 8px;
}

/* ========== 固定ページ ========== */
.page-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-container {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.page-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

/* ========== レスポンシブデザイン ========== */

/* タブレット以下 */
@media (max-width: 1024px) {
    .site-header {
        position: fixed;
        width: 100%;
        top: 0;
    }

    .header-container {
        padding: 0.8rem 1.5rem;
        min-height: 70px;
    }

    .site-logo img {
        height: 45px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        transition: right 0.3s ease;
        z-index: 1001;
        padding: 5rem 0 2rem;
        overflow-y: auto;
    }

    .main-navigation.active {
        right: 0;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation a {
        display: block;
        padding: 1.2rem 2rem;
        color: var(--secondary-color);
        border-radius: 0;
    }

    .main-navigation a:hover {
        background: var(--light-bg);
        padding-left: 2.5rem;
    }

    .site-main {
        margin-top: 0;
        padding-top: 70px;
    }

    .hero-section-home {
        margin-top: 0 !important;
        height: calc(70vh - 70px);
        min-height: 500px;
        padding-top: 0;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .page-hero {
        margin-top: 0;
    }
}

/* スマホ */
@media (max-width: 768px) {
    .header-container {
        padding: 0.75rem 1rem;
        min-height: 60px;
    }

    .site-logo img {
        height: 35px;
    }

    .menu-toggle {
        font-size: 1.8rem;
        padding: 0.6rem 0.9rem;
    }

    .main-navigation {
        width: 80%;
        max-width: 300px;
    }

    /* LINEアプリなどでヘッダーが重ならないように */
    .site-main {
        margin-top: 0;
        padding-top: 60px;
    }

    .hero-section-home {
        height: calc(70vh - 60px);
        min-height: 450px;
        max-height: 600px;
        background-attachment: scroll !important;
        background-position: center center !important;
        padding-top: 0;
        margin-top: 0 !important;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    .hero-scroll-indicator {
        bottom: 1rem;
        font-size: 1.5rem;
    }

    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section-title-main {
        font-size: 1.8rem;
    }

    .section-title-sub {
        font-size: 0.9rem;
    }

    .services-grid,
    .features-grid,
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        gap: 1.5rem;
    }

    .feature-item {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }

    .feature-icon {
        font-size: 3.5rem;
        margin-bottom: 1rem;
    }

    .feature-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }

    .feature-title {
        font-size: 1.4rem;
    }

    .feature-text {
        font-size: 0.95rem;
    }

    .cta-section {
        padding: 3rem 0;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .page-title {
        font-size: 1.8rem;
    }
}
