/* SC POP KOBO - STYLES.CSS */

/* CSS Variables for Colors (Modern Warm Palette) */
:root {
    --primary-color: #E67E22; /* Terracotta Orange */
    --secondary-color: #FDF5E6; /* Creamy White */
    --accent-color: #2C3E50; /* Deep Slate Blue */
    --text-color: #5D4037; /* Dark Brown */
    --heading-color: #3E2723; /* Deeper Brown */
    --light-text-color: #FFFFFF; /* White text for dark backgrounds */
}

/* Basic Styles */
body {
    font-family: 'Noto Sans JP', sans-serif; /* edited */
    margin: 0;
    line-height: 1.8;
    color: var(--text-color);
    background-color: #fff;
}

h1, h2, h3, h4 {
    font-family: 'Noto Sans JP', sans-serif; /* edited */ /* edited */
    font-weight: 700;
    color: var(--heading-color);
}

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

a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    background-size: cover;
    background-position: center;
    color: var(--light-text-color);
    padding: 120px 20px; /* Increased padding */
    text-align: center;
    background-color: var(--primary-color); /* Fallback color */
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Slightly darker overlay for better contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px; /* Limit content width */
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    color: var(--light-text-color);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    color: var(--light-text-color);
}

.btn {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 18px 40px;
    border-radius: 30px; /* Rounded button */
    text-decoration: none;
    font-weight: bold;
    font-family: 'Noto Sans JP', sans-serif; /* edited */
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 6px 15px rgba(0,0,0,.25);
    border: none;
}

.btn:hover {
    background-color: #34495e; /* Darker Slate Blue */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* ヒーローセクションのボタンを特別に大きく、目立たせる */
.hero .btn {
    background-color: var(--primary-color); /* 明るいオレンジ色に変更 */
    color: var(--light-text-color);
    padding: 22px 50px; /* さらに大きく */
    font-size: 1.4rem; /* フォントサイズも大きく */
    border-radius: 50px; /* より丸みのある形に */
    text-transform: uppercase; /* 大文字にして力強さを演出 */
    letter-spacing: 1px; /* 文字間隔を調整 */
    transition: all 0.3s ease; /* トランジションを包括的に */
}


/* PCなど、ホバーが可能なデバイスでのみ適用 */
@media (hover: hover) {
    .hero .btn:hover {
        background-color: #d35400; /* 少し濃いオレンジに */
        transform: scale(1.05) translateY(-3px); /* 少し拡大して浮き上がる効果 */
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    }

    #scrollToTopBtn:hover {
        background-color: #d35400; /* Darker orange on hover */
        transform: translateY(-3px);
    }
}

/* Sections */
section {
    padding: 100px 20px; /* Increased padding */
    text-align: center;
}

section:nth-of-type(even) {
    background-color: var(--secondary-color);
}

section h2 {
    font-size: 2.8rem;
    margin-bottom: 15px; /* Adjusted margin */
    position: relative;
    padding-bottom: 20px;
}

.section-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.7;
}


section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* Icon Placeholder Styles */
.icon-placeholder {
    width: 60px; /* Larger icon holder */
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%; /* Circular icons */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: white;
}

.icon-problem-1::before { content: '\1F4C8'; }
.icon-problem-2::before { content: '\1F4C5'; }
.icon-problem-3::before { content: '\1F4A1'; }
.icon-strength-1::before { content: '\1F3A8'; }
.icon-strength-2::before { content: '\23F1'; }
.icon-strength-3::before { content: '\1F4BB'; }
.icon-flow-1::before { content: '\1F4DD'; }
.icon-flow-2::before { content: '\1F4AC'; }
.icon-flow-3::before { content: '\1F4BC'; }
.icon-flow-4::before { content: '\1F5A8'; }
.icon-flow-5::before { content: '\1F69A'; }

/* Problem Solution Section */
.problem-solution .problems {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.problem-card {
    background-color: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
}

.problem-solution .solution {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    background-color: #fff;
    border: 2px solid var(--primary-color);
    padding: 20px 30px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 30px;
}

/* Product Introduction Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
    text-align: left;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
}

.product-text {
    padding: 25px;
}

.product-text h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-text p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px; /* Add margin to separate from specs */
}

.product-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    text-align: left;
}

.product-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.product-specs li:last-child {
    border-bottom: none;
}

.product-specs strong {
    color: var(--heading-color);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: center;
}

.price-table th, .price-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.price-table th {
    background-color: var(--secondary-color);
    font-weight: 700;
    color: var(--heading-color);
}

.price-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}


/* Strengths Section */
.strengths-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.strength-card {
    background-color: transparent; /* Remove white background */
    padding: 30px;
    border-radius: 12px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
}

.strength-card h4 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    white-space: nowrap;
}

.strength-card p {
    font-size: 1rem;
    line-height: 1.7;
}

/* How to Order Section */
.flow-list {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.flow-list li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    flex: 1;
    position: relative;
}

/* Add arrows between flow items */
.flow-list li:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -25px;
    top: 35px;
    font-size: 2rem;
    color: var(--primary-color);
    transform: translateY(-50%);
}


.flow-list span {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Design Samples Section */
.design-samples {
    background-color: var(--secondary-color);
}

/* 活用イメージ（導入事例）セクション */ /* edited */
.case-grid { /* edited */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* edited */
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card { /* edited */
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    overflow: hidden;
    text-align: left;
}

.case-card:hover { /* edited */
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.case-card img { /* edited */
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
}

.case-text { /* edited */
    padding: 25px;
}

.case-text h3 { /* edited */
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.case-text p { /* edited */
    font-size: 1rem;
    line-height: 1.7;
}

.btn-cta { /* edited */
    margin-top: 60px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 18px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 6px 15px rgba(0,0,0,.25);
    border: none;
}

.btn-cta:hover { /* edited */
    background-color: #d35400;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}


/* FAQ Section */
.faq-item {
    text-align: left;
    max-width: 800px;
    margin: 0 auto 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    background-color: #fff;
}

.faq-question {
    font-size: 1.3rem;
    margin: 0;
    cursor: pointer;
    position: relative;
    padding-right: 40px;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-';
}

.faq-answer {
    font-size: 1rem;
    line-height: 1.8;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 1px solid #eee;
    display: none;
}

/* CTA Section */
.cta, .cta-middle {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 100px 20px;
}

#contact {
    background-color: var(--primary-color);
}

.cta h2, .cta-middle h2 {
    color: var(--light-text-color);
    font-size: 2.5rem;
}

.cta p, .cta-middle p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-middle {
    background-color: var(--secondary-color);
}

.cta-middle h2 {
    color: var(--heading-color);
}
.cta-middle p {
    color: var(--text-color);
}
.cta-middle .btn {
    background-color: var(--primary-color);
}
.cta-middle .btn:hover {
    background-color: #d35400;
}


/* Footer */
footer {
    background-color: var(--heading-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    section h2 {
        font-size: 2.2rem;
    }
    .flow-list li:not(:last-child)::after {
        display: none; /* Hide arrows on smaller screens */
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 15px;
    }
    .problem-solution .problems, .strengths-grid, .flow-list, .sample-grid {
        flex-direction: column;
        align-items: center;
        grid-template-columns: 1fr; /* For grid layouts */
    }
    .problem-card, .strength-card, .sample-card {
        width: 100%;
        max-width: 400px;
    }
    .product-grid {
        grid-template-columns: 1fr;
    }
    .flow-list li {
        max-width: 100%;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
    section h2 {
        font-size: 2rem;
    }
    .faq-question {
        font-size: 1.1rem;
    }
    .faq-answer {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .problem-card, .strength-card, .sample-card {
        padding: 25px;
    }
    .product-text, .sample-text {
        padding: 20px;
    }
    .product-text h3, .sample-text h3 {
        font-size: 1.4rem;
    }
    .product-text p, .sample-text p {
        font-size: 0.9rem;
    }
}

/* Scroll to top button */
#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
}

#scrollToTopBtn:hover {
    background-color: #d35400; /* Darker orange on hover */
    transform: translateY(-3px);
}

/* --- Added for Product Tabs --- */

/* Tab Content Panes */
.product-tab-content .tab-pane {
    display: none;
}

.product-tab-content .tab-pane.active {
    display: block;
}

/* Tab Navigation */
.product-tab-nav {
    margin: 20px 0;
    border-bottom: 2px solid #eee;
}

.tabs-wrapper {
    display: flex;
    gap: 5px;
    overflow-x: auto; /* Enable horizontal scrolling on mobile */
    white-space: nowrap; /* Prevent tabs from wrapping */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    flex-shrink: 0; /* Prevent tabs from shrinking */
}

.tab-link:hover {
    color: var(--primary-color);
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Selection Display */
.selected-design-display {
    margin: 20px 0;
    padding: 10px;
    background-color: var(--secondary-color);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-size: 1.1rem;
}

.selected-design-display .selected-design-name {
    color: var(--primary-color);
}

/* Inquire Button */
.btn-inquire {
    display: block;
    width: 100%;
    margin-top: 25px;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    transition: background-color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
}

.btn-inquire:hover {
    background-color: #34495e;
    transform: translateY(-3px);
}

/* Inquiry Message Display */
#inquiry-message-display {
    display: none; /* Hidden by default */
    background-color: var(--secondary-color);
    color: var(--heading-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    font-size: 1.3rem;
    font-weight: 700;
    border-left: 5px solid var(--primary-color);
    text-align: center;
}

/* Ensure product card image doesn't have a bottom border now */
.product-tabs-container img {
     width: 100%;
    height: auto;
    display: block;
}
.product-card img {
    border-bottom: none;
}

/* --- Added for Tab Scroll Buttons --- */
.product-tab-nav {
    position: relative;
    padding: 0 25px; /* Add padding to make space for buttons */
}

.tab-scroll-btn {
    display: none; /* Hidden by default, shown by JS on desktop if needed */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.tab-scroll-btn:hover {
    background-color: #fff;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-scroll-btn.prev {
    left: -5px; /* Adjusted position */
}

.tab-scroll-btn.next {
    right: -5px; /* Adjusted position */
}

.tab-scroll-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* On mobile, hide the scroll buttons and remove the padding */
@media (max-width: 768px) {
    .tab-scroll-btn {
        display: none !important; /* Important to override JS */
    }
    .product-tab-nav {
        padding: 0;
    }
}

/* Price Table Note */
.product-text .price-note {
    font-size: 0.8rem;
    color: #777;
    text-align: right;
    margin-top: 10px;
}

#cases {
    display: none;
}
