* {
  margin: 0;
  padding: 0;
}

html body {
  width: 100%;
  height: 100%;
  background-color: #FAF8F2;
}

a:link {
  color: inherit;
}

/* ヘッダー外枠 */
.header header {
  position: sticky;         /* スクロールでも上に残す */
  top: 0;
  z-index: 1000;
  background: #FAF8F2;      /* 生成り（赤に合う） */
  border-top: 20px solid #c53d43;
  border-bottom: 20px solid #c53d43;
}

/* 内側の余白とレイアウト */
.header_content {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title ninsyo"
    "nav   nav";
  gap: 10px 12px;
  padding: 12px 12px 10px;
}

/* 工場名＋TEL */
.company_name {
  grid-area: title;
  margin: 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: x-large;
  line-height: 1.25;
  color: #252525;
  transform: skew(-3deg);
}

/* TEL表記 */
.Header_TEL {
  font-size: x-large;
  letter-spacing: 0.06em;
  color: #252525;
  transform: skew(-4deg);
}

/* 電話番号：視認性を上げる */
.Header_number {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: x-large;
  letter-spacing: 0.02em;
  color: #252525;
  transform: skew(-4deg);
  text-decoration: none;
}

/* 認証情報（補助扱い） */
.ninsyo {
  grid-area: ninsyo;
  align-self: start;
  text-align: right;
  font-size: small;
  line-height: 1.2;
  color: #252525;
}

/* ナビ全体 */
.navigation {
  grid-area: nav;
}

/* UL: 横並びにしてスクロール可にする（スマホで破綻しない） */
.nav {
  display: flex;
  gap: 10px;
  padding: 6px 2px 2px;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;         /* Firefox */
}
.nav::-webkit-scrollbar { display: none; } /* Chrome/Safari */

/* .container が ul 内にある前提で「コンテナ自体」をflex化して整列 */
.nav .container {
  display: flex;
  gap: 10px;
}

/* ナビ項目 */
.item {
  flex: 0 0 auto;
}

/* ボタン（アイコン＋テキスト） */
.btn {
  display: block;
  text-decoration: none;
  color: #2E2E2E;
}

/* ボタン中身（縦積み） */
.btn_content {
  width: 74px;                 /* ここを変えると一気に印象が変わる */
  padding: 10px 8px 8px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  text-align: center;
}

/* アイコン */
.btn_content img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
  opacity: 0.9;
}

/* ラベル */
.btn_content p {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* hover/active：老舗感を壊さない強調 */
.btn:active .btn_content,
.btn:hover .btn_content {
  border-color: rgba(197,61,67,0.5);
}


.bg {
  position: relative;
  height: 300px;
  /* 背景画像 */
  background-image: url("../img/bg.webp");
  background-size: 100%;
  background-repeat: no-repeat;
  /* カラーフィルム調の階調 */
  filter:
    saturate(0.7)
    contrast(0.85)
    brightness(0.9);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;

  /* カラーフィルム風の色被り */
  background: rgba(210, 220, 225, 0.05);

  pointer-events: none;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../img/grain.png");
  background-repeat: repeat;

  opacity: 0.02;
  pointer-events: none;
}

section {
  height: 100%;
}

.top {
  width: 100%;
}

.copy{
  position: absolute;
  right: 5%;
  bottom: 10%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 0 rgba(0,0,0,1);
  color: white;
  font-family: "Zen Old Mincho", serif;
  font-weight: 600;
  font-size: clamp(18px, 2.8vw, 26px);
}

.content1 {
  width: 100%;
  background-color:#FAF8F2;
}

.article1 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background-color:#FAF8F2;
  color: black;
}

.article1 h2 {
  font-family: 'Zen Antique', serif;
  font-size: 30px;
  text-align: center;
  padding: 20px;
  margin: 4px;
  background-color: #c53d43;
  color: white;
  text-shadow: 0 2px 0 rgba(0,0,0,1);
  border-radius: 12px;
}

.article1 h3 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 22px;
  text-align: center;
  padding: 30px;
}

.article1 p {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 18px;
  width: 90%;
  margin: 5%;
  text-align: left;
}

.signature p{
  font-family: "Zen Kurenaido", cursive;
  font-size: 24px;
  letter-spacing: 0.05em;
  color: #2E2E2E;
  text-align: right;
}

.content2 {
  width: 100%;
  background-color:#FAF8F2;
}

.article2 {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background-color:#FAF8F2;
  color: black;
  padding-top: 5%;
}

.article2 h2 {
  font-family: 'Zen Antique', serif;
  font-size: 30px;
  text-align: center;
  padding: 20px;
  margin: 4px;
  background-color: #c53d43;
  color: white;
  text-shadow: 0 2px 0 rgba(0,0,0,1);
  border-radius: 12px;
}

.article2 h3 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 22px;
  text-align: center;
  padding: 30px;
}

.article2 p {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 18px;
  width: 90%;
  margin: 5%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.service__media img {
  width: 90%;
  margin-left: 5%;
  margin-right: 5%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;              /* 角丸は控えめに */
  filter: saturate(0.85) contrast(0.9) brightness(0.95); /* フィルム寄せ */
}

.content3 {
  width: 100%;
  height: 100%;
  padding-bottom: 50px;
  background-color:#FAF8F2;
}

.article3 {
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  background-color:#FAF8F2;
  color: black;
  padding-top: 5%;
}

.article3 h2 {
  font-family: 'Zen Antique', serif;
  font-size: 30px;
  text-align: center;
  padding: 20px;
  margin: 4px;
  background-color: #c53d43;
  color: white;
  text-shadow: 0 2px 0 rgba(0,0,0,1);
  border-radius: 12px;
}

.article3 h3 {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 22px;
  text-align: center;
  padding: 30px;
}

.article3 p {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 18px;
  width: 90%;
  margin: 5%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.guide p {
  text-align: center;
}

.content4 {
  width: 100%;
  height: 100%;
  background-color:#FAF8F2;
}

.article4 {
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  background-color:#FAF8F2;
  color: black;
  padding-top: 5%;
}

.article4 h2 {
  font-family: 'Zen Antique', serif;
  font-size: 30px;
  text-align: center;
  background-color: #c53d43;
  color: white;
  text-shadow: 0 2px 0 rgba(0,0,0,1);
  border-radius: 12px;
  margin: 4px;
  padding: 20px;
}

.about {
  color: #252525;
  width: 90%;
  margin: 5%;
}

.about table {
	border-collapse: collapse;
	border: 1px solid #252525;
	font-family: 'M PLUS Rounded 1c', sans-serif;
  margin-left: auto;
  margin-right: auto;
}

.about th {
  text-align: center;
	border: 1px solid;
	padding: 5px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.about td {
	border: 1px solid;
  text-align: left;
	padding: 5px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.map-wrap {
  width: 100%;
}

.access__media img {
  width: 90%;
  margin: 5%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;              /* 角丸は控えめに */
  filter: saturate(0.85) contrast(0.9) brightness(0.95); /* フィルム寄せ */
}

.footer {
  width: auto;
  height: auto;
  margin-top: 150px;
  color: white;
  background-color:#c53d43;
  border-top: 1px solid;
  box-sizing: border-box;
}

.footer p {
  text-align: center;
  margin-right: 15px;
  margin-top: 20px;
  font-size: 16px;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.footer-nav {
  padding: 20px;
  display: flex;
  gap: 24px;                 /* リンク間の余白 */
  justify-content: center;   /* 中央揃え（左寄せでも可） */
  flex-wrap: wrap;           /* 画面が狭い場合に折り返す */
}

.footer-nav a {
  font-size: 16px;
  color: white;
  text-decoration: none;
  font-family: 'M PLUS Rounded 1c', sans-serif;
}

.footer-nav a:hover {
  text-decoration: underline;
}
