@charset "UTF-8";

/* ================= 基本設定・カラー変数 ================= */
:root {
  --navy-dark: #0a203e;
  --navy-main: #122c52;
  --gold-accent: #c59326;
  --gold-hover: #ae7f1c;
  --bg-page: #f5f7fa;
  --bg-th: #f0f4f9;
  --border-light: #dce3ed;
  --text-dark: #222222;
  --text-sub: #4a525d;
  --font-serif-en: 'Cormorant Garamond', Georgia, serif;
  --font-serif-ja: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--bg-page);
  line-height: 1.75;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

/* ================= 共通グローバルヘッダー ================= */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eaeaea;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-logo {
  display: flex;
  flex-direction: column;
}

.header-logo .logo-main {
  font-family: var(--font-serif-en);
  font-size: 24px;
  font-weight: 700;
  color: var(--navy-main);
  line-height: 1.1;
}

.header-logo .logo-sub {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--gold-accent);
  font-weight: 700;
}

.global-nav ul {
  display: flex;
  list-style: none;
  gap: 18px;
}

.global-nav a {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-main);
  letter-spacing: 0.04em;
  padding-bottom: 6px;
  position: relative;
}

/* 1. ナビゲーション全体：2行になったときの上下の間隔を狭くする */
.global-nav a,
.global-nav li {
  line-height: 1.2; /* 行間を詰める（元が1.5〜2.0くらいあるため狭く見えます） */
}

/* もしリンクの上下に大きな padding や margin がついている場合は調整 */
.global-nav a {
  display: inline-block;
  padding: 4px 0;
}

.header-utils {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
}

.lang-switch a {
  color: #888;
  font-weight: 700;
}

.lang-switch a.active {
  color: var(--navy-main);
  text-decoration: underline;
}

.lang-switch span {
  color: #ccc;
  margin: 0 2px;
}

.user-links {
  display: flex;
  gap: 10px;
  color: var(--navy-main);
  font-weight: 500;
}

.btn-contact {
  background-color: var(--gold-accent);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 12px;
}

.btn-contact:hover {
  background-color: var(--gold-hover);
}

/* 2. 言語選択・問い合わせ（お気に入り・ログイン等も含む）を1行にする */
.lang-switch,      /* 言語選択 (JP | EN | TH) の親要素 */
.btn-contact,      /* お問い合わせボタン */
.nav-utility a {   /* お気に入り・ログインなどのユーティリティリンク */
  white-space: nowrap; /* テキストの自動折り返しを禁止 */
  flex-shrink: 0;      /* Flexbox内で幅が押し潰されるのを防ぐ */
}

/* ================= 濃紺ページタイトルバナー ================= */
.page-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #173866 100%);
  color: #ffffff;
  padding: 24px 24px 40px;
  border-bottom: 3px solid var(--gold-accent);
}

.page-banner-inner {
  max-width: 960px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

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

.banner-titles {
  text-align: center;
}

.banner-en {
  display: block;
  font-family: var(--font-serif-en);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-accent);
  margin-bottom: 4px;
}

.banner-ja {
  font-family: var(--font-serif-ja);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.banner-meta {
  font-size: 12.5px;
  color: #dce4ef;
}

/* ================= メインコンテンツ ================= */
.law-main {
  max-width: 960px;
  margin: 36px auto 70px;
  padding: 0 20px;
}

.law-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--navy-main);
  border-radius: 6px;
  padding: 34px 40px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 2px solid var(--navy-main);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head h2 {
  font-family: var(--font-serif-en);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy-main);
  letter-spacing: 0.05em;
}

.section-head p {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-accent);
}

.btn-print {
  flex-shrink: 0;
  background-color: #ffffff;
  border: 1px solid var(--navy-main);
  color: var(--navy-main);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-print:hover {
  background-color: var(--navy-main);
  color: #ffffff;
}

/* 特定商取引法テーブル */
.law-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.law-table tr {
  border-bottom: 1px solid var(--border-light);
}

.law-table tr:first-child {
  border-top: 1px solid var(--border-light);
}

.law-table th {
  width: 240px;
  background-color: var(--bg-th);
  color: var(--navy-main);
  font-weight: 700;
  text-align: left;
  padding: 14px 18px;
  vertical-align: top;
}

.law-table td {
  padding: 14px 18px;
  color: var(--text-dark);
  background-color: #ffffff;
  word-break: break-word;
}

.text-link {
  color: var(--navy-main);
  text-decoration: underline;
}

.text-link:hover {
  opacity: 0.75;
}

/* 取消料・その他 補足カード */
.law-notes-card {
  background-color: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 32px 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.note-block {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #ebeff5;
}

.note-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.note-block h2 {
  font-family: var(--font-serif-ja);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-main);
  border-left: 4px solid var(--gold-accent);
  padding-left: 12px;
  margin-bottom: 10px;
}

.note-block p {
  font-size: 14px;
  color: var(--text-dark);
}

/* ================= 共通フッター ================= */
.site-footer {
  background-color: var(--navy-dark);
  color: #ffffff;
  padding: 36px 24px 28px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.footer-logo .logo-main {
  display: block;
  font-family: var(--font-serif-en);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.footer-logo .logo-sub {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold-accent);
}

.footer-sns {
  display: flex;
  gap: 12px;
}

.footer-sns a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 18px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer-links li {
  position: relative;
  font-size: 12px;
  color: #dce4ef;
}

.footer-links li:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -14px;
  color: rgba(255, 255, 255, 0.3);
}

.copyright {
  font-size: 11px;
  color: #9fb0c7;
}

/* ================= スマホ・タブレット用ヘッダーメニュー表示 ================= */
@media (max-width: 1100px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 8px;
  }

  /* ロゴは左上 */
  .header-logo {
    order: 1;
  }

  /* 言語・お問い合わせ等は右上 */
  .header-utils {
    order: 2;
    gap: 8px;
    font-size: 11px;
  }

  /* グローバルメニューを消さずに2段目へ横並び表示（横スクロール対応） */
  .global-nav {
    display: block !important;
    order: 3;
    width: 100%;
    border-top: 1px solid #eeeeee;
    padding-top: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .global-nav ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    padding-bottom: 2px;
  }

  .global-nav li {
    flex-shrink: 0; /* 文字が縦に折り返されるのを防ぐ */
  }

  .global-nav a {
    font-size: 11.5px;
    white-space: nowrap;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .header-logo .logo-main {
    font-size: 20px;
  }
  .user-links {
    display: none; /* 極小画面では「お気に入り・ログイン」を隠して「お問い合わせ」を確保（不要なら削除可） */
  }
  .btn-contact {
    padding: 6px 10px;
    font-size: 11px;
  }
}
/* ================= レスポンシブ＆印刷対応 ================= */
@media (max-width: 680px) {
  .law-card,
  .law-notes-card {
    padding: 24px 18px;
  }
  .card-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .banner-ja {
    font-size: 24px;
  }
  .law-table th,
  .law-table td {
    display: block;
    width: 100%;
    padding: 10px 14px;
  }
  .law-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }
  .law-table td {
    padding-top: 4px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-links li::after {
    display: none;
  }
}

@media print {
  body {
    background-color: #ffffff;
  }
  .site-header,
  .site-footer,
  .btn-print {
    display: none;
  }
  .law-card,
  .law-notes-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}