/* 
 * 共通レイアウト用 CSS
 * 
 * ベースは Tailwind CSS のユーティリティを使用しつつ、
 * 細かなブラウザリセットや HTML 要素のデフォルト調整のみを行います。
 * コンポーネントの見た目は、可能な限り Tailwind クラスで指定してください。
 */

/* パンくずリスト */
.ohka-breadcrumb { border-bottom: 1px solid #d1d5db;
  background: #f5f5f5; }
  .ohka-breadcrumb i{ color: #999; }
  .ohka-breadcrumb a{ color: #1e2939; }

/* 横スクロール防止 */
body {
  overflow-x: hidden;
}

/* ヘッダー：ナビリンク */
.nav-item {
  padding-top: 4px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.nav-item--current {
  border-bottom-color: #A22337!important;
}
.nav-item:hover {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

/* ヘッダー：スクロール時に高さを縮小・ボーダーを表示 */
#js-header{
  transition:  0.3s ;
  border-bottom: 1px solid #000;
  z-index: 1000;
}
#js-header.is-scrolled {
  border-bottom: 1px solid #555;
}
.header-logo{
  transition: .3s;
}
#js-header.is-scrolled .header-logo{
  width: 75px;
}

#js-header.is-scrolled #js-header-inner {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.white_bg_box{
  position: relative;
  font-weight: 600;
}
.white_bg_box>*{
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.white_bg_box > * {
  position: relative;
  z-index: 2;
}

.white_bg_box::before{
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: calc(100% + 100px);
  height: calc(100% + 100px);
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  mask-image:
    linear-gradient(to right,  transparent 0px, black 50px, black calc(100% - 50px), transparent 100%),
    linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right,  transparent 0px, black 50px, black calc(100% - 50px), transparent 100%),
    linear-gradient(to bottom, transparent 0px, black 50px, black calc(100% - 50px), transparent 100%);
  -webkit-mask-composite: source-in;
}

.toppage_bg_pattern_01{
  position: absolute;
  top: 10%;
  left: -36%;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(120px, -80px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.toppage_bg_pattern_01.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
.toppage_bg_pattern_01 img,
.toppage_bg_pattern_02 img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.toppage_bg_pattern_02{
  position: absolute;
  top: 0;
  right: -30%;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(120px, -80px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.toppage_bg_pattern_02.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
.toppage_bg_pattern_02 img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.toppage_bg_pattern_03,
.toppage_bg_pattern_04,
.toppage_bg_pattern_05 {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transform: translate(120px, -80px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.toppage_bg_pattern_03.is-visible,
.toppage_bg_pattern_04.is-visible,
.toppage_bg_pattern_05.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
.toppage_bg_pattern_03 img,
.toppage_bg_pattern_04 img,
.toppage_bg_pattern_05 img {
  display: block;
  width: auto;
  height: auto;
}

.toppage_bg_pattern_03 {
  bottom: -16%;
  left: 3%;
  width: 52%;
}
.toppage_bg_pattern_04 {
  bottom: -10%;
  right: -18%;
  width: 38%;
}
.toppage_bg_pattern_05 {
  bottom: 24%;
  left: 6%;
  width: 9%;
}

.footer_black_area:before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: url('/common/img/footer/bg_item_01.svg');
  background-size: auto 100%;
  background-position: top left;
  background-repeat: no-repeat;
}

.red_pattern_link_btn{
  position: relative;
}
  .red_pattern_link_btn:before{
    content: '';
    position: absolute;
    top: 0;
    right: -16px;
    width: 100%;
    height: 100%;
    background-image: url('/common/img/bg/bg_item_05.png');
    background-size: 32px;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translate(120px, -80px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
  }
  .red_pattern_link_btn.is-visible:before{
    opacity: 1;
    transform: translate(0, 0);
  }

  .subpage-main-title-section{
    background-image: url('/common/img/subpage/main_bg_01.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  .subpage-main-title-section h1 span{
    position: relative;
    display: inline-block;
  }
  .subpage-main-title-section h1 span:before{
    content: '';
    position: absolute;
    top: 0;
    right: -21%;
    width: 100%;
    height: 100%;
    background-image: url('/common/img/bg/bg_item_06.png');
    background-size: 88px;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0;
    transform: translate(120px, -80px);
    animation: subpageSpanSlideIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
    z-index: -1;
  }
  @keyframes subpageSpanSlideIn {
    to {
      opacity: 1;
      transform: translate(0, 0);
    }
  }

/* サブページ：背景動画の透明度 */
.subpage-bg-video {
  opacity: 0.5;
}

/* サブページ：バナータイトルアニメーション */
.subpage_main_title_text,
.subpage_main_title_text_sub {
  opacity: 0;
  transform: translateY(20px);
  animation: subpageTitleFadeUp 0.7s ease forwards;
}
.subpage_main_title_text_sub {
  animation-delay: 0.15s;
}
@keyframes subpageTitleFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ABOUT ページ：装飾画像 */
.about-bg-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: translate(80px, -40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-bg-deco.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}
.about-bg-deco img {
  display: block;
  width: 100%;
  height: auto;
}
.about-bg-deco--07 {
  top: 20%;
  left: -2%;
  width: clamp(180px, 28%, 340px);
  opacity: 0;
}
.about-bg-deco--04 {
  bottom: 30%;
  right: -2%;
  width: clamp(160px, 24%, 300px);
  opacity: 0;
}

/* ABOUT ページ：会社情報テーブル */
.about-dl__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.375rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid #e5e7eb;
}
.about-dl__row:first-child {
  border-top: none;
}
@media (min-width: 560px) {
  .about-dl__row {
    grid-template-columns: 9rem 1fr;
    gap: 0 1.5rem;
    align-items: start;
  }
}
@media (min-width: 768px) {
  .about-dl__row {
    grid-template-columns: 12rem 1fr;
  }
}
.about-dl dt {
  font-size: 1rem;
  color: #111827;
  font-weight: 700;
}
.about-dl dd {
  color: #111827;
  line-height: 1.8;
}
@media (max-width: 559px) {
  .about-dl dt {
    font-size: 1rem;
    color: #A22337;
  }
}