/* リセットとベース */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #E53D1B;
    --dark-navy: #121422;
    --charcoal: #262E3C;
    --slate: #4D4F59;
    --silver: #84929E;
    --light-silver: #B2B6C1;
    --off-white: #FCFCFD;
    --whisper: #F2F2F4;
    --white: #ffffff;
    --black: #000000;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--dark-navy);
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo svg {
    width: 45px;
    height: 45px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: 0.3s;
}

.menu-text {
    color: var(--white);
    font-size: 13px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* オーバーレイメニュー */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 20, 34, 0.98);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-overlay.active {
    display: flex;
    opacity: 1;
}

.menu-content {
    max-width: 1100px;
    margin: auto;
    padding: 80px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    color: var(--white);
}

.menu-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.menu-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--light-silver);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-section ul {
    list-style: none;
}

.menu-section ul li {
    margin-bottom: 15px;
}

.menu-section ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.menu-section ul li a:hover {
    color: var(--primary-red);
}

.menu-contact p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.menu-cta {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background 0.3s;
}

.menu-cta:hover {
    background: #c73316;
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    background: linear-gradient(rgba(18, 20, 34, 0.7), rgba(18, 20, 34, 0.7)), url('../visuals/hero-bg.webp') center/cover;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 700;
}

.hero-text h1 .accent {
    color: var(--primary-red);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--light-silver);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background: #c73316;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-navy);
}

/* セクション共通 */
section {
    padding: 100px 0;
}

.section-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--silver);
    margin-bottom: 20px;
    font-weight: 700;
}

.section-heading {
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.3;
    margin-bottom: 60px;
    font-weight: 700;
}

.section-heading .highlight {
    background: var(--primary-red);
    color: var(--white);
    padding: 0 10px;
    display: inline-block;
}

.text-center {
    text-align: center;
}

/* フリップカード */
.flip-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.flip-card {
    perspective: 1000px;
    height: 300px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.flip-card-front {
    background: var(--off-white);
    border: 2px solid var(--whisper);
}

.flip-card-back {
    background: var(--primary-red);
    color: var(--white);
    transform: rotateY(180deg);
}

.flip-card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
}

.flip-card h3 {
    font-size: 18px;
    font-weight: 600;
}

.flip-card-back p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 15px;
}

/* 証言セクション */
.testimonial {
    background: var(--off-white);
    text-align: center;
}

.quote-icon {
    width: 80px;
    height: auto;
    margin: 0 auto 30px;
    opacity: 0.3;
}

.testimonial-quote {
    font-size: 22px;
    line-height: 1.6;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--slate);
}

.testimonial-author {
    font-size: 18px;
    font-weight: 700;
    color: var(--charcoal);
}

.testimonial-org {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--silver);
    margin-top: 5px;
}

/* ポートフォリオグリッド */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-item:hover img {
    transform: scale(1.05);
}

/* サービスカード */
.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--off-white);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--charcoal);
}

.service-card p {
    color: var(--slate);
    line-height: 1.7;
}

.service-card ul {
    list-style: none;
    margin-top: 20px;
    text-align: left;
}

.service-card ul li {
    padding: 8px 0;
    color: var(--slate);
    border-bottom: 1px solid var(--whisper);
}

.service-card ul li:last-child {
    border-bottom: none;
}

/* 価格セクション */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--whisper);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s;
}

.pricing-card.featured {
    border-color: var(--primary-red);
    transform: scale(1.05);
}

.pricing-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.pricing-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--charcoal);
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.pricing-period {
    font-size: 14px;
    color: var(--silver);
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--whisper);
    color: var(--slate);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    background: var(--off-white);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 25px 30px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--charcoal);
}

.faq-question:hover {
    color: var(--primary-red);
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.faq-answer-content {
    padding: 0 30px 25px;
    color: var(--slate);
    line-height: 1.8;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* CTAバナー */
.cta-banner {
    background: var(--primary-red);
    color: var(--white);
    text-align: center;
    padding: 80px 20px;
}

.cta-banner h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto;
}

/* フッター */
.footer {
    background: var(--dark-navy);
    color: var(--light-silver);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--light-silver);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

/* クッキー通知 */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-navy);
    color: var(--white);
    padding: 20px;
    z-index: 9998;
    display: none;
}

.cookie-notice.show {
    display: block;
}

.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1;
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
}

.cookie-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cookie-accept {
    background: var(--primary-red);
    color: var(--white);
}

.cookie-decline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .menu-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
    
    section {
        padding: 60px 0;
    }
    
    .flip-cards {
        grid-template-columns: 1fr;
    }
    
    .service-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ユーティリティ */
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.pt-80 { padding-top: 80px; }
