@charset "UTF-8";

/* ============================================================
   自社工場（Factory）
   - デザイン基準：PC 1280px（コンテンツ幅 約890px 中央）
   - ヘッダー・フッターはフル幅、コンテンツは中央寄せ
   - サムネイルにマウスオーバーでメイン大画像を切り替え
   - SP はレイアウトが崩れない範囲で段組み変更
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, figcaption, dl, dd, dt { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer;border-radius:0; }

/* ---------- Tokens ---------- */
:root {
  --c-navy: #0c1d3d;
  --c-black: #000;
  --c-link: #3d64ae;
  --c-line: #c9c9c9;
  --c-subbar: #d9d9d9;
  --c-footer: #14133b;

  --ff-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "游ゴシック", "Meiryo", sans-serif;
  --ff-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --ff-en-head: "Avenir Next", "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;

  --page-w: 1280px;
  --content-w: 890px;
}

/* ---------- Base ---------- */
body {
  font-family: var(--ff-jp);
  color: var(--c-black);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.page { background: #fff; }

/* ---------- Global header / footer ---------- */
.site-header { width: 100%; background: #fff; }
.site-footer { width: 100%; background: var(--c-footer); }
.site-header img,
.site-footer img {
  display: block;
  width: 100%;
  max-width: var(--page-w);
  height: auto;
  margin: 0 auto;
}

/* ---------- Breadcrumb ---------- */
.subbar { width: 100%; background: var(--c-subbar); }
.subbar__inner {
  max-width: var(--page-w);
  margin: 0 auto;
  min-height: 25px;
  display: flex;
  align-items: center;
  padding: 0 47px;
}
.breadcrumb { font-family: var(--ff-jp); font-size: 10px; line-height: 1.4; color: #000; }
.breadcrumb__link { font-weight: 300; }

/* ---------- Content ---------- */
.content { padding: 56px 0 100px; }
.content__inner {
  width: var(--content-w);
  max-width: calc(100% - 48px);
  margin: 0 auto;
}

/* ---------- Section heading ---------- */
.sec__head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
}
.sec__title {
  font-family: var(--ff-en-head);
  font-weight: 700;
  font-size: 35px;
  line-height: 1.4;
  color: var(--c-navy);
}
.sec__sub {
  margin-top: 10px;
  font-family: var(--ff-jp);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  color: var(--c-black);
}

/* ---------- Lead ---------- */
.fac-lead {
  margin-top: 28px;
  font-family: var(--ff-jp);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.4;
  color: var(--c-black);
}

/* ---------- ISO ---------- */
.fac-iso {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 40px;
}
.fac-iso__badge { flex: 0 0 140px; }
.fac-iso__badge img { width: 140px; height: auto; }
.fac-iso__text { flex: 1 1 auto; }
.fac-iso__title {
  font-family: var(--ff-jp);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--c-black);
}
.fac-iso__desc {
  margin-top: 8px;
  font-family: var(--ff-jp);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: var(--c-black);
}

/* ---------- Gallery (main + info) ---------- */
.fac-gallery {
  display: flex;
  align-items: flex-start;
  gap: 41px;
  margin-top: 50px;
}
.fac-main {
  flex: 0 0 511px;
  max-width: 511px;
}
.fac-main img {
  width: 100%;
  aspect-ratio: 511 / 385;
  object-fit: cover;
  background: #eee;
}
.fac-info { flex: 1 1 auto; padding-top: 8px; }
.fac-info__name {
  font-family: var(--ff-jp);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.4;
  color: var(--c-black);
}
.fac-info__addr {
  margin-top: 14px;
  font-family: var(--ff-jp);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: var(--c-black);
}
.fac-info__map {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-family: var(--ff-jp);
  font-size: 14px;
  color: var(--c-link);
}
.fac-info__map:hover { text-decoration: underline; }
.fac-info__ext { flex: 0 0 auto; color: var(--c-link); margin-left: 2px; }

/* ---------- Thumbnails ---------- */
.fac-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 11px;
  margin-top: 40px;
}
.fac-thumb {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.fac-thumb img {
  width: 100%;
  aspect-ratio: 512 / 343;
  object-fit: cover;
  transition: transform .3s ease, opacity .2s ease;
}
.fac-thumb:hover img,
.fac-thumb:focus-visible img {
  transform: scale(1.05);
  opacity: .9;
}
.fac-thumb:focus-visible {
  outline: 2px solid var(--c-navy);
  outline-offset: 2px;
}
/* クリックで選択中のサムネイル */
.fac-thumb.is-active {
  outline: 3px solid var(--c-navy);
  outline-offset: 0;
}
.fac-thumb.is-active img { opacity: 1; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .content { padding: 48px 0 80px; }
  .sec__title { font-size: clamp(26px, 3.4vw, 35px); }
  .fac-lead { font-size: clamp(22px, 3vw, 30px); }
  .fac-main { flex-basis: 50%; }
}

@media (max-width: 768px) {
  .content__inner { max-width: calc(100% - 40px); }
  .sec__sub { font-size: clamp(15px, 2.4vw, 20px); }
  .fac-lead { font-size: clamp(20px, 4.4vw, 30px); }

  /* ISO：縦積み */
  .fac-iso { flex-direction: column; align-items: flex-start; gap: 16px; }
  .fac-iso__title { font-size: clamp(18px, 3vw, 22px); }
  .fac-iso__desc { font-size: 15px; }

  /* ギャラリー：縦積み */
  .fac-gallery { flex-direction: column; gap: 20px; }
  .fac-main { flex-basis: auto; max-width: 100%; width: 100%; align-self: stretch; }
  .fac-info { padding-top: 0; }
  .fac-info__addr { font-size: 15px; }

  /* サムネイル：3列 */
  .fac-thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (max-width: 480px) {
  .subbar__inner { padding: 0 20px; min-height: 20px; }
  .content { padding: 32px 0 56px; }
  .content__inner { max-width: calc(100% - 32px); }
  /* サムネイル：2列 */
  .fac-thumbs { grid-template-columns: repeat(2, 1fr); }
}
