/* =====================
素材ページ共通
===================== */
:root {
  --mtl-bg: #D8DAD2;
  --mtl-ink: #28332e;
  --mtl-dim: #7a857f;
  --mtl-accent: #1f3a32;
  --mtl-button-bg: #3c5a45;
  --mtl-button-border: #3c5a45;
}

/* ベース */
body {
  background: var(--mtl-bg);
  color: var(--mtl-ink);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

.material {
  background: var(--mtl-bg);
  color: var(--mtl-ink);
}

/* 見出しフォント */
.material h1,
.material h2,
.material h3 {
  font-family: "A-OTF Shuei Mincho Pro", "游明朝",
    "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.material h2 {
  font-size: 42px;
  letter-spacing: 0.25em;
  margin-bottom: 0;
}

/* 汎用 */
.material p {
  font-size: 14px;
  line-height: 2;
  font-family: "A-OTF Shuei Mincho Pro", "游明朝",
    "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}
.material a {
  font-size: 14px; 	
  font-family: "A-OTF Shuei Mincho Pro", "游明朝",
    "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
}

.material img {
  max-width: 100%;
  height: auto;
  display: block;
}
.material h3 {
  font-weigt: 400;
  font-size: 26px;
}

/* =============== HERO =============== */

.mtl-hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.mtl-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.mtl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.5)
  );
}

.mtl-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.mtl-hero__eyebrow {
  letter-spacing: 0.35em;
  font-size: 14px;
  margin-bottom: 12px;
}

.mtl-hero__title {
  font-size: 42px;
  margin: 0 0 18px;
}

.mtl-hero__lead {
  font-size: 13px;
  line-height: 2;
  max-width: 420px;
  margin-top: 5vw;
}
/* =============== INTRO（縦書き） =============== */

.mtl-intro {
  padding: 80px 0 40px;
  overflow-x: clip; 
}

.mtl-intro__inner {
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: flex-start;
}

.mtl-intro__copy {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 16px;
  letter-spacing: 0.3em;
}

.mtl-intro__copy p {
  line-height: 2;
}

.mtl-intro__ring {
  display: flex;
  justify-content: flex-end;
}

.mtl-intro__ring-image {
  width: 550px;
  height: 550px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top right;
  opacity: 0.7;
  position: relative;
  z-index: 2;         /* 上に描画されるように */
  margin-top: -340px; /* 上に持ち上げる */
  transform: translateX(260px) rotate(-30deg);
  filter: brightness(55%);
}

/* =============== GALLERY =============== */

.mtl-gallery {
  padding: 20px 0 80px;
  background: var(--mtl-bg);
  margin-top: 50px;
}


.mtl-gallery__inner {
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 15px;
  align-items: flex-start;
}

.mtl-gallery__item {
  overflow: hidden;
}

.mtl-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;   
}

/* ★ 上下のズレ調整（値は好みで微調整してね） */
.mtl-gallery__item--main {
  margin-top: 40px;   /* 左の大きい画像を少し下げる */
  height: 360px;
  margin-right: 40px;
}

.mtl-gallery__item--middle {
  margin-top: 220px;   /* 真ん中を一番下げる */
}

.mtl-gallery__item--right {
  margin-top: -10px;      /* 右を一番上に */
  height: 220px;
  overflow: hidden;
}
.mtl-gallery__item--right img {
  object-fit: cover;
  object-position: center 50%;
  height: 120%;
}
/* =============== SECTION 共通 =============== */

.mtl-section {
  padding: 80px 0 40px;
  margin: 0 10vw;
}

.mtl-section__inner {
  margin: 0 auto;
  padding: 0 16px;
}

.mtl-section__head {
}

.mtl-section__title {
  margin: 0;
}

.mtl-section__body {
  max-width: 640px;
  font-size: 14px;
}

/* =============== 無垢材サンプル =============== */
.mtl-woods {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.mtl-woods__thumb {
  position: relative;
  overflow: hidden;
}

/* 画像 */
.mtl-woods__thumb img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

/* 画像上の白フィルター＋文字エリア */
.mtl-woods__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* ↓ 薄い白いフィルター */
  background: rgba(255, 255, 255, 0.4);
  padding: 10px 6px;
  text-align: center;
  box-sizing: border-box;
}

/* 日本語名 */
.mtl-woods__name-ja {
  display: block;
  font-size: 22px;
  line-height: 2;
  color: var(--mtl-ink);
  font-family: "A-OTF Shuei Mincho Pro", "游明朝",
    "Yu Mincho", "Hiragino Mincho ProN", "MS PMincho", serif;
  font-weight: 900;
}

/* 英語名（お好みで） */
.mtl-woods__name-en {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.4;
  color: #4D4639;
}


/* =============== 仕上げ写真 + ボタン =============== */

.mtl-finish__photo {
  margin-top: 40px;
}

.mtl-finish__photo img {
  width: 100%;
  object-fit: cover;
}

.mtl-finish__cta {
  margin-top: 5vw;
  display: flex;
  justify-content: center; 
}

/* ボタン */
.mtl-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 12px 65px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-decoration: none;
  border: 1px solid var(--mtl-button-border);
  color: #000;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  border-radius: 4px;
}

.mtl-button:hover {
  opacity: 0.9;
  background: #28332e;
  color: #fff;

}

.mtl-button--outline {
  background: transparent;
  color: var(--mtl-button-bg);
}

/* ==========================
   768px 以下：MATERIAL（スマホ）
   ========================== */
@media screen and (max-width: 768px) {

  /* ---------- HERO ---------- */
  .mtl-hero {
    height: 600px;
  }

  .mtl-hero__bg {
    background-size: 260% auto;     /* ちょいアップ */
    background-position: 60% 40%;   /* やや左寄せ・中央付近 */
  }

  .mtl-hero__inner {
    padding: 0 8vw;
    align-items: center;
  }

  .mtl-hero__eyebrow {
    font-size: 12px;
    letter-spacing: 0.3em;
    margin-bottom: 8px;
  }

  .mtl-hero__title {
    font-size: 12px !important;
    margin-bottom: 12px;
    font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  }

  .mtl-hero__lead {
    font-size: 11px;
    line-height: 1.9;
    min-width: 330px;
    margin-top: 16px;
  }

  /* ---------- INTRO（縦書き＋年輪） ---------- */
  .mtl-intro {
    padding: 40px 0 24px;
  }

  .mtl-intro__inner {
    padding: 0 6vw;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .mtl-intro__copy {
    font-size: 14px;
    letter-spacing: 0.7em;
    margin: 10vw auto;
  }

  .mtl-intro__ring {
    justify-content: flex-start;
  }

  .mtl-intro__ring-image {
    width: 260px;
    height: 260px;
    margin-top: -600px;
    transform: translateX(200px) rotate(-30deg);
  }

  /* ---------- GALLERY 3枚 ---------- */
  .mtl-gallery {
    padding: 8px 0 40px 0;
    margin-top: 24px;
  }

  .mtl-gallery__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 30px 70px;
  }

  .mtl-gallery__item--main,
  .mtl-gallery__item--middle,
  .mtl-gallery__item--right {
    margin: 0;
    height: auto;
  }
   /* 左の大きい写真（material_sozai） */
  .mtl-gallery__item--main {
    grid-column: 1 / 2;  /* 左 */
    grid-row: 1 / 3;     /* 2段分を占有して縦長っぽく */
    height: 144px;
  }
  /* 右上の小さい写真（material_kanna） */
  .mtl-gallery__item--right {
    grid-column: 2 / 3;  /* 右上 */
    grid-row: 1 / 2;
    align-self: start;
    height: 137px;
    margin-top: 25vw !important;
  }
  .mtl-gallery__item--right img {
    transform: scale(1.2);
    object-position: center 30%;
  }
  /* 下の横長の写真（material_mokuzai） */
  .mtl-gallery__item--middle {
    grid-column: 1 / 3;  /* 2カラムぶち抜きで中央にドン */
    grid-row: 3 / 4;
    height: 220px
  }
  .mtl-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .mtl-gallery__item {
    margin: 0;
  }

  /* ---------- 共通セクション ---------- */
  .mtl-section {
    padding: 40px 0 24px;
    margin: 0 6vw;
  }

  .mtl-section__inner {
    padding: 0;
  }

  .mtl-section__body {
    max-width: none;
    font-size: 13px;
  }

  .material h2,
  .mtl-section__title {
    font-size: 28px;
    letter-spacing: 0.1em;
  }

  /* ---------- 無垢材サンプル ---------- */
  .mtl-woods {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .mtl-woods__thumb img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .mtl-woods__caption {
    padding: 8px 4px;
  }

  .mtl-woods__name-ja {
    font-size: 18px;
    line-height: 1.8;
  }

  .mtl-woods__name-en {
    font-size: 10px;
  }

  /* ---------- 仕上げ写真＋ボタン ---------- */
  .mtl-finish__photo {
    margin-top: 32px;
  }

  .mtl-finish__cta {
    margin-top: 24px;
    justify-content: center;
  }

  .mtl-button {
    width: 100%;
    max-width: 320px;
    padding: 12px 0;
  }
}
