/*
Theme Name: Sokufo_themes
Description: sokufo.comのトンマナに合わせたミニマルなメディア用テーマ（アンダースコア仕様）
Version: 1.2
Author: your-name
*/

/* ===== CSS Variables ===== */
:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --line: #e9e9e9;
  --card: #ffffff;
  --shadow: 0 4px 16px rgba(0, 0, 0, .06);
  --radius: 16px;
  --radius_sm: 10px;
  --max: 1100px;
}

/* ===== Reset / Base ===== */
* {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans","Yu Gothic", "Meiryo", -apple-system, BlinkMacSystemFont,"Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 14px;
}

/* ===== Typography ===== */
h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.2;
  margin: 0 0 14px;
}

h2 {
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.3;
  margin: 32px 0 12px;
}

h3 {
  font-size: clamp(18px, 2.4vw, 22px);
  margin: 22px 0 8px;
}



/* ===== Header & Navigation (underscore) ===== */
#header {
  border-bottom: 3px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
}

.header_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.page_title h1,
.page_title .header_title {
  font-size: 20px;
  margin: 0;
  line-height: 0;
}

.page_title a {
  text-decoration: none;
  font-weight: 700;
}

.page_title a img{
  width: auto;
  height: auto;
  max-width: 200px;
}


/* nav */
.nav_box {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site_nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site_nav ul {
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
}

.site_nav ul li{
  list-style-type: none;
}

/* バーガーメニュー（PCデフォルト：nav は表示、バーガーは非表示） */
.hamburger,
.nav_close {
  display: none;
}

/* ハンバーガーのベース（PCでは display:none なので実質モバイル用） */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px 0;
  background: #333;
  border-radius: 3px;
  transition: 0.3s;
}

/* ハンバーガーのXアニメーション */
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  /* ハンバーガー表示 */
  .hamburger {
    display: block;
    width: 28px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px 0;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
  }

  /* ハンバーガー → X 変形 */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* スライドインメニュー */
  .site_nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    padding: 70px 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    opacity: 0;
    transition: 0.35s ease;
    z-index: 1000;
    flex-direction: column;
  }

  /* メニュー表示時 */
  .site_nav.open {
    transform: translateX(0);
    opacity: 1;
  }

  .site_nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .site_nav li {
    margin: 16px 0;
  }

  .site_nav a {
    font-size: 20px;
    color: #333;
    text-decoration: none;
  }

  body.nav-open {
    overflow: hidden;
  }
}



/* ===== コンタクトフォーム ===== */
/* 全体ラッパー */
.cf7_form_wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  background: #f7f7f7;
  border-radius: 10px; /* カード感 */
}

/* グループごとの余白 */
.cf7_form_group {
  margin-bottom: 20px;
}

/* ラベル */
.cf7_label {
  display: block;
  font-size: 15px;
  color: #222;
  font-weight: 600;
  margin-bottom: 8px;
}

/* インプット */
.cf7_input,
.cf7_textarea,
.wpcf7-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 15px;
  background: #fafafa;
  transition: border-color 0.25s, background 0.25s;
}

/* フォーカス時 */
.cf7_input:focus,
.cf7_textarea:focus {
  border-color: #007bff;
  background: #fff;
  outline: none;
}

/* textarea */
.cf7_textarea {
  min-height: 160px;
  resize: vertical;
}

/* 送信ボタン */
.cf7_submit_wrap input[type="submit"] {
  width: 100%;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.25s;
}

.cf7_submit_wrap input[type="submit"]:hover {
  background: #333;
}

/* エラー・バリデーションメッセージ */
.wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 13px;
  color: #d9534f;
}

.wpcf7-response-output {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
}

/* 成功・失敗メッセージ */
.wpcf7-mail-sent-ok {
  background: #e6ffed;
  border: 1px solid #2ecc71;
  color: #2ecc71;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: #ffefef;
  border: 1px solid #e74c3c;
  color: #e74c3c;
}

/* モバイル最適化 */
@media (max-width: 768px) {
  .cf7_form_wrapper {
    padding: 16px;
  }
}



/* ===== Footer ===== */
#footer {
  font-weight: bold;
  background: #1e5aa6; /* シンプルな青 */
  padding: 32px 0;
  border-top: none;
  color: #ffffff;
}

.footer_navi {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.footer_navi a {
  background: transparent;
  color: #ffffff;
}

.footer_navi a:hover {
  background: rgba(255,255,255,0.15);
}

#copyright {
  color: rgba(255,255,255,0.8);
}


/* ===== Layout ===== */
.container_header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 0;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
}

@media (max-width: 768px) {
  .container_header {
    margin: 0 16px;
  }
  .container {
    margin: 0 16px;
  }
}




/* ===== Buttons & Utilities ===== */
.button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
}

.button:hover {
  box-shadow: var(--shadow);
}

.muted {
  color: var(--muted);
}

.hr {
  height: 1px;
  background: var(--line);
  margin: 16px 0;
}



/* ==== 3-column grid for index ==== */
.grid_3 {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(1, minmax(0, 1fr)); /* モバイル1列 */
}

@media (min-width: 768px) {
  .grid_3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* PCで3列 */
  }
}

/* 幅は常に1セルぶん */
.grid_3 .card {
  grid-column: auto !important;
}




/* カード（リンク全体クリック可能） */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
  height: 100%;                 /* グリッドのセルいっぱいに */
  display: flex;                /* 高さ揃え用 */
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.card_link {
  display: flex;                /* 中身も縦並び */
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* サムネイル */
.card_thumb {
  aspect-ratio: 16 / 9;
  background: #f4f6f8;
  overflow: hidden;
}

.card_thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* 画像あり・なしでも高さを揃える */
}

/* 本文エリア */
.card_body {
  padding: 14px 16px 16px;
  flex: 1;                      /* 残りの高さを埋める */
}

.card_title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin: 2px 0 8px;
}

.card_excerpt {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  /* 2行で省略（対応ブラウザ） */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}


/* ===== Responsive ===== */
@media (min-width: 768px) {
  .card {
    grid-column: span 6;
  }
}

@media (min-width: 1024px) {
  .card {
    grid-column: span 4;
  }
}




/* ===== パンくずリスト ===== */
/* パンくず全体 */
.breadcrumb {
  max-width: 1100px;
  margin: 10px auto 0;
  font-size: 14px;
  color: #666;
}

/* ul/ol を横並びに */
.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap; /* 長い場合に折り返し */
  gap: 6px; /* li同士の間隔 */
}

/* 各 li のスタイル */
.breadcrumb li {
  display: flex;
  align-items: center;
}

/* 区切り（＞ or /） */
.breadcrumb li::after {
  content: ">";
  margin-left: 6px;
  color: #aaa;
}

/* 最後の要素は区切りを消す */
.breadcrumb li:last-child::after {
  content: "";
}

/* パンくずリンク */
.breadcrumb a {
  text-decoration: none;
  color: #0073aa;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 最後（現在ページ）は強調 */
.breadcrumb li:last-child span {
  color: #333;
  font-weight: bold;
}


@media (max-width: 768px) {
  .breadcrumb {
    margin: 0 16px;
  }

}



/* ===== Article ===== */
.article {
  max-width: 820px;
  margin: 48px auto;
}

.article header {
  margin-bottom: 16px;
}

.article_hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f7f7f7;
}

.article_hero img {
  display: block;
  width: 100%;
  height: auto;
}

.article_meta {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 12px;
  margin: 10px 0 0;
}

.article_content {
  margin-top: 22px;
}

.article_content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius_sm);
}

.article_content figure {
  margin: 18px 0;
}

.article_content blockquote {
  border-left: 4px solid var(--line);
  padding-left: 14px;
  color: #444;
}

.article h1 {
  font-size: 1.9rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 1.5em;
  padding-bottom: .6em;
  border-bottom: 3px solid #2563eb;
}

/* h2 セクション見出し */
.article_content h2 {
  font-size: 1.6rem;
  line-height: 1.5;
  font-weight: 700;
  margin: 2.8em 0 1.2em;
  padding: .7em 1em;
  border-left: 4px solid #2563eb;
  background: #f3f7ff;
  border-radius: 4px;
}

/* h3 小見出し */
.article_content h3 {
  font-size: 1.3rem;
  line-height: 1.5;
  font-weight: 700;
  margin: 2.2em 0 0.8em;
  padding-left: .7em;
  border-left: 3px solid #2563eb;
}

/* h4 さらに小さい見出し */
.article_content h4 {
  font-size: 1.1rem;
  line-height: 1.5;
  font-weight: 600;
  margin: 1.8em 0 0.6em;
  padding-left: .6em;
  border-left: 2px solid #7ea5f5;
  color: #333;
}

/* h5 ラベル風 */
.article_content h5 {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1.6em 0 0.4em;
  padding: .25em .7em;
  border-radius: 999px;
  background: #edf2ff;
  color: #2563eb;
}

/* テーブル */
.article_content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.95rem;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.article_content table thead {
  background: #2563eb;
  color: #fff;
}

.article_content table th,
.article_content table td {
  padding: 0.8em 0.9em;
  text-align: left;
  vertical-align: top;
}

.article_content table th {
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.article_content table tbody tr:nth-child(odd) {
  background: #f8fafc;
}

.article_content table tbody tr:nth-child(even) {
  background: #ffffff;
}

.article_content table tbody tr + tr td {
  border-top: 1px solid #e2e8f0;
}

/* 横スクロール（スマホ対策） */
.article_content table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* 定義リスト dl, dt, dd */
.article_content dl {
  margin: 1.8em 0;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  padding: 1em 1.2em;
}

.article_content dt {
  font-weight: 600;
  color: #111827;
  margin-top: 0.8em;
  padding-left: .5em;
  border-left: 3px solid #2563eb;
}

.article_content dt:first-of-type {
  margin-top: 0;
}

.article_content dd {
  margin: 0.4em 0 0.8em 0.9em;
  color: #4b5563;
  line-height: 1.8;
}

.article_content dd ul,
.article_content dd ol {
  margin: 0.4em 0 0.6em 1.2em;
}

/* 強調 */
.article_content b {
  font-weight: 700;
  color: #1f2933;
}

/* 記事内＿冒頭のPRエリア */
.article_content .pr_area{
  width: 100%;
}

.article_content .pr_area .title{
  font-size: 26px;
  font-weight: bold;
  margin: 0;
  margin-bottom: 8px;
  text-align: center;
}

.article_content .pr_area .pr_area_list{
  padding: 0 32px;
  border: 1px solid #707070;
  margin-bottom: 32px;
}

.article_content .pr_area ul li{
  padding: 48px 0;
  border-top: 1px solid #707070;
  list-style-type: none;
}

.article_content .pr_area ul li:first-child{
  border-top: 0;
}

.article_content .pr_area ul li .box{
  display: flex;
}

.article_content .pr_area ul li .box .thumb{
  width: 45%;
  max-width: 350px;
  min-width: 200px;
}

.article_content .pr_area ul li .box .thumb img{
  /* 元コードにスタイルなし */
}

.article_content .pr_area ul li .box .txt{
  margin-left: 32px;
}

.article_content .pr_area ul li .box .txt h2{
  width: 100%;
  padding: 0;
  border: 0;
  margin: 0;
  margin-bottom: 16px;
  background-color: unset;
}

.article_content .pr_area ul li .box .txt p{
  font-size: 14px;
  font-weight: unset;
}

.article_content .pr_area ul li .btn{
  width: 100%;
  margin: 0;
  margin-top: 32px;
  text-align: center;
}

.article_content .pr_area ul li .btn a{
  width: 100%;
  padding: 16px 48px;
  border-radius: 30px;
  margin: auto;
  display: block;
  color: #ffffff;
  background-color: #D50000;
}

/* 画像中央ぞろえ */
.article_content .img_center{
  text-align: center;
}

@media (max-width: 768px) {
  /* 記事内＿冒頭のPRエリア（モバイル） */
  .article_content .pr_area{
    width: 100%;
  }

  .article_content .pr_area .title{
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    margin-bottom: 8px;
    text-align: center;
  }

  .article_content .pr_area .pr_area_list{
    padding: 0 32px;
    margin-bottom: 32px;
  }

  .article_content .pr_area ul li{
    padding: 48px 0;
    border-top: 1px solid #707070;
    list-style-type: none;
  }

  .article_content .pr_area ul li:first-child{
    border-top: 0;
  }

  .article_content .pr_area ul li .box{
    display: block;
  }

  .article_content .pr_area ul li .box .thumb{
    width: 100%;
    max-width: unset;
    margin: auto;
  }

  .article_content .pr_area ul li .box .thumb img{
    /* 元コードにスタイルなし */
  }

  .article_content .pr_area ul li .box .txt{
    margin-left: 0;
    margin-top: 16px;
  }

  .article_content .pr_area ul li .box .txt h2{
    width: 100%;
    padding: 0;
    border: 0;
    margin: 0;
    margin-bottom: 16px;
    background-color: unset;
  }

  .article_content .pr_area ul li .box .txt p{
    font-size: 14px;
    font-weight: unset;
  }

  .article_content .pr_area ul li .btn{
    width: 100%;
    margin: 0;
    margin-top: 32px;
    text-align: center;
  }

  .article_content .pr_area ul li .btn a{
    width: 100%;
    padding: 16px 48px;
    border-radius: 30px;
    margin: auto;
    display: block;
    color: #ffffff;
    background-color: #D50000;
  }

}



/* ===== 関連記事セクション全体 ===== */
.related_section {
  padding: 40px 0 60px;
  background: #ffffff; /* 任意：背景色つけてもOK */
}

.related_heading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* 記事リスト：グリッド */
.related_list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* カード */
.related_item {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  transition: box-shadow .2s ease;
}

.related_link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related_thumb img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 10px;
}

.related_title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

.related_date {
  font-size: 12px;
  color: #777;
}

/* PC：3カラム */
@media (min-width: 768px) {
  .related_list {
    grid-template-columns: repeat(3, 1fr);
  }
}



/* ===== Pagination ===== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 28px 0;
}

.pagination a,
.pagination span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration: none;
}

.pagination .current {
  background: #f6f6f6;
}

/* ===== Prev / Next ===== */
.post_nav {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 26px 0;
}

.post_nav a {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  max-width: 49%;
}

/* ===== Share ===== */
.share {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}

.share a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 14px;
}


/* ===== Archive list grid ===== */
.archive_grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(1, minmax(0, 1fr)); /* スマホ：1列 */
}

@media (min-width: 768px) {
  .archive_grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* PC：3列 */
  }
}

/* ===== Archive card ===== */
.archive_card {
  height: 100%;
}

.archive_card_link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .12s ease;
}

.archive_card_link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

/* サムネイル */
.archive_card_thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f4f6f8;
  overflow: hidden;
}

.archive_card_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 本文 */
.archive_card_body {
  flex: 1;
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
}

/* タイトル・抜粋・メタ */
.archive_card_title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  margin: 6px 0 8px;
}

.archive_card_excerpt {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 10px;
  flex: 1;
}

.archive_card_meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}



/* ===== CTAボタン ===== */
/* CTA コンテナ */
.cta_service {
  text-align: center;
  margin: 40px auto;
}

/* CTA ボタン */
.cta_service a {
  width: 80%;
  display: inline-block;
  padding: 16px 32px;
  margin: auto;
  background: #d62828;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.25s;
  letter-spacing: 0.02em;
  position: relative;
  /* overflow: hidden; */
}

/* 疑似要素：右矢印 → */
.cta_service a::after {
  content: "▶";                /* 矢印 */
  position: absolute;
  right: 20px;                  /* 初期位置 */
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  transition: 0.25s ease;
}

/* hover：背景が薄く、矢印が右にスッと動く */
.cta_service a:hover {
  background: #e03a3a;
  transform: translateY(-2px);
}

.cta_service a:hover::after {
  right: 14px;                  /* 右に6px動かす */
}

/* モバイル対応 */
@media (max-width: 768px) {
  .cta_service a {
    width: 100%;
    padding: 14px 0;
    font-size: 17px;
  }
  .cta_service a::after {
    right: 16px;
  }
}




