/*
Theme Name: Kuromozi
Theme URI: https://kuromozi.com
Description: 黒文字商品サイト用カスタムテーマ。シンプルで見やすいデザインを重視しています。
Version: 1.0
Author: Kuromozi
Author URI: https://kuromozi.com
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kuromozi
*/

/* ======================================
   リセット＆基本設定
====================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #4CAF50;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #66BB6A;
    opacity: 0.8;
}

/* ======================================
   レイアウト＆コンテナ
====================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #213260;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    margin: 15px auto 0;
}

/* ======================================
   ヘッダー
====================================== */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    padding: 20px 0;
    gap: 40px;
    position: relative;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #213260;
    /* 将来的にロゴ画像を入れる場合 */
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo a {
    color: #213260;
    display: block;
}

.site-logo a:hover {
    color: #4CAF50;
}

/* ロゴ画像用のスタイル（将来使用） */
.site-logo img,
.custom-logo {
    max-height: 80px;
    width: auto;
    display: block;
}

.custom-logo-link {
    display: block;
    line-height: 1;
}

/* メインナビゲーション */
.main-navigation {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
}

.main-navigation li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    display: block;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    width: 100%;
}

/* モバイルメニュートグル */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    flex-shrink: 0;
}

/* ======================================
   ヒーローセクション（トップページ）
====================================== */
.hero {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(255, 255, 255, 1) 100%);
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    color: #213260;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* ======================================
   黒文字について（説明セクション）
====================================== */
.kuromozi-intro {
    background-color: #f9f9f9;
}

.kuromozi-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 2;
}

.kuromozi-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* ======================================
   お知らせセクション
====================================== */
.news-section {
    background-color: #fff;
}

.news-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: #f9f9f9;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
}

.news-date {
    color: #4CAF50;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 100px;
}

.news-title {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.news-title a {
    color: #333;
}

.news-title a:hover {
    color: #4CAF50;
}

/* ======================================
   商品セクション
====================================== */
.products-section {
    background-color: #f9f9f9;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4CAF50;
    font-size: 4rem;
}

.product-content {
    padding: 25px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #213260;
    margin-bottom: 15px;
}

.product-description {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.product-link {
    display: inline-block;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    color: #fff;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.product-link:hover {
    color: #fff;
    transform: scale(1.05);
}

/* ======================================
   商品詳細ページ
====================================== */
.product-detail {
    padding: 60px 0;
}

.product-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.product-detail h1 {
    font-size: 2.2rem;
    color: #213260;
    margin-bottom: 30px;
    text-align: center;
}

.product-detail-body {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    line-height: 2;
}

.product-detail-body p {
    margin-bottom: 20px;
}

/* ======================================
   お知らせ一覧・詳細ページ
====================================== */
.news-archive {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.news-archive-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

.news-archive-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.news-archive-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.news-detail {
    padding: 60px 0;
    background-color: #fff;
}

.news-detail-content {
    max-width: 900px;
    margin: 0 auto;
}

.news-detail h1 {
    font-size: 2rem;
    color: #213260;
    margin-bottom: 15px;
}

.news-detail-meta {
    color: #4CAF50;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.news-detail-body {
    line-height: 2;
}

.news-detail-body p {
    margin-bottom: 20px;
}

/* ======================================
   フッター
====================================== */
.site-footer {
    background-color: #213260;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.company-info p {
    margin-bottom: 10px;
    line-height: 1.8;
}

.footer-map iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ======================================
   レスポンシブ対応
====================================== */
@media (max-width: 768px) {
    .header-inner {
        justify-content: space-between;
        padding: 15px 0;
        gap: 15px;
    }

    .site-logo {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        gap: 15px;
        z-index: 100;
    }

    .main-navigation.active {
        display: flex;
    }

    .main-navigation a {
        text-align: center;
        padding: 12px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        gap: 10px;
    }

    .news-date {
        min-width: auto;
    }
}

/* ======================================
   ユーティリティクラス
====================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.green-accent {
    color: #4CAF50;
}

.button {
    display: inline-block;
    background: linear-gradient(90deg, #4CAF50, #66BB6A);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.button:hover {
    color: #fff;
    transform: scale(1.05);
}

