/* Keep the quiet JV2AI layout and typography; all additions are product-local. */
@import url("../../../jv2ai/assets/css/style.css");

.tazuna-site {
  --section-space: clamp(72px, 8vw, 108px);
}

.tazuna-site [hidden] { display: none !important; }
.tazuna-site :is(.hero-layout, .article-content, .feature-story > *, .definition-category) { min-width: 0; }
.tazuna-site :is(p, li) { overflow-wrap: anywhere; }
.tazuna-site .product-hero { padding-block: clamp(56px, 7vw, 92px); }
.tazuna-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: center; gap: 72px; }
.tazuna-site .product-hero h1 { font-family: "Zen Kaku Gothic New", sans-serif; font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: .02em; }
.tazuna-tagline { margin: 24px 0 18px; }
/* 紹介コピーと生成AI連携の見出しは、同じ文字スタイルにそろえる。 */
.tazuna-tagline,
.tazuna-site .analysis-flow-copy h2 { font-size: clamp(1.25rem, 2.8vw, 1.75rem); line-height: 1.7; font-weight: 500; }
.tazuna-site .hero-lead { max-width: 620px; font-size: 1rem; line-height: var(--body-line-height); }
.hero-support { color: var(--color-subtext); font-size: .95rem; line-height: 1.9; }
.tazuna-hero-logo img { width: 250px; height: auto; aspect-ratio: 1; object-fit: contain; }
.release-status { color: var(--color-subtext); font-size: .88rem; }
.tazuna-introduction { max-width: 780px; margin-bottom: 64px; }
.tazuna-introduction h3 { margin: 0; font-size: 1.4rem; font-weight: 500; }
.tazuna-introduction p { color: var(--color-subtext); }
.database-foundations .feature h3 { font-size: 1.1rem; line-height: 1.7; }
.database-foundations .feature p { font-size: 1rem; line-height: var(--body-line-height); }
.database-foundations-action { margin: 28px 0 64px; }
.feature-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.feature-story + .feature-story { margin-top: 76px; }
.feature-story h3 { margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; line-height: 1.7; }
.feature-story p { color: var(--color-subtext); font-size: 1rem; }
.feature-story .eyebrow { font-size: .75rem; }
.screen-figure { margin: 24px 0 0; }
.screen-figure a { display: block; }
.screen-figure img { width: 100%; height: auto; object-fit: contain; }
/* スクリーンショットは別タブへ移動せず、ページ内のダイアログで拡大。 */
.image-preview-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: zoom-in;
}
.image-preview-trigger:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
body.image-preview-open { overflow: hidden; }
.image-preview-dialog {
  width: min(1600px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--color-line);
  border-radius: 12px;
  color: var(--color-text);
  background: var(--color-bg);
}
.image-preview-dialog::backdrop { background: rgb(17 24 39 / 65%); }
.image-preview-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.image-preview-toolbar { display: flex; justify-content: flex-end; flex: none; }
.image-preview-close {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  color: var(--color-text);
  background: var(--color-surface);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.image-preview-close:hover { background: var(--color-soft-blue); }
.image-preview-close:focus-visible,
.image-preview-viewport:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.image-preview-viewport { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.image-preview-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  margin: 0 auto;
  object-fit: contain;
}
.image-preview-status { margin: 0; color: var(--color-subtext); font-size: .85rem; line-height: 1.7; }
.feature-story .screen-figure { margin: 0; }
.screen-note { color: var(--color-subtext); font-size: .82rem !important; line-height: 1.9; }
/* 複数の画面画像も、画面幅によらず1枚ずつ縦に並べる。 */
.screenshot-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.screenshot-placeholder { display: grid; align-content: center; min-height: 180px; padding: 28px; margin: 26px 0 0; border: 1px solid var(--color-line); color: var(--color-subtext); text-align: center; }
.screenshot-placeholder p { margin: 8px 0 !important; }
.screenshot-placeholder small { font-size: .8rem; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.guide-grid .guide-link { display: flex; flex-direction: column; gap: 12px; }
.guide-grid .guide-link + .guide-link::before { left: -20px; }
.guide-number { font-family: "Outfit", sans-serif; color: var(--color-subtext); font-size: .8rem; }
.tazuna-site .guide-link p { font-size: .95rem; }
.tazuna-site .requirement-list li { font-size: 1rem; }
.tazuna-site .article-layout { grid-template-columns: 132px minmax(0, 1fr); gap: 40px; }
.tazuna-site .article-nav a { font-size: .92rem; font-weight: 700; }
.tazuna-site .page-description { max-width: 800px; font-size: 1rem; }
.tazuna-site .article-content :is(p, li),
.tazuna-site .database-section > p,
.tazuna-site .database-category > p:nth-child(2) { font-size: 1rem; }
.tazuna-site .article-content .setup-step-number { font-size: .8rem; }
.tazuna-site .article-content .setup-step h3 { font-size: 1.1rem; font-weight: 700; }
.tazuna-site .article-content .setup-steps { padding-left: 0; }
.tazuna-site .article-content section { scroll-margin-top: 24px; }
/* 更新機能は、見出しと上余白で説明・画像のまとまりを区切る。 */
.tazuna-site .article-content .update-method-title {
  margin: 32px 0 16px;
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  font-weight: 700;
  line-height: 1.7;
}
.tazuna-site .article-content .screen-figure + .update-method-title {
  margin-top: clamp(48px, 6vw, 64px);
}
.tazuna-site .text-link { font-size: .93rem; }
/* 分析フローはStepラベルを使用し、リストの既定番号は重ねない。 */
.tazuna-site .analysis-flow-steps { padding-left: 0; list-style: none; }
.tazuna-site p .inline-text-link { display: inline; margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.tazuna-site .notice { font-size: .95rem; }
.reference-table-scroll { overflow-x: auto; margin-top: 30px; }
.reference-table { width: 100%; border-collapse: collapse; text-align: left; }
.reference-table :is(th, td) { padding: 15px 18px; border-bottom: 1px solid var(--color-line); vertical-align: top; font-size: .95rem; }
.reference-table th { font-weight: 500; }
.reference-table tbody th { white-space: nowrap; }
/* DB仕様の導入文は、見出し下の更新情報と分けて読みやすくまとめる。 */
.database-download-section { margin-bottom: clamp(48px, 6vw, 64px); }
.database-introduction {
  display: grid;
  gap: 20px;
  max-width: 900px;
  color: var(--color-subtext);
}
.tazuna-site .database-introduction > p {
  margin: 0;
  font-size: 1rem;
  line-height: var(--body-line-height);
}
.database-introduction code { overflow-wrap: anywhere; }
.database-jump-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 32px 0 64px; font-family: "Outfit", sans-serif; font-size: .95rem; }
.database-jump-links a { border-bottom: 1px solid var(--color-line); }
.database-jump-links a:hover { color: var(--color-accent); }
.tazuna-site .database-definition-note { margin-bottom: 28px; max-width: none; font-size: .95rem; }
.definition-filter { display: grid; gap: 10px; max-width: 560px; margin-bottom: 28px; }
.definition-filter label { font-size: .95rem; font-weight: 500; }
.definition-filter input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--color-line); border-radius: 6px; color: var(--color-text); background: var(--color-surface); font: inherit; }
.definition-filter p { margin: 0; font-size: .85rem; color: var(--color-subtext); }
.tazuna-site .entity-definition > summary { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) auto; }
.tazuna-site .entity-definition > summary :is(code, .entity-summary-name) { overflow-wrap: anywhere; }
.tazuna-site .entity-table-scroll { max-width: 100%; overflow-x: auto; }
.tazuna-site .entity-table-scroll table { min-width: 0; width: 100%; table-layout: auto; border-collapse: collapse; }
.tazuna-site .entity-table-scroll :is(th, td) { font-size: .84rem; line-height: 1.8; padding: 10px 12px; vertical-align: top; }
.tazuna-site .entity-table-scroll code { font-size: .82rem; white-space: normal; overflow-wrap: normal; }
.tazuna-site .entity-table-scroll td a { color: var(--color-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.tazuna-site .entity-definition-body > p { font-size: .95rem; overflow-wrap: anywhere; }
.tazuna-site .entity-definition-body a code { overflow-wrap: anywhere; }
.view-sql { margin-top: 24px; }
.tazuna-site .view-sql summary { display: list-item; padding: 8px 0; font-size: .9rem; list-style: disclosure-closed; }
.tazuna-site .view-sql[open] summary { list-style: disclosure-open; }
.tazuna-site .view-sql summary::after { content: none; }
.view-sql pre { max-height: 360px; overflow: auto; font-size: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .tazuna-hero-layout { grid-template-columns: minmax(0, 1fr) 190px; gap: 32px; }
  .tazuna-hero-logo img { width: 190px; }
  .feature-story { grid-template-columns: 1fr; gap: 24px; }
  .tazuna-site .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .tazuna-site .article-nav { position: static; display: flex; flex-wrap: wrap; gap: 12px 22px; }
  .tazuna-site .entity-definition > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; }
  .tazuna-site .entity-definition > summary code { grid-column: 1; }
  .tazuna-site .entity-field-count { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 600px) {
  .tazuna-hero-layout { grid-template-columns: 1fr; gap: 28px; }
  .tazuna-hero-logo { justify-self: start; }
  .tazuna-hero-logo img { width: 150px; }
  .tazuna-tagline,
  .tazuna-site .analysis-flow-copy h2 { font-size: 1.3rem; }
  .guide-grid { grid-template-columns: 1fr; gap: 28px; }
  .guide-grid .guide-link + .guide-link::before { content: none; }
  .tazuna-site .database-category { grid-template-columns: 1fr; gap: 8px; }
  .tazuna-site .page-hero h1 { font-size: 2rem; }
  .tazuna-site .header-inner { gap: 12px; }
  .tazuna-site .brand { gap: 7px; }
  .tazuna-site .brand-product { font-size: .75rem; }
  .reference-table :is(th, td) { padding: 12px 10px; }
  .tazuna-site .entity-table-scroll :is(th, td) { min-width: 90px; }
}
