/*
Theme Name: IBE Design Theme
Theme URI: https://ibe-design.co.jp/
Author: IBE Design LLC
Author URI: https://ibe-design.co.jp/
Description: アイビーデザインのカスタムテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ibe-design
*/

/* ========================================
   フォント読み込み
======================================== */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

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

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* CTA・アクセントカラー */
.cta-color {
    color: #fd941d;
}

.cta-bg {
    background-color: #fd941d;
}

/* 背景色 */
.bg-top {
    background-color: #efefef;
}

.bg-light {
    background-color: #f7f7f7;
}

/* グレー */
.text-gray-dark {
    color: #8e8e8e;
}

.text-gray-light {
    color: #b5b5b5;
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
    background-color: #ffffff;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ */
.site-logo a {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 2px;
}

/* ナビゲーション */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin: 0;
}

.main-nav ul li a {
    font-size: 13px;
    font-weight: 400;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-nav ul li.menu-item-has-children {
    position: relative;
}

.main-nav ul li.menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 8px;
    margin-left: 5px;
}

.main-nav ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
}

.main-nav ul li:hover ul.sub-menu {
    display: flex;
}

.main-nav ul li ul.sub-menu li {
    padding: 0;
}

.main-nav ul li ul.sub-menu li a {
    display: block;
    padding: 10px 20px;
}

/* ハンバーガーメニュー（SP用） */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 24px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333333;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   メインコンテンツ
======================================== */
.site-content {
    margin-top: 70px;
}

/* ========================================
   共通セクションスタイル
======================================== */
.section {
    padding: 80px 0;
}

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

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666666;
    margin-bottom: 40px;
}

/* グレー背景のセクション */
.section-gray {
    background-color: #efefef;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero-section {
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    text-align: center;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000000;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666666;
    letter-spacing: 3px;
}

/* ========================================
   ABOUTセクション
======================================== */
.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 50px;
}

.about-image {
    position: relative;
    height: 300px;
    background-size: cover;
    background-position: center;
}

.about-image-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: #333333;
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

.feature-description {
    font-size: 12px;
    color: #666666;
    line-height: 1.6;
}

.about-description {
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 30px;
}

.view-more-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: #fd941d;
    border: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: #e67e0a;
    opacity: 1;
}

/* ========================================
   SERVICEセクション
======================================== */
.service-description {
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 50px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-item {
    text-align: center;
}

.service-image {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
    margin-bottom: 20px;
}

.service-category {
    font-size: 11px;
    color: #999999;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.service-title {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 15px;
}

.service-text {
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
}

/* ========================================
   WORKSセクション
======================================== */
.works-intro {
    text-align: center;
    font-size: 14px;
    color: #666666;
    margin-bottom: 50px;
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.work-item {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-content {
    text-align: center;
    color: #ffffff;
    padding: 40px;
    background-color: rgba(0,0,0,0.5);
    max-width: 80%;
}

.work-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.work-description {
    font-size: 14px;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ========================================
   NEWSセクション
======================================== */
.news-intro {
    text-align: center;
    font-size: 14px;
    color: #666666;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.news-date {
    font-size: 36px;
    font-weight: 700;
    color: #fd941d;
    text-align: center;
    margin-bottom: 10px;
}

.news-month {
    text-align: center;
    font-size: 11px;
    color: #666666;
    margin-bottom: 20px;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #000000;
}

.news-excerpt {
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-author {
    font-size: 11px;
    color: #999999;
}

/* ========================================
   CONTACTセクション
======================================== */
.contact-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.9);
}

.contact-container {
    position: relative;
    z-index: 2;
}

.contact-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #000000;
}

.contact-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666666;
    margin-bottom: 50px;
}

.contact-intro {
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    color: #666666;
    max-width: 700px;
    margin: 0 auto 50px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dddddd;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    background-color: #ffffff;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #fd941d;
    color: #ffffff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #e67e0a;
}

/* ========================================
   フッター
======================================== */
.site-footer {
    background-color: #ffffff;
    padding: 60px 0 30px;
    border-top: 1px solid #eeeeee;
}

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

.footer-logo {
    margin-bottom: 30px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    margin: 0 auto;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-nav ul li a {
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-copyright {
    font-size: 12px;
    color: #999999;
    text-align: center;
}

/* ========================================
   トップに戻るボタン
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #333333;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #000000;
}

/* ========================================
   ブログ・アーカイブページ
======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    background-size: cover;
    background-position: center;
}

.post-content {
    padding: 20px;
}

.post-date {
    font-size: 11px;
    color: #999999;
    margin-bottom: 10px;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000000;
}

.post-excerpt {
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
}

/* ========================================
   個別記事ページ
======================================== */
.single-post {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.single-post-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000000;
}

.single-post-meta {
    font-size: 12px;
    color: #999999;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.single-post-content {
    font-size: 15px;
    line-height: 1.8;
    color: #333333;
}

.single-post-content p {
    margin-bottom: 20px;
}

.single-post-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #000000;
}

.single-post-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 30px 0 15px;
    color: #000000;
}

/* ========================================
   レスポンシブ
======================================== */
@media screen and (max-width: 768px) {
    /* ヘッダー */
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .main-nav ul li a {
        display: block;
        padding: 15px 20px;
    }
    
    .main-nav ul li ul.sub-menu {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }
    
    .main-nav ul li.menu-item-has-children.active ul.sub-menu {
        display: flex;
    }
    
    /* ヒーロー */
    .hero-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    /* セクション */
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    /* ABOUT */
    .about-images {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    /* SERVICE */
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    /* WORKS */
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    /* NEWS */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* フッター */
    .footer-nav ul {
        flex-direction: column;
        gap: 15px;
    }
}
