@charset "UTF-8";

/* ===============================================
   基本設定 (Base)
   =============================================== */
:root {
    --color-main: #0f2c4f;      /* 信頼のネイビー */
    --color-accent: #f4a261;    /* 親しみのオレンジ */
    --color-accent-hover: #e78c45;
    --color-text: #333333;
    --color-bg-light: #f9fafb;
    --color-white: #ffffff;
    --color-border: #e5e7eb;
    --font-base: 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
    --header-height: 70px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-base);
    color: var(--color-text);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--color-white);
    overflow-x: hidden; /* 横スクロール防止 */
}

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

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===============================================
   ヘッダー (Header) - ハンバーガー対応
   =============================================== */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
    height: var(--header-height);
    display: flex; align-items: center;
    transition: all 0.3s;
}
.header-inner { width: 100%; display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-size: 1.4rem; font-weight: 700; color: var(--color-main);
    margin: 0; line-height: 1; z-index: 1100; /* モバイルメニューより手前に */
}
.logo a { display: flex; flex-direction: column; }
.logo-sub { font-size: 0.65rem; color: #888; margin-top: 4px; font-weight: 400; }

/* PC用ナビゲーション */
.nav-list {
    display: flex; align-items: center; gap: 20px;
    margin: 0; padding: 0;
}
.nav-list li a:not(.btn-nav) {
    font-size: 0.85rem; font-weight: 700; color: var(--color-main);
    position: relative; padding: 5px 0; letter-spacing: 0.05em;
}
.nav-list li a:not(.btn-nav)::after {
    content: ''; display: block; width: 0; height: 2px;
    background: var(--color-accent); transition: 0.3s;
    position: absolute; bottom: 0; left: 0;
}
.nav-list li a:not(.btn-nav):hover::after { width: 100%; }

/* ヘッダーボタン */
.btn-nav {
    background-color: var(--color-accent); color: var(--color-white);
    padding: 10px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: bold;
    box-shadow: 0 4px 10px rgba(244, 162, 97, 0.3);
    transition: all 0.3s ease; white-space: nowrap;
}
.btn-nav:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(244, 162, 97, 0.4);
    opacity: 1;
}

/* ------------------------------------------
   ハンバーガーメニュー (Mobile Only)
   ------------------------------------------ */
.hamburger { display: none; } /* PCでは非表示 */
.mobile-menu { display: none; } /* PCでは非表示 */

@media (max-width: 900px) {
    .nav { display: none; } /* PCメニューを隠す */

    /* ハンバーガーボタン */
    .hamburger {
        display: block;
        position: relative;
        width: 30px; height: 24px;
        background: transparent; border: none;
        cursor: pointer; z-index: 1100; padding: 0;
    }
    .hamburger span {
        position: absolute; left: 0; width: 100%; height: 2px;
        background-color: var(--color-main);
        transition: all 0.3s ease; border-radius: 2px;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger span:nth-child(3) { bottom: 0; }

    /* 開いたときのアニメーション */
    .hamburger.active span:nth-child(1) {
        top: 50%; transform: translateY(-50%) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) {
        bottom: 50%; transform: translateY(50%) rotate(-45deg);
    }

    /* モバイルメニュー本体 */
    .mobile-menu {
        display: block;
        position: fixed; top: 0; right: -100%; /* 最初は画面外 */
        width: 80%; max-width: 300px; height: 100vh;
        background: #fff; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000; transition: 0.4s ease;
        padding: 90px 30px 30px; overflow-y: auto;
    }
    .mobile-menu.active { right: 0; } /* クラス付与で出現 */

    .mobile-menu ul {
        display: flex; flex-direction: column; gap: 25px;
    }
    .mobile-menu a {
        font-size: 1rem; font-weight: 700; color: var(--color-main);
        display: block; border-bottom: 1px solid #eee; padding-bottom: 10px;
    }
    .mobile-menu .btn-nav {
        text-align: center; border: none; margin-top: 20px; display: block;
    }
    
    /* 背景を暗くするオーバーレイ */
    .menu-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 900;
        opacity: 0; visibility: hidden; transition: 0.3s;
    }
    .menu-overlay.active { opacity: 1; visibility: visible; }
}

/* ===============================================
   先進的UI・コンポーネント
   =============================================== */
/* パララックス */
.parallax-bg {
    background-attachment: fixed; background-position: center;
    background-size: cover; background-repeat: no-repeat; position: relative;
}
.parallax-overlay::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 44, 79, 0.6); z-index: 1;
}
.parallax-content { position: relative; z-index: 2; }

/* スマホではパララックス無効化（バグ防止） */
@media (max-width: 768px) {
    .parallax-bg { background-attachment: scroll; }
}

/* アニメーション下線 */
.heading-animated {
    display: inline-block; position: relative; padding-bottom: 10px; color: var(--color-main);
}
.heading-animated::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 3px;
    background-color: var(--color-accent); transition: width 0.4s ease;
}
.section-header:hover .heading-animated::after,
.heading-animated:hover::after { width: 100%; }

/* ボタン */
.btn-primary {
    display: inline-block; background-color: var(--color-accent);
    color: var(--color-white); padding: 15px 40px; border-radius: 50px;
    font-weight: 700; font-size: 1rem; box-shadow: 0 4px 10px rgba(244, 162, 97, 0.3);
    text-align: center; transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px); box-shadow: 0 8px 20px rgba(244, 162, 97, 0.5);
}

/* レイアウト共通 */
.section { padding: 80px 0; }
.bg-light { background-color: var(--color-bg-light); }
.section-header { margin-bottom: 50px; text-align: center; }
.section-subtitle {
    display: block; font-size: 0.9rem; font-weight: 700;
    color: var(--color-accent); letter-spacing: 0.1em;
    margin-bottom: 10px; text-transform: uppercase;
}
.section-title { font-size: 2rem; font-weight: 700; margin: 0; line-height: 1.4; }

/* ===============================================
   各セクション (TOP & 下層)
   =============================================== */
/* Video Hero */
.video-hero {
    position: relative; overflow: hidden; padding: 160px 0;
    text-align: center; color: #fff;
}
.video-bg-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2;
}
.bg-video { width: 100%; height: 100%; object-fit: cover; }
.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 44, 79, 0.6); z-index: -1;
}
.hero-title {
    font-size: 3.5rem; font-weight: 700; margin-bottom: 30px; line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Page Hero (下層) */
.page-hero { padding: 80px 0; text-align: center; color: var(--color-white); }
.page-hero-title { font-size: 2.5rem; font-weight: 700; margin: 0; text-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.page-hero-sub { color: var(--color-accent); font-weight: 700; margin-bottom: 10px; display: block; letter-spacing: 1px; }

/* About (TOP) */
.section-about {
    position: relative; overflow: hidden; padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
}
.section-watermark {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 15vw; font-weight: 900; color: rgba(15, 44, 79, 0.03);
    z-index: 0; white-space: nowrap; pointer-events: none;
    font-family: sans-serif; letter-spacing: 0.05em;
}
.about-content { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; text-align: center; }
.question-text { font-size: 1.3rem; line-height: 2.2; font-weight: 500; color: var(--color-text); }
.text-highlight { background: linear-gradient(transparent 60%, #fdebd0 60%); font-weight: 700; padding: 0 5px; }
.about-arrow { font-size: 1.5rem; color: var(--color-accent); margin: 20px 0; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
.about-answer-box {
    background-color: #fff; border: 1px solid rgba(15, 44, 79, 0.1);
    border-top: 4px solid var(--color-accent); padding: 50px 40px;
    border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.05); position: relative;
}
.answer-lead { font-size: 1.1rem; margin-bottom: 30px; color: #555; }
.answer-core { font-size: 1.4rem; font-weight: 700; color: var(--color-main); line-height: 1.6; margin: 0; }

/* Cards & Vision */
.cards-wrapper { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }
.card {
    flex: 1; min-width: 300px; background: #fff; padding: 40px 30px;
    border-radius: 12px; border: 1px solid #eee; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
}
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card-icon { font-size: 3rem; margin-bottom: 20px; text-align: center; transition: 0.4s; }
.card:hover .card-icon { transform: scale(1.1) rotate(-5deg); }

.vision-section { color: #fff; text-align: center; padding: 120px 0; }
.vision-content { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 2.0; }
.vision-highlight { display: inline-block; border-bottom: 2px solid var(--color-accent); padding-bottom: 5px; font-size: 1.3rem; margin-top: 15px; }
.vision-box {
    background: rgba(255,255,255,0.1); backdrop-filter: blur(5px);
    padding: 40px; border-radius: 12px; margin-top: 50px; border: 1px solid rgba(255,255,255,0.2);
}

/* 下層コンテンツ */
.heading-primary {
    font-size: 1.8rem; color: var(--color-main); border-bottom: 2px solid var(--color-border);
    padding-bottom: 15px; margin: 60px 0 30px; position: relative;
}
.heading-primary::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background-color: var(--color-accent); }
.heading-secondary {
    font-size: 1.4rem; color: var(--color-main); margin-top: 40px; margin-bottom: 20px;
    font-weight: 700; border-left: 6px solid var(--color-accent); padding-left: 15px;
    background: linear-gradient(to right, #fff9f0, transparent);
}
.table-custom { width: 100%; border-collapse: collapse; margin: 40px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.table-custom th, .table-custom td { padding: 18px; border: 1px solid var(--color-border); font-size: 0.95rem; vertical-align: middle; }
.table-custom th { background-color: #f0f4f8; color: var(--color-main); width: 25%; text-align: left; font-weight: 700; }
.table-highlight { background-color: #fff9f0 !important; color: #d35400; font-weight: bold; border-color: #f4a261 !important; }
.box-point {
    background: #fff; border: 2px solid var(--color-main); border-radius: 8px;
    padding: 35px; margin: 50px 0; position: relative; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.box-point-title {
    position: absolute; top: -15px; left: 20px; background: var(--color-main); color: #fff;
    padding: 0 20px; font-weight: 700; font-size: 0.9rem; line-height: 30px; border-radius: 4px;
}
.step-list { counter-reset: step; list-style: none; margin: 40px 0; }
.step-item { position: relative; padding-left: 60px; margin-bottom: 40px; }
.step-item::before {
    counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0;
    width: 45px; height: 45px; background: var(--color-accent); color: #fff;
    text-align: center; line-height: 45px; font-weight: bold; font-size: 1.2rem; border-radius: 50%;
}
.step-title { font-weight: 700; font-size: 1.2rem; color: var(--color-main); margin-bottom: 10px; display: block; }
.breadcrumb { background-color: var(--color-bg-light); padding: 15px 0; font-size: 0.85rem; color: #666; border-bottom: 1px solid #eee; }
.program-card {
    flex: 1; min-width: 280px; background: #f9fafb; padding: 35px; border-radius: 12px;
    transition: 0.4s; border: 1px solid transparent;
}
.program-card:hover { background: #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: var(--color-accent); transform: translateY(-5px); }
.program-card-title { color: var(--color-main); font-size: 1.2rem; margin-bottom: 15px; border-bottom: 2px solid var(--color-accent); display: inline-block; }

/* Footer */
.contact-section { background-color: #fdf6f0; text-align: center; }
.footer { background-color: #333; color: #ccc; padding: 60px 0 20px; font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; margin-bottom: 40px; }
.footer-nav ul { display: flex; gap: 20px; }
.footer-nav a:hover { color: var(--color-accent); text-decoration: underline; }
.copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; font-size: 0.8rem; }

/* ===============================================
   スマホ対応 (Responsive)
   =============================================== */
@media (max-width: 768px) {
    /* 全体調整 */
    .section { padding: 60px 0; }
    .section-title { font-size: 1.6rem; }
    
    /* ヘッダー */
    .logo { font-size: 1.2rem; }
    .logo-sub { font-size: 0.6rem; }

    /* ヒーロー */
    .video-hero { padding: 120px 0; }
    .hero-title { font-size: 2.2rem; line-height: 1.3; }
    .page-hero-title { font-size: 1.8rem; }
    
    /* Aboutセクション */
    .section-watermark { font-size: 18vw; top: 40%; }
    .question-text { font-size: 1.1rem; text-align: left; }
    .about-answer-box { padding: 30px 20px; text-align: left; }
    .answer-core { font-size: 1.2rem; }

    /* Vision & Footer */
    .vision-content { font-size: 1rem; text-align: left; }
    .vision-box { padding: 20px; }
    .footer-inner, .footer-nav ul { flex-direction: column; gap: 20px; text-align: center; }

    /* 下層コンテンツ */
    .heading-primary { font-size: 1.4rem; margin: 40px 0 20px; }
    .heading-secondary { font-size: 1.2rem; }
    .table-custom th, .table-custom td { display: block; width: 100%; box-sizing: border-box; }
    .table-custom th { background-color: #f0f4f8; }
    .step-item { padding-left: 0; margin-top: 60px; }
    .step-item::before { position: static; display: inline-block; margin-bottom: 10px; }
    
    /* ニュース */
    .news .container { flex-direction: column; align-items: flex-start; gap: 5px; }
}
/* ===============================================
   スマホ表示時はニュースを非表示にする
   =============================================== */
@media (max-width: 768px) {
    .news {
        display: none !important;
    }
}

/* ===============================================
   スマホ対応：テーブル修正（横スクロール化）
   =============================================== */
@media (max-width: 768px) {
    /* テーブル全体を横スクロール可能にする */
    .table-custom {
        display: block;       /* ブロック要素にして幅を持たせる */
        overflow-x: auto;     /* 横にはみ出たらスクロール */
        white-space: nowrap;  /* 基本は折り返さない（幅を確保） */
        -webkit-overflow-scrolling: touch; /* スクロールを滑らかに */
    }

    /* セルの設定（縦積み解除） */
    .table-custom th, .table-custom td {
        display: table-cell;  /* 元のテーブルセルの表示に戻す */
        min-width: 150px;     /* 各列の最低幅を確保（これでスクロールが発生する） */
        white-space: normal;  /* 長い文章はセルの中で折り返す */
        vertical-align: top;  /* 上揃えで見やすく */
    }
    
    /* 見出しセルの色調整（見やすくする） */
    .table-custom th {
        position: sticky;     /* 左端の列を固定したい場合はここを調整可能 */
        left: 0;
        background-color: #f0f4f8; /* 背景色を維持 */
    }
}

/* ===============================================
   内製化支援ページ：3つのメリット（リスト修正）
   =============================================== */
.benefit-list {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.benefit-item {
    flex: 1;
    min-width: 280px; /* この幅より狭くなったら折り返す */
    background: #f9fafb;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-sizing: border-box;
}

.benefit-title {
    color: var(--color-main);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

/* スマホでは縦並びにする */
@media (max-width: 768px) {
    .benefit-list {
        flex-direction: column;
    }
}

/* ブログ一覧 */
.blog-main {
  padding: 80px 0;
}

.blog-section {
  padding: 40px 0 80px;
}

.blog-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

/* カード一覧 */
.blog-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  border: 2px solid #f19c4a;             /* まとめ枠と近いオレンジ */
  border-radius: 16px;
  background: #fff;
  padding: 24px 24px 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.blog-card__thumb img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.blog-card__date {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 8px;
}

.blog-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.blog-card__excerpt {
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ホバー */
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ページネーション */
.blog-pagination {
  margin-top: 40px;
  text-align: center;
}

.blog-pagination .page-numbers {
  display: inline-block;
  margin: 0 4px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
}

.blog-pagination .current {
  background: #f19c4a;
  color: #fff;
  border-color: #f19c4a;
}

/* ブログ全体の余白 */
.blog-main {
  padding: 80px 0 120px;
}

/* カード一覧の横幅を中央に寄せる */
.blog-card-list {
  max-width: 960px;
  margin: 0 auto;
}

/* カード1枚の余白をちょっと調整 */
.blog-card {
  margin: 0 0 32px;
}

.blog-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.blog-card-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.blog-card {
  margin: 0; /* グリッドに任せる */
}

.blog-card-list {
  max-width: 760px; /* 好みによって680〜760が黄金比 */
  margin: 0 auto;
  padding: 0 20px;
}

.blog-card {
  padding: 28px 32px;
}

.blog-card .wp-block-columns {
  display: block !important;
}

.blog-card .wp-block-column {
  width: 100% !important;
  margin: 0 !important;
}

.blog-title {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
  margin: 40px 0 40px;
}

.blog-card {
  margin-bottom: 32px;
  border: 2px solid #f19c4a;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}