/* ======================
    インタースティシャル
======================= */
.interstitial {
  align-items: center;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  opacity: 1;
  position: fixed;
  transition: opacity 1s ease;
  z-index: 9999;
}

.interstitial.fade-out {
  opacity: 0;
}

/* コンテンツを相対配置にして中の画像を絶対配置 */
.interstitial-content {
  height: 100%;
  position: relative;
  width: 100%;
}

/* 背景画像を背景のように全体にカバー表示 */
.interstitial-content img.interstitial-bg {
  left: 0;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

/*ロゴ画像を中央に配置 */
.interstitial-content img.interstitial-logo {
  left: 50%;
  height: auto;
  max-width: 500px;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 1s ease;
  z-index: 2;
}

/* レスポンシブMobile用（～768px） */
@media screen and (max-width: 768px) {
  .interstitial-content img.interstitial-logo {
    max-width: 240px;
  }
}

/* ======================
    Hero Slider
======================= */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100vh;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像をカバーする */
  transition: transform 5s ease-in;
}

/* すべてのスライドは絶対配置。非表示時は clip-path で隠す */
.hero-slide {
  bottom: 0;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  visibility: hidden;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.3s ease;
  z-index: 1;
}

/* active スライドだけ可視化し、中心から全画面に広がる */
.hero-slide.active {
  visibility: visible;
  clip-path: circle(150% at 50% 50%);
  z-index: 2;
}


/* 2) active スライドにだけ scale(1.05) をかける */
.hero-slide.active img {
  transform: scale(1.10);
}

/* 3) もし「戻す」必要があれば previous スライドにもリセット */
.hero-slide:not(.active):not(.previous) img {
  transform: scale(1);
  transition: none; /* 瞬時に戻す */
}

/* 次の切替に備え、前のスライドは最前面に残しておく */
.hero-slide.previous {
  z-index: 1;
}

/* オーバーレイ上にテキストを表示 */
.hero-overlay {
  position: absolute;
  bottom: 10px;
  text-align: center;
  color: var(--color-white);
  z-index: 2;
  padding: 2rem;
}
.hero-overlay h1 {
  font-size: var(--font-size-slogan);
  font-weight: 500;
  line-height: 1.0;
  text-align: left;
}
.hero-overlay h1 span{
  color: var(--color-accent);
}
.hero-overlay p {
  font-size: 1.2rem;
  font-weight: 700;
  text-align: left;
}

/* scroll-marquee の“窓” */
.scroll-marquee {
  bottom: 1rem;
  left: 0.1rem;
  overflow: hidden;
  position: absolute;
  height: 4.5em;
  width: 1.2em;
  z-index: 10;
}

/* クリック可能な全体リンク */
.scroll-marquee-link {
  display: block;
  height: 100%;
  text-decoration: none;
  width: 100%;
}

/* マルチー中身を縦積み */
.marquee-content {
  display: flex;
  flex-direction: column;
  animation: scroll-loop 4s linear infinite;
}

/* テキストを縦書き */
.marquee-item {
  color: var(--color-white);
  font-size: 0.8rem;
  line-height: 1.0rem;
  writing-mode: vertical-rl;
}

.marquee-item .material-symbols-outlined {
  font-size: 0.8rem;
}

/* アニメーションで 2要素分をループ */
@keyframes scroll-loop {
  0%   { transform: translateY(-50%);   }
  100% { transform: translateY(0%); }
}

/* レスポンシブMobile用（～768px） */
@media screen and (max-width: 768px) {
  .hero-overlay h1 {
    font-size: var(--font-size-mobile-slogan);
  }
  .hero-overlay p {
    font-size: 11px;
  }
  .nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    background: rgba(0,0,0,0.8);
    flex-direction: column;
    width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav ul.show {
    opacity: 1;
    pointer-events: auto;
  }
  .hamburger {
    display: flex;
  }
}

/* ======================
    Pick Up セクション (Slider)
======================= */
.pick-up-section .pick-up-inner {
  margin: 0 auto;
  max-width: 1200px;
  padding: 50px 0;
}
.pickup-slider {
  position: relative;
  overflow: hidden;
}
.pickup-slider-wrapper {
  display: flex;
  transition: transform 0.3s ease-in-out;
}
/* ==== ボタン類 ==== */

/* ボタンラッパ: スライダー右上に固めて配置 */
.pickup-controls {
  display: flex;
  gap: 0.8rem;   /* ボタン間の余白 */
  justify-content: end;
  margin-bottom: 10px;
}

/* 円形ボタン (prev/next) の共通スタイル */
.pickup-controls button {
  align-items: center;
  background-color: #fefdfa;    /* やや黄味を帯びた白など(例) */
  border-radius: 50%;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  height: 50px;
  justify-content: center;
  line-height: 1;               /* 縦中央に矢印を配置 */
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
  width: 50px;
}
.pickup-controls button span {
  font-size: 26px;
  font-weight: 300;
}

/* ホバー・フォーカス時の演出 */
.pickup-controls button:hover,
.pickup-controls button:focus {
  background-color: var(--color-secondary);
  color: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,0.3);
}

/* レスポンシブMobile用（～768px） */
@media screen and (max-width: 768px) {
  .pick-up-section {
    padding: 0px 16px 0px 16px;
  }
  .pick-up-section h2 {
    font-size: var(--font-size-mobile-h2);
    margin-bottom: 4px;
  }
  .pick-up-section .headline--subtitle {
    font-size: var(--font-size-mobile-subtitle);
  }
}

/* タブレット～PC (最大幅 1024px) */
@media screen and (min-width: 768px) {
  .pickup-card {
    flex: 0 0 calc((100% / 3) - (16px / 3));
    margin-right: 8px;
  }
}

/* ======================
    With you セクション
======================= */
/* セクション全体のラップ */
.with-you-section {
  padding: 2rem 1rem 4rem 1rem; /* 適度な余白 */
  background-color: var(--color-white);
}

.with-you-section h2 {
  color: var(--color-secondary);
  font-size: var(--font-size-h2);
  font-weight: lighter;
  line-height: 1.2;
  margin-bottom: 24px;
}
.with-you-section .subtitle {
  color: var(--color-primary);
  font-size: var(--font-size-subtitle);
  font-weight: bold;
}

h2.mobile, .subtitle.mobile {
    display: none;
}

/* コンテンツ横並びレイアウト */
.with-you-inner {
  max-width: 1200px;           /* センタリング用 */
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  
  /* 画像が縦に大きい場合、中央揃えにするなら align-items: center */
}

/* 左側テキスト領域 */
.with-you-text {
  flex: 1;
}

/* 右側画像領域 */
.with-you-image {
  flex: 1;
}

/* 画像を最大幅100%で調整 */
.with-you-image img {
  width: 100%;
  height: auto;
  object-fit: cover; /* 必要ならカット表示にも対応 */
}

/* セクションラベルなど (小文字) */
.with-you-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* サブ見出し */
.with-you-subtitle {
  font-size: 2.0rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* 説明文 */
.with-you-description {
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* レスポンシブ (最大幅 768px) */
@media screen and (max-width: 768px) {
  .with-you-section {
    padding: 0px 16px 64px 16px;
  }
  .with-you-text {
    width: 100%;
  }
  .with-you-text h2, .with-you-text .subtitle {
    display: none;
  }
  h2.mobile, .subtitle.mobile {
    display: block;
  }
  .with-you-section h2 {
    font-size: var(--font-size-mobile-h2);
  }
  .with-you-section .subtitle {
    font-size: var(--font-size-mobile-subtitle);
  }
  .with-you-inner {
    flex-direction: column; /* 縦並びに */
  }
  .with-you-image {
    margin-top: 1.5rem;
  }
  .with-you-title {
    font-size: 2rem;
  }
}

/* ======================
    Business セクション (Left Image & Right Content)
======================= */
/* Business Overview セクション全体 */
.business-overview-section {
  background-color: var(--color-background);
  padding: 2rem 1rem 4rem 1rem; /* 適度な余白 */
}

/* 内部レイアウト：左右の2カラム */
.business-overview-inner {
  align-items: flex-start;
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.business-overview-section h2 {
  color: var(--color-secondary);
  font-size: var(--font-size-h2);
  font-weight: lighter;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.business-overview-section .subtitle {
  color: var(--color-primary);
  font-size: var(--font-size-subtitle);
  font-weight: bold;
}

/* 左ブロック：見出し (h2) を中央に配置 */
.business-left {
  flex: 1;
}

/* 右ブロック：テキスト・ボタン */
.business-right {
  flex: 1;
}
.business-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-top: 12.0rem;
  margin-bottom: 1.5rem;
}

/* レスポンシブ：画面幅768px以下では縦並びに */
@media screen and (max-width: 768px) {
  .business-overview-section h2 {
    font-size: var(--font-size-mobile-h2);
    margin: 0;
  }
  .business-overview-section .subtitle {
    font-size: var(--font-size-mobile-subtitle);
  }
  .business-overview-inner {
    flex-direction: column;
    text-align: center;
  }
  .business-left,
  .business-right {
    width: 100%;
  }
  .business-left {
    text-align: left;
  }
  .business-right {
    text-align: left;
  }
  .business-right .business-description {
    margin-top: 0;
    text-align: left;
  }
  .business-title {
    font-size: 2.5rem;
  }
}

/* ======================
    Business, Technology 共通 slide セクション
======================= */
/* スライド内のレイアウト：左右に分割 */
.slide-content {
  display: flex;
  gap: 48px;
  height: 100%;
  width: 100%;
}
.slide-left,
.slide-right {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 50%;
}

/* 文字のスタイル */
.slide-left {
}
.slide-right {
  text-align: left;
}

/* 画像のスタイル */
.slide-left img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border: 1px solid #ddd;
}
.slide-right img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border: 1px solid #ddd;
}

.slide-content-text {
  height: 100%;
  padding: 30% 0;
  width: 100%;
}

.slide-content-text.mobile,
.slide-content-text .mobile {
  display: none;
}

.slide-content-text-title {
  font-size: var(--font-size-h3);
  font-weight: 700;
}

.slide-content-text-title-en {
  font-size: 2rem;
  font-weight: 600;
}

.slide-content-text-message {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.slide-content-text-description {
  font-weight: 500;
}

/* Indicator（右側に固定） */
.slide-indicator {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  z-index: 10;
}
.slide-indicator ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.slide-indicator li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  margin: 10px 0;
  transition: background 0.3s;
}
.slide-indicator li.active {
  background: var(--color-tertiary);
}

/* レスポンシブMobile用（～768px） */
@media screen and (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    gap: 0;
  }
  .slide-left,
  .slide-right {
    flex-direction: column;
    padding: 16px 16px 0 16px;
    width: 100%;
  }

  .slide-content-text {
    padding: 0;
  }
  .slide-content-text .pc {
    display: none;
  }
  .slide-content-text.mobile,
  .slide-content-text .mobile {
    display: block;
  }
  .slide-content-text-message {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }
  .slide-content-text-description {
    margin-bottom: 20px;
  }
  .slide-content-text-title {
    font-size: var(--font-size-mobile-h3);
  }
  .slide-content-text-title-en {
    font-size: 1.2rem;
  }
  .slide-indicator {
    right: 1rem;
  }
}

/* ======================
    Business slide セクション
======================= */
/* Business セクション全体：高さ 600vh */
.business-section {
  background-color: var(--color-background);
  height: 600vh;
  padding: 2rem 1rem 4rem 1rem; /* 適度な余白 */
  position: relative;
}

/* 内部の sticky コンテナ：画面上部に固定表示（100vh） */
.business-sticky {
  position: sticky;
  top: 0;
  margin: 0 auto;
  max-width: 1200px;
  height: 100vh;
  overflow: hidden;
}

/* 各スライドは全て同じ位置に重ねる（100vh サイズ） */
.business-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}
.business-slide.active {
  opacity: 1;
}

.slide-content-text-title-en.cr {
  color: var(--color-text-cr);
}

.slide-content-text-title-en.house {
  color: var(--color-text-house);
}

.slide-content-text-title-en.od {
  color: var(--color-text-od);
}

.slide-content-text-title-en.etmoku {
  color: var(--color-text-etmoku);
}

@media screen and (max-width: 768px) {
  .business-section .slide-left {
    padding: 60px 0 0 0;
  }
  .business-section .slide-right {
    padding: 0;
  }
}

/* ======================
    Technology セクション
======================= */
/* Technology セクション全体：高さ 600vh */
.technology-section {
  background-color: var(--color-white);
  height: 600vh;
  padding: 2rem 1rem 4rem 1rem; /* 適度な余白 */
  position: relative;
}

.technology-section h2 {
  color: var(--color-secondary);
  font-size: var(--font-size-h2);
  font-weight: lighter;
  line-height: 1.2;
  margin-bottom: 20px;
}
.technology-section .subtitle {
  color: var(--color-primary);
  font-size: var(--font-size-subtitle);
  font-weight: bold;
}

/* 内部のstickyコンテナ：スクロール中も常に画面上部に固定、100vh */
.tech-sticky {
  position: sticky;
  top: 0;
  margin: 0 auto;
  max-width: 1200px;
  height: 100vh;
  overflow: hidden;
}

/* 各スライドは画面内に重ね合わせ、fade 切替えで表示（100vh） */
.tech-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
}
.tech-slide.active {
  opacity: 1;
}

/* レスポンシブMobile用（～768px） */
@media screen and (max-width: 768px) {
  .technology-section h2 {
    font-size: var(--font-size-mobile-h2);
    margin-bottom: 4px;
  }
  .technology-section .subtitle {
    font-size: var(--font-size-mobile-subtitle);
  }

  .technology-section .slide-left {
    padding: 60px 0 0 0;
  }
  .technology-section .slide-right {
    padding: 16px 0 0 0;
  }
}

/* ======================
    News セクション
======================= */
/* セクション全体 */
.news-section {
  background-color: var(--color-white);
  padding: 2rem 1rem 4rem 1rem; /* 適度な余白 */
}

/* 内側コンテナ */
.news-inner {
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
}

.news-section h2 {
  color: var(--color-secondary);
  font-size: var(--font-size-h2);
  font-weight: lighter;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.news-section .subtitle {
  color: var(--color-primary);
  font-size: var(--font-size-subtitle);
  font-weight: bold;
}

/* ニュースリスト */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ニュース1件リンク */
.news-item a {
  color: inherit;
  display: block;
  text-decoration: none;
  transition: color 0.3s;
}

/* アイコンラッパー */
.forward-icon {
  align-items: center;
  display: inline-flex;
  margin-left: auto;
  transition: transform 0.3s;
}
.forward-icon span {
  font-weight: 300;
}

/* ホバーでテキスト色を暗く (任意) */
.news-item a:hover p {
  color: #004da0;
}

/* ホバーで矢印だけ右へ */
.news-item a:hover .forward-icon {
  transform: translateX(4px);
}

/* li 自体のボーダーとマージンはそのまま */
.news-item {
  border-bottom: 1px solid var(--color-border-light);
  padding-top: 1.6rem;
  padding-bottom: 1.6rem;
}
.news-item:first-child {
  border-top: 1px solid var(--color-border-light);
  padding-top: 1.6rem;
}

.news-item-block {
  justify-content: space-between;
}

/* 既存のタグ／日付／本文スタイルはそのまま */
.news-tag {
  background-color: #5a9dda;
  border-radius: 1.2rem;
  color: #fff;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}
.news-tag.release {
  background-color: #f15a22;
}
.news-date {
  color: #666;
  font-size: 0.9rem;
  min-width: 6rem;
  text-align: left;
}
.news-text {
  color: #333;
  flex: 1;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-top: 12px;
}

/* お知らせ一覧ボタンを右下配置 */
.news-more {
  margin-top: 2rem;
  text-align: right; /* 右寄せ */
}

/* レスポンシブ調整 */
@media screen and (max-width: 768px) {
  .news-section h2 {
    font-size: var(--font-size-mobile-h2);
  }
  .news-section .subtitle {
    font-size: var(--font-size-mobile-subtitle);
  }
  .news-item a {
    flex-direction: column;
    gap: 0.5rem;
  }
  .forward-icon {
    margin-left: 0;
  }
  .news-date {
    min-width: auto;
  }
}

/* ======================
   メディアクエリ (レスポンシブ対応)
======================= */
/* スマホ・タブレット向け (最大幅 768px) */
@media screen and (max-width: 768px) {
  .nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    width: 200px;
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .nav ul.show {
    opacity: 1;
    pointer-events: all;
  }
  .hamburger {
    display: flex;
  }
  .business-item-flex {
    flex-direction: column;
  }
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ======================
    50ANNIVERSARY リンク
======================= */
.info-box {
  bottom: 20px;
  padding: 1.5rem 0.5rem;
  position: fixed;
  right: 20px;
  z-index: 1000;
  width: auto;
}

/* 閉じるボタン */
.info-box-close {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 2.0rem;
  line-height: 1;
  position: absolute;
  right: 0px;
  top: 0px;
}

/* リンク */
#info-box .info-box-link {
  background-color: var(--color-white);
  border: 1px solid var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  color: #004da0;
  display: inline-block;
  font-size: 1rem;
  padding: 0.5rem;
  text-decoration: none;
  transition: color 0.2s;
}

#info-box .info-box-link img {
  width: 160px;
}

.info-box.mobile {
  background-color: var(--color-primary);
  border-radius: 10px 0 0 10px;
  display: none;
  height: 160px;
  padding: 8px;
  position: fixed;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  transition: top 0.6s ease;
  width: auto;
  z-index: 1000;
}

.info-box.mobile.scrolled {
  top: 85%;
}

/* リンク */
#info-box-mobile .info-box-link {
}

#info-box-mobile .info-box-link img {
  height: 100%;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  #info-box {
    display: none;
  }
  #info-box-mobile {
    display: block;
  }
}
