/*
Theme Name: U-STYLE Theme
Theme URI: http://example.com/
Description: 株式会社ユウスタイル オリジナルテーマ
Author: Your Name
Version: 1.3
*/

/* ====================================
   ベース設定
   ==================================== */
:root {
    --main-color: #059669; /* 信頼のグリーン */
    --main-dark: #047857;
    --accent-color: #d1fae5;
    --highlight-color: #fbbf24;
    --text-color: #333333;
    --bg-light: #f3f4f6;
    --white: #ffffff;
}

body {
    font-family: 'Noto Sans JP', "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; vertical-align: bottom; }

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

/* セクション見出し */
.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-color);
    position: relative;
}
.section-title span {
    display: block;
    font-size: 14px;
    color: var(--main-color);
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: 0.1em;
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--main-color);
    margin: 20px auto 0;
}

/* ボタン */
.btn-primary {
    display: inline-block;
    background-color: var(--main-color);
    color: #fff;
    padding: 18px 50px;
    border-radius: 4px;
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.3s;
}
.btn-primary:hover {
    background-color: var(--main-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ヘッダー */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0; left: 0; z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner {
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1200px; margin: 0 auto; padding: 0 20px; height: 100%;
}

/* ロゴのスタイル修正（画像対応） */
.logo a {
    display: flex; 
    align-items: center;
    height: 100%; /* 親要素の高さに合わせる */
}
.logo img {
    height: 50px;       /* 高さを50pxに固定（ヘッダー80px内に収める） */
    width: auto;        /* 横幅は自動計算 */
    max-width: 250px;   /* スマホなどで横幅が広がりすぎないように制限 */
    object-fit: contain;
}

.nav-list { display: flex; gap: 30px; align-items: center; }
.nav-list li a { font-size: 15px; font-weight: 500; color: #4b5563; }
.nav-list li a:hover { color: var(--main-color); }
.btn-contact-nav {
    background-color: var(--main-color); color: #fff !important;
    padding: 10px 25px; border-radius: 4px; font-weight: bold;
}
.hamburger { display: none; cursor: pointer; width: 30px; height: 20px; position: relative; z-index: 1001; }
.hamburger span { display: block; width: 100%; height: 2px; background-color: #333; position: absolute; transition: 0.3s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* メインビジュアル */
.hero {
    padding-top: 80px;
    height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: #333;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
}
.hero-content {
    position: relative; z-index: 2; text-align: center; color: #fff; padding: 0 20px;
}
.hero-title {
    font-size: 48px; font-weight: 700; line-height: 1.4; margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.hero-desc { font-size: 18px; margin-bottom: 40px; opacity: 0.95; }

/* お悩みセクション */
.trouble-section { background-color: var(--bg-light); padding-bottom: 120px; position: relative; }
.trouble-list { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.trouble-item {
    width: 320px; background: #fff; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-radius: 8px; overflow: hidden;
}
.trouble-img { width: 100%; height: 200px; object-fit: cover; }
.trouble-body { padding: 25px; text-align: center; }
.trouble-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--main-color); }
.trouble-text { font-size: 14px; color: #666; }

/* お悩み下部の矢印エリア */
.trouble-arrow-area {
    text-align: center;
    margin-top: 60px;
    color: var(--main-color);
    font-weight: bold;
}
.trouble-arrow-area p { margin-bottom: 10px; }
.arrow-down {
    width: 0; height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid var(--main-color);
    margin: 0 auto;
}

/* 解決策セクション (Solution) */
.solution-section {
    background-color: var(--main-color);
    color: #fff;
    text-align: center;
    padding: 100px 0;
}
.solution-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.solution-text {
    font-size: 18px;
    line-height: 2;
    opacity: 0.95;
}
.solution-text strong {
    color: #fff;
    background: rgba(0,0,0,0.1);
    padding: 0 5px;
    border-bottom: 2px solid var(--highlight-color);
}

/* 事業内容 */
.service-container { background: #fff; }
.media-block { display: flex; align-items: center; gap: 50px; margin-bottom: 80px; }
.media-block.reverse { flex-direction: row-reverse; }
.media-image-area { flex: 1; }
.media-image-area img {
    width: 100%; height: 350px; object-fit: cover; border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.media-text-area { flex: 1; }
.media-label {
    background: var(--bg-light); color: var(--main-color); padding: 5px 15px;
    font-size: 12px; font-weight: bold; display: inline-block; margin-bottom: 15px;
    border-radius: 50px;
}
.media-name { font-size: 28px; font-weight: 700; margin-bottom: 15px; }
.media-desc { color: #666; margin-bottom: 30px; }
.media-link {
    color: var(--main-color); font-weight: bold; border-bottom: 2px solid var(--main-color);
    padding-bottom: 5px;
}
.media-link:hover { opacity: 0.7; }

/* マーケティング */
.marketing-section { background: #fff; }
.marketing-grid { display: flex; gap: 30px; flex-wrap: wrap; }
.marketing-card { flex: 1; min-width: 300px; position: relative; overflow: hidden; border-radius: 8px; }
.marketing-img {
    width: 100%; height: 250px; object-fit: cover; filter: brightness(0.6); transition: 0.3s;
}
.marketing-card:hover .marketing-img { filter: brightness(0.8); transform: scale(1.05); }
.marketing-overlay {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    text-align: center; color: #fff; width: 100%; padding: 0 20px; pointer-events: none;
}
.marketing-title {
    font-size: 22px; font-weight: 700; margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
.marketing-desc { font-size: 14px; opacity: 0.95; }

/* お知らせ */
.news-section { background: var(--bg-light); }
.news-list {
    background: #fff; max-width: 800px; margin: 0 auto; padding: 30px;
    border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.news-item { display: flex; padding: 15px 0; border-bottom: 1px solid #eee; align-items: center; }
.news-item:last-child { border-bottom: none; }
.news-date { width: 120px; color: #888; font-family: 'Noto Sans JP', sans-serif; }

/* 会社案内・問い合わせ */
.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    border: 1px solid #ddd;
}
.company-table th, .company-table td {
    padding: 20px;
    border: 1px solid #ddd;
    text-align: left;
}
.company-table th {
    width: 30%;
    background: #f9f9f9;
    font-weight: bold;
}

.contact-section { text-align: center; background: #fff; }
.contact-bg {
    background: var(--main-color); color: #fff; padding: 80px 20px;
    border-radius: 12px; max-width: 1000px; margin: 0 auto;
}
.contact-title { font-size: 30px; font-weight: 700; margin-bottom: 20px; }
.btn-contact-white {
    display: inline-block; background: #fff; color: var(--main-color);
    padding: 18px 60px; border-radius: 4px; font-weight: 700; margin-top: 30px; transition: 0.3s;
}
.btn-contact-white:hover { background: var(--bg-light); }

/* フッター */
.footer { background: #333; color: #999; padding: 50px 0; text-align: center; font-size: 13px; }
.footer-nav { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; }
.footer-nav a { color: #fff; }

/* ページ固定・記事詳細 */
.page-header { padding-top: 120px; padding-bottom: 60px; background-color: var(--bg-light); text-align: center; }
.page-title { font-size: 32px; font-weight: 700; color: var(--text-color); margin-bottom: 10px; }
.page-desc { color: #666; font-size: 14px; }
.page-content { padding: 80px 0; }
.article-header { border-bottom: 1px solid #eee; padding-bottom: 30px; margin-bottom: 40px; }
.article-meta { display: flex; align-items: center; margin-bottom: 15px; }
.article-date { color: #888; font-weight: 500; margin-right: 15px; }
.article-body { font-size: 16px; line-height: 2; color: #444; }
.article-body h2 { font-size: 24px; font-weight: 700; margin: 50px 0 30px; border-left: 5px solid var(--main-color); padding-left: 15px; }
.article-body img { max-width: 100%; height: auto; margin: 20px 0; border-radius: 8px; }

/* フォーム (Contact Form 7用スタイル) */
.wpcf7-form-control-wrap { display: block; margin-bottom: 20px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
    width: 100%; padding: 15px; border: 1px solid #d1d5db; border-radius: 4px; box-sizing: border-box; font-size: 16px;
}
.wpcf7 input[type="submit"] {
    display: block; width: 100%; max-width: 300px; margin: 30px auto 0;
    background-color: var(--main-color); color: #fff; border: none;
    padding: 20px; font-size: 18px; font-weight: 700; border-radius: 4px; cursor: pointer; transition: 0.3s;
}
.wpcf7 input[type="submit"]:hover {
    background-color: var(--main-dark);
}

@media (max-width: 768px) {
    .hero-title { font-size: 32px; }
    .media-block, .media-block.reverse { flex-direction: column; }
    .media-image-area img { height: 250px; }
    .nav { display: none; }
    .hamburger { display: block; }
    .footer-nav { flex-wrap: wrap; }
    
    /* スマホでのテーブル表示調整 */
    .company-table th, .company-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}