@charset "UTF-8";

/* =========================================
   Product Page Specific Styles (Kobitto & Service)
   ========================================= */

/* Back to Top Link */
.back-link {
    position: absolute; top: 90px; left: 40px; /* ヘッダーの下に配置 */
    text-decoration: none; color: var(--text-color);
    font-size: 0.9rem; z-index: 100;
    transition: opacity 0.3s;
}
.back-link:hover { opacity: 0.6; }

/* -------------------------------------------
   Product Hero
   ヘッダー(60px)の下に配置し、被りを防ぐ
------------------------------------------- */
.product-hero {
    position: relative;
    /* ヘッダーと同じ背景色にして一体感を出す */
    background-color: var(--bg-color);
    display: flex;
    align-items: center; /* 垂直中央 */
    height: 85vh;
    min-height: 600px;
    margin-top: 60px; /* ヘッダー固定分の余白 */
    overflow: hidden;
}

.hero-content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 10;
    pointer-events: none; /* レイアウト用コンテナはクリック透過 */
}

.product-title-block {
    width: 45%; /* 画面の左側45%を使う */
    margin-left: 5%;
    position: relative;
    z-index: 10; /* 画像より手前 */
    pointer-events: auto; /* 文字は選択可能に */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8); /* 背景が被っても読めるように */
}

.product-label {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem; color: var(--main-green); letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.product-name {
    font-family: var(--font-serif);
    font-size: 4rem; line-height: 1.1; margin: 0 0 20px;
    color: var(--text-color);
}
.product-catch {
    font-size: 1.1rem; line-height: 1.8;
    color: var(--text-color);
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%; /* 画面の右側60%を使う */
    height: 100%;
    z-index: 0; /* 文字より奥に配置 */
}
.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Intro Text */
.intro-text p {
    font-size: 1.1rem; line-height: 2.2; text-align: center;
    max-width: 600px; margin: 0 auto;
}

/* -------------------------------------------
   User Journey (利用フロー)
------------------------------------------- */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.journey-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    border-top: 4px solid var(--copper);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* アイコンのはみ出しをカット */
}

.journey-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 15px;
    position: relative;
    z-index: 2;
}

.step-badge {
    display: inline-block;
    background: var(--copper);
    color: #fff;
    font-family: 'Roboto Mono';
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.journey-header h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-color);
}

.journey-body {
    flex-grow: 1;
    position: relative;
    z-index: 2; /* ★重要: アイコンより手前に表示 */
}

.journey-body ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.journey-body li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.journey-body strong {
    color: var(--main-green);
    background: linear-gradient(transparent 70%, #d4e4e0 70%);
    font-weight: bold;
}

.journey-icon {
    position: absolute;
    bottom: -10px;
    right: 0px;
    font-size: 5rem;
    color: #f8f8f8; /* 非常に薄い色にして文字の邪魔をしない */
    z-index: 0; /* ★重要: 一番奥に配置 */
    pointer-events: none;
}

.alert-box {
    background: #fff4e5;
    border-left: 4px solid #ff9800;
    padding: 10px;
    font-size: 0.85rem;
    color: #663c00;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

/* -------------------------------------------
   Technical Advantage (Features)
------------------------------------------- */
/* ダークテーマセクション用クラス */
.tech-section {
    background-color: #222;
    color: #fff;
}

.tech-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

/* Zig-Zag Layout for Tech Features */
.feature-row {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 120px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { flex-direction: row-reverse; }

.feature-img {
    flex: 1;
    min-height: 350px;
    background: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 8px;
    overflow: hidden;
    padding: 40px;
    border: 1px solid #444;
}
.feature-desc {
    flex: 1;
}

.feature-num {
    display: block;
    font-family: 'Roboto Mono';
    color: var(--copper);
    font-size: 1rem;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
    font-weight: bold;
}

.feature-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 25px;
    line-height: 1.4;
    /* テキストカラーは親要素(.tech-section)に依存するか個別に指定 */
    border-bottom: 1px solid #555;
    padding-bottom: 15px;
}

/* Tech section内のテキスト色調整 */
.tech-section .feature-title {
    color: #fff;
}
.tech-section .feature-text {
    font-size: 0.95rem;
    line-height: 1.9;
    color: #ccc;
}
.tech-section .feature-text strong {
    color: #fff;
    font-weight: bold;
}


/* -------------------------------------------
   Plans & Comparison
   ------------------------------------------- */
.plan-container {
    display: flex; gap: 30px; flex-wrap: wrap; justify-content: center;
}
.plan-card {
    background: #fff; border: 1px solid #ddd; padding: 40px 30px;
    flex: 1; min-width: 300px;
    display: flex; flex-direction: column;
}
.plan-card h4 { font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 10px; }
.plan-desc { color: #666; font-size: 0.9rem; margin-bottom: 20px; min-height: 3em; }
.plan-list { list-style: none; margin: 0; padding: 0; }
.plan-list li { margin-bottom: 10px; border-bottom: 1px dashed #eee; padding-bottom: 10px; }

.comparison-table {
    width: 100%; border-collapse: collapse; min-width: 600px;
}
.comparison-table th, .comparison-table td {
    padding: 15px; border-bottom: 1px solid #ccc; text-align: left;
}
.comparison-table th { background: var(--bg-dark); width: 25%; }
.comparison-table td:last-child {
    background: #fff; font-weight: bold; border-left: 2px solid var(--copper); color: var(--text-color);
}

.btn-primary {
    display: inline-block; margin-top: 40px; padding: 15px 40px;
    border: 1px solid var(--text-color); color: var(--text-color); text-decoration: none;
    transition: all 0.3s;
}
.btn-primary:hover { background: var(--text-color); color: #fff; }

/* Features Grid (Simple - for Key Features) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}
.icon-circle {
    width: 60px; height: 60px;
    background: var(--bg-dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem; color: var(--copper);
}
.feature-card h4 {
    font-family: var(--font-serif); font-size: 1.2rem; margin-bottom: 5px;
}
.feature-sub {
    font-family: 'Roboto Mono'; color: var(--main-green); font-size: 0.8rem; margin-bottom: 15px; letter-spacing: 0.05em;
}
.feature-card p:last-child {
    font-size: 0.9rem; line-height: 1.8; color: #555; text-align: left;
}


/* -------------------------------------------
   Mobile Responsive
   ------------------------------------------- */
@media (max-width: 768px) {
    .product-hero {
        height: auto;
        min-height: 600px;
        padding: 40px 20px;
        align-items: center;
        text-align: center;
    }
    .product-title-block {
        width: 100%;
        margin-left: 0;
        margin-bottom: 40px;
    }
    .hero-image-container {
        width: 100%;
        height: 100%;
        opacity: 0.3; /* スマホでは背景として薄く表示 */
    }
    
    .journey-grid { grid-template-columns: 1fr; }
    
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        margin-bottom: 80px;
    }
    .feature-img { width: 100%; min-height: 250px; }
    .feature-title { font-size: 1.5rem; }
    
    .features-grid { grid-template-columns: 1fr; }
    .plan-container { flex-direction: column; }
}