/*
Theme Name: Eight Links - 特定技能2号 (Arkhē Child)
Theme URI: https://hiroshima-visa.link/businessmanagement/
Description: 行政書士法人Eight Links 特定技能2号専門サイト用 Arkhē子テーマ（記事スタイル・ブランドカラー最適化済み）
Author: STUDIO Tachimachi
Template: arkhe
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arkhe-child-eightlinks
*/

/* =========================================================
   1. Arkhē ブランドカラー・ベース設定（特定技能2号仕様）
   ========================================================= */
:root {
	/* メインカラー（気品と信頼のディープパープル） */
	--ark-color--main: #4C1D95;
	/* アクセントカラー（特定技能2号テーマバイオレット） */
	--ark-color--accent: #7C3AED;
	--ark-color--link: #6D28D9;

	/* 背景色・文字色 */
	--ark-color--bg: #F8FAFC;
	--ark-color--text: #1E293B;

	/* ヘッダー */
	--ark-color--header_bg: #FFFFFF;
	--ark-color--header_txt: #0F172A;

	/* コンテナ最大幅 */
	--ark-container_width: 1140px;
}

/* 記事ページをスッキリ読ませる基本レイアウト調整 */
.c-postContent {
	font-size: 16px;
	line-height: 1.85;
	color: #334155;
}

/* 投稿ページの余白調整 */
.p-entry__body {
	padding-top: 1.5rem;
}

/* =========================================================
   2. 特定技能2号 記事専用スタイル (.visa-guide-container)
   ========================================================= */

/* 全体でbox-sizingをborder-boxに統一してレイアウト崩れを防止 */
  .visa-guide-container,
  .visa-guide-container *,
  .visa-guide-container *::before,
  .visa-guide-container *::after {
    box-sizing: border-box;
  }
  /* 特定技能2号専用カラーパレット (パープル系) */
  :root {
    --ana-blue: #7C3AED;
    --ana-navy: #4C1D95;
    --ana-light-blue: #A78BFA;
    --ana-sky: #F5F3FF;
    --ana-gray: #6B7280;
    --ana-light-gray: #F3F4F6;
    --ana-white: #FFFFFF;
    --ana-accent: #A78BFA;
  }
  /* ベーススタイル */
  .visa-guide-container {
    max-width: 100%;
    margin: 0 auto;
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
    line-height: 1.8;
    color: #333;
    background: #fff;
  }
  /* 目次スタイル - パープル系 */
  .table-of-contents {
    background: linear-gradient(135deg, var(--ana-navy) 0%, var(--ana-blue) 100%);
    padding: 24px 20px;
    border-radius: 8px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
  }
  .table-of-contents h2 {
    color: var(--ana-white);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    letter-spacing: 0.05em;
  }
  .table-of-contents h2::before {
    content: "📋";
    margin-right: 10px;
    font-size: 24px;
  }
  .toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .toc-list li {
    margin: 10px 0;
  }
  .toc-list a {
    color: var(--ana-white);
    text-decoration: none;
    padding: 12px 16px;
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-size: 15px;
  }
  .toc-list a:hover,
  .toc-list a:active {
    background: rgba(255, 255, 255, 0.2);
    border-left-color: var(--ana-white);
    transform: translateX(4px);
  }
  /* セクション見出し - パープル系 */
  .section-heading {
    font-size: 22px;
    color: var(--ana-navy);
    margin: 40px 0 20px;
    padding: 16px 20px;
    background: linear-gradient(to right, var(--ana-sky) 0%, transparent 100%);
    border-left: 4px solid var(--ana-blue);
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 4px;
  }
  /* 重要ポイントボックス */
  .important-box {
    background: var(--ana-white);
    border: 2px solid var(--ana-blue);
    border-left: 6px solid var(--ana-blue);
    padding: 20px 16px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.1);
  }
  .important-box h3 {
    color: var(--ana-blue);
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 600;
  }
  .important-box h3::before {
    content: "⚠️";
    margin-right: 8px;
    font-size: 20px;
  }
  .important-box ul {
    margin: 12px 0;
    padding-left: 20px;
  }
  .important-box li {
    margin: 8px 0;
    line-height: 1.7;
  }
  /* インフォボックス */
  .info-box {
    background: var(--ana-sky);
    border: 1px solid var(--ana-light-blue);
    border-left: 6px solid var(--ana-light-blue);
    padding: 20px 16px;
    border-radius: 8px;
    margin: 20px 0;
  }
  .info-box h3 {
    color: var(--ana-blue);
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 600;
  }
  .info-box h3::before {
    content: "ℹ️";
    margin-right: 8px;
    font-size: 20px;
  }
  .info-box ul {
    margin: 12px 0;
    padding-left: 20px;
  }
  .info-box li {
    margin: 8px 0;
    line-height: 1.7;
  }
  /* フローチャート - シンプル化 */
  .flow-chart {
    margin: 30px 0;
    padding: 20px 16px;
    background: var(--ana-light-gray);
    border-radius: 8px;
  }
  .flow-step {
    background: var(--ana-white);
    padding: 16px;
    margin: 16px 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--ana-blue);
  }
  .flow-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background: var(--ana-blue);
    color: var(--ana-white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
  }
  .flow-step-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--ana-navy);
    margin-bottom: 8px;
    display: inline;
  }
  .flow-step p {
    margin: 8px 0 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
  }
  .flow-arrow {
    text-align: center;
    color: var(--ana-blue);
    font-size: 24px;
    margin: 8px 0;
    font-weight: bold;
  }
  /* 比較テーブル - スマホ対応 */
  .comparison-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
  .comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--ana-white);
  }
  .comparison-table thead {
    background: var(--ana-navy);
    color: var(--ana-white);
  }
  .comparison-table th {
    padding: 16px 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
  }
  .comparison-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 14px;
    line-height: 1.6;
  }
  .comparison-table tbody tr:hover {
    background: var(--ana-sky);
  }
  .comparison-table tbody tr:last-child td {
    border-bottom: none;
  }
  .comparison-table td:first-child {
    font-weight: 600;
    color: var(--ana-navy);
    background: var(--ana-light-gray);
  }
  /* チェックリスト */
  .checklist {
    background: var(--ana-white);
    padding: 20px 16px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    margin: 20px 0;
  }
  .checklist-item {
    padding: 12px 0;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    align-items: flex-start;
    line-height: 1.7;
  }
  .checklist-item:last-child {
    border-bottom: none;
  }
  .checklist-item::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: var(--ana-blue);
    color: var(--ana-white);
    border-radius: 50%;
    margin-right: 12px;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 14px;
  }
  /* カード型情報ブロック - グリッド最適化 */
  .info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
  }
  .info-card {
    background: var(--ana-white);
    padding: 20px 16px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    border-top: 4px solid var(--ana-blue);
    transition: all 0.3s ease;
  }
  .info-card:hover,
  .info-card:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .info-card h4 {
    color: var(--ana-blue);
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
  }
  .info-card-icon {
    font-size: 24px;
    margin-right: 8px;
  }
  .info-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
  }
  /* 警告ボックス */
  .warning-box {
    background: #FEF3C7;
    border: 2px solid #F59E0B;
    border-left: 6px solid #F59E0B;
    padding: 20px 16px;
    border-radius: 8px;
    margin: 20px 0;
  }
  .warning-box h3 {
    color: #92400E;
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 600;
  }
  .warning-box h3::before {
    content: "🚨";
    margin-right: 8px;
    font-size: 20px;
  }
  .warning-box p,
  .warning-box ul {
    color: #78350F;
    margin: 8px 0;
  }
  .warning-box ul {
    padding-left: 20px;
  }
  .warning-box li {
    margin: 6px 0;
    line-height: 1.7;
  }
  /* 期間表示バッジ */
  .duration-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
  }
  .duration-badge {
    background: var(--ana-blue);
    color: var(--ana-white);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.2);
    white-space: nowrap;
  }
  /* ハイライトテキスト */
  .highlight {
    background: linear-gradient(transparent 60%, #FDE68A 60%);
    font-weight: 600;
    padding: 2px 4px;
  }
  /* アイコン付きリスト */
  .icon-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
  }
  .icon-list li {
    padding: 10px 0 10px 36px;
    position: relative;
    border-bottom: 1px solid #F3F4F6;
    line-height: 1.7;
  }
  .icon-list li:last-child {
    border-bottom: none;
  }
  .icon-list li::before {
    content: "📄";
    position: absolute;
    left: 0;
    font-size: 20px;
  }
  /* FAQセクション */
  .faq-item {
    background: var(--ana-white);
    margin: 16px 0;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
  }
  .faq-question {
    background: var(--ana-navy);
    color: var(--ana-white);
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
  }
  .faq-question::before {
    content: "Q";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 12px;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
  }
  .faq-answer {
    padding: 16px;
    background: var(--ana-white);
    line-height: 1.7;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: flex-start;
  }
  .faq-answer::before {
    content: "A";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--ana-blue);
    color: var(--ana-white);
    border-radius: 50%;
    margin-right: 12px;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
  }
  /* CTAボックス */
  .cta-box {
    text-align: center !important;
    padding: 36px 24px;
    border: 3px solid var(--ana-blue);
    border-radius: 12px;
    background: var(--ana-sky);
    margin: 40px 0;
  }
  .cta-box-badge {
    background: var(--ana-blue);
    color: var(--ana-white);
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 16px;
  }
  .cta-box h3 {
    color: var(--ana-navy);
    font-size: 20px;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 16px;
    text-align: center !important;
    display: block !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }
  .cta-box h3::before {
    display: none !important;
  }
  .cta-box p {
    font-size: 14px;
    color: #555;
    max-width: 600px;
    margin: 0 auto 24px auto;
    line-height: 1.7;
    text-align: center !important;
  }
  /* CTAボタン */
  .cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
  }
  .cta-button {
    display: inline-block;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 15px;
  }
  .cta-button.primary-btn {
    background: var(--ana-blue);
    color: var(--ana-white);
  }
  .cta-button.secondary-btn {
    background: var(--ana-navy);
    color: var(--ana-white);
  }
  .cta-button:hover,
  .cta-button:active {
    opacity: 0.9;
    transform: translateY(-1px);
  }
  @media (min-width: 768px) {
    .cta-button {
      width: auto;
    }
  }
  /* タブレット以上 */
  @media (min-width: 768px) {
    .visa-guide-container {
      padding: 0 24px;
    }
    .info-cards {
      grid-template-columns: repeat(2, 1fr);
    }
    .section-heading {
      font-size: 26px;
      padding: 20px 24px;
    }
    .table-of-contents {
      padding: 32px 28px;
    }
    .table-of-contents h2 {
      font-size: 24px;
    }
    .toc-list a {
      font-size: 16px;
    }
    .flow-chart {
      padding: 28px 24px;
    }
    .flow-step {
      padding: 20px;
    }
    .flow-step p {
      font-size: 15px;
    }
  }
  /* PC */
  @media (min-width: 1024px) {
    .visa-guide-container {
      max-width: 1000px;
      padding: 0 32px;
    }
    .info-cards {
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
    }
    .section-heading {
      font-size: 28px;
    }
    .comparison-table {
      min-width: 100%;
    }
  }
  /* テキスト選択時の色 */
  .visa-guide-container ::selection {
    background: var(--ana-light-blue);
    color: var(--ana-white);
  }
  /* フォーカス時のアクセシビリティ */
  .visa-guide-container a:focus,
  .visa-guide-container button:focus {
    outline: 2px solid var(--ana-blue);
    outline-offset: 2px;
  }
  /* 段落のスペーシング */
  .visa-guide-container p {
    margin: 16px 0;
    line-height: 1.8;
  }
  /* 強調テキスト */
  .visa-guide-container strong {
    color: var(--ana-navy);
    font-weight: 600;
  }
  /* スマホ画面（767px以下）でのテーブル縦積みカード化 */
  @media (max-width: 767px) {
    .comparison-table-wrapper {
      box-shadow: none;
      overflow-x: visible;
    }
    .comparison-table {
      min-width: 0 !important;
    }
    .comparison-table,
    .comparison-table thead,
    .comparison-table tbody,
    .comparison-table th,
    .comparison-table td,
    .comparison-table tr {
      display: block;
      width: 100% !important;
    }
    .comparison-table thead {
      display: none;
    }
    .comparison-table tr {
      margin-bottom: 20px;
      border: 1px solid #E5E7EB;
      border-radius: 8px;
      background: var(--ana-white);
      padding: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    .comparison-table td {
      padding: 8px 12px 8px 140px;
      border-bottom: 1px solid #F3F4F6;
      position: relative;
      text-align: left;
      min-height: 40px;
    }
    .comparison-table td:last-child {
      border-bottom: none;
    }
    .comparison-table td::before {
      content: attr(data-label);
      position: absolute;
      left: 12px;
      top: 8px;
      width: 120px;
      font-weight: 600;
      color: var(--ana-navy);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .comparison-table td:first-child {
      background: var(--ana-sky);
      font-weight: 600;
      color: var(--ana-navy);
      padding: 10px 12px;
      border-radius: 4px;
      margin-bottom: 8px;
    }
    .comparison-table td:first-child::before {
      display: none;
    }
    /* 期間表示バッジをスマホで縦並びカード化し、折り返しを許可 */
    .duration-badge {
      white-space: normal;
      width: 100%;
      border-radius: 8px;
      line-height: 1.5;
    }
  }
