@charset "utf-8";
/*
Template: jstork
Theme Name: stork_custom
Theme URI:http://open-cage.com/stork/
*/

/* =========================
投稿記事のカスタムデザイン
あなたのHTMLサイトと同じ見た目にする
========================= */

/* =========================
ヘッダーデザイン - 元のHTMLサイトと同じに
========================= */

/* ヘッダー全体 */
.header {
  background: #fff;
  position: relative;
  z-index: 100;
  margin: 0 !important; /* Storkのデフォルトマージンを削除 */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#inner-header {
  max-width: none !important;
  margin: 0 !important;
  padding: 5px 0 5px 20px !important;
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: 40px !important;
  width: 100% !important;
  background: #fff !important;
  min-height: auto !important;
}

/* ロゴエリア */
#logo {
  margin-left: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  max-width: none !important;
  font-size: 1em !important;
}

#logo .h1 {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  height: auto !important;
  vertical-align: middle !important;
}

#logo img {
  height: 30px !important;
  max-height: 30px !important;
  width: auto !important;
  margin: 0 !important;
}

#logo .h1.text a {
  font-size: 24px !important;
  font-weight: bold !important;
  color: #333 !important;
  text-decoration: none !important;
  font-family: "Noto Sans JP", sans-serif !important;
}

/* グローバルナビゲーション */
#g_nav {
  display: flex !important;
  align-items: center !important;
  float: none !important;
}

.navigation {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}

/* メインナビゲーション */
.nav.top-nav {
  display: flex !important;
  list-style: none !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  letter-spacing: normal !important;
}

.nav.top-nav li {
  display: inline-block !important;
  position: relative !important;
  font-size: 15px !important;
  text-align: left !important;
  font-weight: 700 !important;
}

.nav.top-nav li a {
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 2px 0 !important;
  color: #333 !important;
  transition: color 0.3s !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  display: block !important;
  border-bottom: none !important;
  font-family: "Noto Sans JP", sans-serif !important;
}

.nav.top-nav li a:hover {
  color: #4285f4 !important;
}

.nav.top-nav li a::after {
  display: none !important; /* Storkのアンダーラインを削除 */
}

/* サブナビゲーション（ボタンスタイル） */
#g_nav .gnav-02,
.nav + ul {
  display: flex !important;
  list-style: none !important;
  gap: 6px !important;
  margin-left: 20px !important;
  padding: 0 !important;
}

#g_nav .gnav-02 li,
.nav + ul li {
  margin: 0 !important;
}

#g_nav .gnav-02 li a,
.nav + ul li a {
  background: #4285f4 !important;
  color: white !important;
  padding: 6px 16px !important;
  border-radius: 3px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: background 0.3s !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  display: inline-block !important;
  font-family: "Noto Sans JP", sans-serif !important;
}

#g_nav .gnav-02 li a:hover,
.nav + ul li a:hover {
  background: #3367d6 !important;
}

/* ドロップダウンメニューを無効化（シンプルなデザインのため） */
.nav li ul.sub-menu,
.nav li ul.children {
  display: none !important;
}

/* モバイルメニューボタン */
.nav_btn {
  width: 55px !important;
  height: 58px !important;
  padding: 0.7em 0 !important;
  border: none !important;
  background: none !important;
  text-align: center !important;
  position: absolute !important;
  top: 0 !important;
  right: 20px !important;
  color: #333 !important;
  display: none !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

.search_btn {
  right: 0 !important;
  left: auto !important;
}

/* ヘッダー全体のレスポンシブ対応 */
@media (max-width: 768px) {
  #inner-header {
    padding: 5px 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
  }
  
  .navigation {
    flex-direction: column !important;
  }
  
  .nav.top-nav,
  #g_nav .gnav-02 {
    flex-direction: column !important;
    gap: 10px !important;
  }
  
  .nav_btn {
    display: block !important;
  }
  
  #g_nav {
    display: none !important; /* モバイルではハンバーガーメニューを使用 */
  }
  
  .nav.top-nav {
    margin-left: 0 !important;
  }
  
  #g_nav .gnav-02 {
    margin-left: 0 !important;
  }
}
body.single {
  background: #f4f3f8; /* 背景色を確実に表示 */
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
}

.single #inner-content {
  background: #ffffff;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
  max-width: 1300px; /* 1600px → 1300px に戻す */
}

.single #main {
  max-width: 1160px; /* 1400px → 1160px に戻す */
  padding: 60px 80px; /* 120px → 80px に戻す */
  background: #ffffff;
  margin: 0 auto;
}

/* Storkのデフォルト幅制限を上書き */
.single #main,
.single #inner-content {
  width: 100% !important;
}

/* 記事タイトルのスタイル */
.single .entry-title.single-title {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
  font-size: 36px !important;
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 25px;
  color: #333;
}

/* 記事情報エリア */
.single .byline.entry-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.single .byline .cat-name {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  position: static !important;
  transform: none !important;
  margin: 0 !important;
  top: auto !important;
  left: auto !important;
  float: none !important;
}

.single .byline .date {
  color: #666;
  font-size: 14px;
}

/* アイキャッチ画像 */
.single .eyecatch {
  margin-bottom: 30px;
}

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

/* 記事本文のスタイル */
.single .entry-content {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
  font-size: 17px !important;
  line-height: 2.0 !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  padding: 0;
}

.single .entry-content p {
  margin-bottom: 20px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
  font-size: 17px !important;
  line-height: 2.0 !important;
  letter-spacing: 0.05em !important;
}

.single .entry-content strong {
  font-weight: bold;
}

/* 見出しスタイル */
.single .entry-content h2 {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
  font-size: 28px !important;
  font-weight: bold;
  margin: 40px 0 25px 0 !important;
  color: #333;
  border-bottom: 3px solid #4285f4 !important;
  padding-bottom: 12px !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  line-height: 1.4;
}

.single .entry-content h3 {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif !important;
  font-size: 22px !important;
  font-weight: bold;
  margin: 35px 0 20px 0 !important;
  color: #333;
  line-height: 1.4;
  border-left: 4px solid #4285f4;
  padding-left: 15px;
}

/* CTAバナー */
.single .entry-content .wp-block-image {
  margin: 30px 0;
  text-align: center;
}

.single .entry-content .wp-block-image img {
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.single .entry-content .wp-block-image img:hover {
  transform: translateY(-2px);
}

/* 目次スタイル */
.single .entry-content ul {
  margin: 20px 0;
  padding-left: 20px;
}

.single .entry-content ul li {
  margin-bottom: 8px;
}

.single .entry-content ul li a {
  color: #4285f4;
  transition: color 0.3s;
}

.single .entry-content ul li a:hover {
  color: #3367d6;
  text-decoration: underline;
}

/* テーブルスタイル */
.single .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.single .entry-content table th,
.single .entry-content table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.single .entry-content table th {
  background: #f5f5f5;
  font-weight: bold;
}

/* マーカー */
.marker-01 {
  background: linear-gradient(transparent 60%, #ffeb3b 60%);
}

/* カードボックス */
.box-card-01 {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  margin: 20px 0;
  transition: box-shadow 0.3s;
}

.box-card-01:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.box-card-01-cat {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 12px;
  font-size: 12px;
  display: inline-block;
  margin: 15px 15px 0 15px;
  border-radius: 12px;
}

.box-card-01-thumbnail {
  float: left;
  width: 120px;
  height: 80px;
  margin: 15px;
}

.box-card-01-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.box-card-01-content {
  margin-left: 150px;
  padding: 15px 15px 15px 0;
}

.box-card-01-title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
  color: #333;
}

.box-card-01-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.clear {
  clear: both;
}

/* ナビゲーション部分は削除（Storkデフォルトを使用） */

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .single #main {
    padding: 40px 60px; /* 100px → 60px に戻す */
  }
}

@media (max-width: 768px) {
  .single #inner-content {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .single #main {
    padding: 30px 40px; /* 60px → 40px に戻す */
  }
  
  .single .entry-title.single-title {
    font-size: 28px !important;
  }
  
  .single .entry-content h2 {
    font-size: 24px !important;
  }
  
  .single .entry-content h3 {
    font-size: 18px !important;
  }
  
  .box-card-01-thumbnail {
    float: none;
    width: 100%;
    height: 200px;
    margin: 15px 15px 0 15px;
  }
  
  .box-card-01-content {
    margin-left: 15px;
    padding: 0 15px 15px 15px;
  }
  
  .single .np-post .navigation {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 100%;
  }
  
  .single .np-post .np-post-list {
    height: 100px;
  }
  
  .single .np-post .prev a,
  .single .np-post .next a {
    padding: 15px;
    padding-top: 45px;
    font-size: 13px;
  }
  
  .single .np-post .prev a {
    padding-left: 85px;
  }
  
  .single .np-post .next a {
    padding-right: 85px;
  }
  
  .single .np-post .prev a::before,
  .single .np-post .next a::before {
    top: 15px;
    font-size: 14px;
  }
  
  .single .np-post .prev a::before {
    left: 15px;
  }
  
  .single .np-post .next a::before {
    right: 15px;
  }
}

@media (max-width: 480px) {
  .single #main {
    padding: 20px 30px;
  }
  
  table {
    width: 100%;
    font-size: 14px;
  }
  
  table th,
  table td {
    padding: 6px 8px;
  }
}

/* アクセシビリティの向上 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 動きを抑制したい場合の対応 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 投稿ページでサイドバーを非表示 */
.single #sidebar1 {
  display: none !important;
}

/* 投稿ページでメインコンテンツを全幅に */
.single #main {
  width: 100% !important;
  max-width: 1400px !important; /* 適度な最大幅 */
  margin: 0 auto !important;
}

.single #inner-content {
  display: block !important;
}