/*
 * donemax 日本語サイト向け上書きCSS
 *
 * style.css の後に読み込まれ、基本フォントを Noto Sans JP に切り替える。
 *
 * 方針: 全要素への !important 強制は使わない（アイコンフォントの
 * ::before グリフまで上書きして文字化けするため）。
 * フォント指定の実体は以下の4箇所だけなので、同じセレクタを後勝ちで上書きする:
 *   1. style.css  body { font-family: "Segoe UI", ... }
 *   2. style.css  .salelab { font-family: 'Montserrat-Light' }      ※フォント実体なし
 *   3. style.css  .salelab span { font-family: 'Montserrat-Bold' }  ※フォント実体なし
 *   4. style.css  .pr-win11check .pr-total h2 { font-family: Montserrat-Regular } ※同上
 * （bootstrap の body 指定は style.css が既に上書きしている）
 */

/* ====== フォントスタック変数 ====== */
:root {
  /* 基本（和文＋欧文の汎用） */
  --font-base:
    "Noto Sans JP",
    "Hiragino Sans",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic Medium",
    "Yu Gothic",
    "Meiryo",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    sans-serif;
}

/* ====== 基本フォント（継承で全体に行き渡る） ====== */
body {
  font-family: var(--font-base);
}

/* Montserrat 指定箇所（実体フォントなし）を継承に戻す */
.salelab,
.salelab span,
.pr-win11check .pr-total h2 {
  font-family: inherit;
}

/* bootstrap が独自フォントを直接指定するコンポーネント */
.tooltip,
.popover {
  font-family: var(--font-base);
}

/* ====== 日本語に合わせた行間・カーニング ====== */
body {
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-feature-settings: "palt";
  font-feature-settings: "palt";
}

/* 見出しはやや詰める */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-weight: 700;
}

/* ====== ヘッダーナビ調整 ======
 * style.css の `.navbar-default .navbar-nav>li:last-child` 系セレクタは
 * 元々「言語選択ドロップダウン」(最後の li) 専用だった。
 * 日本サイトでは言語選択を削除したため、style.css 内のセレクタを
 * `.x-lang-switch` (存在しないクラス) に置換して無効化済み。
 */

/* ロゴ横の「ダンマックス｜日本正規代理店」表記
 * ロゴ画像は .navbar-brand の padding 15px + 高さ24px → 下端が y=39px。
 * タグラインは font-size 14px / line-height 1 なので、
 * margin-top: 25px で下端が 25+14=39px となりロゴ下端に揃う（Playwrightで計測検証済み） */
.navbar-header {
  display: flex;
  align-items: flex-start;
}
.navbar-tagline {
  margin-left: 10px;
  margin-top: 25px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  line-height: 1;
}
/* モバイル用ハンバーガーはflex化後も右端を維持 */
.navbar-header .navbar-toggle {
  order: 9;
  margin-left: auto;
  align-self: center;
}

/* リンク未確定のナビ項目（ユーティリティ・ストア）: 通常リンクと同じ見た目だが
 * href なしのためクリック不可。確定後に href を付ければそのまま使える */
.navbar-default .navbar-nav > li > a.nav-nolink {
  cursor: default;
}

/* ====== トップページ: Data Eraser 全幅カード ======
 * NTFS for Mac ボックス削除に伴い、Data Eraser を col-md-12 に拡張。
 * 元の .text-area はイラストが下中央の絶対配置だったため、
 * 横並び（テキスト左・イラスト右）のフレックスに変更 */
.dm-mainpr .text-area-wide {
  display: flex;
  align-items: center;
  gap: 48px;
  min-height: auto;
  padding: 56px;
}
.dm-mainpr .text-area-wide .text-body {
  flex: 1;
  min-width: 0;
}
.dm-mainpr .text-area-wide .post {
  position: static;
  transform: none;
  flex-shrink: 0;
  max-width: 450px;
  height: auto;
}
/* モバイルでは縦積みに戻す */
@media (max-width: 767px) {
  .dm-mainpr .text-area-wide {
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
  }
  .dm-mainpr .text-area-wide .post {
    max-width: 100%;
  }
}

/* ====== 特定商取引法ページ（/tokushouhou/） ======
 * 他の法的ページと同じ seo-main 構造（seo-banner + text-part + arctle-part）。
 * 表組み（dl > .item > dt/dd）だけ独自スタイルで再現 */
.tokushouhou-page dl {
  margin: 0 0 8px;
  border-top: 1px solid #e5e5e5;
}
.tokushouhou-page .item {
  display: flex;
  border-bottom: 1px solid #e5e5e5;
}
.tokushouhou-page .item dt {
  flex: 0 0 220px;
  padding: 14px 16px;
  background: #f5f8fc;
  font-weight: 600;
}
.tokushouhou-page .item dd {
  flex: 1;
  padding: 14px 16px;
  margin: 0;
}
.tokushouhou-page .item dd img {
  vertical-align: middle;
}
@media (max-width: 767px) {
  .tokushouhou-page .item {
    flex-direction: column;
  }
  .tokushouhou-page .item dt {
    flex: none;
  }
}

/* ====== サポートページ: フォーム入り口カード ====== */
.support-p1 .text.box-shadow {
  padding: 0 0 8px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(20, 60, 120, 0.10);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.support-p1 .text.box-shadow:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(20, 60, 120, 0.16);
}
/* タイトル帯はリンクではなく見出しとして扱う（カード全体の導線はボタンに集約） */
.support-p1 p.name a {
  pointer-events: none;
  text-decoration: none;
}
.support-p1 .form-desc {
  margin: 24px 28px 0;
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  text-align: center;
  min-height: 54px;            /* 3カードの説明高さを揃えてボタン位置を統一 */
}
.support-p1 .form-link {
  text-align: center;          /* ボタンを横方向中央に */
  margin: 24px 0;              /* 上下同じ高さのマージン */
}
.support-p1 .form-link .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  height: 44px;
  padding: 0 28px;
  border-radius: 22px;
  background-color: #0060F9;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.support-p1 .form-link .btn:hover {
  background-color: #0047b8;
  color: #fff;
}

/* フッターのロゴ下タグライン */
footer .bt-logo .footer-tagline {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

/* フッターのナビメニュー（グロナビと同項目・右寄せ横並び） */
footer .footer-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 32px;
  height: 100%;
  min-height: 64px;
  margin: 0;
  padding: 0;
  list-style: none;
}
footer .footer-nav li {
  padding: 0;
}
footer .footer-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
footer .footer-nav a:hover {
  color: #0060F9;
}
@media (max-width: 767px) {
  footer .footer-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 16px;
  }
}

/* トップページ: 最新OS対応セクションの下マージン
 * （new-release セクション削除に伴い、後続セクションとの間隔を確保） */
.dm-latest {
  margin-bottom: 60px;
}

/* ====== トップページ ヒーロー: 「ディスククローンソフト」等のサブタイトルを太く ======
 * 元は font-weight: 200（極細）。日本語では細すぎるため太字に */
.banner-index .carousel-inner .text h1 small {
  font-weight: 700;
}

/* ====== 製品ページMV: 「Windows 11 完全対応」ボックス ======
 * 日本語テキストは英語より字面が詰まって見えるため右paddingを拡大
 * （元: style.css の padding-right: 0.8rem）*/
.banner-pr .compatible {
  padding-right: 1.6rem;
}

/* ====== フッター下部リンク（Privacy等）: 1行・12px ======
 * style.css は .copyright / .bt-link を width:45% の等分割にしているが、
 * リンクが増えると 45% の箱から nowrap の内容があふれるため width を解除し
 * 内容に合わせる（space-between で左右に配置）。
 * margin-right: 15px はヘッダーナビのリンク内padding(15px)と文字右端を揃えるため */
footer .footer-bt .copyright {
  width: auto;
  flex: 0 0 auto;
  font-size: 12px;
}
footer .footer-bt .bt-link {
  width: auto;
  flex: 0 1 auto;
  white-space: nowrap;
  font-size: 12px;
  margin-right: 15px;
}
footer .footer-bt .bt-link a {
  font-size: 12px;
  white-space: nowrap;
}

/* ====== 購入ページ（/purchase/.../） ====== */

/* セクション見出し（自家用／テクニシャン） */
.purchase .purchase-title {
  margin: 0 0 24px;
}
.purchase .purchase-title.tech-title {
  margin-top: 56px;
}
.purchase .purchase-title h1,
.purchase .purchase-title h2 {
  font-size: 24px;
  font-weight: 700;
}

/* 「● 事業用での…」のリード文 */
.purchase .lead-biz {
  margin: 12px 0 8px;
  font-weight: 700;
  color: #c0392b;
}

/* 「※「テクニシャン」版以外は…」の注記ブロック */
.purchase .usage-note {
  text-align: center;      /* 中央揃え（アイコンは inline-block なのでテキストのすぐ左に付く） */
  max-width: 720px;
  margin: 12px auto 0;     /* 中央のカラムに収める */
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}
/* 自家用／事業用の定義リスト：バレットの代わりに元サイトのチェックボックスアイコン（ic-check.svg）。
   アイコンはテキストのすぐ左に配置 */
.purchase .usage-note .usage-def {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
}
.purchase .usage-note .usage-def li {
  margin-bottom: 6px;
}
.purchase .usage-note .usage-def li::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.4em;
  vertical-align: -0.15em;
  background: url("/images/ic-check.svg") no-repeat center;
  background-size: contain;
}

/* 価格表記：本体（大）＋税込（小・改行して2段表示） */
.purchase .price .tax-in {
  display: block;
  margin-top: 2px;
  font-size: 0.5em;
  color: #555;
}

/* テクニシャン版が1枚のときはカードを中央寄せ */
.purchase .price-box-single {
  text-align: center;
}
.purchase .price-box-single > .col-md-4 {
  float: none;
  display: inline-block;
  text-align: left;
  vertical-align: top;
}

/* compare（エディション選択）の税込表記：本体価格より小さく・グレー・改行して2段表示 */
.v-compare span.price small,
.v-compare p.price small {
  display: block;
  margin-top: 2px;
  font-size: 0.45em;
  font-weight: normal;
  color: #555;
  line-height: 1.4;
}

/* 日本語の製品名は英語より長く3行に折り返し＋税込2段で .pr-name(高さ168px固定)を超過し、
   購入ボタンと価格が重なるため、内容に合わせて高さを拡張（カード間のボタン位置は維持） */
.main-pr .v-compare .pr-name {
  height: 240px;
}
