/* =============================================
   style_kakko_layout_unified.css (2026-05-05)
   ナビゲーション + メインレイアウト専用スタイル
   ※ style_kakko_common.css (薄い色版) の設定を優先
   ============================================= */

/* === メインナビゲーション === */
nav[aria-label="メインナビゲーション"] {
  background-color: #f8f9fa;        /* 共通設定に合わせた薄いグレー */
  border: 1px solid #e0e0e0;        /* 境界線を薄く設定 */
  padding: 0.7rem 1.2rem;
  margin-bottom: 1.8rem;
  border-radius: 6px;
}

nav[aria-label="メインナビゲーション"] .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  align-items: center;
}

/* 区切り線 | の色調整 */
nav[aria-label="メインナビゲーション"] .nav-menu li + li::before {
  content: "|";
  color: #888;                      /* 背景色に合わせたグレー */
  padding: 0 0.75rem;
  user-select: none;
}

/* リンクの色調整 */
nav[aria-label="メインナビゲーション"] .nav-menu a {
  color: #1f1f1f;                   /* 視認性の高い濃い文字色 */
  text-decoration: none;
  font-size: 0.93rem;
  padding: 0.35rem 0.6rem;
  white-space: nowrap;
  border-radius: 4px;
  transition: all 0.2s;
}

nav[aria-label="メインナビゲーション"] .nav-menu a:hover {
  color: #0066cc;                   /* テーマカラーの青 */
  background-color: rgba(0, 102, 204, 0.08); /* ホバー時の背景 */
  text-decoration: none;
}

/* === メインレイアウト (2カラム構成) === */
.input-output-wrapper {
  display: flex;
  gap: 20px;
  margin: 25px 0;
}

.input-output-wrapper section {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* 入出力セクションの見出し装飾 */
.input-output-wrapper h2 {
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 5px;
  color: #004499;
}

/* === セクション内のボタン調整 === */
section button + button {
  margin-left: 8px;
}

/* === レスポンシブ対応 === */
@media (max-width: 768px) {
  nav[aria-label="メインナビゲーション"] {
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
  }

  nav[aria-label="メインナビゲーション"] .nav-menu a {
    font-size: 0.9rem;
    padding: 0.3rem 0.5rem;
  }

  .input-output-wrapper {
    flex-direction: column;         /* スマホでは1カラム（縦並び）に */
    gap: 15px;
  }

  .input-output-wrapper section {
    min-width: auto;
    width: 100%;
  }

  /* モバイル時はボタンを全幅にして押しやすくする */
  section button {
    width: 100%;
    margin-left: 0 !important;
    margin-bottom: 10px;
  }
}