/**
 * 製品ページ専用スタイル
 * 開先加工機用チップ、開先カッター用部品、鉄骨加工用カッターなど
 */

/* ==========================================================================
   変数
   ========================================================================== */

:root {
    --product-primary: #003c71;
    --product-primary-dark: #002a52;
    --product-primary-light: #0056a3;
    --product-accent: #e63312;
    --product-text: #333333;
    --product-text-light: #666666;
    --product-bg: #f5f7fa;
    --product-white: #ffffff;
    --product-border: #e0e0e0;
}

/* ==========================================================================
   ページ共通
   ========================================================================== */

.product-page {
    background: var(--product-white);
    padding-top: 80px;
}

.product-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   ページヘッダー
   ========================================================================== */

.page-header-section {
    background: linear-gradient(135deg, var(--product-primary) 0%, var(--product-primary-light) 100%);
    padding: 50px 0;
    color: var(--product-white);
}

/* パンくずリスト */
.breadcrumb {
    margin-bottom: 15px;
    border-top: none !important;
    border-bottom: none !important;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--product-white);
}

.breadcrumb-item.current span {
    color: var(--product-white);
    font-weight: 500;
}

/* ページタイトル */
.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--product-white);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   イントロセクション
   ========================================================================== */

.product-category-intro {
    padding: 60px 0;
    background: var(--product-white);
}

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

.intro-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--product-text);
    margin: 0;
}

/* ==========================================================================
   製品グリッドセクション
   ========================================================================== */

.product-grid-section {
    padding: 60px 0 100vh;
    background: var(--product-white);
}

.product-grid-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--product-text);
    margin: 0 0 30px;
    padding-left: 15px !important;
    position: relative;
}

.product-grid-section .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: var(--product-primary);
    border-radius: 3px;
}

/* セクションタイトルなし版（ページタイトルと同じ場合） */
.product-grid-section.no-section-title {
    padding-top: 0;
}

/* 製品グリッド */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25% 2.5%;
    max-width: 1000px;
    margin: 0 auto;
}

/* 製品アイテム - 新レイアウト */
.product-item {
    max-width: 100%;
    background: var(--product-white);
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* 製品タイトル（左上） */
.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--product-text);
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}

/* 製品コンテンツ（横並び：画像+スペック） */
.product-content {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

/* 製品画像（左側） */
.product-image {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    background: #f0efec;
    border-radius: 4px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background: #f0efec;
}

.product-image-placeholder svg {
    width: 50%;
    height: 50%;
    stroke: #444;
}

/* スペック情報（右側） */
.product-specs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    line-height: 1.6;
}

.spec-label {
    flex-shrink: 0;
    color: var(--product-text);
}

.spec-value {
    color: var(--product-text);
    text-align: right;
	font-weight: 500;
}

/* 寸法（下部） */
.product-dimensions {
    font-size: 0.9rem;
    color: var(--product-text);
}

.product-dimensions .dim-label {
    color: var(--product-text);
    margin-right: 8px;
}

/* 旧レイアウト用（互換性） */
.product-name {
    padding: 15px;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--product-text);
    text-align: center;
    background: var(--product-white);
    border-top: 1px solid var(--product-border);
}

/* 交互背景色のセクション */
.product-grid-section-alt {
    background: var(--product-white);
}

/* ==========================================================================
   製品説明セクション
   ========================================================================== */

.product-description-section {
    padding: 80px 0;
    background: var(--product-white);
}

.description-box {
    max-width: 900px;
    margin: 0 auto;
    background: var(--product-bg);
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.description-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--product-primary);
    margin: 0 0 30px;
    text-align: center;
}

.description-content p {
    font-size: 1rem;
    line-height: 2;
    color: var(--product-text);
    margin: 0 0 20px;
    text-align: justify;
}

.description-content p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   関連カテゴリセクション
   ========================================================================== */

.related-categories-section {
    position: relative;
    z-index: 10;
    padding: 80px 0;
    background: #f5f7fa;
    background-color: #f5f7fa;
    clear: both;
}

.related-categories-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--product-text);
    margin: 0 0 40px;
    padding-left: 15px !important;
    position: relative;
}

.related-categories-section .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: var(--product-primary);
    border-radius: 3px;
}

.related-banners {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.related-banner {
    position: relative;
    display: block;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.related-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.related-banner:hover .related-banner-image {
    transform: scale(1.05);
}

.related-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    z-index: 1;
    transition: all 0.3s ease;
}

.related-banner:hover::before {
    background: linear-gradient(to top, rgba(0, 60, 113, 0.8) 0%, rgba(0, 60, 113, 0.3) 50%, transparent 100%);
}

.related-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.related-banner-title {
    color: var(--product-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.related-banner-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.related-banner-arrow svg {
    stroke: var(--product-white);
}

.related-banner:hover .related-banner-arrow {
    background: var(--product-white);
}

.related-banner:hover .related-banner-arrow svg {
    stroke: var(--product-primary);
}

/* ==========================================================================
   CTAセクション
   ========================================================================== */

.product-cta-section {
    padding: 80px 0;
    background: var(--product-white);
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--product-primary) 0%, var(--product-primary-light) 100%);
    border-radius: 12px;
    padding: 50px 60px;
    color: var(--product-white);
}

.cta-content {
    flex: 1;
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.cta-text {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
    line-height: 1.8;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--product-white);
    color: var(--product-primary);
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 40px;
}

.cta-button:hover {
    background: var(--product-accent);
    color: var(--product-white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button svg {
    transition: all 0.3s ease;
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */

@media screen and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media screen and (max-width: 1099px) {
    .product-grid-section {
        padding: 60px 0 85vh;
    }
}

@media screen and (max-width: 1023px) {
    .product-grid-section {
        padding: 60px 0 80px;
    }
}

@media screen and (max-width: 768px) {
    .product-page {
        padding-top: 70px;
    }
    
    .page-header-section {
        padding: 40px 0;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .product-category-intro {
        padding: 40px 0;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .product-grid-section {
        padding: 40px 0;
    }
    
    /* スマホ版：1列表示 */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-content {
        gap: 12px;
    }
    
    .product-image {
        width: 100px;
        height: auto;
    }
    
    .spec-row {
        font-size: 1.2rem;
    }
    
    .spec-label {
        width: fit-content;
    }
    
    .product-dimensions {
        font-size: 1.2rem;
    }
    
    .product-name {
        font-size: 0.85rem;
        padding: 12px;
    }
    
    .product-description-section {
        padding: 50px 0;
    }
    
    .description-box {
        padding: 30px 25px;
    }
    
    .description-title {
        font-size: 1.25rem;
    }
    
    .description-content p {
        font-size: 0.95rem;
    }
    
    .related-categories-section {
        padding: 50px 0;
    }
    
    .related-banners {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-banner {
        height: 180px;
    }
    
    .product-cta-section {
        padding: 50px 0;
    }
    
    .cta-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }
    
    .cta-title {
        font-size: 1.25rem;
    }
    
    .cta-text {
        font-size: 0.95rem;
    }
    
    .cta-button {
        margin-left: 0;
        margin-top: 25px;
    }
}

@media screen and (max-width: 480px) {
    .product-grid {
        max-width: 100%;
    }
    
    .product-name {
        font-size: 0.8rem;
        padding: 10px;
    }
    
    .breadcrumb-list {
        font-size: 0.75rem;
    }
}

/* ==========================================================================
   鉄骨加工用カッター専用スタイル（kako-cutter）
   ========================================================================== */

/* kako-cutter専用グリッド - PC版2列 */
.kako-cutter-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
    max-width: 800px !important;
}

.kako-cutter-page .product-grid-section {
    padding: 60px 0 80px;
}

/* kako-cutter カードスタイル */
.kako-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.kako-product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.kako-product-image {
    padding: 30px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kako-product-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.kako-product-info {
    padding: 15px 20px;
    display: flex;
    align-items: baseline;
    gap: 20px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.kako-info-label {
    font-size: 0.9rem;
    color: #666;
    flex-shrink: 0;
}

.kako-info-value {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

/* kako-cutter - タブレット版2列維持 */
@media screen and (max-width: 1023px) {
    .kako-cutter-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        max-width: 700px !important;
    }
    
    .kako-product-image {
        padding: 20px;
    }
}

/* kako-cutter - スマホ版1列 */
@media screen and (max-width: 600px) {
    .kako-cutter-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        max-width: 400px !important;
    }
    
    .kako-product-title {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .kako-product-image {
        padding: 25px 20px;
    }
    
    .kako-product-info {
        padding: 12px 15px;
        gap: 15px;
    }
    
    .kako-info-label {
        font-size: 0.85rem;
    }
    
    .kako-info-value {
        font-size: 0.95rem;
    }
}
