@charset "UTF-8";

/* ============================================================
   茨木ナミテイ株式会社 創立50周年記念LP
   style.css
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --red:       #C8000A;
  --red-dark:  #9E0008;
  --navy:      #1A2A4A;
  --navy-dark: #0f1c33;
  --gray:      #666666;
  --gray-light:#F2F2F2;
  --white:     #FFFFFF;
  --black:     #000000;

  --font-sans:  'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --font-en:    'Oswald', sans-serif;
  --font-num:   'Bebas Neue', cursive;

  /* Fluid typography: clamp(min, preferred, max) */
  --fs-xs:   clamp(0.7rem,  1.5vw, 0.8rem);
  --fs-sm:   clamp(0.8rem,  1.8vw, 0.9rem);
  --fs-base: clamp(0.875rem,2vw,   1rem);
  --fs-md:   clamp(1rem,    2.5vw, 1.125rem);
  --fs-lg:   clamp(1.125rem,3vw,   1.5rem);
  --fs-xl:   clamp(1.5rem,  4vw,   2rem);
  --fs-2xl:  clamp(1.75rem, 5vw,   2.75rem);
  --fs-3xl:  clamp(2.5rem,  8vw,   5rem);
  --fs-hero: clamp(2rem,    6vw,   3.5rem);
  --fs-badge-num: clamp(3.5rem, 12vw, 8rem);

  --max-w: 1400px;
  --px: clamp(1rem, 5vw, 2rem);

  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--black);
  line-height: 1.85;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
em { font-style: normal; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ============================================================
   PAGE 2-LAYER STRUCTURE
   Layer 1: 背景SVG  /  Layer 2: コンテンツ
   ─────────────────────────────────────────
   SVG viewBox: 0 0 455.3 2472.5
   青矩形の幅:  415px（viewBox座標）
   目標: 画面幅1400px時に青領域が415pxになる
   → SVG表示幅 = 画面幅 × (455.3 / 1400)
      青領域 = SVG表示幅 × (415 / 455.3)
             = 画面幅 × (415 / 1400)
             = 1400 × (415/1400) = 415px ✓
   ============================================================ */

/* Layer 1: 背景（fixed固定・左寄せ）
   ─────────────────────────────────────
   SVG viewBox: 0 0 455.3 2472.5
   青矩形幅: 415px（viewBox座標）
   background-size で横幅を制御:
     横: calc(100vw * 455.3 / 1400) ← SVG全体幅
       → 青領域 = SVG幅 × (415/455.3)
                = 100vw × (415/1400) = 29.64vw ✓
     縦: 100% ← 常に画面高さにフィット
   ───────────────────────────────────── */
.page-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 415px;
  height: 1700px;
  z-index: 0;
  pointer-events: none;
  background-color: #274bff;
  clip-path: polygon(0 0, 100% 0%, 100% 75%, 75% 100%, 0 100%, 0% 50%);
 }

/* Layer 2: コンテンツ（スクロール可能） */
.page-content {
  position: relative;
  z-index: 1;
}

/* ============================================================
   HEADER
   ============================================================ */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px var(--px) 110px var(--px);
  gap: 0 170px;
}

.logo-placeholder {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.03em;
}

.header-label {
  font-size: var(--fs-base);
  letter-spacing: 0.05em;
}

.header-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
}

/* hero-bgをstaticフローに戻し、画像が高さを決める
   position: static にすることで .hero-badge の基準は .hero になる */
.hero-bg {
  position: static;
  width: 100%;
  line-height: 0;
}

.hero-img-placeholder {
  width: 100%;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
}

/* pictureもブロック表示に */
.hero-img-placeholder picture {
  display: block;
  width: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(15,28,51,0.25) 0%,
    rgba(15,28,51,0.5)  60%,
    rgba(15,28,51,0.75) 100%
  );
}

/* Badge (右上)
   ─────────────────────────────────────────
   コンテンツ最大幅1400px、右端から105px の位置を維持
   画面幅 > 1400px のとき: 左右余白 = (100vw - 1400px) / 2
   right = 余白 + 105px = calc((100vw - 1400px) / 2 + 105px)
   画面幅 < 1400px のとき: min値の 1rem にフォールバック
   ───────────────────────────────────────── */
.hero {
    margin-bottom: 96px;
}
.hero-badge {
  position: absolute;
  width: 100%;
  max-width: 322px;
  min-height: 400px;
  height: 100%;
  right: max(calc((100vw - 1400px) / 2 + 105px), 1rem);
  z-index: 200;
  margin-top:-85px;
}

.badge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-badge img {
  width: 100%;
  height: auto;
  display: block;
}

.badge-place {
  font-family: var(--font-en);
  font-size: clamp(0.55rem, 1.5vw, 0.85rem);
  letter-spacing: 0.15em;
  font-weight: 600;
  line-height: 1;
}

.badge-num {
  font-family: var(--font-num);
  font-size: var(--fs-badge-num);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: var(--white);
  display: block;
}

.badge-since {
  font-family: var(--font-en);
  font-size: clamp(0.55rem, 1.5vw, 0.85rem);
  letter-spacing: 0.18em;
  line-height: 1;
  border-top: 1px solid rgba(255,255,255,0.6);
  padding-top: 0.3em;
  margin-top: 0.2em;
}

/* Headline (左下) */
.hero-content {
  position: absolute;
  bottom: clamp(1.5rem, 5vw, 3rem);
  left: clamp(1rem, 5vw, 3rem);
  z-index: 2;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.greeting {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--white);
}
 
.greeting::after {
  content: '';
  position: absolute;
  bottom: 22%;
  right: 0%;
  width: clamp(200px, 30vw, 420px);
  aspect-ratio: 1 / 0.866;
  background: var(--gray-light);
  clip-path: polygon(
    25% 0%,
    75% 0%,
    100% 50%,
    75% 100%,
    25% 100%,
    0% 50%
  );
  z-index: 0;
  pointer-events: none;
}
 
.greeting .container {
  position: relative;
  z-index: 1;
}
.section-dots {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot--gray { background: var(--gray); }
.dot--red  { background: var(--red); }

.greeting-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.greeting-title em {
  color: var(--red);
}

.greeting-body {
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  border: 1px dashed #ccc;
}

.greeting-text p {
  font-size: var(--fs-base);
  color: #333;
  line-height: 2;
  margin-bottom: 1em;
}

.greeting-sig {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
}

.sig-title {
  font-size: var(--fs-xs);
  color: var(--black);
  letter-spacing: 0.08em;
}

.sig-name {
  font-family: var(--font-serif);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-title h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 7em;
  height: 7em;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 50px;
}
.greeting-title span {
  color: #274bff;
}
 
/* ============================================================
   HISTORY
   ============================================================ */
.history {
  padding-bottom:6rem;
  background: var(--white);
}
 
.history-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
 
.history-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
 
.history-icon-label {
  font-family: var(--font-en);
  font-size: var(--fs-md);
  letter-spacing: 0.15em;
  color: var(--red);
  font-weight: 600;
}
 
.history-title {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--black);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
 
.history-title em {
  color: var(--red);
}
 
.history-legend {
  display: none; /* カラムラベルで代替 */
}
 
/* ---- カラムラベル ---- */
.tl-col-labels {
  display: grid;
  grid-template-columns: 1fr clamp(80px, 12vw, 140px) 1fr;
  gap: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--black);
  padding-bottom: 0.75rem;
}
 
.tl-col-label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 1rem;
}
 
.tl-col-label--company {
  text-align: right;
  color: var(--red);
  border-right: 1px solid var(--gray-light);
}
 
.tl-col-label--world {
  text-align: left;
  color: var(--black);
  border-left: 1px solid var(--gray-light);
}
 
/* ---- Timeline 3カラム構造 ---- */
.timeline {
  position: relative;
}
 
.tl-row {
  display: grid;
  grid-template-columns: 1fr clamp(80px, 12vw, 140px) 1fr;
  gap: 0;
  align-items: flex-start;
}
 
.tl-row--future {
  opacity: 0.45;
}
 
/* 左カラム（社内） */
.tl-left {
  padding: 0 clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2rem) 0;
  display: flex;
  justify-content: flex-end;
}
 
/* 右カラム（社会） */
.tl-right {
  padding: 0 0 clamp(1rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.5rem);
  display: flex;
  justify-content: flex-start;
}
 
/* 中央カラム（年号・ライン） */
.tl-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
 
.tl-year {
  font-family: var(--font-num);
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  color: var(--black);
  line-height: 1;
  margin-top: 0.3em;
  text-align: center;
  white-space: nowrap;
}
 
.tl-vline {
  width: 1px;
  flex: 1;
  min-height: 2rem;
  background: var(--gray);
  margin-top: 6px;
}
 
/* ドット */
.tl-dot {
  width: clamp(10px, 2vw, 14px);
  height: clamp(10px, 2vw, 14px);
  border-radius: 50%;
  flex-shrink: 0;
  z-index: 1;
}
 
.tl-dot--company { background: var(--red); box-shadow: 0 0 0 3px rgba(200,0,10,0.2); }
.tl-dot--world   { background: var(--black); }
.tl-dot--both    { background: var(--red); outline: 2px solid var(--black); outline-offset: 2px; }
.tl-dot--last    { background: var(--red); box-shadow: 0 0 0 5px rgba(200,0,10,0.25); }
 
/* カード */
.tl-card {
  width: 100%;
  max-width: 480px;
}
 
.tl-card p {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--black);
  margin: 0;
}
 
.tl-card p + p {
  margin-top: 0.3em;
}
 
.tl-card--company p {
  text-align: right;
}
 
.tl-card--world p {
  text-align: left;
}
 
/* 写真プレースホルダー */
.tl-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.5rem;
  border-radius: 2px;
  overflow: hidden;
}
 
.tl-card-img--placeholder {
  background: var(--gray-light);
}
 
.tl-card--company .tl-card-img {
  /* 写真差し替え時: <img src=img/history/XXXX.jpg> */
}
 
/* フェードイン */
.js-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.tl-row--future.js-fade.is-visible {
  opacity: 0.45;
}

/* ============================================================
   CATCH
   ============================================================ */
.catch {
  background: #0296ea;
  text-align: center;
}
.catch a {
  display: block;
  padding: 15px;
  color:rgba(255,255,255) ;
}


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--gray);
  color: rgba(255,255,255,0.7);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.logo-placeholder--footer {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.logo-placeholder--footer img {
  width: 630px;
  height: auto;
  max-width: 100%;
}

.footer-address {
  font-size: var(--fs-xs);
  line-height: 1.9;
  color: rgba(255,255,255);
}


.footer-copy {
  padding: 1rem var(--px);
  font-size: var(--fs-xs);
  color: rgba(255,255,255);
  letter-spacing: 0.04em;
}

/* ============================================================
   PAGE TOP BUTTON
   ============================================================ */
.pagetop {
  position: fixed;
  bottom: clamp(1rem, 4vw, 2rem);
  right: clamp(1rem, 4vw, 2rem);
  z-index: 90;
  width: clamp(40px, 8vw, 52px);
  height: clamp(40px, 8vw, 52px);
  background: #274bff;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(200,0,10,0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
}

.pagetop.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.pagetop:hover { background: var(--red-dark); }

/* ============================================================
   RESPONSIVE — SP (≤ 600px)
   ============================================================ */
@media (max-width: 600px) {

  /* Hero */
  .hero {
    height: clamp(280px, 90vw, 420px);
  }

  .hero-badge {
    top: 0.5rem;
    right: 0.5rem;
  }

  .hero-content {
    left: 1rem;
    bottom: 1rem;
  }

  /* Greeting: 1col */
  .greeting-body {
    grid-template-columns: 1fr;
  }

  .photo-placeholder {
    max-width: 160px;
    margin: 0 auto;
    aspect-ratio: 3/4;
  }

  .greeting-sig {
    text-align: center;
  }

  /* Timeline */
  .tl-item {
    grid-template-columns: clamp(2rem, 12vw, 3rem) clamp(1rem, 4vw, 1.5rem) 1fr;
  }
    /* page-bg: SP時はヘッダー幅全体・ヘッダーの高さのみ表示 */
  .page-bg {
    width: 100%;
    height: 120px;
  }

  /* Hero */
  .hero {
    height: 100%;
  }
  .header-inner {
	  gap:0;
	  flex-direction: column;
	  color: #fff;
  }
  .hero-badge {
	  display: none;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .pagetop { display: none; }
  .hero { margin-top: 0; }
  .js-fade { opacity: 1 !important; transform: none !important; }
}



