/* ===== 基本設定 ===== */
:root {
  --navy: #1d3557;
  --navy-dark: #14263f;
  --text: #2b2f36;
  --muted: #5f6672;
  --line: #e3e6ea;
  --bg: #ffffff;
  --bg-soft: #f5f7f9;
  --accent: #b85c00;        /* ボタン（白文字でも読める濃さ） */
  --accent-hover: #9a4d00;
  --brand: #f0a020;         /* ロゴの橙。線や番号などの飾りに使う */
  --radius: 8px;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }

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

.center { text-align: center; margin-top: 40px; }
.sp-only { display: none; }

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline-light { border-color: #fff; color: #fff; }

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.brand-tagline { font-size: 11px; color: var(--muted); }
.brand-name { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: .04em; }

/* メニュー一式はロゴより右に寄せる（画面の右余白に最大48pxはみ出させ、端から20px以上は空ける） */
.global-nav { display: flex; align-items: center; gap: 22px; margin-right: max(-48px, calc((var(--container) - 100vw) / 2)); }
.global-nav ul { display: flex; gap: 20px; }
.global-nav ul a {
  font-size: 14px;
  white-space: nowrap;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-cta { padding: 10px 18px; font-size: 14px; white-space: nowrap; }
/* 個人向け通販（SHOP347）への入口。お問い合わせボタンの左に小さく2段で置く */
.nav-shop {
  flex-direction: column;
  gap: 0;
  padding: 5px 14px;
  margin-right: -10px;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.25;
  letter-spacing: .04em;
}
.nav-shop small { font-size: 10px; font-weight: 500; letter-spacing: 0; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform .2s, opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== メインビジュアル ===== */
.hero {
  position: relative;
  color: #fff;
  background:
    /* 文字を読みやすくする左側の紺 */
    linear-gradient(90deg, rgba(20, 38, 63, .9) 0%, rgba(20, 38, 63, .55) 42%, rgba(20, 38, 63, 0) 68%),
    /* 富士山のふもとに置いたセラミックボール */
    url("../images/hero-ceramics.svg") right max(-150px, calc(50vw - 750px)) bottom -18% / auto 92% no-repeat,
    /* ボールの周りの暖かい光と、夕暮れのような色味 */
    radial-gradient(ellipse 45% 70% at 80% 85%, rgba(240, 140, 50, .45) 0%, rgba(240, 140, 50, 0) 70%),
    linear-gradient(180deg, rgba(20, 38, 63, .45) 0%, rgba(90, 50, 40, .5) 60%, rgba(110, 50, 20, .75) 100%),
    /* 元の富士山の写真 */
    url("../images/hero-fuji.jpg") 62% 30% / cover no-repeat;
  background-color: #14263f;
}
.hero-inner { padding-top: 96px; padding-bottom: 104px; }
.hero-en {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--brand);
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: .04em;
}
.hero-lead { margin-top: 20px; font-size: 16px; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }

/* ===== セクション共通 ===== */
.section { padding: 88px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head.left { text-align: left; margin-bottom: 28px; }
.section-en {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-title {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-top: 4px;
}
.section-lead { margin-top: 16px; color: var(--muted); }

/* ===== 選ばれる理由 ===== */
.strengths { background: var(--bg-soft); }
.strength-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strength {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 4px solid var(--brand);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}
.strength-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.strength h3 { font-size: 19px; color: var(--navy); margin: 14px 0 10px; }
.strength p { font-size: 15px; color: var(--muted); }

/* ===== 製品案内 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  display: block;
  height: 100%;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.product-img {
  aspect-ratio: 4 / 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.product-img img { max-height: 100%; width: auto; object-fit: contain; }
.product-body { padding: 18px 20px 22px; }
.product-body h3 { font-size: 17px; color: var(--navy); }
.product-body p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.7; }

/* ===== 素材について ===== */
.materials { background: var(--bg-soft); }
.material-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.material-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  color: var(--navy);
  transition: border-color .2s;
}
.material-arrow { color: var(--accent); }

/* ===== OEM ===== */
/* 写真なし・テキストのみ。中央にまとめる */
.oem-inner { max-width: 760px; text-align: center; }
.oem-body p:not(.section-en) { margin: 20px 0 28px; color: var(--muted); }

/* ===== 会社概要・ご注文 ===== */
.company { background: var(--bg-soft); }
.company-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.company-table { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.company-table div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.company-table div:last-child { border-bottom: 0; }
.company-table dt { font-weight: 700; color: var(--navy); }

.order-steps { counter-reset: step; }
.order-steps li {
  position: relative;
  padding: 16px 20px 16px 64px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
}
.order-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.order-steps strong { display: block; color: var(--navy); font-size: 16px; }

/* ===== お問い合わせ ===== */
.contact { background: var(--navy); color: #fff; padding: 64px 0; }
.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.contact-title { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.5; }
.contact-inner p { margin-top: 8px; opacity: .85; }
.contact-actions { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.contact-tel { text-decoration: none; display: flex; flex-direction: column; line-height: 1.3; }
.contact-label { font-size: 12px; opacity: .8; }
.contact-number { font-size: 28px; font-weight: 700; letter-spacing: .04em; }
.contact-note { font-size: 13px; opacity: .8; }

/* ===== フッター ===== */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, .85); font-size: 14px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 40px;
}
.footer-name { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.footer-nav a { text-decoration: none; }
.copyright {
  text-align: center;
  font-size: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .6);
}

/* ===== タブレット ===== */
/* ===== メニューが1行に収まらない幅ではメニューを折りたたむ ===== */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .global-nav {
    margin-right: 0;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 24px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    display: none;
  }
  .global-nav.is-open { display: flex; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav ul a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }
  .nav-shop { margin: 20px 0 0; padding: 10px 14px; font-size: 15px; }
  .nav-shop small { font-size: 12px; }
  .nav-cta { margin-top: 10px; padding: 14px; font-size: 16px; }
}

@media (max-width: 1024px) {
  .global-nav ul { gap: 16px; }
  .material-list { grid-template-columns: repeat(3, 1fr); }
}

/* ===== スマホ・タブレット縦（メニューを折りたたむ） ===== */
@media (max-width: 900px) {

  .strength-list { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .company-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== スマホ ===== */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .sp-only { display: inline; }
  .pc-only { display: none; }
  .header-inner { height: 64px; }
  .global-nav { top: 64px; }
  html { scroll-padding-top: 72px; }
  .brand-name { font-size: 17px; }
  .brand-tagline { font-size: 10px; }
  .brand img { width: 34px; height: 34px; }

  .hero {
    background:
      linear-gradient(180deg, rgba(20, 38, 63, .15) 0%, rgba(20, 38, 63, .75) 45%, rgba(20, 38, 63, .9) 100%),
      url("../images/hero-ceramics.svg") right -80px top 10px / 300px auto no-repeat,
      radial-gradient(ellipse 80% 40% at 85% 15%, rgba(240, 140, 50, .4) 0%, rgba(240, 140, 50, 0) 70%),
      linear-gradient(180deg, rgba(90, 50, 40, .35) 0%, rgba(110, 50, 20, .6) 100%),
      url("../images/hero-fuji.jpg") 55% 0 / auto 260px no-repeat,
      #14263f;
  }
  .hero-inner { padding-top: 64px; padding-bottom: 64px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-img { padding: 8px; }
  .product-body { padding: 12px 12px 16px; }
  .product-body h3 { font-size: 15px; }
  .product-body p { font-size: 12px; }
  .material-list { grid-template-columns: 1fr; gap: 10px; }
  .company-table div { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; }
  .contact-actions { flex-direction: column; align-items: stretch; width: 100%; gap: 20px; }
  .contact-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
}

/* ===== マウス操作時のみのホバー効果（スマホでは色が残らないように） ===== */
@media (hover: hover) {
  .btn-primary:hover { background: var(--accent-hover); }
  .btn-outline:hover { background: var(--navy); color: #fff; }
  .btn-outline-light:hover { background: #fff; color: var(--navy); }
  .global-nav ul a:hover { border-color: var(--brand); color: var(--navy); }
  .product-card:hover { box-shadow: 0 8px 24px rgba(29, 53, 87, .12); transform: translateY(-2px); }
  .material-list a:hover { border-color: var(--brand); }
  .footer-nav a:hover { text-decoration: underline; }
}

/* ===== 下層ページ共通 ===== */
.page-head { background: var(--navy); color: #fff; padding: 48px 0 52px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; opacity: .85; margin-bottom: 12px; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; }
.breadcrumb a { text-decoration: none; }
.page-title { font-size: clamp(26px, 4vw, 36px); line-height: 1.4; letter-spacing: .04em; margin: 0; }
.page-lead { margin-top: 10px; opacity: .9; }
.global-nav ul a[aria-current="page"] { border-color: var(--brand); color: var(--navy); }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.prose p + p { margin-top: 1em; }
.signature { margin-top: 24px; text-align: right; font-weight: 700; color: var(--navy); }
.note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ===== 製品一覧 ===== */
.category-nav { background: #fff; border-bottom: 1px solid var(--line); }
.category-nav ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 0; }
.category-nav a {
  display: block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  color: var(--navy);
}
.category { padding: 56px 0 8px; scroll-margin-top: 72px; }
.category:last-of-type { padding-bottom: 72px; }
.category-title {
  font-size: clamp(20px, 2.8vw, 26px);
  color: var(--navy);
  line-height: 1.5;
  margin: 0;
  padding-left: 14px;
  border-left: 4px solid var(--brand);
}
.category-lead { margin-top: 12px; color: var(--muted); font-size: 15px; }
.item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.item {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-margin-top: 88px;
}
.item-img { aspect-ratio: 4 / 3; padding: 12px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.item-img img { max-height: 100%; width: auto; object-fit: contain; }
.item-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.item-name { font-size: 17px; line-height: 1.5; color: var(--navy); margin: 0; }
.item-desc { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.item-spec { margin-top: 12px; font-size: 13px; line-height: 1.6; }
.item-spec div { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.item-spec dt { font-weight: 700; color: var(--navy); }
.item-docs { margin-top: 10px; font-size: 13px; }
.item-docs li { margin-top: 4px; }
.item-docs a { color: var(--accent); }
.item-cta { margin-top: auto; padding-top: 16px; }
.item-cta .btn { width: 100%; padding: 10px 12px; font-size: 14px; }

/* ===== 会社案内 ===== */
.table-wide { max-width: 820px; margin: 0 auto; }
.point-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.point { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.point h3 { font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.point p { font-size: 14px; color: var(--muted); }

/* ===== 素材 ===== */
.material-block + .material-block { margin-top: 56px; }
.material-block { scroll-margin-top: 88px; }
.material-block h2 { font-size: clamp(20px, 2.8vw, 26px); color: var(--navy); line-height: 1.5; margin-bottom: 14px; }
.related { margin-top: 16px; font-size: 14px; color: var(--muted); }
.related a { color: var(--accent); }
.doc-list { border-top: 1px solid var(--line); }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 4px; text-decoration: none; }
.doc-list span:last-child { color: var(--accent); font-size: 13px; flex-shrink: 0; font-weight: 700; }

/* ===== お問い合わせフォーム ===== */
.form-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.form-row:first-child { border-top: 1px solid var(--line); }
.form-label { font-weight: 700; color: var(--navy); }
.required { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 11px; vertical-align: 1px; }
.form-input {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px;
  border: 1px solid #b9c0c9;
  border-radius: 6px;
  background: #fff;
}
.form-input + .form-input { margin-top: 10px; }
.form-input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.form-radio { display: block; padding: 3px 0; }
.form-submit { text-align: center; margin-top: 32px; }
.form-submit .btn { border: 0; cursor: pointer; min-width: 240px; font-family: inherit; }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-value { overflow-wrap: anywhere; }
.form-value .msg { color: #b3261e; font-weight: 700; }
.form-submit .form-back { border: 2px solid var(--navy); background: #fff; margin: 0 8px 12px; }
.form-tel { text-align: center; margin-bottom: 32px; color: var(--muted); }
.form-tel .form-tel-number { font-size: 24px; font-weight: 700; color: var(--navy); text-decoration: none; display: block; }
.privacy h2 { font-size: 22px; color: var(--navy); margin-bottom: 16px; }
.privacy h3 { font-size: 16px; color: var(--navy); margin: 20px 0 4px; }
.privacy p, .privacy li { font-size: 14px; color: var(--muted); }
.privacy ul { list-style: disc; padding-left: 20px; margin-top: 4px; }

@media (max-width: 900px) {
  .item-grid { grid-template-columns: repeat(2, 1fr); }
  .point-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .page-head { padding: 32px 0 36px; }
  .section-sm { padding: 48px 0; }
  .category-nav ul { flex-wrap: nowrap; overflow-x: auto; }
  .category-nav a { white-space: nowrap; }
  .item-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 8px; }
  .form-submit .btn { width: 100%; }
}
