/* Variables */
:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-color: #f0f0f0;
    --accent-color: #c5a059; /* Gold */
    --accent-hover: #e0b86a;
    --sub-text: #a0a0a0;
    --font-main: 'Noto Sans JP', sans-serif;
    --font-head: 'Oswald', sans-serif;
    --font-hand: 'Zen Kurenaido', sans-serif; /* 手書きフォント */
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Typography */
h1, h2, h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.05em; }

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--accent-color);
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
}
.section-title::after {
    content: ''; display: block; width: 50%; height: 3px; background: #fff; margin: 5px auto 0;
}
.section-subtitle {
    text-align: center; margin-bottom: 4rem; color: var(--sub-text); font-size: 0.9rem;
}

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

/* Buttons */
.btn {
    display: inline-block; padding: 12px 35px; background: var(--accent-color);
    color: #000; font-weight: bold; font-family: var(--font-head);
    border: none; cursor: pointer; transition: 0.3s; letter-spacing: 1px;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-3px); }

/* Header */
header {
    position: fixed; top: 0; width: 100%; background: rgba(18,18,18,0.95);
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 40px; z-index: 1000; border-bottom: 1px solid #333;
}
.logo a { font-size: 1.5rem; font-weight: 700; font-family: var(--font-head); }
.logo span { font-size: 0.8rem; margin-left: 10px; color: var(--accent-color); }

nav ul { display: flex; gap: 30px; }
nav ul li a { font-size: 0.95rem; font-weight: 500; position: relative; }
nav ul li a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
    background: var(--accent-color); transition: 0.3s;
}
nav ul li a:hover { color: var(--accent-color); }
nav ul li a:hover::after { width: 100%; }

.header-actions { display: flex; gap: 20px; align-items: center; }
.cart-icon { position: relative; cursor: pointer; font-size: 1.2rem; }
#cart-count {
    position: absolute; top: -8px; right: -8px; background: var(--accent-color);
    color: #000; font-size: 0.7rem; width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold;
}
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
#hero {
    height: 100vh;
    background: url('image/3292037_m.jpg') no-repeat center center/cover;
    position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }

/* ★手書き風キャッチコピー★ */
.handwritten-catch {
    font-family: var(--font-hand);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    transform: rotate(-2deg); /* 少し斜めにして手書き感を強調 */
    line-height: 1.4;
}

.hero-content h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; }
.hero-content h1 .highlight { color: var(--accent-color); font-size: 4.5rem; }
.hero-sub { margin-bottom: 2.5rem; font-size: 1rem; color: #ddd; }

/* Concept */
section { padding: 80px 0; }
.about-content { display: flex; gap: 50px; align-items: center; }
.about-text { flex: 1; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 20px; color: #fff; border-left: 4px solid var(--accent-color); padding-left: 15px; }
.about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 2px; filter: grayscale(20%); }

/* Services (3 Pillars) */
.service-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px;
}
.service-card {
    background: var(--card-bg); border: 1px solid #333; transition: 0.3s;
    display: flex; flex-direction: column; height: 100%;
}
.card-link { display: flex; flex-direction: column; height: 100%; }

.service-card:hover { transform: translateY(-10px); border-color: var(--accent-color); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.service-card .img-box { height: 220px; overflow: hidden; }
.service-card .img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.service-card:hover .img-box img { transform: scale(1.1); }

.card-content { padding: 30px; flex-grow: 1; display: flex; flex-direction: column; }
.card-content h3 { color: var(--accent-color); font-size: 1.4rem; margin-bottom: 5px; }
.card-content .jp-title { font-weight: bold; margin-bottom: 15px; font-size: 1.1rem; }
.card-content .desc { font-size: 0.9rem; color: var(--sub-text); margin-bottom: 20px; flex-grow: 1; }
.read-more { font-family: var(--font-head); font-size: 0.9rem; color: #fff; margin-top: auto; display: inline-flex; align-items: center; gap: 10px; }

/* Pick Up Items (Simple Grid) */
.product-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
}
.product-card {
    background: var(--card-bg); border: 1px solid #333; padding-bottom: 20px; text-align: center;
}
.product-img { height: 200px; overflow: hidden; margin-bottom: 15px; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-info h4 { font-size: 1.1rem; margin: 0 10px 5px; }
.product-info .price { color: var(--accent-color); font-weight: bold; margin-bottom: 15px; }
.btn-shop {
    padding: 8px 20px; background: transparent; border: 1px solid #fff; color: #fff; cursor: pointer; transition: 0.3s;
}
.btn-shop:hover { background: var(--accent-color); border-color: var(--accent-color); color: #000; }

/* Contact Form */
.contact-form { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form select, .contact-form textarea {
    padding: 15px; background: #222; border: 1px solid #444; color: #fff; font-family: var(--font-main);
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-color); }

/* Footer */
footer { background: #000; padding: 50px 0; text-align: center; border-top: 1px solid #333; }
.footer-links { margin: 20px 0; display: flex; justify-content: center; gap: 30px; }
.footer-links a:hover { color: var(--accent-color); }

/* Cart Modal */
.cart-modal {
    position: fixed; top: 0; right: -100%; width: 400px; height: 100vh;
    background: #1a1a1a; border-left: 1px solid var(--accent-color); z-index: 2000;
    transition: 0.4s; padding: 30px; box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    display: flex; flex-direction: column;
}
.cart-modal.active { right: 0; }
.close-cart { font-size: 2rem; cursor: pointer; align-self: flex-end; }
.cart-items { flex-grow: 1; overflow-y: auto; }
.cart-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #333; }
.cart-total { margin: 20px 0; text-align: right; font-size: 1.5rem; color: var(--accent-color); }

/* Subpage Header (Detail pages) */
.sub-hero {
    height: 50vh;
    background-size: cover; background-position: center;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.sub-hero h1 { position: relative; z-index: 2; font-size: 3rem; text-shadow: 0 0 20px rgba(0,0,0,0.8); }

/* Mobile */
@media (max-width: 768px) {
    nav { display: none; }
    .menu-toggle { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content h1 .highlight { font-size: 3rem; }
    .handwritten-catch { font-size: 1.8rem; }
    .about-content { flex-direction: column; }
    .cart-modal { width: 100%; }
    
    .mobile-menu {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: #000; z-index: 2000; flex-direction: column;
        justify-content: center; align-items: center; gap: 30px;
        display: none; /* JSで切り替え */
    }
    .mobile-menu.active { display: flex; }
    .mobile-menu a { font-size: 1.5rem; font-family: var(--font-head); }
    .close-menu { position: absolute; top: 30px; right: 30px; font-size: 2rem; cursor: pointer; }
}

/* =========================================
   Consulting Page Specific Styles
   ========================================= */

/* Sub Hero Adjustments */
.sub-hero {
    height: 60vh; /* 少し高さを出す */
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sub-hero-content {
    position: relative;
    z-index: 2;
}
.sub-hero-content h1 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}
.sub-hero-content p {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* Zigzag Layout */
.detail-section {
    padding: 100px 0;
    background: var(--bg-color);
}

.zigzag-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 120px; /* セクション間の余白 */
}

/* 偶数番目の要素を逆配置にするクラス */
.zigzag-row.reverse {
    flex-direction: row-reverse;
}

.zigzag-img {
    flex: 1;
    position: relative;
}
.zigzag-img img {
    width: 100%;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    filter: grayscale(20%);
    transition: 0.5s;
}
.zigzag-row:hover .zigzag-img img {
    filter: grayscale(0%);
    transform: scale(1.02);
}
/* 画像に枠線を装飾 */
.zigzag-img::before {
    content: '';
    position: absolute;
    top: -15px; left: -15px;
    width: 100%; height: 100%;
    border: 1px solid var(--accent-color);
    z-index: -1;
    transition: 0.3s;
}
.zigzag-row.reverse .zigzag-img::before {
    left: auto; right: -15px; /* 逆配置時は枠線も逆に */
}

.zigzag-text {
    flex: 1;
}

.step-num {
    font-family: var(--font-head);
    font-size: 4rem;
    color: #333;
    font-weight: bold;
    display: block;
    line-height: 1;
    margin-bottom: -10px;
}

.zigzag-text h3 {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 5px;
}
.zigzag-text .jp-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 25px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    display: inline-block;
}

.zigzag-text .desc {
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Service List Styling */
.service-list {
    margin-top: 20px;
}
.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: #ddd;
    font-size: 0.95rem;
}
.service-list li::before {
    content: '✔'; /* チェックマーク */
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    background: url('image/22739675_m.jpg') fixed center/cover;
}
.cta-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
}
.cta-content {
    position: relative; z-index: 2;
}
.cta-content h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 20px;
}
.cta-content p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 30px;
}

/* Fade In Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive for Consulting Page */
@media (max-width: 768px) {
    .sub-hero-content h1 { font-size: 2.5rem; }
    .zigzag-row {
        flex-direction: column; /* モバイルでは常に縦並び */
        gap: 30px;
        margin-bottom: 80px;
    }
    .zigzag-row.reverse {
        flex-direction: column; /* 逆配置も解除して上から順に */
    }
    .zigzag-img::before { display: none; /* スマホでは枠線を消してすっきりさせる */ }
    .cta-content h2 { font-size: 2rem; }
}

/* =========================================
   Web Design Page Specific Styles (ここから追加)
   ========================================= */

/* Marketing Driven Section */
.marketing-design {
    background: #1a1a1a; /* 背景色がないと文字が見えない可能性があります */
    padding: 80px 0;
    text-align: center;
}

.marketing-box {
    max-width: 900px;
    margin: 0 auto;
}
.marketing-box h2 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}
.marketing-box .subtitle {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: bold;
}
.marketing-text {
    color: #ccc;
    line-height: 2;
    margin-bottom: 50px;
    text-align: left;
}
.marketing-text strong {
    color: #fff;
    border-bottom: 1px solid var(--accent-color);
}

/* Features Grid (アイコン3つ並び) */
.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.feature-item {
    flex: 1;
    background: #252525;
    padding: 30px 20px;
    border: 1px solid #333;
    transition: 0.3s;
}
.feature-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}
.feature-item i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}
.feature-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}
.feature-item p {
    font-size: 0.9rem;
    color: #aaa;
}

/* Digital Services (カード型レイアウト) */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.design-card {
    background: var(--card-bg);
    border-bottom: 3px solid var(--accent-color);
}
.design-img {
    height: 240px;
    overflow: hidden;
}
.design-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.design-card:hover .design-img img {
    transform: scale(1.1);
}
.design-info {
    padding: 30px;
}
.design-info h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 5px;
}
.design-info .jp-sub {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}
.design-info p {
    color: var(--sub-text);
    font-size: 0.95rem;
}

/* Analog Services (左右分割レイアウト) */
.analog-services {
    background: #121212;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.analog-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.1), transparent 40%);
    z-index: 0;
}
.relative-z { position: relative; z-index: 1; }

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}
.text-side { flex: 1; }
.img-side {
    flex: 1;
    position: relative;
    padding-left: 50px;
}
.img-side img {
    width: 80%;
    border-radius: 4px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    display: block;
}
.check-list li {
    margin-bottom: 10px;
    color: #fff;
    display: flex;
    align-items: center;
}
.check-list li::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent-color);
    margin-right: 15px;
    transform: rotate(45deg);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .features-grid { flex-direction: column; }
    .split-layout { flex-direction: column; }
    .img-side { padding-left: 0; margin-top: 30px; }
}

/* =========================================
   EC Store Page Specific Styles
   ========================================= */

.store-section {
    padding: 80px 0;
    background: #121212;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 30px;
    background: transparent;
    border: 1px solid #444;
    color: #888;
    font-family: var(--font-head);
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    font-weight: bold;
}

/* Store Grid */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

/* Store Card */
.store-card {
    background: #1e1e1e;
    border: 1px solid #333;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}
.store-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* Card Image Area */
.store-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}
.store-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.store-card:hover .store-img img {
    transform: scale(1.1);
}

/* Tags */
.tag {
    position: absolute;
    top: 10px; left: 10px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #fff;
    z-index: 2;
    text-transform: uppercase;
}
.tag.new { background: var(--accent-color); color: #000; }
.tag.recommend { background: #fff; color: #000; }
.tag.sold { background: #555; color: #ccc; }

/* Card Info */
.store-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.store-info .category {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}
.store-info h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}
.store-info .desc {
    font-size: 0.9rem;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1; /* ボタンを下に押しやる */
}
.price-area {
    margin-bottom: 15px;
    border-top: 1px solid #333;
    padding-top: 15px;
}
.store-info .price {
    font-size: 1.4rem;
    color: var(--accent-color);
    font-family: var(--font-head);
    font-weight: bold;
}

/* Add to Cart Button */
.add-cart-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    cursor: pointer;
    transition: 0.3s;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.add-cart-btn:hover {
    background: var(--text-color);
    color: #000;
}

/* Sold Out / Disabled Button */
.add-cart-btn.disabled {
    border-color: #444;
    color: #666;
    background: #2a2a2a;
    cursor: not-allowed;
}
.add-cart-btn.disabled:hover {
    background: #2a2a2a;
    color: #666;
}

/* =========================================
   Legal Modal Styles (Text Modal)
   ========================================= */

/* Footer Links */
.footer-legal {
    margin: 20px 0;
    font-size: 0.85rem;
}
.footer-legal a {
    color: #888;
    text-decoration: underline;
    transition: 0.3s;
}
.footer-legal a:hover {
    color: var(--accent-color);
}
.footer-legal .separator {
    margin: 0 10px;
    color: #444;
}

/* Modal Overlay (Background) */
.text-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000; /* Cartより手前に */
    display: none; /* JSでflexに切り替え */
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.text-modal-overlay.active {
    display: flex;
    opacity: 1;
}

/* Modal Box */
.text-modal-box {
    background: #1a1a1a;
    width: 100%;
    max-width: 800px;
    height: 80vh; /* 画面の80%の高さ */
    border: 1px solid var(--accent-color);
    padding: 40px;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
}

.close-text-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}
.close-text-modal:hover { color: var(--accent-color); }

.text-modal-box h2 {
    color: var(--accent-color);
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-align: center;
}

/* Scrollable Content */
.text-modal-content {
    overflow-y: auto; /* 長い文章をスクロール可能に */
    padding-right: 10px;
    flex-grow: 1;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Scrollbar Customization */
.text-modal-content::-webkit-scrollbar { width: 8px; }
.text-modal-content::-webkit-scrollbar-track { background: #111; }
.text-modal-content::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

/* Legal Table Styles */
.legal-table {
    width: 100%;
    border-collapse: collapse;
}
.legal-table th, .legal-table td {
    padding: 15px;
    border-bottom: 1px solid #333;
    text-align: left;
}
.legal-table th {
    width: 30%;
    color: var(--accent-color);
    font-weight: normal;
}
.text-modal-content h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.1rem;
}
.text-modal-content ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

/* Mobile */
@media (max-width: 768px) {
    .text-modal-box { padding: 20px; height: 90vh; }
    .legal-table th, .legal-table td { display: block; width: 100%; }
    .legal-table th { padding-bottom: 5px; border-bottom: none; color: var(--accent-color); }
    .legal-table td { padding-top: 0; padding-bottom: 20px; }
}

/* =========================================
   Adjustments for Index & Navigation
   ========================================= */

/* Logo Image Styling */
.logo-img {
    height: 40px; /* ヘッダーに収まる高さ */
    width: auto;
    vertical-align: middle;
}

/* Footer Logo Adjustment */
footer .logo-img {
    height: 50px;
    margin-bottom: 10px;
}

/* Header Contact Button (New) */
.btn-header-contact {
    background: var(--accent-color);
    color: #000;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 8px 20px;
    border-radius: 2px;
    margin-right: 20px;
    transition: 0.3s;
    display: inline-block;
    white-space: nowrap;
}

.btn-header-contact:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* Mobile Menu Button Adjustment */
.mobile-contact-btn {
    background: var(--accent-color);
    color: #000 !important; /* 強制的に黒文字 */
    padding: 10px 30px;
    margin-top: 20px;
    border-radius: 2px;
}

/* Navigation Item Width Adjustment */
/* 日本語メニューが少し広くなる可能性があるため調整 */
nav ul { gap: 25px; }

/* Responsive adjustments */
@media (max-width: 768px) {
    /* スマホではヘッダー内のお問い合わせボタンを隠し、ハンバーガーメニュー内に出す */
    .btn-header-contact {
        display: none;
    }
}


/* プレースホルダーの色調整 */
::placeholder {
    color: #888;
    opacity: 1; 
}

/* =========================================
   Advanced Cart Styles
   ========================================= */

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #333;
}

.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--accent-color);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    background: #333;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: 0.2s;
}
.qty-btn:hover { background: var(--accent-color); color: #000; }

.qty-val {
    font-weight: bold;
    width: 20px;
    text-align: center;
}

.remove-btn {
    color: #666;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.3s;
}
.remove-btn:hover { color: #f00; }

/* =========================================
   Latest News Section Styles
   ========================================= */
#news {
    background: #161616; /* 他のセクションと少し差をつける */
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.news-card {
    background: #1e1e1e;
    border: 1px solid #333;
    transition: 0.3s;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.news-link {
    display: block;
    height: 100%;
    color: inherit;
}

/* Image Area */
.news-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.news-card:hover .news-img img {
    transform: scale(1.1);
}

/* Category Badge */
.news-cat {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    text-transform: uppercase;
    z-index: 2;
}

/* Text Area */
.news-body {
    padding: 20px;
}
.news-body time {
    display: block;
    color: var(--sub-text);
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-family: var(--font-head);
}
.news-body h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: bold;
    /* 2行以上は「...」にする処理 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-excerpt {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
    /* 3行以上は「...」にする処理 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* View All Button */
.news-btn-area {
    text-align: center;
    margin-top: 20px;
}
.btn-outline {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-family: var(--font-head);
    transition: 0.3s;
    letter-spacing: 1px;
}
.btn-outline:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

/* =========================================
   Brush-up Styles (Achievements, FAQ, CTA)
   ========================================= */

/* --- Achievements (実績) --- */
.achievements-section {
    background: #1a1a1a;
    padding: 80px 0;
    text-align: center;
}
.achievements-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.achieve-box {
    background: #252525;
    padding: 40px 30px;
    width: 300px;
    border: 1px solid #333;
    position: relative;
    transition: 0.3s;
}
.achieve-box:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}
.achieve-box i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.achieve-box h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.achieve-box .number {
    font-size: 3.5rem;
    font-family: var(--font-head);
    font-weight: bold;
    color: #fff;
    line-height: 1;
    margin-bottom: 15px;
}
.achieve-box .unit {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-left: 5px;
}
.achieve-box .desc {
    color: #aaa;
    font-size: 0.9rem;
}

/* --- FAQ (アコーディオン) --- */
.faq-section {
    background: #121212;
    padding: 80px 0;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
}
.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 20px;
    text-align: left;
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}
.faq-question:hover {
    color: var(--accent-color);
}
.faq-question i {
    transition: 0.3s;
}
.faq-question.active i {
    transform: rotate(45deg); /* プラスをバツにする回転 */
    color: var(--accent-color);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    background: #1a1a1a;
}
.faq-answer p {
    padding: 20px 0;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* --- Mobile Floating CTA (スマホ用追従ボタン) --- */
.mobile-floating-cta {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    display: none; /* PCでは非表示 */
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
}
.cta-btn {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-weight: bold;
    color: #fff;
    font-size: 0.95rem;
    transition: 0.3s;
}
.cta-btn i { margin-right: 5px; }

.cta-btn.tel {
    background: #333;
    color: #fff;
}
.cta-btn.mail {
    background: var(--accent-color);
    color: #000; /* 黒文字で視認性確保 */
}

/* スマホのみ表示 */
@media (max-width: 768px) {
    .mobile-floating-cta {
        display: flex;
    }
    /* フッターがボタンで隠れないように余白追加 */
    footer {
        padding-bottom: 80px;
    }
}