/* styles.css */

/* Dura ロゴ テキスト*/
.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 28px;
  color: #ffffff; /* フッター用 */
  letter-spacing: 0.5px;
}

/* CSS reset (minimal) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Hiragino Sans", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Yu Gothic", "Meiryo", sans-serif; line-height: 1.7; color: #202124; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: rgb(0, 56, 187); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid rgb(0, 56, 187); outline-offset: 2px; }

/* Layout helpers */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 800px; }

/* 最後のリスト下にスペースを設ける */
.bottom-space {
  margin-bottom: 2.0em;
}

/* Buttons */
.btn { display: inline-block; border: 1px solid rgb(0, 56, 187); color: rgb(0, 56, 187); padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: #e7fff1; }
.btn--primary { background: rgb(0, 56, 187); color: #fff; border-color: rgb(0, 56, 187); }
.btn--primary:hover { background: rgba(0, 26, 170, 0.267); }
.btn--ghost { background: transparent; color: rgb(0, 56, 187); border-color: rgb(0, 56, 187); }
.btn--sm { padding: 8px 12px; font-size: 14px; }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: -999px; }
.skip-link:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; border: 1px solid rgb(0, 56, 187); border-radius: 6px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(110%) blur(6px);
  border-bottom: 1px solid #eee;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand img { display: block; }

/* パンくず */
.breadcrumb {
  font-size: 14px;
  margin: 12px 24px;
}

.breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb li {
  color: #555;
}

.breadcrumb li + li::before {
  content: "›"; /* 区切り記号 */
  margin: 0 6px;
  color: #999;
}

.breadcrumb a {
  color: #0038bb; /* ブランドカラーに合わせる */
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* tdxページ目次（コンパクト版） */
.toc-001 {
    margin-bottom: 15px;
    padding: 0.5em 0.5em;
    border: 1px solid #999;
    background-color: #f7f7f7;
    color: #333333;
}

.toc-001 div {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 2px 0;
}

.toc-001 ol {
    list-style-type: disc;
    margin: 0;
    padding: 0 0.8em;
    overflow: hidden;
}

.toc-001 ol ol {
    margin-top: 2px;
}

.toc-001 li {
    padding: 2px 0;
}

.toc-001 a {
    color: #166c9d;
}

/* アンカー位置をずらす */
section[id]::before {
  content: "";
  display: block;
  height: 80px; /* 固定ヘッダーの高さに合わせて調整 */
  margin-top: -80px;
  visibility: hidden;
}


/* Topに戻る */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: #818182; /* ブランドカラーに合わせる */
  color: #fff;
  font-size: 20px;
  text-align: center;
  line-height: 48px;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  text-decoration: none;
  transition: background 0.3s ease;
  z-index: 100;
  display: none;
}

.back-to-top:hover {
  background: #818182;
}

/* Hero */
.hero { position: relative; }
.hero img { width: 100%; height: clamp(280px, 50vw, 560px); object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.20) 40%, rgba(0,0,0,0) 100%); display: grid; place-items: center; }
.hero__content { color: #fff; padding: 24px 10px; }
.hero__title { font-size: clamp(24px, 4vw, 40px); margin: 0 0 8px; letter-spacing: .02em; }
.hero__lead { max-width: 720px; margin: 0 0 16px; font-size: clamp(14px, 2.2vw, 18px); opacity: .95; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Section */
.section { padding: 60px 0; }
.section--shade { background: #f7f8f9; }
.section__header { display: grid; gap: 6px; margin-bottom: 16px; }
.section__title { font-size: 28px; margin: 0; letter-spacing: .02em; }
.section__lead, .section__desc { color: #555; }

.section--message .pill-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding: 0; list-style: none; }
.pill { background: #f0f7f3; color: rgb(0, 56, 187); border: 1px solid #cfead9; border-radius: 999px; padding: 6px 12px; font-weight: 600; }

/* table */
.company-table {
  border-collapse: collapse;
  width: 100%;
  margin-top: 16px;
}

.company-table caption {
  caption-side: top;
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 18px;
}

.company-th {
  text-align: left;
  vertical-align: top;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  width: 160px;
}


/* Grid & Cards */
.grid { display: grid; gap: 16px; }
.grid--cards { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .grid--cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--cards { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card__media img { width: 100%; height: 160px; object-fit: cover; }
.card__body { padding: 14px; display: grid; gap: 6px; }
.card__title { font-size: 18px; margin: 0; }
.card__text { color: #555; }
.card__link { font-weight: 600; color: rgb(0, 56, 187); }

/* 機能紹介カード */
.tdx-feature-cards {
  margin: 40px 0;
}

.feature-card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.feature-card-text{
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.feature-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #202124;
}

.feature-card p {
  font-size: 14px;
  color: #555;
}

/* 事例 */
.tdx-case-study {
  margin: 40px 0;
}

.case-block {
  background: #f7f7f7;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.case-block h4 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #0038bb;
}

.case-block p {
  font-size: 15px;
  margin-bottom: 16px;
  color: #333;
}

.case-features {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.case-features li {
  margin-bottom: 8px;
  padding-left: 1em;
  text-indent: -1em;
}

.case-features li::before {
  content: "✔️";
  margin-right: 6px;
  color: #0070c0;
}

.case-image img {
  max-width: 100%;
  height: auto;
}


/* Form */
.contact-form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 6px; }
input, select, textarea { border: 1px solid #ddd; border-radius: 8px; padding: 10px; font: inherit; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: rgb(0, 56, 187); }

/* Footer */
.site-footer { background: #101213; color: #e8e9ea; padding-left: 10px; }
.footer-top { display: grid; gap: 24px; padding: 28px 0; }
.footer-brand { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.footer-copy { margin: 0; color: #c7c8ca; }

.footer-links { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 820px) { .footer-links { grid-template-columns: repeat(4, 1fr); } }
.footer-title { margin: 0 0 8px; font-size: 16px; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { color: #c7c8ca; }
.footer-col a:hover { color: #fff; }

.social-list { display: grid; gap: 6px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid #1f2022; }
.footer-address { font-style: normal; color: #c7c8ca; }
.footer-copylight { color: #8e9092; }

/* Utilities */
.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* Responsive nav */
  .nav-toggle {
    display: none; /* PCではハンバーガーボタンを非表示 */
  }

  .primary-nav {
    display: block;
    position: static;
    background: transparent;
    border: none;
  }

    .primary-nav ul {
    display: flex;
    flex-direction: row; /* 横並び */
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .primary-nav a {
    color: #000;        /* ← 黒文字にする */
    text-decoration: none;
    font-weight: 400;
  }

  .primary-nav a:hover {
    text-decoration: underline; /* ホバー時に下線を出す */
  }


@media (max-width: 960px) {
  .nav-toggle {
    display: block;       /* スマホではハンバーガーボタンを表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }

  .nav-toggle-bar {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #333;
    margin: 6px 0;
    border-radius: 2px;
  }

  .primary-nav {
    display: none; /* 初期状態は非表示 */
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #ccc;
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    padding: 12px;
  }
}


/* 販売会社 連絡先 */
.distributor-name a {
  font-size: 28px; 
  margin: 0; 
  letter-spacing: .02em;
  color: #000 !important;
  text-decoration: none;
}

.distributor-name a:hover {
  text-decoration: underline;
}


.company-heading {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #333;
}

.company-actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}



/* 言語切り替え */
.lang-switch a {
  text-decoration: none;
  color: #333;
  padding: 0 4px;
}

.lang-switch a:hover {
  text-decoration: underline;
}

/* PDFアイコン */
.pdf-icon {
  display: inline-block;
  width: 20px;
  height: auto;
  margin-right: 6px;
  vertical-align: middle;
}
