/*
Theme Name: Buzz Creation
Theme URI: https://buzz-creation.co.jp
Author: Buzz Creation
Author URI: https://buzz-creation.co.jp
Description: 株式会社バズクリエーション コーポレートサイト用オリジナルテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: buzz-creation
*/

/* ==========================================================================
   リセット・基本設定
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

/* ==========================================================================
   共通レイアウト
   ========================================================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.section-title span {
    display: block;
    font-size: 1rem;
    color: #888;
    font-weight: bold;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

.logo a {
    color: #000;
}

.logo img {
    max-height: 40px;
    width: auto;
}

/* ナビゲーション */
.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu li a {
    font-weight: bold;
    font-size: 0.9rem;
}

/* ハンバーガーメニュー */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

.hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   メインビジュアル（Hero）
   ========================================================================== */
.hero {
    background-color: #333;
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   About Us（理念・挨拶）
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.about-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-box h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

/* About各ボックス内画像 */
.about-box-img {
    margin: -40px -40px 25px -40px;
    overflow: hidden;
}

.about-box-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   NEWS（お知らせ）
   ========================================================================== */
.news-section {
    background-color: #fff;
}

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

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

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

.news-date {
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
    min-width: 100px;
}

.news-title {
    font-size: 1rem;
    color: #333;
}

.news-title:hover {
    color: #666;
}

.news-more {
    text-align: center;
    margin-top: 40px;
}

.news-more a {
    display: inline-block;
    border: 2px solid #333;
    color: #333;
    padding: 12px 40px;
    font-weight: bold;
    transition: 0.3s;
}

.news-more a:hover {
    background: #333;
    color: #fff;
    opacity: 1;
}

/* ==========================================================================
   COLUMN（コラム）
   ========================================================================== */
.column-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.column-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.column-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.column-card-img {
    height: 200px;
    overflow: hidden;
    background-color: #eee;
}

.column-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.column-card:hover .column-card-img img {
    transform: scale(1.05);
}

.column-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 0.9rem;
    background: #f0f0f0;
}

.column-card-body {
    padding: 20px;
}

.column-card-date {
    font-size: 0.8rem;
    color: #888;
}

.column-card-title {
    font-size: 1.1rem;
    margin: 8px 0 10px;
    line-height: 1.5;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.column-card-excerpt {
    font-size: 0.85rem;
    color: #888;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* コラム一覧ページ */
.column-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* コラム個別ページ */
.column-single-header {
    background: #333;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.column-single-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.column-single-header .post-date {
    font-size: 0.9rem;
    color: #ccc;
}

.column-single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.column-single-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.column-single-content img {
    margin: 30px 0;
    border-radius: 5px;
}

.column-single-content h2 {
    font-size: 1.6rem;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.column-single-content h3 {
    font-size: 1.3rem;
    margin: 30px 0 15px;
}

.column-single-thumbnail {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px 0;
}

.column-single-thumbnail img {
    width: 100%;
    border-radius: 8px;
}

/* ==========================================================================
   Business（事業内容）
   ========================================================================== */
.business-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.business-item {
    background: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.business-item:hover {
    transform: translateY(-10px);
}

.business-img {
    height: 200px;
    background-color: #ddd;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.business-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-content {
    padding: 25px;
    text-align: center;
}

.business-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.insta-btn {
    display: inline-block;
    background: linear-gradient(
        45deg,
        #f09433 0%,
        #e6683c 25%,
        #dc2743 50%,
        #cc2366 75%,
        #bc1888 100%
    );
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 15px;
}

.insta-btn:hover {
    opacity: 0.85;
}

.business-links {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.business-links .insta-btn,
.business-links .hp-btn {
    margin-top: 0;
}

.hp-btn {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: bold;
}

.hp-btn:hover {
    opacity: 0.85;
}

/* ==========================================================================
   Recruit（採用）
   ========================================================================== */
.recruit-banner {
    background-color: #333;
    color: #fff;
    padding: 60px;
    text-align: center;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.recruit-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

.recruit-content {
    position: relative;
    z-index: 2;
}

.recruit-btn {
    display: inline-block;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 40px;
    margin-top: 20px;
    font-weight: bold;
    transition: 0.3s;
}

.recruit-btn:hover {
    background: #fff;
    color: #333;
    opacity: 1;
}

/* ==========================================================================
   Company Profile（会社概要）
   ========================================================================== */
.company-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.company-table th,
.company-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.company-table th {
    width: 30%;
    background: #fafafa;
    font-weight: bold;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: #222;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    margin: 0 15px;
    color: #ccc;
    font-size: 0.9rem;
}

.copyright {
    font-size: 0.8rem;
    color: #666;
}

/* ==========================================================================
   お知らせ一覧ページ（archive.php）
   ========================================================================== */
.archive-header {
    background: #333;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.archive-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.archive-header span {
    font-size: 1rem;
    color: #ccc;
}

.archive-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.archive-item {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 25px 15px;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.archive-item:hover {
    background-color: #fafafa;
}

.archive-item .news-date {
    min-width: 110px;
}

.archive-item .news-title {
    font-size: 1.05rem;
}

/* ページネーション */
.pagination {
    text-align: center;
    padding: 40px 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #333;
    transition: 0.3s;
}

.pagination .page-numbers.current {
    background: #333;
    color: #fff;
    border-color: #333;
}

.pagination .page-numbers:hover {
    background: #333;
    color: #fff;
    border-color: #333;
    opacity: 1;
}

/* ==========================================================================
   お知らせ個別ページ（single.php）
   ========================================================================== */
.single-header {
    background: #333;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.single-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.single-header .post-date {
    font-size: 0.9rem;
    color: #ccc;
}

.single-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.single-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.single-content img {
    margin: 30px 0;
    border-radius: 5px;
}

.single-nav {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.single-nav a {
    color: #333;
    font-weight: bold;
}

.back-to-list {
    text-align: center;
    margin-top: 20px;
}

.back-to-list a {
    display: inline-block;
    border: 2px solid #333;
    color: #333;
    padding: 10px 30px;
    font-weight: bold;
    transition: 0.3s;
}

.back-to-list a:hover {
    background: #333;
    color: #fff;
    opacity: 1;
}

/* ==========================================================================
   採用ページ（page-recruit.php）
   ========================================================================== */
.recruit-hero {
    background-color: #333;
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
}

.recruit-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.recruit-hero-content {
    position: relative;
    z-index: 2;
}

.recruit-hero-content h1 {
    font-size: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.recruit-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.recruit-body h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.recruit-body p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.recruit-body .company-table {
    margin: 30px 0;
}

/* ==========================================================================
   404ページ
   ========================================================================== */
.error-page {
    text-align: center;
    padding: 120px 20px;
}

.error-page h1 {
    font-size: 6rem;
    color: #ddd;
    margin-bottom: 10px;
}

.error-page h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.error-page p {
    color: #888;
    margin-bottom: 30px;
}

.error-page a {
    display: inline-block;
    border: 2px solid #333;
    color: #333;
    padding: 12px 40px;
    font-weight: bold;
    transition: 0.3s;
}

.error-page a:hover {
    background: #333;
    color: #fff;
    opacity: 1;
}

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 768px) {
    /* ヘッダー */
    .hamburger {
        display: flex;
    }

    .nav-menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 150;
        padding-top: 80px;
    }

    .nav-menu-wrapper.is-open {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu li a {
        display: block;
        padding: 15px 30px;
        border-bottom: 1px solid #eee;
        font-size: 1rem;
    }

    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 140;
    }

    .menu-overlay.is-visible {
        display: block;
    }

    /* Hero */
    .hero {
        height: 400px;
    }

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

    .hero-content p {
        font-size: 1rem;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
    }

    /* Section */
    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* News */
    .news-item {
        flex-direction: column;
        gap: 5px;
    }

    /* Column */
    .column-grid,
    .column-archive-grid {
        grid-template-columns: 1fr;
    }

    /* Business */
    .business-list {
        grid-template-columns: 1fr;
    }

    /* Recruit */
    .recruit-banner {
        padding: 40px 20px;
    }

    /* Company */
    .company-table th,
    .company-table td {
        display: block;
        width: 100%;
    }

    .company-table th {
        border-bottom: none;
        padding: 20px 20px 5px;
    }

    .company-table td {
        padding: 5px 20px 20px;
    }

    /* Archive */
    .archive-item {
        flex-direction: column;
        gap: 5px;
    }

    /* Single nav */
    .single-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
