/* ============================================================
   吉村製材 — index.css
   トップページ専用スタイル
   ============================================================ */

/* ── ヒーロー動画 ── */
.hero-video {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--header-h));
  min-height: 300px;
  max-height: 700px;
  overflow: hidden;
  background: #1a1410;
}

/* 背景動画（デスクトップ：cover でトリミング） */
.hero-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* オーバーレイ */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 10, 0.45);
}

/* テキスト＋再生ボタン */
.hero-video-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 0 20px;
}
.hero-video-catch1 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero-video-catch2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  margin-bottom: 32px;
}

/* 再生ボタン */
.hero-video-play {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-video-play:hover {
  opacity: 1;
  transform: scale(1.06);
}
.hero-play-icon {
  width: 80px;
  height: 72px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* ── 世界木材ニュース（トップ） ── */
.worldnews-section {
  position: relative;
  background: #fff url(../img/index/news_bk.png) no-repeat center / 100% auto;
  padding: 80px 0 96px;
  overflow: hidden;
}
.worldnews-section .news-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  text-decoration: none;
  transition: background var(--transition);
}
.worldnews-section .news-link:hover {
  background: var(--w100);
}
.worldnews-section .news-item {
  border-bottom: 1px dashed var(--w300);
}
.worldnews-section .news-item:first-child {
  border-top: 1px dashed var(--w300);
}
.worldnews-section .news-cat {
  border-radius: 999px;
  color: #fff;
	padding: 0 8px;
	font-size: 12px;
}

/* ── ニュースページ専用ヘッダー（news/index.php） ── */
.newspage-head {
  padding: 16px 0 24px;
  border-left: 4px solid var(--forest);
  padding-left: 20px;
  margin-bottom: 8px;
}
.newspage-head-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--forest);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.newspage-head-ja {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.newspage-head-sub {
  font-size: 13px;
  font-weight: 300;
  color: var(--sub);
  letter-spacing: 0.06em;
}
.news-head-line {
  height: 6px;
  background: linear-gradient(to right, var(--forest) 250px, var(--chestnut) 250px);
  margin-bottom: 8px;
  opacity: 1;
}

/* lang バッジ（日本語／English） */
.news-cat--ja { background: var(--forest); }
.news-cat--en { background: #1A5276; }

/* ── アクセスバー ── */
.access-bar {
  background: var(--walnut);
  color: #F7F2F0;
  padding: 12px 0;
}
.access-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.06em;
}
.access-bar-inner strong { font-weight: 500; color: #DEB08A; }

/* ── サービスカード ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--cream);
  border: 1px solid var(--w200);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  display: block;
}
.service-card:hover {
  border-color: var(--w300);
  box-shadow: 0 4px 16px rgba(83,66,59,0.1);
  transform: translateY(-3px);
}
.service-card-photo {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--w200);
  position: relative;
}
.service-card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-photo img { transform: scale(1.05); }
.service-card-bar { height: 3px; background: var(--chestnut); }
.service-card-body { padding: 18px 20px 22px; }
.service-card-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.service-card-name-en {
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--sub);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.service-card-desc {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text);
  line-height: 1.85;
}
.service-card-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--chestnut);
  margin-top: 14px;
}
.service-card-more::after { content: '→'; font-size: 12px; }

/* ── 会社概要セクション ── */
.about-section {
  position: relative;
  z-index: 1;
	overflow: visible;
  background-color: #f5f0e8;
  background-image: url(../img/index/about_bk.jpg);
  background-size: cover;
  background-position: center;
  padding: 160px 0 80px; /* 上部に overlap 写真分の余白 */
}

/* 引用テキスト */
.about-quote {
  text-align: right;
  padding: 0 0 48px;
}
.about-quote-main {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.about-quote-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  letter-spacing: 0.06em;
}

/* 拠点グリッド（4列） */
.about-facility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 16px;
  margin-top: 32px;
}

@media (max-width: 860px) {
  .about-section { padding: 80px 0 60px; }
  .about-quote { text-align: left; }
  .about-facility-grid { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
}
@media (max-width: 560px) {
  .about-facility-grid { grid-template-columns: 1fr 1fr; }
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.about-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.about-photo:hover img { transform: scale(1.03); }
.about-lead {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: 0.07em;
  line-height: 1.65;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 3px solid var(--chestnut);
}
.about-body {
  font-size: 13.5px;
  font-weight: 300;
  color: var(--text);
  line-height: 2.1;
  margin-bottom: 24px;
}
.about-specs {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--w200);
}
.about-spec-row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--w200);
  font-size: 12.5px;
}
.about-spec-label {
  width: 80px;
  font-weight: 500;
  color: var(--sub);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}
.about-spec-value { font-weight: 300; color: var(--text); }


/* ── キャッチフレーズバナー ── */
.catchphrase-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.catchphrase-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 450px;
  object-position: center 40%;
}
.catchphrase-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 80px;
	justify-content: center;
}
.catchphrase-text {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.2vw, 46px);
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.25);
  line-height: 1;
}

/* ── 採用情報 ── */
.recruit-section {
  background: #fff;
  padding: 72px 0 80px;
}
.recruit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 32px;
}
.recruit-photo {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.recruit-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.recruit-photo:hover img { transform: scale(1.03); }
.recruit-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 20px;
}
.recruit-body {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 2.2;
  letter-spacing: 0.04em;
}
@media (max-width: 860px) {
  .recruit-grid { grid-template-columns: 1fr; gap: 28px; }
  /* ↓ 追加：写真を上、テキストを下に */
  .recruit-copy { order: 2; }
  .recruit-photo { order: 1; }
}

/* ── アルサンクバナー ── */
.alsanq-banner {
  width: 100%;
  background: var(--walnut-dark);
  border-radius: 4px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  min-height: 110px;
}
.alsanq-banner-stripe { background: var(--chestnut); width: 6px; flex-shrink: 0; }
.alsanq-banner-body { flex: 1; display: flex; align-items: center; padding: 22px 32px; }
.alsanq-banner-text { flex: 1; }
.alsanq-banner-en {
  font-size: 10px; font-weight: 300; letter-spacing: 0.26em;
  color: rgba(244,237,230,0.45); text-transform: uppercase; margin-bottom: 5px;
}
.alsanq-banner-name {
  font-family: var(--font-serif); font-size: 21px; font-weight: 600;
  color: #F4EDE6; letter-spacing: 0.1em; margin-bottom: 6px;
}
.alsanq-banner-desc {
  font-size: 12px; font-weight: 300;
  color: rgba(244,237,230,0.7); letter-spacing: 0.05em; line-height: 1.75;
}
.alsanq-banner-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.alsanq-banner-tag {
  font-size: 10px; letter-spacing: 0.06em; color: #DEB08A;
  background: rgba(115,66,36,0.38); border: 1px solid rgba(222,176,138,0.3);
  padding: 3px 10px; border-radius: 2px;
}
.alsanq-banner-cta { margin-left: 36px; flex-shrink: 0; }
.btn-alsanq {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em;
  color: #F4EDE6; background: var(--chestnut); border: none;
  padding: 11px 26px; border-radius: 2px; text-decoration: none;
  transition: background var(--transition);
}
.btn-alsanq:hover { background: var(--chestnut-lt); }

/* ============================================================
   事業・商品案内（Products）
   ============================================================ */
.news-section       { position: relative; z-index: 1; }
.section.section--tinted { position: relative; z-index: 1; }

.products-section {
  position: relative;
  z-index: 2;
  overflow: visible;
  background-color: var(--w100);
  background-image: url(../img/index/products_bk.jpg);
  background-size: 100% auto;
  background-position: center;
  padding: 80px 0 100px;
}

/* オーバーラップ写真 */
.products-overlap {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.products-overlap--tr {          /* newsセクション右下に被る */
  top: -120px; right: 0;
  width: 571px; height: 283px;
  /*border-radius: 0 0 0 50%;*/
}
.products-overlap--bl {          /* aboutセクション左上に被る */
  bottom: -140px; left: 0;
  width: 560px; height: 279px;
  /*border-radius: 0 24px 24px 0;*/
}
.products-overlap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* リードテキスト */
.products-lead {
  text-align: center;
  padding: 40px 0 48px;
}
.products-lead-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.products-lead-sub {
  font-size: 14px;
  font-weight: 600;
  color: var(--sub);
  line-height: 2;
  letter-spacing: 0.06em;
}

/* 商品グリッド */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
  margin-bottom: 48px;
}
.prod-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--transition);
}
.prod-card:hover { transform: translateY(-4px); }
.prod-label {
	font-family: var(--font-san);
  font-size: 18px;
  font-weight: 500;
  color: var(--walnut);
  letter-spacing: 0.06em;
  text-align: center;
}
.prod-photo {
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--w200);
}
.prod-photo img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.prod-card:hover .prod-photo img { transform: scale(1.05); }

/* CTAボタン */
.products-cta {
  display: flex;
  justify-content: center;
}
/* チェーンソー装飾 */
.products-chainsaw {
  position: absolute;
  right: 180px;
  bottom: 60px;
  width: 80px;
  height: auto;
  pointer-events: none;
}
.products-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #fff;
  background: var(--forest);
  border: none;
  border-radius: 999px;
  padding: 14px 48px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}
.products-btn:hover {
  background: var(--forest);
  filter: brightness(1.1);
  transform: translateY(-1px);
}


/* ============================================================
   お知らせ／スタッフブログ（News）
   ============================================================ */
.news-section {
  position: relative;
  background: #fff url(../img/index/news_bk.png) no-repeat center / 100% auto;
  padding: 80px 0 96px;
  overflow: hidden;
}

.news-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.news-head-dot {
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--forest);
  flex-shrink: 0;
}
.news-head-ja {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 600;
  color: var(--walnut);
  letter-spacing: 0.08em;
}
.news-head-en {
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: 0.12em;
}
.news-head-line {
  height: 6px;
  background: linear-gradient(to right, var(--forest) 250px, var(--chestnut) 250px);
  margin-bottom: 8px;
}

.news-list {
  list-style: none;
  margin-bottom: 32px;
}
.news-item { border-bottom: 1px dashed var(--w300); }
.news-item:first-child { border-top: 1px dashed var(--w300); }
.news-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  text-decoration: none;
  transition: background var(--transition);
}
.news-link:hover { background: var(--w100); }
.news-date {
  font-size: 13px;
  font-weight: 300;
  color: var(--sub);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 88px;
}
.news-title {
  flex: 1;
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.news-link:hover .news-title { color: var(--walnut); }

.news-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
  padding: 5px 18px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 120px;
  text-align: center;
  background: var(--sub);
}
.news-cat--upr       { background: #2E86C1; }
.news-cat--alsanq    { background: #884EA0; }
.news-cat--etc       { background: #839192; }
.news-cat--yoshimura { background: #5DADE2; }
.news-cat--lumbers   { background: #1A5276; }
.news-cat--nagoya    { background: #2E4057; }
.news-cat--azumino   { background: #E8962A; }
.news-cat--numazu    { background: #1E8449; }
.news-cat--sales1    { background: #5B901C; }
.news-cat--factory1  { background: #7D6608; }
.news-cat--factur1   { background: #A04000; }
.news-cat--sales3    { background: #922B21; }
.news-cat--sales2    { background: #C0392B; }
.news-cat--soumu     { background: #52BE80; }
.news-cat--saimzai   { background: #117A65; }
.news-cat--shizuoka  { background: #D4AC0D; }
.news-cat--konpou  { background: #1F618D; }
.news-cat--factur3 { background: #6E2F1A; }

.news-item--empty p {
  padding: 24px 4px;
  color: var(--sub);
  font-size: 14px;
}

.news-more {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.news-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--forest);
  background: #fff;
  border: 2px solid var(--forest);
  border-radius: 24px;
  padding: 10px 36px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.news-more-btn:hover { background: var(--forest); color: #fff; }

/* ============================================================
   レスポンシブ（すべてのメディアクエリを末尾に集約）
   ============================================================ */
@media (max-width: 860px) {
  /* 動画：スマホはフロー配置で黒帯なし */
  .hero-video {
    height: auto;
    min-height: unset;
    max-height: none;
    background: transparent;
  }
  .hero-video-bg {
    position: relative;
    width: 100%;
    height: auto;
    object-fit: initial;
  }
  .hero-video-overlay { display: none; }
  .hero-video-content { display: none; }

  .hero-play-icon { width: 60px; height: 54px; }
  .news-section { padding: 48px 0 56px; }
  .products-section { padding: 48px 0 60px; }
  .products-overlap { display: none; }
  .products-lead-title { font-size: 18px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .alsanq-banner-body { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 20px; }
  .alsanq-banner-cta { margin-left: 0; }
	
	.products-chainsaw { display: none; }
}

@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
  .news-link { gap: 12px; }
  .news-cat { min-width: 90px; font-size: 10.5px; padding: 4px 10px; }
	
	.worldnews-section .news-link {
  flex-wrap: wrap;
  gap: 6px;
}
.worldnews-section .news-date {
  width: 100%;
  order: 1;
}
.worldnews-section .news-cat {
  order: 2;
}
.worldnews-section .news-title {
  width: 100%;
  order: 3;
}
}

/* ── スタッフブログ サムネイル（トップ） ── */
.news-thumb {
  width: 180px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: auto;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
}
.news-arrow {
  font-size: 14px;
  color: var(--sub);
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .news-thumb { display: none; }
}