@charset "UTF-8";
/* ==========================================================================
   株式会社まるわ
   ========================================================================== */

:root {
  --red: #d90000;          /* ボタン・表の見出し */
  --accent: #dd5434;       /* 見出しのアクセント */
  --footer: #d25334;
  --blue: #1e489d;         /* カテゴリーラベル */
  --text: #222;
  --muted: #666;
  --line: #ddd;
  --header-h: 72px;
  --mincho: "Yu Mincho", YuMincho, "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", "MS PMincho", serif;
  --gothic: "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans JP", sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--gothic);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--accent); text-decoration: none; transition: color .2s, background-color .2s, opacity .2s; }
a:hover { color: var(--red); }
h1, h2, h3, h4 { margin: 0; line-height: 1.5; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; }
button, input, textarea, select { font: inherit; color: inherit; }
address { font-style: normal; }
::selection { color: #fff; background: #212529; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section { padding-top: 60px; padding-bottom: 100px; }
.section--gray { background: #f7f7f7; }
.notice { padding: 40px 0; text-align: center; color: var(--muted); }
/* 日本語の文章を文節の区切りで折り返す(対応ブラウザのみ) */
.home-about, .cols__main, .contact-tel, .contact-lead, .contact-notice, .contact-complete { word-break: auto-phrase; }

/* PC だけで改行したい箇所は <br class="br-pc"> */
@media (max-width: 991px) {
  .br-pc { display: none; }
}
@media (max-width: 767px) {
  .section { padding-top: 40px; padding-bottom: 60px; }
}

/* ページの切り替え(サイト内でページを移るとき、前のページが少し上へ動きながら消え、
   次のページが少し下からふわっと浮き上がるように現れる。ブラウザの View Transitions 機能を使う。
   対応していないブラウザではこれまでどおり切り替わる) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; } /* ロゴ・メニューは動かさず、本文だけを切り替える */
/* 次のページは、浮き上がる動き(はじめに大きく動いてゆっくり止まる)と、
   フェード(はじめはほとんど見えず、ゆっくり現れる)を別々のカーブで動かす */
::view-transition-old(root) { animation: page-out .4s ease-in both; mix-blend-mode: normal; }
::view-transition-new(root) {
  animation: page-in-move 1.3s cubic-bezier(.33, 1, .68, 1) .25s both,
             page-in-fade 1.5s cubic-bezier(.65, 0, .35, 1) .25s both;
  mix-blend-mode: normal;
}
@keyframes page-out { to { opacity: 0; transform: translateY(-16px); } }
@keyframes page-in-move { from { transform: translateY(48px); } }
@keyframes page-in-fade { from { opacity: 0; } }

/* 商品一覧どうしの移動(カテゴリーの切り替えなど)では、ページ上部の画像・パンくず・検索窓・カテゴリーの一覧も動かさない
   (前のページの分は隠し、次のページの分をすぐに表示する。選択中のカテゴリーの色やパンくずもすぐに切り替わる) */
.page-product-list .page-title { view-transition-name: page-title; }
.page-product-list .breadcrumb { view-transition-name: breadcrumb; }
.page-product-list .product-search { view-transition-name: product-search; }
.page-product-list .product-side__cats { view-transition-name: product-cats; }
::view-transition-group(page-title), ::view-transition-new(page-title),
::view-transition-group(breadcrumb), ::view-transition-new(breadcrumb),
::view-transition-group(product-search), ::view-transition-new(product-search),
::view-transition-group(product-cats), ::view-transition-new(product-cats) { animation: none; }
::view-transition-old(page-title), ::view-transition-old(breadcrumb),
::view-transition-old(product-search), ::view-transition-old(product-cats) { animation: none; opacity: 0; }
/* 商品一覧とほかのページの間の移動では、これらも本文と同じように切り替える */
::view-transition-old(page-title):only-child, ::view-transition-old(breadcrumb):only-child,
::view-transition-old(product-search):only-child, ::view-transition-old(product-cats):only-child {
  opacity: 1;
  animation: page-out .4s ease-in both;
}
::view-transition-new(page-title):only-child, ::view-transition-new(breadcrumb):only-child,
::view-transition-new(product-search):only-child, ::view-transition-new(product-cats):only-child {
  animation: page-in-move 1.3s cubic-bezier(.33, 1, .68, 1) .25s both,
             page-in-fade 1.5s cubic-bezier(.65, 0, .35, 1) .25s both;
}

/* スクロールで表示(JS 有効時のみ) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  min-width: 220px;
  padding: 12px 30px;
  border: 0;
  border-radius: 15px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { color: #fff; opacity: .8; }
.btn--block { display: block; width: 100%; }
.btn--arrow { position: relative; padding-left: 50px; padding-right: 50px; }
.btn--arrow::before {
  content: ""; position: absolute; left: 22px; top: 50%;
  width: 9px; height: 9px; margin-top: -5px;
  border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg);
}
.btn small { font-size: 85%; font-weight: 500; }
.btn--back { background: #666; }
.btn-line {
  display: inline-block; min-width: 250px; padding: 14px; border: 1px solid #fff; color: #fff;
  border-radius: 5px;
}
.btn-line:hover { background: #fff; color: #333; }

/* ==========================================================================
   header
   ========================================================================== */
.site-header {
  position: fixed; z-index: 100; top: 0; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transition: background-color .3s, top .3s, box-shadow .3s;
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding: 0 0 0 15px; }
.site-logo { display: block; }
.site-logo img { width: 52px; height: 52px; }

.nav-toggle {
  position: relative; width: var(--header-h); height: var(--header-h);
  border: 0; background: transparent; cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute; left: 50%; width: 28px; height: 2px; margin-left: -14px;
  background: #333; transition: transform .3s, background-color .3s;
}
.nav-toggle__bar { top: 50%; }
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle__bar::before { top: -9px; }
.nav-toggle__bar::after { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(9px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-9px) rotate(-45deg); }

.global-nav {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .35s ease, visibility .35s;
}
.global-nav.is-open { max-height: 400px; visibility: visible; }
.global-nav a {
  display: block; padding: 15px; text-align: center;
  background: var(--footer); color: #fff; border-top: 1px solid rgba(255, 255, 255, .5);
  font-family: var(--mincho); font-weight: 600;
}
.global-nav a:hover, .global-nav a[aria-current="page"] { background: #b8432a; color: #fff; }

/* PC: ヒーロー画像上では縦書きの白文字、スクロール後は白背景の横書き */
@media (min-width: 992px) {
  .site-header { top: 50px; left: 20px; right: 20px; background: transparent; border: 0; }
  .site-header__inner { height: auto; align-items: flex-start; padding: 0; }
  .site-logo { padding: 15px; background: #fff; }
  .site-logo img { width: 75px; height: 75px; }
  .nav-toggle { display: none; }
  .global-nav { position: static; max-height: none; overflow: visible; visibility: visible; }
  .global-nav ul { display: flex; }
  .global-nav a {
    padding: 0 22px; background: none; border: 0; color: #fff;
    font-size: 20px; line-height: 1.15; letter-spacing: .1em;
    writing-mode: vertical-rl; white-space: nowrap;
    text-shadow: 0 0 8px rgba(0, 0, 0, .35);
  }
  .global-nav a:hover, .global-nav a[aria-current="page"] { background: none; color: #fff; opacity: .7; }

  .site-header.is-scrolled {
    top: 0; left: 0; right: 0; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  }
  .site-header.is-scrolled .site-header__inner { align-items: center; padding: 0 20px; }
  .site-header.is-scrolled .site-logo { padding: 8px 0; }
  .site-header.is-scrolled .site-logo img { width: 54px; height: 54px; }
  .site-header.is-scrolled .global-nav a {
    writing-mode: horizontal-tb; color: #212529; font-size: 17px; text-shadow: none; padding: 0 22px;
  }
  .site-header.is-scrolled .global-nav a:hover,
  .site-header.is-scrolled .global-nav a[aria-current="page"] { color: var(--red); opacity: 1; }
}

/* ==========================================================================
   home
   ========================================================================== */
.is-home { background: url("../img/bg-body.jpg"); }

.hero { position: relative; height: 100vh; min-height: 520px; max-height: 1100px; padding: 0; overflow: hidden; }
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0; background: center / cover no-repeat;
  opacity: 0; transition: opacity 1.5s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__copy {
  position: absolute; left: 6%; top: 50%; transform: translateY(-50%); margin: 0;
  color: #fff; font-family: var(--mincho); font-size: clamp(24px, 3.2vw, 42px); line-height: 1.6;
  text-shadow: 0 0 12px rgba(0, 0, 0, .35); letter-spacing: .05em;
}
.hero__dots { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 10px; }
.hero__dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: #fff; opacity: .5; cursor: pointer;
}
.hero__dots button[aria-current="true"] { opacity: 1; }
@media (min-width: 992px) {
  .hero { margin: 20px; height: calc(100vh - 40px); }
  .hero__slides { border: 1px solid rgba(0, 0, 0, .08); }
}
@media (max-width: 991px) {
  .hero { margin-top: var(--header-h); height: 70vh; height: 70svh; min-height: 380px; max-height: 760px; }
}
@media (max-width: 767px) {
  .hero__copy { left: 20px; right: 20px; }
}

.home-about { padding: 60px 0; }
.home-about__box { background: #fff; padding: 50px 30px 30px; text-align: center; font-family: var(--mincho); font-size: 16px; }
.home-about__box p { margin: 30px 0 0; }
.home-greeting {
  padding: 50px 30px; text-align: center; color: #fff; font-size: 16px;
  background: url("../img/bg-greeting.jpg") center / cover no-repeat;
}
.home-greeting p { text-shadow: 2px 2px 2px rgba(0, 0, 0, .25); margin-bottom: 25px; }
@media (max-width: 767px) {
  .home-about { padding: 30px 0; }
  .home-about__box { padding: 35px 20px 25px; font-size: 15px; }
  .home-about__box p { margin-top: 20px; }
  .home-greeting { padding: 35px 20px; font-size: 14px; }
  .home-greeting p { text-shadow: 1px 1px 3px rgba(0, 0, 0, .6); }
  .btn-line { min-width: 0; width: 100%; max-width: 250px; }
}

.home-section { padding: 50px 0 60px; background: #fff; }
.home-section .product-grid { margin-bottom: 40px; }
@media (max-width: 767px) {
  .home-section { padding: 35px 0 45px; }
  .home-section .product-grid { margin-bottom: 30px; }
}

/* 見出し */
.section-title { margin-bottom: 40px; font-family: var(--mincho); font-size: 28px; font-weight: 600; color: #333; }
.section-title__en { display: block; color: var(--accent); font-size: 16px; font-weight: 500; line-height: 2.4; }
.section-title--center { text-align: center; font-size: 22px; margin-bottom: 0; }
.line-title { position: relative; display: inline-block; margin-bottom: 40px; padding-top: 20px; font-size: 18px; font-weight: 500; }
.line-title::before { content: ""; position: absolute; top: 0; left: 0; width: 50px; border-top: 2px solid #f05f40; }
.line-title span { display: block; color: #f05f40; font-size: 17px; }
.heading-bar { margin-bottom: 30px; padding: 8px 15px; border-left: 5px solid var(--accent); font-size: 21px; font-weight: 700; }
.heading-bar small { font-size: 15px; font-weight: 500; color: var(--muted); }
.sub-title { margin-bottom: 20px; font-size: 22px; font-weight: 600; }

/* お知らせ */
.news-list { border: 1px solid #d9d9d9; background: #fff; box-shadow: 0 3px 13px rgba(0, 0, 0, .03); }
.news-list li + li { border-top: 1px solid #efefef; }
.news-list a { display: flex; flex-wrap: wrap; gap: 0 25px; padding: 15px 25px; color: #333; }
.news-list a:hover { background: #fafafa; color: var(--red); }
.news-list time { font-weight: 700; font-size: 14px; line-height: 1.9; }
@media (max-width: 767px) {
  .news-list a { flex-direction: column; padding: 12px 15px; }
}
.news-detail__date { color: var(--muted); }

/* ==========================================================================
   下層ページ共通
   ========================================================================== */
.page-title {
  padding: 230px 0 200px; text-align: center; color: #fff;
  background: #555 url("../img/title-products.jpg") center / cover no-repeat;
}
.page-title--business { background-image: url("../img/title-business.jpg"); }
.page-title--company { background-image: url("../img/title-company.jpg"); }
.page-title--contact { background-image: url("../img/title-contact.jpg"); }
.page-title__en { margin: 0; font-size: 45px; letter-spacing: .05em; line-height: 1.3; text-shadow: 0 0 10px rgba(0, 0, 0, .3); }
.page-title__ja { font-size: 16px; font-weight: 500; text-shadow: 0 0 6px rgba(0, 0, 0, .4); }
@media (max-width: 991px) {
  .page-title { margin-top: var(--header-h); padding: 70px 0; }
  .page-title__en { font-size: 34px; }
}
@media (max-width: 767px) {
  .page-title { padding: 50px 0; }
  .page-title__en { font-size: 28px; }
  .page-title__ja { font-size: 14px; }
}

.breadcrumb { margin-top: 30px; margin-bottom: 30px; font-weight: 700; font-size: 14px; }
@media (max-width: 767px) {
  .breadcrumb { margin-top: 15px; margin-bottom: 15px; font-size: 12px; }
  .section-title { margin-bottom: 25px; font-size: 22px; }
  .section-title__en { font-size: 14px; }
  .heading-bar { margin-bottom: 20px; font-size: 18px; }
  .sub-title { font-size: 18px; }
}
.breadcrumb ol { display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: ">"; margin: 0 .5em; color: #333; }
.breadcrumb span { color: #333; }

.prose p { margin-bottom: 1.4em; }
.prose ol { list-style: decimal; padding-left: 1.6em; margin-bottom: 1.4em; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 768px) {
  .cols--greeting { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
}
.cols--greeting .cols__main { font-size: 16px; }

/* 会社概要などの 2 列表 */
.spec-table { width: 100%; max-width: 900px; margin-bottom: 40px; }
.spec-table th, .spec-table td { padding: 14px 20px; vertical-align: top; border-bottom: 1px solid #e5e5e5; }
.spec-table th { width: 28%; text-align: right; font-weight: 700; white-space: nowrap; }
.spec-table--compact th { text-align: left; background: var(--footer); color: #fff; border-color: #fff; }
.spec-table--compact td { border: 1px solid #eee; }
.company-photo img { width: 100%; }
@media (max-width: 767px) {
  .spec-table th, .spec-table td { display: block; width: 100%; text-align: left; }
  .spec-table th { padding-bottom: 0; border: 0; }
}
.map iframe { display: block; width: 100%; height: 350px; margin-bottom: 15px; }

.privacy section { margin-bottom: 40px; }

/* ==========================================================================
   商品
   ========================================================================== */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 60px; }
@media (min-width: 992px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 50px; }
}
@media (max-width: 991px) {
  /* 一覧ページのスマホ表示では、検索・カテゴリーを商品の上に出す(カタログは下のまま) */
  .product-layout--list { gap: 30px; }
  .product-layout--list .product-side { display: contents; }
  .product-layout--list .product-side__nav { order: -1; }
  .product-layout--list .product-search { margin-bottom: 20px; }
  .product-layout--list .category-list { margin-bottom: 0; }
}
.product-count { margin-top: -15px; color: var(--muted); font-size: 14px; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; margin-bottom: 20px; }
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 30px; }
  .product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.product-card__image { display: block; overflow: hidden; border: 1px solid #d7e8f2; background: #fff; }
.product-card__image img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .6s cubic-bezier(.19, 1, .22, 1); }
.product-card__image:hover img { transform: scale(1.05); }
.product-card__cats { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 6px 0 4px; }
.product-card__name { font-size: 16px; font-weight: 700; line-height: 1.6; }
.product-card__name a { color: #333; }
.product-card__name a:hover { color: var(--red); }
@media (max-width: 767px) {
  .product-grid { gap: 25px 15px; }
  .product-card__name { font-size: 14px; }
}

.badge {
  display: inline-block; padding: 4px 6px 3px; border-radius: 2px;
  background: var(--blue); color: #fff; font-size: 11px; line-height: 1;
}
.badge:hover { color: #fff; opacity: .8; }
.badge--straw { background: #41ae48; }
.badge--chopsticks { background: var(--red); }

/* サイドバー */
.product-side__title { display: block; margin-bottom: 15px; font-size: 17px; font-weight: 700; }
.product-search { margin-bottom: 35px; }
.product-search__row { display: flex; }
.product-search input {
  flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #ccc; border-right: 0; border-radius: 2px 0 0 2px;
}
.product-search button { padding: 8px 16px; border: 0; border-radius: 0 2px 2px 0; background: var(--red); color: #fff; font-weight: 700; cursor: pointer; }
.category-list { margin-bottom: 35px; }
.category-list li + li { margin-top: 6px; }
.category-list a { position: relative; display: inline-block; padding-left: 28px; color: var(--red); font-weight: 700; }
.category-list a::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--accent);
}
.category-list a::after {
  content: ""; position: absolute; left: 5px; top: 50%; width: 5px; height: 5px; margin-top: -3px;
  border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg);
}
.category-list a[aria-current="page"] { color: #333; text-decoration: underline; }
@media (max-width: 991px) {
  /* スマホではカテゴリーを横並びのボタンに */
  .category-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .category-list li + li { margin-top: 0; }
  .category-list a { padding: 4px 12px; border: 1px solid var(--red); border-radius: 15px; font-size: 13px; }
  .category-list a::before, .category-list a::after { display: none; }
  .category-list a[aria-current="page"] { background: var(--red); color: #fff; text-decoration: none; }
}

/* ページ送り */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 40px 0; }
.pager a, .pager span { padding: 6px 14px; border: 1px solid #ccc; background: #fff; color: #555; line-height: 1.5; }
.pager a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pager .pager__current, .pager .pager__count { background: var(--red); border-color: var(--red); color: #fff; }
.pager .pager__count { margin-right: 14px; }
.pager .pager__gap { border: 0; background: none; }
@media (max-width: 575px) {
  .pager { gap: 4px; }
  .pager a, .pager span { padding: 6px 11px; }
  .pager .pager__count { display: none; }
}

/* 商品詳細(スマホでは 写真 → 規格表 → サイドバー の順) */
.product-detail { padding-top: 20px; }
.product-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-bottom: 60px; }
@media (min-width: 992px) {
  .product-detail__grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas: "main side" "specs specs";
    gap: 50px;
  }
  .product-detail__main { grid-area: main; }
  .product-detail__specs { grid-area: specs; }
  .product-detail__grid > .product-side { grid-area: side; }
}
/* 商品画像の表示枠(4:3。管理画面でアップロードした画像はこの比率に切り抜かれる。inc/config.php の image_size と合わせる) */
.gallery__main { aspect-ratio: 4 / 3; background: #fff; }
.gallery__main img { display: block; width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-top: 30px; }
@media (max-width: 767px) {
  .gallery__thumbs { gap: 8px; margin-top: 12px; }
}
.gallery__thumbs button { display: block; width: 100%; padding: 0; border: 2px solid transparent; background: none; cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--accent); }
.gallery__thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-detail__cats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 20px; }
.product-detail__text { margin-top: 20px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 40px; }
.item-table { width: 100%; min-width: 640px; font-family: var(--mincho); }
.item-table th, .item-table td { padding: 10px; border: 1px solid #ccc; font-size: 14px; text-align: center; }
.item-table th { background: var(--red); color: #fff; }
.item-table .item-table__name { width: 34%; }
@media (max-width: 767px) {
  /* スマホでは 1 行を 1 枚のカードにして縦に並べる */
  .table-scroll { overflow: visible; }
  .item-table { min-width: 0; font-family: var(--gothic); }
  .item-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .item-table tbody, .item-table tr, .item-table td { display: block; width: 100%; }
  .item-table .item-table__name { width: 100%; }
  .item-table tr { margin-bottom: 15px; border: 1px solid #ccc; }
  .item-table td { display: flex; gap: 12px; padding: 8px 12px; border: 0; border-top: 1px solid #eee; text-align: left; }
  .item-table td::before { content: attr(data-label); flex: 0 0 7.5em; color: var(--red); font-weight: 700; }
  .item-table td:first-child { border-top: 0; background: var(--red); color: #fff; font-weight: 700; }
  .item-table td:first-child::before { color: #fff; }
}

.product-detail__contact { margin-bottom: 20px; }

.post-nav { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 35px 0; }
.post-nav__prev, .post-nav__next { color: var(--red); text-decoration: underline; }
.post-nav__list { padding: 7px 15px; background: var(--red); color: #fff; }
.post-nav__list:hover { color: #fff; opacity: .8; }

/* ==========================================================================
   お問い合わせ
   ========================================================================== */
.contact > .section-title { max-width: 960px; margin-left: auto; margin-right: auto; }
.contact-steps { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; counter-reset: step; }
.contact-steps li {
  counter-increment: step; min-width: 110px; padding: 8px 15px; background: #eee; color: #888; text-align: center; font-weight: 700;
}
.contact-steps li::before { content: counter(step) ". "; }
.contact-steps li[aria-current="step"] { background: var(--accent); color: #fff; }

.contact-tel { margin: 0 auto 30px; max-width: 880px; padding: 20px; border: 1px solid var(--accent); text-align: center; }
.contact-tel p { margin: 0; }
.contact-tel__number { font-family: var(--mincho); font-size: 30px; }
.contact-tel__number a { color: var(--accent); }
.contact-lead { max-width: 960px; margin: 0 auto 30px; }
.alert { max-width: 960px; margin: 0 auto 30px; padding: 15px 20px; border: 1px solid #e5a0a0; background: #fff3f3; color: #b00000; }

.form-table { width: 100%; max-width: 960px; margin: 0 auto; }
.form-table th, .form-table td { padding: 15px; border-bottom: 1px solid #eee; vertical-align: top; text-align: left; }
.form-table th { width: 30%; font-weight: 700; }
.form-table input[type="text"], .form-table input[type="email"], .form-table input[type="tel"], .form-table textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #ccc; border-radius: 2px; background: #fff;
}
.form-table .input-short { width: 10em; }
.form-table input:focus, .form-table textarea:focus { outline: none; border-color: rgba(82, 168, 236, .75); box-shadow: 0 0 3px rgba(82, 168, 236, .5); }
.form-table [aria-invalid="true"] { border-color: #d33; background: #fff8f8; }
.form-table--confirm td { word-break: break-all; }
.form-note { display: inline-block; margin-left: 8px; color: var(--muted); font-size: 13px; }
.form-error { margin: 6px 0 0; color: #c00; font-size: 14px; }
em.required {
  display: inline-block; margin-left: 10px; padding: 3px 5px; border-radius: 3px;
  background: var(--accent); color: #fff; font-size: 11px; font-style: normal; line-height: 1; vertical-align: 2px;
}
.form-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin: 40px 0; }
.btn--submit { background: var(--accent); border-radius: 0; min-width: 260px; padding: 14px 30px; }
.btn--back { border-radius: 0; padding: 14px 30px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-notice { max-width: 960px; margin: 40px auto 0; }
.contact-notice .sub-title { font-size: 20px; }
.contact-complete { max-width: 760px; margin: 0 auto; }
.contact-complete p { margin-bottom: 30px; }
@media (max-width: 767px) {
  .contact-steps { gap: 4px; margin-bottom: 25px; }
  .contact-steps li { flex: 1; min-width: 0; padding: 6px 4px; font-size: 13px; }
  .contact-tel { padding: 15px; font-size: 14px; }
  .contact-tel__number { font-size: 24px; }
  .form-table th, .form-table td { display: block; width: 100%; padding-left: 0; padding-right: 0; }
  .form-table th { padding-bottom: 6px; border: 0; }
  .form-table--confirm th { padding-bottom: 0; }
  .form-table input[type="text"], .form-table input[type="email"], .form-table input[type="tel"], .form-table textarea {
    font-size: 16px; /* iOS で入力時に画面が拡大されないように */
  }
  .form-note { display: block; margin: 4px 0 0; }
  .form-buttons { flex-direction: column-reverse; align-items: stretch; margin: 30px 0; }
  .form-buttons .btn { min-width: 0; width: 100%; }
}

/* ==========================================================================
   footer
   ========================================================================== */
.service-menu { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.service-menu__item { display: block; background: center / cover no-repeat; color: #fff; }
.service-menu__item:hover { color: #fff; }
.service-menu__item--business { background-image: url("../img/menu-business.jpg"); }
.service-menu__item--company { background-image: url("../img/menu-company.jpg"); }
.service-menu__item--products { background-image: url("../img/menu-products.jpg"); }
.service-menu__in { display: block; height: 100%; padding: 120px 15px; background: rgba(3, 3, 3, .3); transition: background-color .3s; }
.service-menu__item:hover .service-menu__in { background: rgba(3, 3, 3, .5); }
.service-menu__no, .service-menu__ja, .service-menu__en, .service-menu__txt { display: block; }
.service-menu__no { font-weight: 700; }
.service-menu__ja { font-size: 32px; line-height: 1.4; }
.service-menu__en { font-size: 19px; margin-bottom: 10px; }
.service-menu__txt { font-size: 13px; }
@media (max-width: 767px) {
  .service-menu { grid-template-columns: 1fr; }
  .service-menu__in { padding: 50px 15px; }
  .service-menu__ja { font-size: 26px; }
}

.site-footer { padding: 40px 0 30px; background: var(--footer); color: #fff; }
.site-footer a { color: #fff; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 40px; }
.site-footer__logo img { width: 200px; height: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; }
.site-footer__nav a { display: block; padding: 0 35px; font-weight: 700; line-height: 41px; }
.site-footer__nav a:hover { opacity: .7; }
.site-footer__address { margin-bottom: 20px; }
.site-footer__sub { font-size: 13px; }
.site-footer__copy { margin: 20px 0 0; font-size: 12px; text-align: center; }
@media (max-width: 767px) {
  .site-footer { text-align: center; }
  .site-footer__top { flex-direction: column; }
  .site-footer__nav { flex-direction: column; width: 100%; }
  .site-footer__nav li + li { border-top: 1px solid rgba(255, 255, 255, .3); }
}

.pagetop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; background: rgba(210, 83, 52, .9);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.pagetop::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -3px 0 0 -6px;
  border-top: 2px solid #fff; border-left: 2px solid #fff; transform: rotate(45deg);
}
.pagetop.is-visible { opacity: 1; visibility: visible; }
.pagetop:hover { background: var(--red); }
@media (max-width: 767px) {
  .pagetop { right: 12px; bottom: 12px; width: 40px; height: 40px; }
}
