@charset "utf-8";

/* =========================================================
   株式会社フジ商事 コーポレートサイト
   配色・構成は現行サイト（Wix版）を踏襲
   ========================================================= */

:root {
  --ink:        #2b2b2b;   /* 基調の濃いグレー */
  --ink-soft:   #2f2e2e;   /* カード背景 */
  --ink-line:   #575757;   /* キャプション帯・罫線 */
  --navy:       #071f4e;   /* 紺 */
  --mint:       #50e3c2;   /* アクセント */
  --blue:       #1d2cf3;   /* ニュースのラベル */
  --light:      #ebebeb;   /* 明るい背景 */
  --white:      #ffffff;
  --text:       #2b2b2b;
  --text-dim:   #cfcfcf;

  --sans: "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", メイリオ, Meiryo,
          "Yu Gothic", "游ゴシック", sans-serif;
  --mincho: "Hiragino Mincho ProN", "ヒラギノ明朝 ProN", "Yu Mincho", "游明朝",
            "MS PMincho", "ＭＳ Ｐ明朝", serif;

  --wrap: 1120px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 48px); }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }

/* ---------------- ヘッダー ---------------- */

.header {
  background: var(--ink);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header__inner {
  max-width: 1300px;
  margin-inline: auto;
  min-height: var(--header-h);
  padding: 8px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.header__contact { display: flex; align-items: center; gap: 12px; }
.header__contact .label { font-size: 11px; letter-spacing: .08em; color: var(--text-dim); }
.header__tel {
  font-size: 15px;
  letter-spacing: .06em;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.header__mail {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #2f6fd0;
  display: grid; place-items: center;
  flex: none;
}
.header__mail svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 1.6; }

.header__brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  white-space: nowrap;
}

.gnav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.gnav a {
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;      /* メニューが途中で折り返さないように */
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.gnav a:hover,
.gnav a[aria-current="page"] { border-bottom-color: var(--mint); }

.navtoggle {
  display: none;
  background: none; border: 0; color: #fff;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 6px 4px;
}

/* ページ内リンクの帯 */
.subnav { background: var(--ink-soft); border-top: 1px solid rgba(255,255,255,.08); }
.subnav ul {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  list-style: none;
  display: flex; gap: 34px;
}
.subnav a {
  display: block;
  padding: 11px 0;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--text-dim);
  text-decoration: none;
}
.subnav a:hover { color: var(--mint); }

/* ---------------- ヒーロー ---------------- */

.hero { position: relative; background: #000; overflow: hidden; }
.hero__slides {
  position: relative;
  width: 100%;
  height: clamp(320px, 43.75vw, 700px); /* 16:7 を保ちつつ、スマホでは高さの下限を確保 */
}
.hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__copy {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  padding: 20px;
  pointer-events: none;
  /* 写真の明暗にかかわらず白文字が読めるようにうっすら暗くする */
  background: radial-gradient(ellipse at center, rgba(0,0,0,.34) 0%, rgba(0,0,0,.12) 60%, rgba(0,0,0,0) 85%);
}
.hero__copy p {
  margin: 0;
  color: #fff;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(30px, 5.6vw, 66px);
  line-height: 1.25;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
}
.hero__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer;
  color: #fff; opacity: .85;
  font-size: 40px; line-height: 1;
  padding: 16px;
}
.hero__btn:hover { opacity: 1; }
.hero__btn--prev { left: 8px; }
.hero__btn--next { right: 8px; }
.hero__rule { height: 46px; background: var(--ink); }

/* ---------------- 共通の見出し ---------------- */

.section { padding: 72px 0; }
.section--light { background: var(--light); }
.section--ink   { background: var(--ink);  color: var(--white); }
.section--navy  { background: var(--navy); color: var(--white); }

.headline { text-align: center; margin: 0 0 46px; }
.headline hr {
  border: 0; border-top: 1px solid #c9c9c9;
  max-width: 760px; margin: 0 auto 26px;
}
.headline hr + hr { margin: 26px auto 0; }
.headline__row {
  display: flex; align-items: baseline; justify-content: center; gap: 18px;
  flex-wrap: wrap;
}
.headline__en {
  font-family: var(--mincho);
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: .1em;
  margin: 0;
  font-weight: 400;
}
.headline__ja { font-size: 14px; letter-spacing: .18em; margin: 0; }

.page-title {
  background: var(--ink);
  color: var(--white);
  padding: 54px 0 46px;
}
.page-title h1 {
  font-family: var(--mincho);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: .14em;
  margin: 0 0 14px;
}
.page-title p { margin: 0; font-size: 13px; color: var(--text-dim); }

.mark {
  font-family: var(--mincho);
  font-size: 19px;
  letter-spacing: .1em;
  font-weight: 400;
  margin: 0 0 26px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--mint);
  display: inline-block;
}

/* ---------------- ホーム：商品・サービス ---------------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--ink-soft);
  color: var(--white);
  display: flex; flex-direction: column;
}
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__title {
  position: absolute; left: 0; right: 0; bottom: 0;
  margin: 0; padding: 26px 16px 18px;
  background: linear-gradient(to top,
              rgba(43,43,43,.95) 0%, rgba(43,43,43,.82) 45%, rgba(43,43,43,0) 100%);
  /* 見出しは他ページの HISTORY・会社概要と同じ明朝体で揃える */
  font-family: var(--mincho);
  font-size: 19px; font-weight: 400; letter-spacing: .12em;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
.card__title::after {
  content: "";
  display: block;
  width: 32px; height: 2px;
  background: var(--mint);
  margin: 12px auto 0;
}
.card__title small {
  display: block;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--text-dim);
  margin-top: 5px;
}
.card__body { padding: 18px 18px 26px; font-size: 13px; line-height: 1.95; }
.card__body p { margin: 0 0 12px; }
.card__body p:last-child { margin-bottom: 0; }

/* ---------------- ホーム：理念 ---------------- */

.creed__title {
  font-family: var(--mincho);
  font-weight: 400;
  font-size: clamp(20px, 3.2vw, 32px);
  letter-spacing: .14em;
  text-align: center;
  margin: 0 0 40px;
}
.creed {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.22);
}
.creed > div {
  padding: 46px 30px 56px;
  border-right: 1px solid rgba(255,255,255,.22);
}
.creed > div:last-child { border-right: 0; }
.creed h3 {
  color: var(--mint);
  font-size: 15px; font-weight: 400; letter-spacing: .12em;
  text-align: center;
  margin: 0 0 30px;
}
.creed p { margin: 0 0 16px; font-size: 13px; }
.creed p:last-child { margin-bottom: 0; }

/* ---------------- ホーム：帯 ---------------- */

.band { position: relative; }
.band img { width: 100%; height: clamp(300px, 42vw, 480px); object-fit: cover; }
.band__copy {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(0,0,0,.34);
}
.band__copy p {
  margin: 0;
  font-family: var(--mincho);
  color: #fff;
  text-align: center;
  font-size: clamp(16px, 2.5vw, 27px);
  line-height: 1.8;
  letter-spacing: .06em;
  text-shadow: 0 2px 14px rgba(0,0,0,.55);
}

/* ---------------- ホーム：インフォメーション ---------------- */

.info { display: grid; grid-template-columns: 240px 1fr; background: var(--white); }
.info__label {
  background: var(--mint);
  color: #fff;
  display: flex; align-items: center;
  padding: 44px 26px;
  font-size: 22px; letter-spacing: .06em;
  position: relative;
}
.info__label::after {
  content: "";
  position: absolute; top: 24px; bottom: 24px; right: 26px;
  border-right: 2px dotted rgba(255,255,255,.85);
}
.info__list { padding: 44px 30px; }
.news { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.news__tag {
  background: var(--blue); color: #fff;
  font-size: 12px; letter-spacing: .1em;
  padding: 4px 22px; border-radius: 999px;
}
.news__date { font-weight: 700; font-size: 14px; }
.news__text { font-size: 13px; }

/* ---------------- 会社情報 ---------------- */

.message { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
/* 写真は切らずに、そのままの縦横比で置く（手まで写る） */
.message__photo img { width: 100%; height: auto; display: block; }
.message__body { display: flex; flex-direction: column; }
.message__head {
  background: var(--white);
  color: var(--text);
  padding: 56px 44px;
  /* 白い面は見出しぶんの高さに固定。余りは下のネイビーが受け持つ */
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}
.message__head h2 {
  /* HISTORY・会社概要の見出し（.mark）と同じ書体・大きさに揃える */
  font-family: var(--mincho);
  font-weight: 400; font-size: 19px; letter-spacing: .1em;
  margin: 0; padding-bottom: 12px;
  border-bottom: 2px solid var(--mint);
  display: inline-block;
}
.message__text {
  background: var(--navy); color: #fff;
  padding: 98px 44px 96px; /* 本文の書き出しを下げ、署名は少し上に */
  flex: 1 1 auto;          /* 写真の高さに合わせて伸びるのはこちら側 */
  display: flex;
  flex-direction: column;
}
.message__text p { font-size: 13.5px; margin: 0 0 14px; }
/* 余った高さは本文と署名のあいだに逃がす（手紙のような収まりになる） */
.message__text p.message__sign { margin-top: auto; margin-bottom: 0; padding-top: 28px; font-size: 13.5px; }
.message__sign img {
  width: 200px; height: auto;
  max-width: 62%;
  margin: 8px 0 0 12px;
}

.history dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; row-gap: 10px; }
.history dt { font-size: 13.5px; }
.history dd { margin: 0; font-size: 13.5px; }

.profile dl { margin: 0; display: grid; grid-template-columns: 170px 1fr; row-gap: 18px; }
.profile dt { font-size: 13.5px; }
.profile dd { margin: 0; font-size: 13.5px; }
.profile ul { margin: 0; padding: 0; list-style: none; }

/* ---------------- 製品紹介 ---------------- */

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 22px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #111; }
.gallery figcaption {
  background: var(--ink-line);
  color: #fff;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.6;
  letter-spacing: .06em;
  padding: 6px 8px;
}
.gallery figcaption .cap-no {
  display: block;
  font-size: 10px;
  color: var(--mint);
  letter-spacing: .12em;
}
.lead { font-size: 13.5px; margin: 0 0 40px; max-width: 760px; }

/* 写真を切らずに、元の縦横比のまま並べるギャラリー */
.gallery--natural img { aspect-ratio: auto; height: auto; object-fit: initial; }

/* お問い合わせフォーム */
.form { max-width: 620px; }
.form__row { margin-bottom: 20px; }
.form label { display: block; font-size: 13px; margin-bottom: 7px; letter-spacing: .06em; }
.form .req { color: #0d6b58; font-size: 11px; margin-left: 6px; }
.form input, .form textarea {
  width: 100%;
  font: inherit; font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1px solid #b9b9b9;
  border-radius: 2px;
  padding: 11px 12px;
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--mint); outline-offset: 1px; }
.form__note { font-size: 12px; color: #5e5e5e; margin: 0 0 26px; }
.form__submit {
  font: inherit; font-size: 14px; letter-spacing: .1em;
  background: var(--mint); color: #10312a;
  border: 0; border-radius: 2px;
  padding: 13px 44px; cursor: pointer;
}
.form__submit:hover { filter: brightness(1.08); }


/* ---------------- 設備紹介 ---------------- */

.checker { display: grid; grid-template-columns: 1fr 1fr; }
.checker__img img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.checker__text {
  background: var(--ink-soft);
  color: #fff;
  display: grid; place-content: center; text-align: center;
  padding: 40px 28px;
}
.checker__text h3 {
  font-family: var(--mincho);
  font-weight: 400; font-size: 20px; letter-spacing: .3em;
  margin: 0 0 12px;
}
.checker__text p { margin: 0; font-size: 12.5px; color: var(--text-dim); }

.spectable { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; color: #2b2b2b; }
.spectable caption { caption-side: top; text-align: left; padding-bottom: 10px; color: #fff; font-size: 12px; }
.spectable th, .spectable td { border: 1px solid #b9c1cf; padding: 6px 9px; text-align: left; white-space: nowrap; }
.spectable thead th { background: var(--navy); color: #fff; font-weight: 400; }
.spectable tbody th { background: #eef1f6; font-weight: 400; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------- お問い合わせ ---------------- */

/* 看板の文字が切れないよう、写真全体をそのまま表示する */
.contact-photo img { width: 100%; height: auto; }

.contact-card { background: var(--ink-soft); color: #fff; padding: 46px 44px 54px; }
.contact-card h2 { font-size: 14px; font-weight: 400; letter-spacing: .14em; margin: 0 0 26px; color: var(--text-dim); }
.contact-card .company { color: var(--mint); font-size: 19px; margin: 0 0 18px; font-weight: 700; }
.contact-card hr { border: 0; border-top: 1px solid var(--ink-line); max-width: 60px; margin: 0 0 26px; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; row-gap: 8px; font-size: 13px; }
.contact-card dt { color: var(--text-dim); }
.contact-card dd { margin: 0; }
.contact-card a { color: var(--mint); }

.map iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------------- フッター ---------------- */

.footer { background: var(--ink); color: var(--white); padding: 56px 0 26px; }
.footer__brand { display: block; color: var(--mint); font-size: 13px; margin-bottom: 26px; }
.footer hr { border: 0; border-top: 1px solid var(--ink-line); margin: 0 0 30px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; font-size: 12.5px; }
.footer__cols h3 { font-size: 12.5px; font-weight: 400; margin: 0 0 16px; }
.footer__cols p { margin: 0; line-height: 1.85; }
.footer__cols a { color: var(--mint); }
.footer__copy { text-align: center; font-size: 11px; color: var(--text-dim); margin: 46px 0 0; }

/* ---------------- レスポンシブ ---------------- */

/* 画面が狭いときはヘッダーを詰める */
@media (max-width: 1040px) {
  .header__contact .label { display: none; }
  .header__brand { font-size: 17px; letter-spacing: .08em; }
  .gnav ul { gap: 15px; }
  .gnav a { font-size: 12px; letter-spacing: .04em; }
}

@media (max-width: 900px) {
  .cards, .gallery, .creed, .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .creed > div:nth-child(2) { border-right: 0; }
  .message, .checker { grid-template-columns: 1fr; }
  /* 1列に積むときは必ず「写真 → その説明」の順にする
     （左右交互の配置のままだと、説明が2つ続いたり写真から離れたりするため） */
  .checker__img  { order: 1; }
  .checker__text { order: 2; padding: 24px 22px 28px; }
  .checker__text h3 { font-size: 17px; letter-spacing: .26em; margin-bottom: 8px; }
  .checker__img img { min-height: 0; aspect-ratio: 4 / 3; }
  .info { grid-template-columns: 1fr; }
  .info__label { padding: 22px 26px; }
  .info__label::after { display: none; }
}

@media (max-width: 760px) {
  .header__inner { grid-template-columns: 1fr auto; row-gap: 8px; }
  .header__brand { order: -1; grid-column: 1; justify-self: start; }
  .navtoggle { display: block; grid-column: 2; justify-self: end; }
  .header__contact { grid-column: 1 / -1; }
  .gnav {
    grid-column: 1 / -1;
    display: none;
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 10px;
  }
  .gnav.is-open { display: block; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav a { display: block; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .subnav ul { gap: 20px; overflow-x: auto; }
  .section { padding: 52px 0; }
  .cards, .gallery, .creed, .footer__cols { grid-template-columns: 1fr; }
  .creed > div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .creed > div:last-child { border-bottom: 0; }
  .history dl, .profile dl, .contact-card dl { grid-template-columns: 1fr; row-gap: 4px; }
  .history dd, .profile dd { margin-bottom: 10px; }
  .message__head { padding: 34px 22px; min-height: 0; }
  .message__text { padding: 48px 22px 44px; }
  .contact-card { padding: 30px 22px 40px; }
}
