/*
Theme Name: Kinoshita Recycle
Author: 木下真太郎
Description: キノシタリサイクル専用オリジナルテーマ
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ==================================== */
/* 0. 共通設定・リセット */
/* ==================================== */
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'メイリオ', Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==================================== */
/* 1. ヘッダー (Header) */
/* ==================================== */
header {
    background-color: #003366;
    color: white;
    padding: 15px 0;
    border-bottom: 5px solid #ffcc00;
    position: relative;
    z-index: 100;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    z-index: 102;
}

.logo a {
    color: white;
}

.menu-content ul {
    display: flex;
    gap: 20px;
}

.menu-content a {
    font-size: 16px;
    padding: 5px 10px;
    transition: background-color 0.3s;
    color: white;
}

.menu-content a:hover {
    background-color: #004488;
    border-radius: 4px;
}

/* ハンバーガー関連 */
.menu-btn {
    display: none;
}

#menu-btn-check {
    display: none;
}

.contact-info {
    text-align: right;
    z-index: 101;
}

.contact-info span {
    display: block;
    font-size: 12px;
}

.tel-number {
    font-size: 24px;
    font-weight: bold;
    color: #ffcc00;
}

/* ==================================== */
/* 2. メイン (Hero Section) */
/* ==================================== */
.hero {
    background: url('img/hero-bg.jpg') no-repeat center center / cover;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero h2 {
    font-size: 52px;
    margin: 10px 0 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.9);
}

.catchphrase {
    font-size: 26px;
    font-weight: 300;
    margin: 0 0 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.catchphrase strong {
    color: #ffcc00;
    font-weight: 900;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.primary-btn {
    background-color: #ff6600;
    color: white !important;
    animation: pulse 2s infinite ease-in-out;
}

.secondary-btn {
    background-color: #009933;
    color: white !important;
}

/* ==================================== */
/* 3. トップページ専用セクション */
/* ==================================== */
.section-title {
    font-size: 32px;
    text-align: center;
    color: #003366;
    margin: 50px auto 40px;
    border-bottom: 2px solid #ffcc00;
    display: table;
    padding-bottom: 10px;
    font-weight: bold;
}

/* 特徴 */
.features {
    width: 90%;
    max-width: 1200px;
    margin: -50px auto 40px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    z-index: 3;
    position: relative;
}

.feature-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    transition: 0.3s;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.feature-item h3 {
    color: #003366;
    margin-top: 10px;
    font-size: 20px;
}

.feature-item .icon {
    font-size: 36px;
    margin-bottom: 5px;
}

/* 買取の流れ */
.process-section {
    width: 90%;
    max-width: 1200px;
    margin: 60px auto;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
}

.step-item {
    flex: 1;
    background: white;
    padding: 25px 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.step-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.step-number {
    font-size: 40px;
    font-weight: 900;
    color: #ff6600;
    background: #fff0d8;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* お客様の声 */
.voice-section {
    background-color: #eaf6ff;
    padding: 60px 0;
    text-align: center;
}

.voice-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.voice-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    text-align: left;
}

.voice-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    position: relative;
}

.voice-text::before {
    content: "❝";
    font-size: 30px;
    color: #ffcc00;
    position: absolute;
    top: -10px;
    left: -15px;
}

.voice-name {
    text-align: right;
    font-weight: bold;
    color: #003366;
}

/* ==================================== */
/* 4. 下層ページ・投稿ページ共通スタイル */
/* ==================================== */

/* コンテナ設定 */
.page-container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    min-height: 500px;
}

.page-title {
    border-left: 6px solid #003366;
    padding-left: 15px;
    font-size: 28px;
    margin-bottom: 30px;
    color: #003366;
}

/* 記事本文エリア(case-content) */
.case-content {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
}

/* 買取品目一覧・カード */
.item-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.item-card {
    background: #fff;
    padding: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    width: calc(33.333% - 14px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: #ffcc00;
}

.item-card h3 {
    font-size: 18px;
    color: #003366;
    margin: 0 0 10px 0;
    border-left: 4px solid #ff6600;
    padding-left: 10px;
}

.item-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* 買取実績テーブル */
.case-table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 30px 0;
    border: 1px solid #ddd !important;
}

.case-table th,
.case-table td {
    padding: 15px;
    border: 1px solid #ddd !important;
}

.case-table th {
    background-color: #f4f7f9;
    color: #003366;
    width: 30%;
    text-align: left;
}

/* 会社概要テーブル (company-table) */
.company-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 30px 0 !important;
    border: 1px solid #ddd !important;
    background-color: #fff;
}

.company-table th {
    background-color: #f4f7f9 !important;
    color: #003366 !important;
    width: 30%;
    padding: 20px 15px !important;
    border: 1px solid #ddd !important;
    text-align: left;
    font-weight: bold;
}

.company-table td {
    padding: 20px 15px !important;
    border: 1px solid #ddd !important;
    line-height: 1.6;
}

/* スタッフコメントエリア */
.staff-comment {
    background-color: #f0f8ff !important;
    padding: 25px !important;
    border-radius: 10px;
    border-left: 5px solid #003366;
    margin: 40px 0;
}

.staff-comment h3 {
    margin-top: 0;
    color: #003366;
    border-bottom: 1px solid #bcd;
    padding-bottom: 10px;
}

/* CTAエリア */
.case-cta {
    text-align: center;
    background: #fffaf0;
    border: 2px solid #ffcc00;
    padding: 30px;
    border-radius: 10px;
    margin-top: 50px;
    clear: both;
}

/* ==================================== */
/* 5. フッター (Footer) */
/* ==================================== */
footer {
    background-color: #333;
    color: #bbb;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
}

/* ==================================== */
/* 📱 レスポンシブ対応 */
/* ==================================== */
@media (max-width: 768px) {
    /* メニュー */
    .menu-btn {
        display: flex;
        position: fixed;
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        justify-content: center;
        align-items: center;
        z-index: 105;
        cursor: pointer;
        background-color: #ff6600;
        border-radius: 4px;
    }

    .menu-btn span,
    .menu-btn span:before,
    .menu-btn span:after {
        content: '';
        display: block;
        height: 3px;
        width: 25px;
        border-radius: 3px;
        background-color: #ffffff;
        position: absolute;
        transition: 0.3s;
    }

    .menu-btn span:before {
        bottom: 8px;
    }

    .menu-btn span:after {
        top: 8px;
    }

    .menu-content {
        display: flex !important;
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -100%;
        background: rgba(0, 51, 102, 0.98);
        z-index: 104;
        transition: 0.5s;
        justify-content: center;
        align-items: center;
    }

    #menu-btn-check:checked ~ .menu-content {
        right: 0;
    }

    #menu-btn-check:checked ~ .menu-btn span {
        background: transparent;
    }

    #menu-btn-check:checked ~ .menu-btn span::before {
        bottom: 0;
        transform: rotate(45deg);
    }

    #menu-btn-check:checked ~ .menu-btn span::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .header-container {
        justify-content: center;
    }

    .contact-info {
        display: none;
    }

    /* レイアウト */
    .hero h2 {
        font-size: 32px;
    }

    .features,
    .process-steps,
    .voice-container {
        flex-direction: column;
    }

    .item-card {
        width: 100%;
    }

    /* テーブル全般のスマホ対応 */
    .case-table th,
    .case-table td,
    .company-table th,
    .company-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    .company-table th,
    .case-table th {
        background-color: #eef2f5 !important;
        border-bottom: none !important;
    }

    .page-container {
        width: 95%;
        padding: 15px;
    }
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}