/* estremo: 旧フレームサイトを再構成した共通スタイル */
:root {
  --black: #101010;
  --red: #d60012;
  --nav: #777;
  --gold: #efa800;
  --corp: #086a93;
  --cyan: #1aaec1;
  --text: #303030;
  --bg: #fff;
  --line: #d8d8d8
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  background: #f4f4f4;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.65
}

a {
  color: inherit
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #d60012;
  outline-offset: 3px
}

button {
  font: inherit;
  cursor: pointer
}

img {
  max-width: 100%;
  height: auto
}

.site-shell {
  width: calc(100% - 2 * clamp(0px, 14vw, 102px));
  max-width: 1440px;
  margin-inline: auto;
  background: var(--bg);
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column
}

.site-header {
  background: var(--black);
  display: flex;
  align-items: center
}

.site-logo {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
}

.site-logo img {
  display: block;
  width: clamp(130px, 110.3px + 5.26vw, 186px);
  height: auto;
  object-fit: contain
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--nav);
  min-width: 0
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(10px, 1.4vw, 16px) clamp(3px, .8vw, 10px);
  min-width: 0;
  min-height: 48px;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  line-height: 1.2;
  font-size: clamp(.8rem, 1.4vw, 1.5rem);
  border-right: 1px solid rgba(255, 255, 255, .38)
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #595959
}

.site-nav a:last-child {
  background: var(--cyan)
}

.site-nav a.is-active.products {
  background: var(--gold)
}

.site-nav a.is-active.corp {
  background: var(--corp)
}

.site-nav a.is-active.order {
  background: #da0ad3
}

.page-main {
  width: 100%;
  min-width: 0;
  flex: 1;
  padding: clamp(18px, 3vw, 40px) clamp(16px, 4vw, 55px) clamp(40px, 7vw, 84px)
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .84rem;
  color: #666;
  margin-bottom: 18px
}

.breadcrumbs a {
  text-underline-offset: 3px
}

.page-intro {
  border-bottom: 2px solid #ddd;
  margin-bottom: 20px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px
}

.page-intro h1 {
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  font-size: clamp(1.45rem, 3vw, 2.15rem)
}

.section-label {
  color: #fff;
  background: var(--gold);
  font-weight: 750;
  padding: 4px 10px;
  font-size: .8rem;
  white-space: nowrap
}

.section-corp .section-label {
  background: var(--corp)
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(20px, 4vw, 38px)
}

.section-links a {
  font-size: clamp(.84rem, 1.6vw, .96rem);
  background: #f0f0f0;
  border: 1px solid #dedede;
  border-radius: 3px;
  padding: 7px 12px;
  text-decoration: none
}

.section-links a:hover,
.section-links a.is-current {
  border-color: var(--gold);
  background: #fff4d3
}

.section-corp .section-links a:hover,
.section-corp .section-links a.is-current {
  border-color: var(--corp);
  background: #e7f4fa
}

.content-card {
  background: white;
  border: 1px solid #ddd;
  padding: clamp(16px, 3vw, 32px);
  margin-bottom: clamp(16px, 3vw, 28px);
  min-width: 0
}

.content-card h2 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  margin: 0 0 20px;
  padding: 0 0 7px;
  border-bottom: 3px solid var(--gold)
}

.section-corp .content-card h2 {
  border-color: var(--corp)
}

.content-card h3 {
  font-size: clamp(1rem, 1.6vw, 1.23rem)
}

.product-landing-content {
  background: #101010;
  color: #f5f5f5;
  padding: clamp(18px, 3vw, 36px)
}

.product-landing-content>h2 {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  border-left: 4px solid var(--gold);
  padding-left: 12px;
  margin: 0 0 18px
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 2.2vw, 24px);
  margin-bottom: clamp(34px, 5vw, 60px)
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  background: #262626;
  text-decoration: none;
  transition: transform .2s, background .2s
}

.product-card:hover {
  transform: translateY(-3px);
  background: #404040
}

.product-card img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #fff
}

.product-card-title {
  text-align: center;
  padding: 0 5px 9px;
  font-weight: 700;
  font-size: clamp(.7rem, 1.3vw, .95rem)
}

.card-text-symbol {
  aspect-ratio: 1;
  background: #dedede;
  color: #333;
  display: grid;
  place-items: center;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 900
}

.product-features {
  display: grid;
  gap: 12px;
  max-width: 850px;
  margin-inline: auto
}

.feature-banner {
  display: block;
  overflow: hidden
}

.feature-banner img {
  display: block;
  width: 100%;
  height: auto
}

.feature-banner:hover img {
  filter: brightness(1.12)
}

.product-news {
  max-width: 850px;
  margin: 22px auto 0
}

.product-announcements {
  padding-left: 1.2em
}

.product-announcements li {
  margin: 10px 0
}

.price-notice-link {
  color: #ff6b6b;
  text-decoration: underline;
  font-weight: 700
}

.company-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px
}

.company-menu-grid a,
.qa-menu-grid a {
  min-width: 0;
  text-decoration: none;
  border: 2px solid #d8d8d8;
  background: #f8f8f8;
  padding: 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 700
}

.company-menu-grid a:hover {
  border-color: var(--corp);
  color: var(--corp)
}

.qa-menu-grid a:hover {
  border-color: var(--gold)
}

.company-menu-grid span,
.qa-menu-grid span {
  font-size: 1.2rem
}

.company-facts {
  margin: 0;
  max-width: 900px
}

.company-facts>div {
  display: grid;
  grid-template-columns: minmax(115px, 28%) minmax(0, 1fr);
  border-bottom: 1px solid #eee;
  padding: 12px 8px;
  gap: 12px
}

.company-facts dt {
  font-weight: 650
}

.company-facts dd {
  margin: 0;
  overflow-wrap: anywhere
}

.topic-block {
  margin-top: 32px
}

.topic-block h3 {
  border-left: 4px solid var(--corp);
  padding-left: 10px
}

.archive-content {
  font-size: clamp(.9rem, 1.3vw, 1rem);
  overflow-wrap: anywhere;
  line-height: 1.75
}

.archive-content a {
  color: #005a82;
  text-underline-offset: 3px
}

.archive-content a:hover {
  color: #c40012
}

.archive-content img {
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  vertical-align: middle;
  margin: 4px 8px 7px 0
}

.archive-content iframe {
  display: block;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16/9;
  border: 0;
  margin: 16px 0
}

.archive-content .archive-layout {
  display: block;
  max-width: 100%;
  margin: 0 0 12px
}

.archive-content .archive-row {
  display: block;
  max-width: 100%;
  margin: 0 0 8px
}

.archive-content .archive-cell {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 7px
}

.archive-content .archive-cell>img[src$=".jpg"],
.archive-content .archive-cell>a>img {
  margin: 8px 12px 8px 0
}

.fujisawa_thumbnail {
  max-width: 595px;
  border: 1px solid; 
}

.archive-content .legacy-paragraph {
  margin: 10px 0
}

.archive-content strong {
  font-weight: 750
}

.archive-content .underlined {
  text-decoration: underline
}

.archive-intro {
  font-size: .84rem;
  color: #888;
  letter-spacing: .15em;
  margin-bottom: 14px
}

.qa-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px
}

.qa-return {
  margin-bottom: 14px
}

.qa-return a {
  text-decoration: none;
  color: #00668c
}

.qa-article {
  max-width: 100%
}

.price-content img,
.dialog-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto
}

.price-dialog {
  width: min(92vw, 770px);
  max-width: 770px;
  max-height: min(86dvh, 800px);
  border: 0;
  padding: 0;
  box-shadow: 0 15px 55px rgba(0, 0, 0, .3)
}

.price-dialog::backdrop {
  background: rgba(0, 0, 0, .62)
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 3px solid var(--gold);
  padding: 14px 20px;
  background: #fff
}

.dialog-header h2 {
  font-size: 1.14rem;
  margin: 0
}

.dialog-close {
  padding: 8px 14px;
  border: 0;
  background: #cb1020;
  color: #fff;
  border-radius: 3px;
  font-weight: 650
}

.dialog-body {
  padding: 18px 22px;
  overflow-y: auto;
  max-height: calc(min(86dvh, 800px) - 76px);
  line-height: 1.7
}

.site-footer {
  margin-top: auto;
  background: #e1e1e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(16px, 4vw, 55px);
  color: #555;
  font-size: .88rem
}

.site-footer p {
  margin: 0
}

.site-footer a {
  text-decoration: none
}

.site-footer a:hover {
  text-decoration: underline
}

@media(max-width:1000px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .qa-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:760px) {
  .site-shell {
    width: 100%
  }

  .page-main {
    padding-inline: clamp(14px, 3vw, 28px)
  }

  .company-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .fujisawa_thumbnail {
    max-width: 70%;
  }
}

@media(max-width:520px) {
  .site-header {
    height: 35px
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .company-menu-grid,
  .qa-menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .company-menu-grid a,
  .qa-menu-grid a {
    padding: 15px 10px
  }

  .company-facts>div {
    grid-template-columns: minmax(88px, 30%) minmax(0, 1fr)
  }

  .content-card {
    padding: 16px 12px
  }

  .page-intro {
    gap: 8px
  }

  .section-links a {
    padding: 6px 10px
  }

  .site-footer {
    padding: 18px 14px
  }

  .dialog-body {
    padding: 14px
  }

  .dialog-header {
    padding: 12px
  }
}

@media(max-width:350px) {

  .company-menu-grid,
  .qa-menu-grid {
    grid-template-columns: 1fr
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    transition: none !important
  }
}


/* 製品詳細：画像と説明文を1組にしてサイズと並びを統一 */
.product-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  gap: clamp(16px, 3vw, 36px);
  width: 100%;
  max-width: 880px;
  margin: 14px auto 26px;
}

.product-image-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 180px;
  margin: 0;
  min-width: 0;
  text-align: center;
}

.product-figure-image,
.product-figure-image a {
  display: block;
  width: 100%;
  min-width: 0;
}

.archive-content .product-figure-image img,
.archive-content .product-figure-image a>img {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  margin: 0;
}

.product-figure figcaption {
  margin-top: 8px;
  line-height: 1.45;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* 小型画面では画像とテキストの組を保ちながら2列表示 */
@media(max-width:760px) {
  .archive-content iframe {
    max-width: 760px;
  }
}

@media(max-width:520px) {
  .product-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }

  .product-figure figcaption {
    font-size: .85rem;
  }
}


/* ==================== 4項目の共通ナビ ==================== */
.mobile-current {
  display: none
}

@media(max-width:520px) {
  .site-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .mobile-current {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 8px 6px;
    color: white;
    font-weight: 750;
    text-align: center;
    font-size: clamp(1rem, 4.2vw, 1.25rem);
  }

  .mobile-current--products {
    background: var(--gold)
  }

  .mobile-current--corp {
    background: var(--corp)
  }

  .mobile-current--order {
    background: #da0ad3
  }

  .site-nav a {
    min-height: 42px;
    padding: 10px 2px;
    font-size: clamp(0.8rem, 3.35vw, .93rem)
  }

  .site-nav a.is-active {
    display: none
  }
}