/*
Theme Name: Yuki Plus Corporate Theme
Theme URI: 
Author: 大橋由紀
Description: ゆきプラスコーポレーション向け カバー(COVER)風モダンコーポレートテーマ
Version: 1.0.0
Text Domain: yuki-plus
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --color-black: #111111;
  --color-gray: #f5f5f5;
  --color-dark-gray: #333333;
  --color-white: #ffffff;
  --color-accent: #25b7e8;
}

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.8;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .en-font {
  font-family: 'Montserrat', sans-serif;
}

/* 共通コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  z-index: 1000;
  border-bottom: 1px solid #eaeaea;
}

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

.site-logo a {
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
  color: var(--color-black);
  letter-spacing: 0.1em;
}

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.global-nav a {
  text-decoration: none;
  color: var(--color-black);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  transition: color 0.3s;
}

.global-nav a:hover {
  color: var(--color-accent);
}

/* トップページ：ヒーローエリア */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background: var(--color-gray);
  position: relative;
  overflow: hidden;
}

.hero-text h1 {
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-text p {
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-dark-gray);
}

/* トップページ：セクション共通 */
.section {
  padding: 120px 5%;
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 60px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 4px;
  background: var(--color-black);
}

/* お知らせリスト */
.news-list {
  border-top: 1px solid var(--color-black);
}

.news-item {
  display: flex;
  padding: 30px 0;
  border-bottom: 1px solid #eaeaea;
  text-decoration: none;
  color: var(--color-black);
  transition: background 0.3s;
}

.news-item:hover {
  background: #fafafa;
}

.news-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  width: 150px;
  color: var(--color-dark-gray);
}

.news-title {
  flex: 1;
  font-weight: 500;
}

/* 単体ページ（single.php / page.php）とサイドバーのレイアウト */
.main-content {
  padding-top: 140px; /* 固定ヘッダー分の余白確保 */
  padding-bottom: 100px;
}

.page-wrapper {
  display: flex;
  gap: 60px;
}

.primary-content {
  flex: 1;
  min-width: 0;
}

.site-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.entry-card {
  margin-bottom: 60px;
}

.entry-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 15px;
}

.entry-meta {
  font-size: 0.9rem;
  color: var(--color-dark-gray);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eaeaea;
}

.entry-thumbnail {
  margin-bottom: 30px;
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.entry-content p {
  margin-bottom: 1.8em;
}

.entry-content h2 {
  font-size: 1.6rem;
  margin: 2em 0 1em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-black);
}

.entry-content h3 {
  font-size: 1.3rem;
  margin: 1.5em 0 0.8em;
}

/* 記事ナビゲーション（前後リンク） */
.post-navigation {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid #eaeaea;
}

.post-navigation a {
  color: var(--color-black);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s;
}

.post-navigation a:hover {
  color: var(--color-accent);
}

/* ウィジェット（サイドバー） */
.widget {
  margin-bottom: 50px;
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-black);
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 10px 0;
  border-bottom: 1px solid #eaeaea;
}

.widget a {
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.3s;
}

.widget a:hover {
  color: var(--color-accent);
}

/* フッター */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 80px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  margin-bottom: 60px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.footer-info {
  color: #999;
  font-size: 0.9rem;
}

.footer-nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.copyright {
  text-align: center;
  color: #666;
  font-size: 0.8rem;
  font-family: 'Montserrat', sans-serif;
  border-top: 1px solid #333;
  padding-top: 20px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
  }

  .site-sidebar {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-nav ul {
    flex-wrap: wrap;
  }

  .news-item {
    flex-direction: column;
    gap: 10px;
  }

  .news-date {
    width: auto;
  }
}
/* 本文内メディアのはみ出し防止 */
.entry-content img,
.entry-content iframe,
.entry-content video {
  max-width: 100%;
  height: auto;
}

/* 本文内のテーブル・引用のスタイル整列 */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.8em;
}

.entry-content th,
.entry-content td {
  border: 1px solid #eaeaea;
  padding: 10px 15px;
}

.entry-content blockquote {
  margin: 1.8em 0;
  padding: 15px 20px;
  background: var(--color-gray);
  border-left: 4px solid var(--color-black);
}

/* ログイン時のWP管理バー（Admin Bar）追従対応 */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
/* ==========================================
   記事詳細ページ（single.php）のデザイン強化
   ========================================== */

/* メタ情報（日付・カテゴリー）のバッジ化 */
.entry-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-dark-gray);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eaeaea;
}

.entry-meta .entry-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.entry-meta .entry-category a {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-white);
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.entry-meta .entry-category a:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* アイキャッチ画像 */
.entry-thumbnail {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.entry-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------
   記事本文（.entry-content）内のスタイリング
   ------------------------------------------ */
.entry-content {
  font-size: 1rem;
  line-height: 2;
  color: #222222;
}

/* 段落・文章 */
.entry-content p {
  margin-bottom: 2em;
}

/* 見出し2（H2） - 左青アクセント線＋下線 */
.entry-content h2 {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.4;
  margin: 2.5em 0 1.2em;
  padding: 12px 0 12px 18px;
  border-left: 5px solid var(--color-accent);
  border-bottom: 1px solid #eaeaea;
  background: linear-gradient(90deg, rgba(37, 183, 232, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

/* 見出し3（H3） - 下線＋ワンポイント */
.entry-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2em 0 1em;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-black);
  position: relative;
}

/* 見出し4（H4） */
.entry-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.8em 0 0.8em;
  color: var(--color-dark-gray);
}

/* 箇条書きリスト（ul / ol） */
.entry-content ul,
.entry-content ol {
  margin: 1.5em 0 2em 1.5em;
  padding-left: 1em;
  background: var(--color-gray);
  padding: 20px 20px 20px 40px;
  border-radius: 6px;
}

.entry-content li {
  margin-bottom: 0.8em;
}

.entry-content li:last-child {
  margin-bottom: 0;
}

/* 引用（blockquote） */
.entry-content blockquote {
  margin: 2em 0;
  padding: 25px 30px;
  background: #f9f9f9;
  border-left: 4px solid var(--color-black);
  font-style: italic;
  color: #555;
  border-radius: 0 8px 8px 0;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}

/* 太字・強調マーカー */
.entry-content strong {
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(37, 183, 232, 0.25) 60%);
}

/* テーブル（表） */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
  padding: 12px 15px;
  border: 1px solid #eaeaea;
}

.entry-content th {
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  text-align: left;
}

.entry-content tr:nth-child(even) {
  background: #fafafa;
}

/* タグ一覧 */
.entry-footer {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
}

.entry-tags a {
  display: inline-block;
  background: #eee;
  color: var(--color-dark-gray);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-decoration: none;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: background 0.2s;
}

.entry-tags a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* 前後記事ナビゲーション（カード風ボタン） */
.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid var(--color-black);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation .nav-next {
  text-align: right;
}

.post-navigation a {
  display: block;
  padding: 15px 20px;
  background: var(--color-gray);
  border-radius: 6px;
  color: var(--color-black);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.post-navigation a:hover {
  background: var(--color-black);
  color: var(--color-white);
  transform: translateY(-2px);
}