/*
Theme Name: EC物流テーマ
Theme URI: 
Author: 
Author URI: 
Description: EC物流特化のサービスページ用シンプルテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ec-logistics
Tags: business, logistics, ecommerce, simple
*/

/* ========================================
   CSS構造（style.css）
   ========================================
   1. :root 変数
   2. リセット & ベース
   3. メインラッパー（.site-main）
   4. 固定ページ・会社・パンくず
   5. 投稿（.post-*）・アーカイブ
   6. レスポンシブ（768px / 560px）
   7. フッター（.footer）
   8. サイトヘッダー（.site-header）・固定CTA・Contact Form 7

   LP/フロントのヒーロー・セクション大枠は assets/front-page.css
   ======================================== */

:root {
  --bg: #f5f7fa;
  --bg-pure: #ffffff;
  --text-strong: #0d0d0d;
  --muted: #4a5568;
  --muted-light: #718096;
  --line-strong: #cbd5e1;
  --primary2: #0369a1;
}

/* ========================================
   2. リセット & ベーススタイル
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-padding-top: clamp(3.25rem, 2.35vw + 2.7rem, 5.25rem);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.7;
  color: #333;
  background: var(--bg, #f5f7fa);
  padding-top: clamp(3.25rem, 2.35vw + 2.7rem, 5.25rem);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: #fff;
}

th,
td {
    padding: 0.75rem 0.9rem;
    border: 1px solid #d7e2ef;
    text-align: left;
    vertical-align: top;
    line-height: 1.6;
}

th {
    background: #f6f8fb;
    color: #1f3350;
    font-weight: 800;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(
      clamp(3.75rem, 11vw, 4.35rem) + env(safe-area-inset-bottom, 0px)
    );
  }

  th,
  td {
    padding: 0.62rem 0.7rem;
  }

  body.site-header-menu-open {
    overflow: hidden;
  }
}

/* ========================================
   3. メインラッパー
   ======================================== */
.site-main {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ========================================
   4. 固定ページ (.page-*)・会社・パンくず等
   ======================================== */

/* 固定ページ：タイトル帯・パンくず（各テンプレートに直接記述） */
.page-subhead .container,
.page-breadcrumb .container {
  width: min(1200px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.page-subhead {
  border-bottom: none;
  padding-top: 50px;
}

.page-subhead__inner {
  max-width: 900px;
}

.page-subhead__title {
  font-size: clamp(1.65rem, 4.2vw, 2.35rem);
  font-weight: 800;
  color: #111;
  line-height: 1.35;
  margin: 0;
}

.page-breadcrumb {
  padding: 0.75rem 0;
  background: #fff;
  border-bottom: 1px solid #e5e9ef;
  font-size: 14px;
}

.page-lead {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
}

/* 会社紹介/投稿など共通セクションデザイン（旧 assets/page-company.css 統合） */
/* 会社紹介テンプレート（templates/page-company.php） */

/* front-page.css の .container は .front-page-root 内限定のため、ここで同等の幅を指定 */
.company-page .container {
  width: min(1200px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.company-page .section--mid-cta .container {
  width: 100%;
  max-width: none;
}

.company-page {
  background: #fff;
}

.company-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.company-message {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.company-editor {
  background: #f8fafc;
}

.company-section__inner {
  max-width: 800px;
}

.company-section__title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #0f2d5a;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #3b82f6;
}

.company-overview__table {
  margin: 0;
  border-top: 1px solid #e5e7eb;
}

.company-overview__row {
  display: grid;
  grid-template-columns: minmax(6.5rem, 10rem) 1fr;
  gap: 0.35rem 1.25rem;
  align-items: baseline;
    margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.company-overview__row:last-child {
  border-bottom: none;
}

.company-overview__term {
  margin: 0;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #64748b;
  background: transparent;
}

.company-overview__desc {
    margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  color: #1e293b;
  line-height: 1.6;
}

.company-overview__desc a {
  color: #2563eb;
  text-decoration: none;
}

.company-overview__desc a:hover,
.company-overview__desc a:focus-visible {
  text-decoration: underline;
}

.company-message__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .company-message__layout {
    grid-template-columns: minmax(0, 280px) 1fr;
    align-items: start;
  }
}

.company-message__figure {
  margin: 0;
}

.company-message__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.company-message__text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: #334155;
}

.company-message__sign {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f2d5a;
  text-align: right;
}

.company-business__list {
  list-style: none;
    margin: 0;
    padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.company-business__item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.35rem 1.5rem;
}

.company-business__name {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #0f2d5a;
  margin: 0 0 0.65rem;
}

.company-business__text {
  margin: 0;
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.65;
}

.company-business__action {
  margin: 1rem 0 0;
}

.company-business__link {
  font-size: 0.875rem;
  font-weight: 800;
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.company-business__link:hover,
.company-business__link:focus-visible {
  color: #1e40af;
}

.company-editor__inner {
  max-width: 720px;
}

.company-editor__inner > *:first-child {
  margin-top: 0;
}

.company-editor__inner > *:last-child {
  margin-bottom: 0;
}

.company-page .section--mid-cta {
  margin-top: 0;
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.page-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e0e0e0;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.page-content p {
    line-height: 1.8;
    color: #555;
}

.page-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.page-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    margin: 2rem 0 1rem 0;
}

/* * の padding:0 を打ち消し、リストは UA 既定に近い余白に戻す（inherit は親も 0 のため不適切） */
.page-content ul,
.page-content ol {
    padding: revert;
}

.page-content li {
    padding: revert;
    line-height: 1.8;
}

.page-content img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 4px;
}

.page-content blockquote {
    border-left: 4px solid #c41230;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

/* ========================================
   5. 投稿 (.post-*)・アーカイブ
   ======================================== */
.post-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

/* 投稿：ファーストビュー（カテゴリ → タイトル → メタ → アイキャッチ） */
.post-hero {
    margin-bottom: 2.5rem;
    padding-bottom: 0;
    border-bottom: none;
}

.post-category-badge {
    margin: 0 0 0.75rem;
}

.post-category-badge a {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: #b35c2a;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.02em;
}

.post-category-badge a:hover,
.post-category-badge a:focus-visible {
    background: #943f12;
    color: #fff;
}

.post-page .post-title {
    font-size: clamp(1.65rem, 4.2vw, 2.35rem);
    font-weight: 800;
    color: #111;
    margin: 0 0 1rem;
    line-height: 1.35;
}

.post-meta--hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1.5rem;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #333;
}

.post-meta__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
}

.post-meta__label {
    display: inline-block;
    padding: 0.2rem 0.45rem 0.2rem 0.4rem;
    background: #111;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.4;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 50%, calc(100% - 5px) 100%, 0 100%);
}

.post-meta__name {
    font-weight: 700;
    color: #111;
    margin-right: 0.35rem;
}

.post-meta__name:last-child {
    margin-right: 0;
}

.post-meta__updated {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #333;
    font-weight: 700;
}

.post-meta__updated-icon {
    display: inline-flex;
    color: #64748b;
}

.post-meta__updated-icon svg {
    display: block;
}

.post-thumbnail {
    margin: 1.25rem 0 0;
    border-radius: 8px;
    overflow: hidden;
}

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

/* 本文（リンク色など entry-content 固有の指定） */
.post-page .entry-content a {
    color: #0d6e7a;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-page .entry-content a:hover,
.post-page .entry-content a:focus-visible {
    color: #095a63;
}

.post-page .entry-content blockquote {
    color: #333;
}

.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #1a1a1a;
}

.post-content h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin: 3rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.post-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #333;
    margin: 2rem 0 1rem 0;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

/* ホエール「サービスとは」ページの FAQ（details） */
.post-content .whale-faq {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.post-content .whale-faq__item {
    background: #fff;
    border: 1px solid #e0e6f1;
    border-radius: 8px;
}

.post-content .whale-faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 0.875rem 2.25rem 0.875rem 1rem;
    color: #0f2d5a;
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 800;
    position: relative;
}

.post-content .whale-faq__item summary::-webkit-details-marker {
    display: none;
}

.post-content .whale-faq__item summary::after {
    content: "+";
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #0f2d5a;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
}

.post-content .whale-faq__item[open] summary::after {
    content: "−";
}

.post-content .whale-faq__item > p {
    margin: 0;
    padding: 0 1rem 1rem;
    line-height: 1.75;
    color: #334155;
    font-size: 0.9375rem;
}

/* ホエール「サービスとは」：理解補強用の図・表・現場写真 */
.post-content .whale-figure {
    margin: 1.75rem 0 2.25rem;
}

.post-content .whale-figure__caption {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f2d5a;
    line-height: 1.5;
}

.post-content .whale-figure__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
}

.post-content .whale-figure--hero .whale-figure__image,
.post-content .whale-figure--operations .whale-figure__image,
.post-content .whale-figure--detail .whale-figure__image,
.post-content .whale-figure--quality .whale-figure__image {
    max-height: min(420px, 55vh);
}

.post-content .whale-figure--staff .whale-figure__image {
    max-width: min(100%, 640px);
}

.post-content .whale-figure--diagram {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.25rem 1.35rem;
}

.post-content .whale-figure--diagram .whale-figure__caption {
    margin-bottom: 1rem;
}

.post-content .whale-flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    counter-reset: whale-flow;
}

.post-content .whale-flow > li {
    margin: 0;
    position: relative;
    padding: 0.65rem 0.85rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 650;
    color: #1e293b;
    line-height: 1.45;
    text-align: center;
}

.post-content .whale-flow > li:not(:last-child) {
    margin-bottom: 1.35rem;
}

.post-content .whale-flow > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1.2rem;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid #64748b;
}

.post-content .whale-branch {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.post-content .whale-branch__item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    padding: 0.55rem 0.75rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #334155;
}

.post-content .whale-branch__label {
    display: inline-block;
    font-weight: 800;
    color: #0f2d5a;
    min-width: 3.5rem;
}

.post-content .whale-branch__arrow {
    color: #64748b;
    font-weight: 700;
}

.post-content .whale-branch__detail {
    flex: 1 1 12rem;
    font-weight: 650;
}

.post-content .whale-table-wrap {
    margin: 1.25rem 0 1.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #fff;
}

.post-content .whale-compare {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.55;
}

.post-content .whale-compare caption {
    caption-side: top;
    padding: 0.85rem 1rem;
    font-weight: 700;
    color: #0f2d5a;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.post-content .whale-compare th,
.post-content .whale-compare td {
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2e8f0;
    vertical-align: top;
}

.post-content .whale-compare thead th {
    background: #eef2ff;
    color: #1e293b;
    font-weight: 800;
    text-align: left;
}

.post-content .whale-compare tbody th {
    background: #f8fafc;
    font-weight: 800;
    color: #334155;
    text-align: left;
    width: 7.5rem;
}

.post-content .whale-compare td {
    color: #334155;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 4px;
}

.post-content blockquote {
    border-left: 4px solid #c41230;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.post-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: background-color 0.3s ease;
}

.post-tag:hover {
    background-color: #c41230;
    color: #fff;
}

/* 投稿ページ：本文下のCTA */
.post-page .post-mid-cta {
    margin-top: 0;
}

/* アーカイブ（カテゴリ・タグ等）一覧 */
.archive-page__description {
    margin: 0.75rem 0 0;
    max-width: 52rem;
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.65;
}

.archive-page__description p {
    margin: 0 0 0.75rem;
}

.archive-page__description p:last-child {
    margin-bottom: 0;
}

.archive-page__content {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.post-archive-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.post-archive-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.25rem 1.35rem;
    background: #fff;
    border: 1px solid #d7e2ef;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 45, 90, 0.06);
}

.post-archive-card__thumb {
    flex: 0 0 140px;
    max-width: 140px;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.post-archive-card__thumb:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.post-archive-card__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.post-archive-card__body {
    flex: 1;
    min-width: 0;
}

.post-archive-card__date {
    display: block;
    margin: 0 0 0.35rem;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #64748b;
}

.post-archive-card__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.0625rem, 1.2vw + 0.85rem, 1.25rem);
    font-weight: 800;
    line-height: 1.35;
    color: #0f2d5a;
}

.post-archive-card__title a {
    color: inherit;
    text-decoration: none;
}

.post-archive-card__title a:hover,
.post-archive-card__title a:focus-visible {
    color: #133f81;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-archive-card__excerpt {
    margin: 0 0 0.65rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #334155;
}

.post-archive-card__more {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 800;
    color: #133f81;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-archive-card__more:hover,
.post-archive-card__more:focus-visible {
    color: #0f2d5a;
}

.archive-page__content .navigation.pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.archive-page__content .navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.35rem 0.5rem;
}

.archive-page__content .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 800;
    text-decoration: none;
    color: #334155;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.archive-page__content a.page-numbers:hover,
.archive-page__content a.page-numbers:focus-visible {
    background: #e2e8f0;
    color: #0f172a;
}

.archive-page__content span.page-numbers.current {
    background: #0f2d5a;
    color: #fff;
    border-color: #0f2d5a;
}

.archive-page__content span.page-numbers.dots {
    min-width: auto;
    background: transparent;
    border: none;
    color: #64748b;
}

.archive-page__empty {
  margin: 0;
  padding: 2rem 0;
  text-align: center;
  color: #64748b;
  font-weight: 800;
}

/* ========================================
   6. レスポンシブ（768px / 560px）
   ======================================== */
@media (max-width: 768px) {
  .page-content,
  .post-content {
    padding: 1rem;
  }

  .page-title,
  .post-title {
    font-size: 2rem;
  }

  .page-content h2,
  .post-content h2 {
    font-size: 1.5rem;
  }

  .post-meta--hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .site-main {
    padding: 0;
  }

  .entry-content .wpcf7 form {
    gap: 0.5rem;
  }

  .entry-content .wpcf7 .wpcf7-submit {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .company-overview__row {
    grid-template-columns: 1fr;
    gap: 0.2rem 0;
  }

  .post-archive-card {
    flex-direction: column;
    gap: 0.85rem;
  }

  .post-archive-card__thumb {
    flex: none;
    max-width: 100%;
    width: 100%;
  }

  .post-archive-card__img {
    aspect-ratio: 16 / 9;
  }

  .footer {
    padding: 22px 0 18px;
  }
}

/* ========================================
   7. フッター
   ======================================== */
.footer {
  padding: 28px 0 22px;
  background: var(--bg-pure);
  box-shadow: 0 -1px 0 rgba(0,0,0,0.06);
}

.footer .container {
  display: grid;
  gap: 1rem;
  padding-left: 16px;
  padding-right: 16px;
}

.footer-brand {
  display: grid;
  gap: 0.45rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary2);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-logo img {
  display: block;
  width: auto;
  height: 34px;
}

.footer-brand__lead {
  margin: 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
  color: var(--primary2);
  text-decoration: underline;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.footer-nav-group__title {
  margin: 0 0 0.4rem;
  color: var(--text-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-nav-list a {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.45;
}

.footer-nav-list a:hover {
  color: var(--primary2);
  text-decoration: underline;
}

.footer-copy {
  margin: 0.2rem 0 0;
  color: var(--muted-light);
  font-size: 0.82rem;
}

@media (min-width: 960px) {
  .footer .container {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
    align-items: start;
    gap: 1.25rem 2rem;
  }

  .footer-links {
    justify-items: start;
    align-content: start;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100001;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #fff;
  color: #0a3366;
  border: 2px solid #0a3366;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

/* ========================================
   8. サイトヘッダー・固定CTA・Contact Form 7
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e7edf6;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.site-header a {
  text-decoration: none;
}

.site-header__inner {
  box-sizing: border-box;
  margin: 0 auto;
  min-height: clamp(3.25rem, 2.35vw + 2.7rem, 5.25rem);
  padding: clamp(0.4rem, 1.2vw, 0.65rem) clamp(0.75rem, 3vw, 1.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 2vw, 1rem);
  position: relative;
  z-index: 1002;
}

.site-header__brand {
  min-width: min(170px, 38vw);
  flex-shrink: 0;
}

.site-header__brand-link {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1vw, 0.75rem);
  color: inherit;
  text-decoration: none;
}

.site-header__tagline {
  margin: 0;
  padding-left: clamp(0.5rem, 1vw, 0.75rem);
  border-left: 1px solid #d9e2f0;
  font-size: clamp(0.6875rem, 0.45vw + 0.58rem, 0.8125rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #4a6080;
  white-space: nowrap;
}

.site-header__logo-img {
  display: block;
  width: 200px;
  height: auto;
}

.site-header__menu-toggle {
  display: none;
  flex-shrink: 0;
  width: clamp(2.75rem, 8vw, 3rem);
  height: clamp(2.75rem, 8vw, 3rem);
  margin: 0;
  padding: 0;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(8, 33, 76, 0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.site-header__menu-bars,
.site-header__menu-bars::before,
.site-header__menu-bars::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #0c3f87;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__menu-bars::before,
.site-header__menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-header__menu-bars::before {
  top: -7px;
}

.site-header__menu-bars::after {
  top: 7px;
}

.site-header.is-menu-open .site-header__menu-bars {
  background: transparent;
}

.site-header.is-menu-open .site-header__menu-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.site-header.is-menu-open .site-header__menu-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-header__panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
  min-width: 0;
}

.site-header__nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  padding: clamp(0.4rem, 1vw, 0.625rem) clamp(0.75rem, 2vw, 1.25rem);
  border: none;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
  flex-shrink: 1;
  flex-wrap: wrap;
  font-size: 14px;
}

.site-header__nav a {
  text-decoration: none;
  color: #324d77;
  font-size: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.site-header__nav-item {
  position: relative;
}

.site-header__nav-item-head {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

@media (min-width: 961px) {
  .site-header__nav-item--dropdown .site-header__nav-item-head {
    padding: 0.35rem 0.5rem;
    margin: -0.35rem -0.5rem;
  }

  .site-header__nav-item--dropdown .site-header__submenu::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: -2rem;
    right: -2rem;
    height: 0.75rem;
  }
}

.site-header__nav-link {
  text-decoration: none;
  color: #324d77;
  font-size: inherit;
  font-weight: 800;
  white-space: nowrap;
}

.site-header__nav-link--menu {
  display: inline-block;
  padding: 0;
  cursor: default;
}

.site-header__submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #324d77;
  cursor: pointer;
}

.site-header__submenu-toggle-icon {
  display: block;
  font-size: 1.1rem;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.site-header__nav-item--dropdown.is-submenu-open .site-header__submenu-toggle-icon {
  transform: rotate(-90deg);
}

.site-header__submenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1005;
  min-width: min(34rem, 92vw);
  padding: 1.1rem 1.25rem;
  border: 1px solid #e7edf6;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.site-header__nav-item--dropdown:hover .site-header__submenu,
.site-header__nav-item--dropdown:focus-within .site-header__submenu,
.site-header__nav-item--dropdown.is-submenu-open .site-header__submenu,
.site-header__nav-item--dropdown.is-submenu-hover .site-header__submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-header__submenu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
}

.site-header__submenu--materials {
  min-width: min(16rem, 92vw);
}

.site-header__submenu--materials .site-header__submenu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__submenu-label {
  margin: 0 0 0.55rem;
  color: #0c3f87;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-header__submenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-header__submenu-list a {
  display: block;
  color: #324d77;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: normal;
  text-decoration: none;
}

.site-header__submenu-list a:hover,
.site-header__submenu-list a:focus-visible {
  color: #0c3f87;
  text-decoration: underline;
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 0.75rem);
  flex-shrink: 0;
}

.site-header__phone {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.2;
}

.site-header__tel {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.25rem, 1vw, 0.5rem);
  text-decoration: none;
  color: #0c2347;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.site-header__tel-icon {
  display: block;
  flex-shrink: 0;
  width: clamp(1.125rem, 2vw, 1.375rem);
  height: auto;
}

.site-header__phone-caption {
  margin: 0;
  font-size: 14px;
  color: #5b6f90;
  font-weight: 800;
  white-space: nowrap;
}

.site-header__buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.375rem, 0.8vw, 0.5rem);
  width: clamp(15.5rem, 19vw, 18.5rem);
}

.site-header__buttons a {
  text-decoration: none;
  min-height: clamp(2.375rem, 3vw, 2.625rem);
  padding: 0 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(8, 33, 76, 0.12);
  white-space: nowrap;
}

.site-header__buttons a.site-header__btn--download {
  background: #fff;
  color: #0e4189;
  border: 2px solid #0e4189;
}

.site-header__buttons a.site-header__btn--download:hover,
.site-header__buttons a.site-header__btn--download:focus-visible {
  background: #f2f6fb;
  color: #0c3574;
  border-color: #0c3574;
}

.site-header__buttons a.site-header__btn--contact {
  background: #f37021;
  color: #fff;
  border: 2px solid #f37021;
}

.site-header__buttons a.site-header__btn--contact:hover,
.site-header__buttons a.site-header__btn--contact:focus-visible {
  background: #e8681d;
  border-color: #e8681d;
  color: #fff;
}

.site-header__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.site-header.is-menu-open .site-header__backdrop:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.mobile-fixed-cta {
  display: none;
}

.pc-fixed-contact-cta {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 998;
  width: clamp(8.5rem, 11vw + 2.5rem, 11rem);
  aspect-ratio: 1;
  border-radius: 50%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  background: #0f2d5a;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pc-fixed-contact-cta:hover,
.pc-fixed-contact-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.28);
}

.pc-fixed-contact-cta__icon {
  display: inline-flex;
  line-height: 1;
}

.pc-fixed-contact-cta__label {
  display: block;
  font-size: clamp(1.05rem, 0.65vw + 0.9rem, 1.35rem);
  font-weight: 800;
  line-height: 1.1;
}

.pc-fixed-contact-cta__arrow {
  display: block;
  margin-top: 0.04em;
  font-size: clamp(2rem, 1.4vw + 1.3rem, 2.5rem);
  line-height: 0.8;
  font-weight: 400;
}

@media (max-width: 960px) {
  .pc-fixed-contact-cta {
    display: none;
  }

  .site-header__tagline {
    display: none;
  }

  .site-header__brand-link {
    gap: 0;
  }

  .site-header__menu-toggle {
    display: inline-flex;
  }

  .site-header__panel {
    position: fixed;
    top: clamp(3.25rem, 2.35vw + 2.7rem, 5.25rem);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: clamp(1rem, 4vw, 1.5rem);
    padding: clamp(1rem, 4vw, 1.5rem) clamp(0.75rem, 3vw, 1.25rem)
      clamp(2rem, 8vw, 3rem);
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 1003;
  }

  .site-header.is-menu-open .site-header__panel {
    transform: translateX(0);
  }

  .site-header__nav {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .site-header__nav > a {
    padding: clamp(0.85rem, 2.5vw, 1rem) clamp(1rem, 3vw, 1.25rem);
    border-bottom: 1px solid #eef2f8;
    font-size: inherit;
  }

  .site-header__nav > a:last-child {
    border-bottom: none;
  }

  .site-header__nav-item {
    border-bottom: 1px solid #eef2f8;
  }

  .site-header__nav-item-head {
    justify-content: space-between;
    padding: 0 clamp(0.35rem, 1vw, 0.5rem) 0 0;
  }

  .site-header__nav-link {
    flex: 1;
    padding: clamp(0.85rem, 2.5vw, 1rem) clamp(1rem, 3vw, 1.25rem);
    border-bottom: none;
  }

  .site-header__nav-link--menu {
    cursor: pointer;
  }

  .site-header__submenu-toggle {
    display: inline-flex;
    margin-right: clamp(0.5rem, 2vw, 0.75rem);
  }

  .site-header__submenu {
    position: static;
    transform: none;
    min-width: 0;
    padding: 0 clamp(1rem, 3vw, 1.25rem) clamp(0.85rem, 2.5vw, 1rem);
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .site-header__nav-item--dropdown.is-submenu-open .site-header__submenu {
    display: block;
  }

  .site-header__submenu-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .site-header__submenu-label {
    font-size: 0.76rem;
  }

  .site-header__submenu-list a {
    padding: 0.15rem 0;
    font-size: 0.9rem;
  }

  .site-header__cta {
    flex-direction: column;
    align-items: stretch;
    gap: clamp(0.75rem, 2vw, 1rem);
  }

  .site-header__phone {
    align-items: flex-start;
  }

  .site-header__tel {
    justify-content: flex-start;
    font-size: 14px;
  }

  .site-header__phone-caption {
    display: none;
  }

  .site-header__buttons {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .site-header__buttons a {
    min-height: clamp(2.75rem, 8vw, 3rem);
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .site-header__logo-img {
    width: 150px;
  }

  .mobile-fixed-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: clamp(0.35rem, 1.5vw, 0.45rem) clamp(0.75rem, 3vw, 1.25rem)
      clamp(0.45rem, 2vw, 0.55rem)
      calc(clamp(0.45rem, 2vw, 0.55rem) + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e7edf6;
    box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
    transform: translateY(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0.3s ease;
  }

  .mobile-fixed-cta.is-visible {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  @media (prefers-reduced-motion: reduce) {
    .mobile-fixed-cta {
      transition: none;
    }
  }

  .mobile-fixed-cta__tagline {
    margin: 0;
    padding: 0 0.25rem;
    text-align: center;
    font-size: 0.6875rem;
    line-height: 1.35;
    font-weight: 800;
    color: #3d5570;
    letter-spacing: 0.02em;
  }

  .mobile-fixed-cta__buttons {
    display: flex;
    gap: clamp(0.5rem, 2vw, 0.75rem);
  }

  .mobile-fixed-cta__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(2.75rem, 10vw, 3rem);
    padding: 0 clamp(0.5rem, 2vw, 0.75rem);
    border-radius: 12px;
    font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
  }

  .mobile-fixed-cta__btn--primary {
    color: #fff;
    background: #0f2d5a;
    border: 2px solid #0f2d5a;
  }
}

/* Contact Form 7 · reCAPTCHA（バッジのみ非表示） */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Contact Form 7 フォーム */
.entry-content .wpcf7 {
  margin-top: clamp(1.25rem, 2.6vw, 2rem);
}

.entry-content .wpcf7 form {
  display: grid;
  gap: 0.5rem;
}

.entry-content .wpcf7 p {
  margin: 0;
  color: #1f3350;
  line-height: 1.75;
}

.entry-content .wpcf7 hr {
  margin: 0 0 0.25rem;
  border: 0;
  border-top: 1px solid #d7e2ef;
}

.entry-content .wpcf7 label {
  display: inline-block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #123e84;
}

.entry-content .wpcf7 label span[style*="color:red"] {
  font-size: 0.75rem !important;
  font-weight: 800;
  color: #e03131 !important;
}

.entry-content .wpcf7 .wpcf7-form-control-wrap {
  display: block;
}

.entry-content .wpcf7 input[type="text"],
.entry-content .wpcf7 input[type="email"],
.entry-content .wpcf7 input[type="tel"],
.entry-content .wpcf7 select,
.entry-content .wpcf7 textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid #c8d7ea;
  border-radius: 10px;
  background: #fff;
  color: #1b3556;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.entry-content .wpcf7 select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #48658d 50%),
    linear-gradient(135deg, #48658d 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px),
    calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.entry-content .wpcf7 textarea {
  min-height: 11rem;
  resize: vertical;
}

.entry-content .wpcf7 input:focus,
.entry-content .wpcf7 select:focus,
.entry-content .wpcf7 textarea:focus {
  outline: none;
  border-color: #0c3f87;
  box-shadow: 0 0 0 3px rgba(12, 63, 135, 0.14);
}

.entry-content .wpcf7 .wpcf7-acceptance {
  display: block;
  margin-top: 0.25rem;
}

.entry-content .wpcf7 .wpcf7-list-item {
  margin: 0;
}

.entry-content .wpcf7 .wpcf7-list-item label {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: #304a69;
  line-height: 1.6;
}

.entry-content .wpcf7 .wpcf7-list-item input[type="checkbox"] {
  margin-top: 0.2rem;
  inline-size: 1rem;
  block-size: 1rem;
  accent-color: #0c3f87;
}

.entry-content .wpcf7 div[style*="max-height: 300px"] {
  max-height: 300px;
  overflow: auto;
  margin: 0;
  padding: 1rem !important;
  border: 1px solid #d8e1ef;
  border-radius: 10px;
  background-color: #f5f8fc !important;
  color: #334863;
  line-height: 1.65 !important;
  font-size: 0.875rem !important;
}

.entry-content .wpcf7 div[style*="max-height: 300px"] p {
  margin: 0 0 0.45rem;
  font-size: inherit !important;
  line-height: inherit !important;
}

.entry-content .wpcf7 div[style*="max-height: 300px"] p:last-child {
  margin-bottom: 0;
}

.entry-content .wpcf7 .wpcf7-submit {
  min-width: min(100%, 320px);
  min-height: 3.25rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #f37021;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.entry-content .wpcf7 .wpcf7-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(243, 112, 33, 0.25);
}

.entry-content .wpcf7 .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.entry-content .wpcf7 .wpcf7-spinner {
  margin: 0.5rem 0 0;
}

.entry-content .wpcf7 .wpcf7-not-valid-tip {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #d62828;
}

.entry-content .wpcf7 .wpcf7-response-output {
  margin: 0.75rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.875rem;
}

.entry-content .wpcf7 form.invalid .wpcf7-response-output,
.entry-content .wpcf7 form.unaccepted .wpcf7-response-output,
.entry-content .wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #d62828;
  background: #fff1f0;
  color: #8c1d18;
}

.entry-content .wpcf7 form.sent .wpcf7-response-output {
  border-color: #2b8a3e;
  background: #eefaf1;
  color: #1f5e2b;
}
