@charset "utf-8";
/* =========================================================
   Base / Reset
========================================================= */
:root {
  --brand:#2f6a83;
  --ink:#222;
  --muted:#666;
  --bg:#faf8f4;
  --card:#fff;
  --accent:#b89d6d;
  --container:1180px;
  --radius:16px;
  --shadow:0 8px 28px rgba(0,0,0,.08);

  /* Slider variables */
  --baseline-width:1900px;   /* Design baseline width */
  --slide-width:1300px;      /* Slider main width on PC */
  --peek:80px;               /* Peek width on both sides (adjusted on PC with JS) */
  --height:600px;            /* Slider height */
  --ctrl-size:44px;
  --dot-size:8px;

  --dots-gap-pc: 24px;   /* Slider dots spacing for PC */
  --dots-gap-sp: 16px;   /* Slider dots spacing for SP */
}

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

html, body {
  margin: 0;
  overflow-x: hidden;
}

:root {
  --font-english: "Helvetica Neue", "Hiragino Sans", Spartan, Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-japanese: "Helvetica Neue", "Hiragino Sans", Spartan, Arial, "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

body {
  font-family: var(--font-english), var(--font-japanese);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.7;
  color: #222;
  background-color:#faf8f4;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: 24px;
}

.container_na {
  width: 60%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* On small screens, container_na width is 80% */
@media (max-width: 768px) {
  .container_na {
    width: 80%;
  }
}

.stack {
  display: grid;
  gap: 24px;
}

.note {
  color: #9aa6ad;
}

/* =========================================================
   Global Link Styles
========================================================= */

/* ---- Base link style ---- */
a {
  color: #2B3A79;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: color .3s ease, border-color .3s ease;
}

/* hover/focus */
a:hover,
a:focus-visible {
  color: #8A8A8A;
  border-bottom-color: #CBB47A;
}

/* --- Header / Nav / Footer link styles --- */
header a,
nav.main a,
.gmenu a {
  color: #333;
  border: none !important;
  text-decoration: none;
  transition: color .25s ease;
}

header a:hover,
nav.main a:hover,
.gmenu a:hover {
  color: var(--brand);
  border: none !important;
}

/* --- Footer link styles (dark background) --- */
footer a {
  color: #e7eef6;
  border: none;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  border: none;
}

/* --- Contact link with inline icon --- */
.contact a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: #2B3A79;
  border-bottom: 1px dotted transparent;
}
.contact a:hover,
.contact a:focus-visible {
  color: #8A8A8A;
  border-bottom-color: #CBB47A;
}
.contact a img {
  display: inline-block;
  height: 21px;
  width: auto;
  vertical-align: middle;
}

/* --- Image-only links --- */
a.imglink {
  display: inline-block;
  border: none;
}
a.imglink:hover img {
  opacity: 0.85;
  transition: opacity .3s ease;
}

/* ===== Global Nav: submenu link colors ===== */
.gnav .submenu a,
.submenu a {
  color: #2B3A79 !important;
  text-decoration: none !important;
  border: none !important;
}
.gnav .submenu a:hover,
.submenu a:hover,
.gnav .submenu a:focus-visible,
.submenu a:focus-visible {
  background:#f6f4ef;
  color: #2B3A79 !important;
  border: none !important;
}

/* グローバルナビ：サブメニュー内のリンクを縦並びにする */
#global-nav .submenu a {
  display: block;
  padding: 4px 0;
}


/* =========================================================
   Header / Nav
========================================================= */
header.topbar {
  background: #faf8f4;
}

.topbar .line1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  font-size: 13px;
  color: #333;
}

.topbar .line1 .contact {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

@media (max-width:900px) {
  .topbar .line1 .contact {
    white-space: normal;
    row-gap: 4px;
  }
}

.topbar .line1 .contact img {
  height: 21px;
  margin-right: 4px;
}

/* =========================================================
   Hero (generic)
========================================================= */
.hero {
  background: var(--bg);
  padding: 16px 0 8px;
}

/* =========================================================
   Sections / Cards / News
========================================================= */
section {
  padding: 48px 0;
}

h1 {
  font-size: clamp(20px, 2.4vw, 32px);
  margin: 0 0 10px;
  font-family: "游明朝", "MS PMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
}

h2 {
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 0 0 10px;
  font-family: "游明朝", "MS PMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
}

.lead {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: clamp(16px, 2.4vw, 22px);
}

.underline {
  position: relative;
  display: inline-block;
}
.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: .6;
  border-radius: 2px;
}

.card-img {
  border-radius: 5px;
  width:100%;
  margin:0 auto;
  box-shadow: var(--shadow);
}

.news {
  background: #fff;
}

.news h3 {
  font-size: clamp(18px, 2vw, 22px);
  margin: 0 0 6px;
}

.news .item {
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.news time {
  color: #8c8c8c;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   Footer
========================================================= */
footer {
  background: #5f656b;
  color: #f4f5f6;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns:1.1fr .9fr;
}

@media (max-width:900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.credit {
  padding: 12px 0;
  color: #cfd6dc;
}

/* =========================================================
   Slider
========================================================= */
.slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
}

.slider .design {
  position: relative;
  width: 100%;
  height: var(--height);
  margin: 0 auto;
  overflow: visible;
}

.slider-track {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  display: flex;
  align-items: center;
  will-change: transform;
  transition: transform 420ms cubic-bezier(.22, .61, .36, 1);
}

.slide {
  flex: 0 0 auto;
  width: var(--slide-width);
  height: 100%;
  margin: 0 var(--peek);
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eee;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide .caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 14px 24px;
  border-radius: 8px;
  font-size: clamp(16px, 2vw, 22px);
  text-align: center;
  max-width: 80%;
  line-height: 1.6;
}

.ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--ctrl-size);
  height: var(--ctrl-size);
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.dot {
  width: var(--dot-size);
  height: var(--dot-size);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: #d8c8b4;
  line-height: 0;
  transition: background .3s, transform .3s;
}

.dot[aria-current="true"] {
  background: #b49b7a;
  transform: scale(1.2);
}

/* Slider spacing around dots */
.slider .design { 
  margin-bottom: var(--dots-gap-pc);
}

.dots {
  margin-top: 0;
  margin-bottom: 24px;
}

@media (max-width: 767px){
  .slider .design {
    margin-bottom: var(--dots-gap-sp);
  }
}

/* =========================================================
   Responsive for Slider
========================================================= */
@media (max-width:1279px) {
  :root {
    --slide-width: calc(100% - (2 * var(--peek)));
  }
}

@media (max-width:767px) {
  :root {
    --peek: 0px;
    --slide-width: 100%;
  }
}

/* =========================================================
   Global menu (desktop & mobile)
========================================================= */
#global-nav.main.gnav {
  background: #faf8f4;
}

#global-nav .gmenu {
  display: flex;
  gap: 24px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

#global-nav .gmenu > li {
  position: relative;
}

#global-nav .gmenu > li > a.parent0,
#global-nav .gmenu > li > a.parent {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  transition: color .25s ease;
}

/* Dropdown caret arrow on parent items (PC) */
#global-nav .gmenu > li > a.parent::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease;
}

#global-nav .gmenu > li.has-sub.open > a.parent::after {
  transform: rotate(-135deg);
}

/* PC dropdown submenu panel */
#global-nav .submenu {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, -6px);
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity .25s ease,
    transform .25s ease,
    max-height .35s cubic-bezier(.22, .61, .36, 1);
  z-index: 50;
}

/* Show submenu on hover/focus (PC only, devices with hover) */
@media (hover:hover) {
  #global-nav .gmenu > li.has-sub:hover > .submenu,
  #global-nav .gmenu > li.has-sub:focus-within > .submenu {
    opacity: 1;
    transform: translate(-50%, 0);
    max-height: 500px;
    pointer-events: auto;
  }
  #global-nav .gmenu > li.has-sub:hover > a.parent,
  #global-nav .gmenu > li.has-sub:focus-within > a.parent {
    color:#2B3A79;
  }
}

/* PC layout: center global nav with fixed width */
@media (min-width: 901px) {
  #global-nav .gmenu {
    width: 78%;
    margin: 0 auto;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
  }
}

/* =========================================================
   Visual Smoothing
========================================================= */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-weight: 400;
  letter-spacing: 0.03em;
}

/* =========================================================
   Language toggle / Inputs
========================================================= */
.lang label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.lang label input[type="checkbox"] {
  margin: 0;
  vertical-align: middle;
}

input {
  border: 1px solid #0c0c0d4d;
  color: #737373;
  display: inline-block;
  margin: 4px 4px;
}

/* Toggle track */
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #0c0c0d1a;
  border-radius: 8px;
  height: 16px;
  width: 32px;
  position: relative;
}

/* Toggle knob */
input[type="checkbox"]::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1px;
  width: 12px;
  height: 12px;
  background-color: currentColor;
  border-radius: 6px;
  transition: left .2s cubic-bezier(.07, .95, 0, 1);
}

input[type="checkbox"]:checked::before {
  left: 18px;
  background-color: #fff;
}

/* Toggle with ON/OFF label text */
input[type="checkbox"].text {
  position: relative;
  font-size: 9px;
  font-weight: 600;
}

input[type="checkbox"].text::after {
  content: attr(data-text-off);
  position: absolute;
  top: 50%;
  left: 75%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  line-height: 1;
  color: #737373;
  pointer-events: none;
}

input[type="checkbox"].text:checked::after {
  content: attr(data-text-on);
  color: #FFF;
  left: 25%;
}

/* ===== Overlay Section ===== */
.overlay-section {
  position: relative;
  overflow: hidden;
  margin-inline: calc(50% - 50vw);
  width: 100vw;
  line-height: 0;
  padding:0;
}

.overlay-section .card-img {
  display: block;
  width: 100%;
  height: 60vh;
  object-fit: cover;
  margin: 0;
  z-index: 0;
}

.overlay-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.55);
  z-index: 1;
  pointer-events: none;
}

.overlay-section .overlay-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #333;
  font-family: "游明朝", "MS PMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", serif;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 600;
  line-height: 2.4;
  text-align: left;
  letter-spacing: 0.05em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.9),
    0 0 4px rgba(255, 255, 255, 0.3);
  padding: 0 5%;
  z-index: 2;
  max-width: none;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .overlay-section {
    margin-inline: calc(50% - 50svw);
    width: 100svw;
  }
  .overlay-section .card-img {
    height: 55svh;
  }
  .overlay-section .overlay-text {
    width: 92svw;
    max-width: none;
    box-sizing: border-box;
    padding: 0 6svw;
    text-align: left;
    line-height: 2.1;
    font-size: clamp(16px, 3.6vw, 20px);
  }
}

/* ===== Learn More Section ===== */
.learnmore {
  text-align: right;
  margin: 20px 0 40px 0;
}

.learnmore-btn {
  display: inline-block;
  background: url("../images/learnmore.png") center/cover no-repeat;
  color: #2B3A79;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-align: center;
  padding: 12px 40px;
  border-radius: 6px;
  transition: opacity 0.3s;
}

.learnmore-btn:hover {
  opacity: 0.85;
}

/* ========== Hamburger base ========== */
.nav-toggle{
  display: none; /* Hidden on PC, shown on mobile */
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  margin-left: auto;
}

.nav-toggle .bar{
  display: block;
  width: 24px;
  height: 2px;
  background: #2B3A79;
  margin: 6px auto;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(2){
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .bar:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* Backdrop behind mobile nav */
.nav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(1px);
  z-index: 98;
}

/* ========== Drawer styles (SP under 900px) ========== */
@media (max-width: 900px){
  .nav-toggle{ display: inline-block; }

  /* Off-canvas nav container */
  #global-nav{
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 320px);
    height: 100dvh;
    background: #fff;
    box-shadow: -8px 0 28px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    z-index: 99;
    padding: 20px 16px;
  }

  /* .is-open state: slide in */
  #global-nav.is-open{
    transform: translateX(0);
  }

  /* Vertical stacked nav items */
  #global-nav .gmenu{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  #global-nav .gmenu > li{
    border-bottom: 1px solid #0c0c0d1a;
  }

  #global-nav .gmenu a{
    display: block;
    padding: 14px 8px;
    color: #222;
    text-decoration: none;
    font-size: 16px;
  }

  /* Submenu inside drawer (accordion style) */
  #global-nav .submenu{
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 5px;
    margin: 0 0 10px 0;
    padding: 6px 12px 12px;

    display: none;  /* Hidden by default */
    opacity: 1;
    max-height: none;
    pointer-events: auto;
  }

  #global-nav .has-sub.open .submenu{
    display: block;
  }

  /* SP: arrow indicator text for submenu toggle */
  #global-nav .has-sub > .parent::after{
    content: "∨";
    border: none;
    margin-left: auto;
    opacity: .7;
    transform: rotate(0deg);
    transition: transform .25s ease;
  }

  #global-nav .has-sub.open > .parent::after{
    transform: rotate(180deg);
  }
}


/* ============================
   TAKAMINE Wood Hero (video)
============================ */

.tw-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Background video */
.tw-hero__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: -2;
}

/* White overlay on top of the video */
.tw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.50); /* Adjust opacity: 0.25–0.45 */
  z-index: -1;
}

/* Hero text styles */
.tw-hero__content h1 {
  font-size: 3rem;
  letter-spacing: 0.05em;
  color: #000; /* TAKAMINE Wood brand tone */
  margin-bottom: 0.4rem;
}

.tw-hero__content p {
  font-size: 1.2rem;
  color: #333;
}

/* Responsive (TW hero) */
@media (max-width: 768px) {
  .tw-hero {
    height: 50vh;
  }
  .tw-hero__content h1 {
    font-size: 2rem;
  }
  .tw-hero__content p {
    font-size: 1rem;
  }
}


/* =========================================
   Two-column feature list (image + text)
========================================= */

.tw-feature-list {
  list-style: none;
  margin: 40px auto;
  padding: 0;

  /* PC時：全体の60%幅 */
  width: 60%;
  max-width: var(--container); /* すでに:rootにあるやつ再利用 */
  
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* 各カード */
.tw-feature-list li {
  background: #FAF8F4;
  border-radius: 5px;       /* ★ 角丸5px */
  overflow: hidden;         /* 画像も一緒に角丸に */
  box-shadow: var(--shadow);/* 既存の影を再利用してなじませる */
}

/* クリック範囲をカード全体に */
.tw-feature-list a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* 大きめの画像部分 */
.tw-feature-thumb img {
  width: 100%;
  height: 200px;            /* 画像を大きめに見せる */
  object-fit: cover;        /* トリミングしていい感じに */
  display: block;

}

/* 小さめテキスト部分 */
.tw-feature-text {
  padding: 12px 16px;
}

.tw-feature-text h3 {
  font-size: 0.85rem;       /* 少し控えめ */
  margin: 0 0 6px;
  color:#555555;
  font-weight:600;
}

.tw-feature-text p {
  font-size: 0.78rem;       /* 「小さいテキスト」イメージ */
  margin: 0;
  color:#555555;
  line-height: 1.6;
}

/* -----------------------------
   Responsive (SP)
   SP時：1列／幅80%
----------------------------- */
@media (max-width: 768px) {
  .tw-feature-list {
    width: 80%;                 /* ★ SP幅80% */
    grid-template-columns: 1fr; /* 1列に */
    gap: 16px;
  }

  .tw-feature-thumb img {
    height: 180px;              /* 少しだけ縦を抑えめにしてもOK */
  }
}


/* ============================
   Company Profile Table
============================ */

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: 5px;
  overflow: hidden; /* 角丸を効かせる */
}

.company-table th{
  padding: 15px 14px;
  border-bottom: 1px solid #FFF;
}
.company-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #D8C8B4;
}
.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table th {
  width: 30%;
  background: #f6f2ea;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.company-table td {
  color: var(--ink);
  line-height: 1.7;
}

/* ---- SP: 1項目ずつカード表示 ---- */
@media (max-width: 768px) {
  .company-table {
    box-shadow: none; /* 全体の影を消して、行ごとにカード風に */
    border-radius: 0;
  }

  .company-table tbody {
    display: block;
  }

  .company-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    background: #fff;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    border-bottom: none;
  }

  .company-table th {
    background: #f6f2ea;
    border-bottom: 1px solid #eee;
  }

  .company-table td {
    padding-top: 8px;
  }
}

/* ===== Header 3-column Layout ===== */

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* 左：ロゴ */
.header-logo {
  flex: 0 0 auto;
  margin-top:25px;
}

/* 中央：お問い合わせ（縦並び） */
.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.4;
  gap: 2px;
}

/* 右：言語スイッチ */
.header-lang {
  flex: 0 0 auto;
  text-align: right;
}

/* 共通スタイル */
.contact-item {
  font-size: 13px;
  color: #333;
  text-decoration: none;
}
.contact-primary {
  font-weight: 600;
  color: #2B3A79;
  text-decoration: underline dotted;
}

/* ===== SP：全部縦並びへ ===== */
@media (max-width: 768px){
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-contact,
  .header-lang {
    align-items: flex-start;
    text-align: left;
  }
}


/* 行をすべてきれいに揃える */
.contact-row {
  display: flex;
  align-items: center;      /* ← アイコンと文字の縦揃え */
  gap: 6px;                 /* ← アイコンと文字の隙間 */
  white-space: nowrap;
  margin: 2px 0;
}

/* アイコンを全て同サイズに統一 */
.contact-row .ci {
  width: 20px;
  height: 20px;
  flex-shrink: 0;           /* ← アイコンがつぶれないように */
  object-fit: contain;      /* ← 画像の比率そのまま */
}

/* テキスト（リンク＆span共通） */
.contact-text {
  font-size: 13px;
  color: #333;
}

/* リンク強調 */
.contact-link {
  font-weight: 600;
  color: #2B3A79;
  text-decoration: underline dotted;
}

@media (max-width: 768px) {

  /* お問い合わせブロックをスマホで画面幅内に収める */
  .header-contact {
    width: 100%;
    max-width: 100%;
    padding-right: 8px;   /* ← 任意。右だけ少し余白 */
    overflow-wrap: anywhere;
  }

  /* 行のはみ出しを許さない（←重要） */
  .contact-row {
    white-space: normal;   /* nowrap を解除 */
    flex-wrap: wrap;       /* 折り返しを許可 */
  }

  /* アイコンと文字の調整 */
  .contact-row .ci {
    width: 18px;
    height: 18px;
  }

  /* 電話・FAX 行が詰まりやすいので隙間を確保 */
  .contact-row span,
  .contact-row a {
    display: inline-block;
    margin-right: 4px;
  }
}



/* 高嶺木材の約束Page */

.quality-section {
  padding: 80px 20px;
  background: #faf8f4; /* サイトのトーンに合わせて変えてOK */
}

.quality-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.quality-media {
  flex: 1 1 45%;
}

.quality-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

.quality-content {
  flex: 1 1 55%;
}

.quality-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.quality-lead {
  margin-bottom: 24px;
  line-height: 1.8;
}

.quality-block + .quality-block {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}

.quality-heading {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.quality-block p,
.quality-block ul {
  line-height: 1.8;
  margin-bottom: 8px;
}

.quality-block ul {
  padding-left: 1.2em;
}

.quality-note {
  font-size: 0.9rem;
  color: #666;
}

/* SPレイアウト */
@media (max-width: 768px) {
  .quality-inner {
    flex-direction: column;
  }

  .quality-section {
    padding: 48px 16px;
  }

  .quality-title {
    font-size: 1.5rem;
  }
}

/* PC：通常 */
.quality-inner {
  display: flex;
  gap: 40px;
}

/* SPで縦並びにする＋順番入れ替え */
@media (max-width: 768px) {
  .quality-inner {
    flex-direction: column;
  }

  .quality-content {
    order: 1; /* テキストを先に */
  }

  .quality-media {
    order: 2; /* 写真を後に */
  }
}

/* 製造工程 */

/* ===== 製材工程ページ用レイアウト ===== */

.sec-process {
  padding: 80px 16px 100px;
  background: var(--bg, #faf8f4);
}

.sec-process .inner {
  max-width: var(--container, 1180px);
  margin: 0 auto;
}

.sec-process .sec-title {
  font-size: 28px;
  margin: 0 0 8px;
}

.sec-process .sec-lead {
  margin: 0 0 32px;
  color: var(--muted, #666);
  line-height: 1.8;
}

/* 流れのマップ */
.process-flow {
  margin-bottom: 32px;
}

.process-flow ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px;
  margin: 0;
  list-style: none;
  background: var(--card, #fff);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow, 0 8px 28px rgba(0,0,0,.08));
  font-size: 13px;
}

.process-flow li::before {
  content: "▶";
  font-size: 10px;
  margin-right: 4px;
}

/* 各工程ブロック */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
}

.process-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* PCレイアウト（769px以上）で写真を大きく */
@media (min-width: 769px) {
  .process-photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
  }
}


.process-body {
  flex: 1;
}

.process-step {
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--accent, #b89d6d);
  margin: 0 0 4px;
}

.process-title {
  font-size: 16px;
  margin: 0 0 8px;
}

.process-text {
  margin: 0;
  line-height: 1.8;
  color: var(--ink, #222);
  font-size:90%;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .process-item {
    flex-direction: column;
  }
  .process-photo img {
    width: 100%;
  }
}


.process-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 0;
  margin: 40px 0 0;
  list-style: none;
}

.process-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.process-step {
  /*background: var(--accent); */
  color: #CBB47A;
  font-size: 18px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 5px;
  letter-spacing: 0.06em;
}

.process-title {
  font-size: 18px;
  margin: 8px 0;
}

.process-text {
  line-height: 1.7;
}

@media (max-width: 768px) {
  .process-list {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   Obisugi Page: Border-Radius Unification Patch
   （飫肥杉ページの角丸をサイト全体と統一）
   ============================================ */

/* ---- 共通：画像全般に16pxの角丸 ---- */
.obisugi-about__photo img,
.obisugi-value__photo img,
.obisugi-usage__item img {
  border-radius: var(--radius);
}

/* ---- 特徴カード（飫肥杉が選ばれる理由） ---- */
.obisugi-feature,
.obisugi-feature img {
  border-radius: var(--radius);
}

/* ---- 主な用途（必要なら画像が入る場合用） ---- */
.obisugi-usage__item {
  border-radius: var(--radius);
}

/* ---- tw-feature-list（もともと5px → 既存デザインと統一） ---- */
.tw-feature-list li,
.tw-feature-thumb img {
  border-radius: var(--radius) !important;
}

/* ---- その他、写真扱いの要素すべてに丸み付与 ---- */
.obisugi-about img,
.obisugi-value img,
.obisugi-features img,
.obisugi-usage img,
.obisugi-cta img {
  border-radius: var(--radius);
}


/* 飫肥杉 実験スライダー用 */
.obi-exp-slider {
  margin: 2rem auto;
}

/* スライド内コンテンツ（画像＋キャプション） */
.obi-slide-inner {
  width: 40%;           /* デスクトップでは横幅40％（※後ろで上書きあり） */
  max-width: 420px;
  margin: 0 auto;
}

.obi-slide-inner img {
  display: block;
  width: 100%;
  height: auto;
}

/* キャプション */
.obi-slide-caption {
  margin-top: 0.5em;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* スマホでは少し大きめに */
@media (max-width: 768px) {
  .obi-slide-inner {
    width: 80%;
    max-width: none;
  }
}

/* --- シロアリ比較実験ブロック --- */

.obi-termite {
  margin-top: 1.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
}

.obi-termite__title {
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ===== シロアリ比較実験：全体幅を統一 ===== */
.obi-termite__cards {
  max-width: 1100px;   /* ← process-list と同じ値にする */
  margin: 40px 0 ;
}

/* カード3枚：PCは横並び */
.obi-termite__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .obi-termite__cards {
    grid-template-columns: 1fr;
  }
}


.obi-termite__card {
  flex: 1 1 0;
  background: #fafafa;
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.obi-termite__card h5 {
  font-size: 0.98rem;
  margin-bottom: 0.6rem;
}

.obi-termite__card p {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* スライダー全体の余白 */
.obi-termite__slider {
  margin-top: 1rem;
}

/* スマホ時：カード縦並び／画像は大きめに */
@media (max-width: 768px) {
  .obi-termite__cards {
    flex-direction: column;
    gap: 1rem;
  }

  .obi-termite__card {
    padding: 1.1rem 1.2rem;
  }

  .obi-exp-slider .obi-slide-inner {
    width: 80%;
    max-width: none;
  }
}


/* =========================================================
   飫肥杉 シロアリ比較実験：シンプルスライダー
   （グレー背景なし・ただ横にスライドするだけ）
========================================================= */

/* カードとスライダーを同じ箱幅＆中央寄せに */
.obi-termite__cards,
.obi-termite__slider {
  margin-left: auto;
  margin-right: auto;
}

/* スライダー本体 */
.obi-simple-slider {
  position: relative;
  overflow: hidden;         /* 画面外に出たスライドは隠す */
  width: 100%;
  margin-top: 1.5rem;
}

/* 横並びトラック */
.obi-simple-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* 1枚1枚のスライド */
.obi-simple-slide {
  min-width: 100%;          /* 1画面 = 1スライド */
  box-sizing: border-box;
}

/* 中身（画像＋キャプション）のレイアウト */
.obi-slide-inner {
  width: 100%;              /* 箱いっぱい */
  max-width: 760px;         /* 画像の実サイズに合わせて調整してOK */
  margin: 0 auto;
}

.obi-slide-inner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.obi-slide-caption {
  margin-top: 0.5em;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ナビゲーション矢印（左右） */
.obi-simple-prev,
.obi-simple-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.obi-simple-prev {
  left: 8px;
}

.obi-simple-next {
  right: 8px;
}

/* ドット */
.obi-simple-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.75rem;
}

.obi-simple-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}

.obi-simple-dots button.is-active {
  background: #333;
}

/* スマホ時のちょい調整 */
@media (max-width: 768px) {
  .obi-slide-inner {
    max-width: 100%;
  }

  .obi-simple-prev,
  .obi-simple-next {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}


/* =========================================================
   木の持つ力（写真＋テキストの2カラム）
========================================================= */

.woodpower-block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.woodpower-photo {
  flex: 0 0 42%;             /* 写真の幅 */
}

.woodpower-photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.woodpower-text {
  flex: 1;
}

.woodpower-text h3 {
  font-size: 1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.woodpower-text p {
  font-size: 0.9rem;
  line-height: 1.8;
}

/* スマホ時は縦並び */
@media (max-width: 768px) {
  .woodpower-block {
    flex-direction: column;
  }
  .woodpower-photo {
    width: 100%;
    margin-bottom: 1rem;
  }
}



/* ===== サムネ付きページ内リンク ===== */

.product-nav-thumbs {
  margin: 32px 0 40px;
}

.product-nav-thumbs ul {
  display: flex;
  gap: 18px 28px;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

.product-nav-thumbs li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f6f4ef;
  border-radius: 6px;
  color: #333;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.product-nav-thumbs li a:hover {
  background: #e7e1d4;
  transform: translateY(-2px);
}

.product-nav-thumbs img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .product-nav-thumbs ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .product-nav-thumbs li a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}


/* =========================================================
   加工製品：不揃いグリッドギャラリー（羽目板など）
   ========================================================= */

.product-gallery {
  margin-top: 32px;
}

/* ベースとなるグリッド */
.product-gallery--masonry {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(7, 1fr);
}

/* 各セル */
.product-gallery--masonry a {
  display: block;
}

/* 画像の基本スタイル */
.product-gallery--masonry img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
}

/* 「不揃い」にするパターン指定（7枚ごとに繰り返し） */
/* ★ここは「a:nth-child」にするのが超重要ポイント！ */
.product-gallery--masonry a:nth-child(7n + 1) {
  grid-column: span 3;
  grid-row: span 2;
}

.product-gallery--masonry a:nth-child(7n + 2),
.product-gallery--masonry a:nth-child(7n + 3) {
  grid-column: span 4;
  grid-row: span 1;
}

.product-gallery--masonry a:nth-child(7n + 4) {
  grid-column: span 4;
  grid-row: span 2;
}

.product-gallery--masonry a:nth-child(7n + 5) {
  grid-column: span 4;
  grid-row: span 2;
}

.product-gallery--masonry a:nth-child(7n + 6) {
  grid-column: span 3;
  grid-row: span 1;
}

.product-gallery--masonry a:nth-child(7n + 7) {
  grid-column: span 3;
  grid-row: span 3;
  aspect-ratio: 3 / 5;
}

/* 7枚パターンで「余りが5枚」(= 7n+4, 7n+5 で終わる) のときだけ
   最後の2枚を 4 + 3 で同じ行に固定する */
.product-gallery--masonry a:nth-last-child(2):nth-child(7n + 4) {
  grid-column: 1 / span 4;
}

.product-gallery--masonry a:last-child:nth-child(7n + 5) {
  grid-column: 5 / span 3;
}


/* スマホでは素直に2カラムにして見やすく */
@media (max-width: 768px) {
  .product-gallery--masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: row;
  }

  .product-gallery--masonry a {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .product-gallery--masonry img {
    aspect-ratio: 4 / 3;
  }
}


/* =========================================================
   Lightbox2 調整（ギャラリー用）
   ========================================================= */

/* ギャラリー画像のリンクは下線を消す */
.product-gallery--masonry a {
  border-bottom: none;
}

/* Lightbox内キャプション */
.lb-data .lb-caption {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Lightbox内の「1 / 3」などの番号 */
.lb-data .lb-number {
  font-size: 0.8rem;
}


/* カタログ一覧 */
.catalog-list__items {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .catalog-list__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.catalog-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px 20px 18px;
  background: #fafafa;
}

.catalog-card h3 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.catalog-card__desc {
  font-size: 0.9rem;
  margin: 0 0 0.6rem;
}

.catalog-card__meta {
  font-size: 0.8rem;
  color: #666;
  margin: 0 0 0.8rem;
}

.catalog-card__btn {
  margin: 0;
}

.btn-download {
  display: inline-block;
  padding: 0.55em 1.4em;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  background: #333;
  color: #fff;
}

.btn-download::before {
  content: "↓ ";
  font-size: 1.1em;
}

.btn-download:hover {
  opacity: 0.8;
}

.catalog-note {
  margin-top: 24px;
  font-size: 0.8rem;
  color: #666;
}


/* =========================
   Catalog Download Page
   ========================= */

/* お問い合わせフォームと同じような白カード */
.tw-card {
  max-width: 760px;     /* ← ★ お問い合わせフォームと同じくらい */
  margin: 0 auto;       /* ← ★ 中央寄せ */
  background: #fff;
  border-radius: 8px;
  padding: 24px 20px 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e5e5;
}

@media (min-width: 768px) {
  .tw-card {
    padding: 32px 32px 36px;
  }
}

/* =========================
   Catalog layout (PC調整)
   ========================= */
@media (min-width: 768px) {

  /* まずは1カラム扱いにする（横幅を扱いやすくするため） */
  .catalog-list__items {
    display: block;   /* ← grid をやめて、縦並びに */
  }

  /* グレーのカード本体を「白カードの90％」にして中央寄せ */
  .tw-card .catalog-card {
    width: 90%;               /* ← 幅をガツンと 90% 指定 */
    max-width: none;          /* ← もし前に max-width 指定してたら無効化 */
    margin-left: auto;        /* 中央寄せ */
    margin-right: auto;
  }
}

@media (min-width: 768px) {
  .catalog-list__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.catalog-card {
  border-radius: 6px;
  border: 1px solid #eee;
  background: #fafafa;
  padding: 16px 16px 18px;
}

.catalog-card h3 {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.catalog-card__desc {
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

.catalog-card__meta {
  font-size: 0.8rem;
  color: #666;
  margin: 0 0 0.8rem;
}

.catalog-card__btn {
  margin: 0;
}

/* PDFダウンロード ボタン風 */
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  padding: 0.55em 1.6em;
  border-radius: 999px;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid #333;
  background: #333;
  color: #fff;
  line-height: 1.2;
}

.btn-download::before {
  content: "↓";
  font-size: 1.1em;
}

.btn-download:hover {
  opacity: 0.85;
}

/* 注意書き */
.catalog-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: #666;
}



/* カード内部レイアウト */
.catalog-card__inner {
  display: flex;
  flex-direction: column;     /* ★スマホは縦並び */
  gap: 1rem;
}

/* PCでは横並び */
@media (min-width: 768px) {
  .catalog-card__inner {
    flex-direction: row;      /* ★PCは横並び */
    align-items: flex-start;
  }

  .catalog-card__thumb {
    flex: 0 0 180px;          /* 画像幅 */
  }

  .catalog-card__body {
    flex: 1;
  }
}

/* 表紙画像 */
.catalog-card__thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* テキストエリア */
.catalog-card__body h3 {
  margin-top: 0;
}


/* =========================
   ハンバーガーメニュー（SP）
   ========================= */
@media (max-width: 1023px) {
  /* 初期状態ではメニューを隠す */
  #global-nav {
    position: fixed;
    top: 60px;              /* ヘッダーの高さに合わせて調整 */
    left: 0;
    right: 0;
    background: #fff;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    z-index: 1000;
  }

  /* data-open が付いたら表示 */
  #global-nav[data-open="true"] {
    transform: translateY(0);
  }

  /* 背景の暗幕 */
  .nav-backdrop[hidden] {
    display: none;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 999;
  }
}



/* =========================
   SP時のヘッダーお問い合わせブロック調整
   ========================= */
@media (max-width: 767px) {

  /* すべての問い合わせ行をいったん中央寄せに統一 */
  .header-contact .contact-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    gap: 4px 6px;
    width: 100%;
  }

  /* お問い合わせフォーム（2行目）もこれで中央寄せになる */

  /* メール行だけ 1ブロックとして2行目に落とす */
  .header-contact .mail-row {
    flex-basis: 100%;     /* ← これで FAX の次に改行して独立行に */
    justify-content: center;
    gap: 6px;
  }

  /* メールアイコン＋アドレスは改行させない */
  .header-contact .mail-row .ci,
  .header-contact .mail-row .contact-link {
    white-space: nowrap;
  }
}
