@charset "UTF-8";

/*
Theme Name: honekin
Author: honekin
Description: honekin
Version: 1.0.0
*/

/* =========================================
   1. 変数定義 (Variables)
   ========================================= */
:root {
    --main-color: #A80000;    /* 信頼感のある深い赤 */
    --accent-color: #D32F2F;  /* 少し明るい赤 */
    --text-color: #333333;    /* 読みやすい濃いグレー */
    --bg-gray: #f9f9f9;       /* 薄いグレーの背景 */
    --white: #ffffff;
}

/* =========================================
   2. 基本設定・共通クラス (Base & Common)
   ========================================= */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* コンテナ */
.container {
    padding: 0 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* セクション余白 */
.section {
    padding: 60px 0;
}

.section--gray {
    background-color: var(--bg-gray);
}

/* セクションタイトル */
.section__title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--main-color);
    border-bottom: 2px solid var(--main-color);
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* =========================================
   3. ボタン (Buttons)
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s;
    text-align: center;
    cursor: pointer;
}

.btn:hover {
    opacity: 0.8;
}

.btn--primary {
    background-color: var(--main-color);
    color: var(--white);
    width: 80%;
    max-width: 300px;
    box-shadow: 0 4px 10px rgba(168, 0, 0, 0.3);
}

.btn--white {
    background-color: var(--white);
    color: var(--main-color);
}

/* 枠線ボタン（一覧に戻る等） */
.btn--secondary {
    background-color: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    /* 文字数に合わせて伸縮・改行禁止 */
    width: auto;
    min-width: 200px;
    padding: 12px 30px;
    white-space: nowrap;
}

.btn--secondary:hover {
    background-color: var(--main-color);
    color: var(--white);
}

/* =========================================
   4. ヘッダー (Header)
   ========================================= */
.header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    height: 60px;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
}

.header__logo {
    font-size: 1.2rem;
    color: var(--main-color);
    font-weight: bold;
}

.header__logo a {
    text-decoration: none;
    color: inherit;
}

/* スマホ用ナビゲーション */
.header__nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--white);
    height: calc(100vh - 60px);
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.header__nav.is-active {
    transform: translateX(0);
}

.header__nav-list {
    list-style: none;
    padding: 20px;
    margin: 0;
    text-align: center;
}

.header__nav-list li {
    margin-bottom: 20px;
}

.header__nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.1rem;
    display: block;
    padding: 10px;
}

/* ハンバーガーボタン */
.header__menu-btn {
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.header__menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--main-color);
    transition: all 0.3s;
}

.header__menu-btn span:nth-of-type(1) { top: 0; }
.header__menu-btn span:nth-of-type(2) { top: 50%; transform: translateY(-50%); }
.header__menu-btn span:nth-of-type(3) { bottom: 0; }

.header__menu-btn.is-active span:nth-of-type(1) { transform: translateY(9px) rotate(45deg); }
.header__menu-btn.is-active span:nth-of-type(2) { opacity: 0; }
.header__menu-btn.is-active span:nth-of-type(3) { transform: translateY(-9px) rotate(-45deg); }

/* =========================================
   5. フッター (Footer)
   ========================================= */
.footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.8rem;
}

.footer__copy {
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* =========================================
   6. トップページ専用 (Top Page)
   ========================================= */

/* ヒーローエリア */
.hero {
    margin-top: 60px;
    position: relative;
    background-image: url('images/head.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 20px;
    text-align: center;
    color: var(--white);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero__text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* カード共通 */
.feature__item, .service__card {
    background: var(--white);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* サービスカード内画像 */
.service__img-wrapper {
    margin-bottom: 20px;
}
.service__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.service__name {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.4;
}

.service__desc {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
}

/* トップお知らせリスト */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.news-list__item {
    border-bottom: 1px solid #ddd;
}

.news-list__link {
    display: block;
    padding: 20px 0;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s;
}

.news-list__link:hover {
    background-color: #fdfdfd;
    color: var(--main-color);
}

.news-list__meta {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.news-list__date {
    color: #888;
    margin-right: 15px;
    font-family: monospace;
}

.news-list__cat {
    background-color: var(--main-color);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 2px;
}

.news-list__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.news-more {
    text-align: center;
}

/* CTAエリア */
.cta-section {
    background-color: var(--main-color);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
}

.cta-section__title {
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: bold;
}

.cta-section__text {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* =========================================
   7. 下層ページ共通 (Sub-page Common)
   ========================================= */
.page-hero {
    margin-top: 60px;
    background-color: #333333;
    padding: 40px 0;
    text-align: center;
    color: var(--white);
}

.page-hero__title {
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    color: inherit;
    margin: 0;
    display: block; 
    border: none;
    padding: 0;
}

.breadcrumbs {
    background-color: #f9f9f9;
    padding: 10px 0;
    font-size: 0.8rem;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumbs__list li {
    color: #888;
}

.breadcrumbs__list li:not(:last-child)::after {
    content: ">";
    margin: 0 10px;
    color: #ccc;
}

.breadcrumbs__list a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s;
}

.breadcrumbs__list a:hover {
    color: var(--main-color);
}

/* =========================================
   8. ページ別スタイル
   ========================================= */

/* --- 会社概要 (Company) --- */
.message-area {
    display: flex;
    flex-direction: column; 
    gap: 30px;
}

.message-area__img img {
    width: 100%;
    max-width: 180px; 
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

.message-area__head {
    font-size: 1.3rem;
    color: var(--main-color);
    margin-bottom: 20px;
    line-height: 1.5;
    border-left: 4px solid var(--main-color);
    padding-left: 15px;
}

.message-area__txt p {
    margin-bottom: 15px;
    text-align: justify;
    font-size: 0.95rem;
}

.message-area__sign {
    margin-top: 20px;
    font-weight: bold;
    text-align: right;
    font-size: 1rem;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
    background-color: var(--white);
    font-size: 0.95rem;
}

.company-table th, 
.company-table td {
    padding: 18px 15px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.company-table th {
    background-color: #fdfdfd;
    width: 25%;
    font-weight: bold;
    color: var(--text-color);
    white-space: nowrap;
}

.access-map__title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-left: 4px solid var(--main-color);
    padding-left: 10px;
}

.access-map__iframe {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 56.25%;
    background: #eee;
}

.access-map__iframe iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.access-map__desc {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 600px) {
    .company-table th, 
    .company-table td {
        display: block;
        width: 100%;
        border-bottom: none;
    }
    .company-table th {
        background-color: #f5f5f5;
        padding: 10px 15px;
        border-bottom: 1px solid #fff;
    }
    .company-table td {
        padding: 15px;
        margin-bottom: 15px;
        border-bottom: 1px solid #ddd;
    }
}

/* --- お問い合わせ (Contact) --- */
.contact-intro {
    text-align: center;
    margin-bottom: 60px;
}

.contact-intro__text {
    margin-bottom: 30px;
    font-size: 1rem;
}

.contact-attention {
    background-color: #ffeaea;
    color: #cc0000;
    border: 1px solid #cc0000;
    padding: 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6;
    display: inline-block;
    text-align: left;
    max-width: 600px;
}

.form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.form-list {
    border-top: 1px solid #ddd;
}

.form-item {
    border-bottom: 1px solid #ddd;
    padding: 25px 0;
}

.form-item__label {
    margin-bottom: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.required-label {
    background-color: var(--main-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
}

.optional-label {
    background-color: #ccc;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 2px;
}

.form-item__input input[type="text"],
.form-item__input input[type="email"],
.form-item__input input[type="tel"],
.form-item__input textarea,
.form-item__input select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fdfdfd;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-item__input input:focus,
.form-item__input textarea:focus,
.form-item__input select:focus {
    border-color: var(--main-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(168, 0, 0, 0.1);
}

.form-item__input textarea {
    resize: vertical;
}

.privacy-check {
    margin-top: 30px;
    text-align: center;
}

.privacy-check__label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.privacy-check__label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--main-color);
}

.privacy-check__text {
    font-size: 1rem;
}

.privacy-check__text a {
    color: var(--main-color);
    text-decoration: underline;
    font-weight: bold;
}

.form-submit {
    margin-top: 40px;
    text-align: center;
}

.form-btn {
    width: 100%;
    max-width: 300px;
    padding: 15px;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
}

/* --- プライバシーポリシー (Privacy) --- */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.8;
}

.policy-lead {
    margin-bottom: 40px;
}

.policy-head {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
    border-left: 5px solid var(--main-color);
    padding-left: 15px;
    background-color: #fdfdfd;
    padding-top: 10px;
}

.policy-content ol {
    list-style: decimal;
    margin: 20px 0 20px 20px;
    padding-left: 20px;
}

.policy-content ol li {
    margin-bottom: 10px;
}

.policy-address {
    font-style: normal;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    line-height: 1.8;
}

.policy-address a {
    color: var(--main-color);
    text-decoration: underline;
}

/* --- お知らせ一覧 (News Archive) --- */
.news-archive {
    max-width: 800px;
    margin: 0 auto 60px;
    border-top: 1px solid #ddd;
}

.news-item {
    border-bottom: 1px solid #ddd;
}

.news-item__link {
    display: block;
    padding: 25px 0;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.3s, opacity 0.3s;
}

.news-item__link:hover {
    background-color: #fafafa;
    opacity: 0.8; 
}

.news-item__meta {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.news-item__date {
    color: #888;
    font-family: monospace;
    margin-right: 15px;
    font-size: 0.9rem;
}

/* カテゴリラベル共通（赤背景・白文字に統一） */
.news-item__cat {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 2px;
    background-color: var(--main-color);
    color: #fff !important; /* リンク色対策で重要 */
}

.news-item__title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s;
}

.news-item__link:hover .news-item__title {
    color: var(--main-color);
}

.news-item__excerpt {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* -----------------------------------------
   ページネーション (WordPress標準対応版)
----------------------------------------- */
/* 外枠の調整 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

/* WordPressが出力するラッパー要素 */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* スマホで折り返せるように */
}

/* 各ボタン（数字・次へ・前へ 共通） */
.pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;       /* 正方形に近づける */
    height: 40px;
    padding: 0 10px;       /* 「次へ」など文字数が多い場合用 */
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--text-color);
    background-color: #fff;
    transition: all 0.3s;
    font-size: 0.9rem;
    border-radius: 4px;    /* 角を少し丸める */
}

/* ホバー時の挙動 */
.pagination a.page-numbers:hover {
    background-color: #eee;
}

/* 現在のページ（アクティブ） */
.pagination .current {
    background-color: var(--main-color);
    color: #fff;
    border-color: var(--main-color);
    font-weight: bold;
}

/* 「次へ」「前へ」ボタン特有のデザイン（もし変えたい場合） */
.pagination .next,
.pagination .prev {
    /* 必要であればここで個別に調整 */
    font-weight: bold;
}

/* --- 記事詳細 (Single Post) --- */
.article-container {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

.article-header__meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.article-header__title {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.4;
}

.article-thumbnail {
    margin-bottom: 40px;
}
.article-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* 記事本文エリア（スタイル復活） */
.post-body {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.post-body p { margin-bottom: 25px; }
.post-body strong { background: linear-gradient(transparent 70%, #ffcccc 70%); font-weight: bold; }
.post-body h2 {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 50px 0 25px;
    padding-left: 15px;
    border-left: 5px solid var(--main-color);
    line-height: 1.4;
}
.post-body h3 {
    font-size: 1.3rem;
    font-weight: bold;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ddd;
    color: #333;
}
.post-body ul { list-style: disc; margin: 0 0 30px 25px; }
.post-body ol { list-style: decimal; margin: 0 0 30px 25px; }
.post-body li { margin-bottom: 10px; }
.post-body figure { margin: 40px 0; text-align: center; }
.post-body img { max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.post-body figcaption { font-size: 0.85rem; color: #888; margin-top: 10px; }
.post-body a { color: var(--main-color); text-decoration: underline; }
.post-body a:hover { text-decoration: none; }

/* ワンポイント外枠 */
.post-point {
    border: 2px solid var(--main-color);
    padding: 25px;
    margin: 40px 0;
    border-radius: 8px;
    background-color: #fff9f9;
    position: relative;
}

.post-point__title {
    position: absolute;
    top: -14px;
    left: 20px;
    background-color: var(--main-color);
    color: #fff;
    padding: 0 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 15px;
    line-height: 28px;
}

.post-point p:last-child { margin-bottom: 0; }

/* ワンポイント色違いバリエーション */
.post-point--yellow { border-color: #f1c40f; background-color: #fcf8e3; }
.post-point--yellow .post-point__title { background-color: #f1c40f; color: #333; }
.post-point--blue { border-color: #3498db; background-color: #eaf4fb; }
.post-point--blue .post-point__title { background-color: #3498db; }
.post-point--green { border-color: #27ae60; background-color: #eafaf1; }
.post-point--green .post-point__title { background-color: #27ae60; }
.post-point--gray { border-color: #95a5a6; background-color: #f2f2f2; }
.post-point--gray .post-point__title { background-color: #95a5a6; }

/* 動画レスポンシブ */
.video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin: 40px 0;
}
.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.article-footer {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 40px;
}

@media (max-width: 600px) {
    .news-item__title { font-size: 1.1rem; }
    .news-item__excerpt { font-size: 0.85rem; }
    .article-header__title { font-size: 1.4rem; }
    .post-body h2 { font-size: 1.3rem; }
    .post-point { padding: 20px 15px; }
}

/* =========================================
   9. PC向けレスポンシブ設定 (768px以上)
   ========================================= */
@media (min-width: 768px) {
    
    /* 共通: スマホ専用改行を無効化 */
    .sp-only { display: none; }

    /* ヘッダー */
    .header__menu-btn { display: none; }
    .header__nav {
        position: static;
        height: auto;
        transform: none;
        background: transparent;
        width: auto;
    }
    .header__nav-list { display: flex; padding: 0; }
    .header__nav-list li { margin: 0 0 0 30px; }
    .header__nav-cta a {
        background: var(--main-color);
        color: var(--white) !important;
        padding: 10px 20px;
        border-radius: 4px;
    }

    /* ヒーローエリア */
    .hero { padding: 120px 0; }
    .hero__title { font-size: 2.8rem; }

    /* トップページ：グリッドレイアウト */
    .features, .services {
        display: flex;
        justify-content: space-between;
        gap: 30px;
        flex-wrap: wrap; 
    }
    .feature__item, .service__card {
        width: 31%; /* 3列 */
        margin-bottom: 0;
    }

    /* トップページ：お知らせ */
    .news-list__link {
        display: flex;
        align-items: center;
        padding: 20px 10px;
    }
    .news-list__meta {
        margin-bottom: 0;
        margin-right: 30px;
        min-width: 180px;
    }

    /* 会社概要：代表挨拶 */
    .page-hero { padding: 50px 0; }
    .message-area {
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }
    .message-area__img { flex: 0 0 200px; }
    .message-area__txt { flex: 1; }

    /* お問い合わせ：フォーム */
    .form-item {
        display: flex;
        align-items: flex-start;
    }
    .form-item__label {
        width: 30%;
        margin-bottom: 0;
        padding-right: 20px;
        padding-top: 10px;
    }
    .form-item__input { width: 70%; }
}