/* Mobile baseline: default rules apply below 768px. */
/* 全ページ共通のヘッダー、ナビゲーション、フッター、ページ枠を定義する。 */
/*========================================
  ヘッダー
========================================*/
.top-header, .contents-header {
  position: fixed;
  box-sizing: border-box;
  width: 100%;
  padding: 15px 20px;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-header::before, .contents-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: -1;
}

.top-header__logo, .contents-header__logo {
  width: 97px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.top-header__logo a, .contents-header__logo a {
  width: 100%;
  display: flex;
}

/*========================================
  ヘッダーロゴの設定
  index.phpのロゴは「SVG」
  page-contact.phpとcategory.phpは「PNG」
========================================*/
.top-header__logo svg, .contents-header__logo img {
  width: 100%;
  height: auto;
  fill: #000;
}

/*=======================================
  ハンバーガー
=======================================*/
#nav-toggle {
  display: block;
  position: relative;
  height: 32px;
  width: 36px;
  z-index: 1200;
}

#nav-toggle span {
  width: 100%;
  height: 2px;
  left: 0;
  display: block;
  background: #000;
  position: absolute;
  transition: transform .6s ease-in-out, top .5s ease, opacity .6s ease-in-out;
}

#nav-toggle span:nth-child(1) { top: 0; }
#nav-toggle span:nth-child(2) { top: 14px; }
#nav-toggle span:nth-child(3) { top: 28px; }

/* Open時の挙動 */
.open #nav-toggle span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.open #nav-toggle span:nth-child(2) {
  transform: translateX(24px);
  opacity: 0;
}
.open #nav-toggle span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/*========================================
  ナビゲーション
========================================*/
#gloval-nav {
  position: fixed;
  display: flex;
  background: rgba(255, 255, 255, 0.9);
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 990;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .6s ease, visibility .6s ease;
}

#gloval-nav a {
  display: block;
  color: #000;
  text-decoration: none;
  padding: 24px 0;
  font-size: 24px;
  transition: all 0.4s ease-out;
}

#gloval-nav a:hover {
  opacity: 0.5;
  transition: all 0.4s ease-out;
} 

/* スパンで項目を一塊にする */
#gloval-nav a span {
  display: inline-block;
}

/* 1番目のspanに余白を持たせる */
#gloval-nav a span:first-child {
  margin-right: 0.5em;
  font-weight: bold;
}

#gloval-nav a span:last-child {
  font-size: 0.7em;
  opacity: 0.8;
}

/*========================================
  SNSアイコン
========================================*/
.header__sns {
  display: flex;
  gap: 40px;      /* スマホ時のアイコン間隔 */
  margin-top: 20px;
}

.header__sns a {
  width: 48px;    /* スマホ時のアイコンサイズ */
  padding: 0 !important;
}

.header__sns img {
  width: 100%;
  display: block;
}

/*========================================
  メニュー展開時アニメーション（スマホ版）
========================================*/
#gloval-nav ul li {
  opacity: 0;
  transform: translateX(200px);
  transition: transform .4s ease, opacity .2s ease;
}

#gloval-nav ul li:nth-child(1) { transition-delay: .00s; }
#gloval-nav ul li:nth-child(2) { transition-delay: .06s; }
#gloval-nav ul li:nth-child(3) { transition-delay: .12s; }
#gloval-nav ul li:nth-child(4) { transition-delay: .18s; }
#gloval-nav ul li:nth-child(5) { transition-delay: .24s; }
#gloval-nav ul li:nth-child(6) { transition-delay: .30s; }
#gloval-nav ul li:nth-child(7) { transition-delay: .36s; }
#gloval-nav ul li.nav-sns-item { transition-delay: .42s; }

/* open時の設定 */
.open {
  overflow: hidden;
}
.open #gloval-nav {
  visibility: visible;
  opacity: 1;
}
.open #gloval-nav li {
  opacity: 1;
  transform: translateX(0);
  transition: transform 1s ease, opacity .9s ease;
}

/* メニューの色変更 */
#gloval-nav nav ul li.normalColor a {
  color: #000;
  text-decoration: none;
  list-style: none;
}
#gloval-nav nav ul li.normalColor a:hover {
  color: #666;
  transition: fill 0.3s ease-out;
}

path {
  fill: #000;
  transition: fill 0.3s ease-out;
}

a:hover path {
  fill: #666;
}

/* svgアイコンからmouse out設定
pathに対してfillのため「a:hover」のみでは動作しない*/
.normalColor path,
.changeColor path {
  fill: #000;
  transition: fill 0.3s ease-out;
}

/* svgアイコンのhover設定*/
.normalColor a:hover path,
.changeColor a:hover path {
  fill: #666;
}

#gloval-nav nav ul li.changeColor a {
  color: #000;
  text-decoration: none;
  list-style: none;
}

#gloval-nav nav ul li.changeColor a:hover {
  color: #666;
  text-decoration: none;
  list-style: none;
}

/*========================================
  フッター
========================================*/
.footer {
  background: #000000;
  width: 100%;
  padding: 20px 40px;
  box-sizing: border-box;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
/* 各パーツに名前をつける */
.footer__box {
  width: 160px;
}
/* ロゴとSNSのグループ */
.footer__logo, .footer__logo-jp { width: 100%; }
.footer__logo img, .footer__logo-jp img { width: 100%; display: block; padding-top: 12px;}
.footer__sns {
  display: flex;
  justify-content: space-between; /* アイコンを枠内で均等配置 */
  width: 100%;
  padding-top: 12px;
}
.footer__sns a { width: 34px; }
.footer__sns img { width: 100%; }
/* メニュー項目 */
.footer__menu {
  border-left: 1px solid #fff;
  padding-left: 20px;
  list-style: none;
}
/* ul に対してリストマーカーを消す */
.footer__menu .footer-menu {
  display: flex;
  gap: 20px; /* メニュー同士の間隔 */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* li の余白 */
.footer__menu .footer-menu li {
  padding: 0;
}

/* リンクの基本スタイル */
.footer__menu .footer-menu li a {
  color: #FFFFFF;
  font-family: freight-sans-pro, sans-serif;
  font-size: 16px;
  text-decoration: none;
}

/* ホバー */
.footer__menu .footer-menu li a:hover {
  opacity: 0.5;
  transition: all 0.4s ease-out;
}

/* span の装飾（必要なら） */
.footer__menu .footer-menu li a span:first-child {
  margin-right: 0.5em;
  font-weight: bold;
}

.footer__menu .footer-menu li a span:last-child {
  font-size: 0.9em;
  opacity: 0.8;
}

/* コピーライト */
.footer__copyright {
  text-align: center;
  color: #eee;
  font-size: 12px;
  margin-top: 30px;
}

/* ======================================
main 
======================================*/
.main {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
}

.main__inner-title {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 130px 20px 70px 20px;
}

.main__title {
  position: relative;
  display: inline-block;
  color: #000;
  font-family: var(--font-family-display);
  font-weight: 600;
  font-style: normal;
  font-size: 30px;
  letter-spacing: 0.2rem;
  line-height: 1.2;
  text-align: left;
}

.main__inner-detail {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding: 0px 20px 40px 20px;
}

.main__copy {
  position: relative;
  font-family: var(--font-family-display);
  font-weight: 400;
  font-style: normal;
  font-size: 32px;
  letter-spacing: 0.08rem;
  line-height: 1.4;
  text-align: left;
  box-sizing: border-box;
  padding-top: 0px;
}

.main__lead {
  position: relative;
  font-size: 18px;
  letter-spacing: 0.08rem;
  line-height: 1.4;
  text-align: left;
  box-sizing: border-box;
  padding-top: 0px;
}

.main__text {
  position: relative;
  font-size: 16px;
  letter-spacing: 0.08rem;
  line-height: 1.4;
  text-align: left;
  box-sizing: border-box;
  padding-top: 20px;
}

.main-other {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 40px;
}

.main-other__inner-title {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 130px 20px 70px 20px;
}

.main-other__title {
  position: relative;
  display: inline-block;
  color: #000;
  font-family: var(--font-family-display);
  font-weight: 600;
  font-style: normal;
  font-size: 30px;
  letter-spacing: 0.2rem;
  line-height: 1.2;
  text-align: left;
}

/* ======================================
main privacy contact
======================================*/
.main-other__intro {
  position: relative;
  background: #000000;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 40px;
}

.main-other__img {
  position: relative;
  background: #000000;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  width: 100%;
  height: 560px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.main-other__img img {
  width: 100%;
  height: calc(100vh - 0px);
  max-height: 560px;
  object-fit: cover;
  object-position: 50% 100%;
}

/* ======================================
unit privacy contact
======================================*/

/********************************************************************************
  ＰＣ版
********************************************************************************/

/* Smartphone-only overrides (up to 767px). */
@media (max-width: 767px) {
  .footer__menu .footer-menu {
    display: block;
  }
  .footer__menu .footer-menu li {
    padding: 6px 0;
  }
}

/* Tablet and larger overrides (768px and wider). */
@media screen and (min-width: 768px) {


  .main {
    display: flex;
    align-items: baseline;
    height: 70vh;
    max-width: 1600px;
    margin: 0 auto;
  }

  .main__inner-title {
    text-align: center;
    width: 50%;
    top: 50%;
    transform: translateY(-40%);
    padding: 0 40px;
  }

  .main__title {
    font-size: 42px;
    letter-spacing: 0.2rem;
    line-height: 1.4;
  }

  .main__inner-detail {
    width: 50%;
    top: 50%;
    transform: translateY(-45%);
    padding: 0px 40px 0px 0px;
  }

  .main__copy {
    font-size: 36px;
    letter-spacing: 0.16rem;
    line-height: 1.1;
    padding: 0px 0 0 0;
  }

  .main__lead {
    font-size: 18px;
    letter-spacing: 0.06rem;
    line-height: 1.6;
    padding: 4px 0 0 0;
  }

  .main__text {
    font-size: 15px;
    letter-spacing: 0.06rem;
    line-height: 1.8;
    padding: 30px 0 0 0;
  }

  .main-other {
    align-items: baseline;
    height: 70vh;
    margin: 0 auto;
    border-bottom: 20px solid #000;
    margin-bottom: 100px;
  }

  .main-other__inner-title {
    background: url("../images/mark_01.jpg") no-repeat;
    background-size: contain;
    background-position: right bottom;
    text-align: left;
    max-width: 1320px;
    padding: 0 40px;
    margin: 0 auto;
  }

  .main-other__title {
    display: block;
    font-size: 42px;
    letter-spacing: 0.2rem;
    line-height: 1.1;
    text-align: left;
    width: 50%;
    top: 50%;
    left: 0;
  }

  .main-other__intro {
    height: 600px;
    margin-bottom: 100px;
  }

  .main-other__img {
    width: 500px;
    height: 600px;
    margin: 0 auto;
    margin-bottom: 160px;
  }

  .main-other__img img {
    width: auto;
    height: 100%;
    max-height: 600px;
  }

  /* ブラウザチェック */
  .ie-error {
    padding: 160px 80px;
  }
  
  /* ボタン ボックスタイプ */
  .btn-box a,
  .btn-box--white a {
    margin: 3.5vh 0;
    padding: 13px 20px 15px 20px;
  }

  /* 改行の設定 */
  .br_pc { /* PC用クラスは無視 */
    display: none;
  }

  .br_sp {  /* スマホ用クラスは改行する */
    display: block;
  }

  hr {
    margin: 80px 0;
  }

  /* ヘッダー */
  .top-header, .contents-header {
    padding: 0 2.0vw;
    height: 10vh;
  }

  /* ヘッダーロゴ */
  .top-header__logo, .contents-header__logo {
    width: 10vw;
  }

  /* ハンバーガー */
  #nav-toggle { display: none; }

  /* ナビメニュー */
  #gloval-nav {
    position: static;
    display: flex;
    flex-direction: row;
    flex: 1;
    background: none;
    visibility: visible;
    opacity: 1;
    height: 100%;
    margin-left: 2.0vw;
  }

  #gloval-nav nav, #gloval-nav ul {
    width: 100%;
    height: 100%;
  }

  #gloval-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  #gloval-nav a {
    flex-direction: column; 
    align-items: flex-start;
    justify-content: center;
  }

  #gloval-nav a span:first-child {
    margin-right: 0;      /* 横の余白は不要に */
    margin-bottom: 4px;   /* 上下間隔を調整 */
    font-weight: bold;    /* 少し強調する */
    font-size: 1.4vw;
  }

  #gloval-nav a span:last-child {
    font-size: 0.9vw;     /* 少し小さくする */
    opacity: 0.8;         /* 少し薄く */
  }

  /* メニュー選択時 */
  #gloval-nav a {
    padding: 0px 2.0vw;      /* アイコン同士の間隔 */
    font-size: 20px;        /* フォントサイズ*/
    display: flex;
    flex-direction: column; /* PCで英語と日本語を上下に並べる */
    align-items: center;
    height: 100%;
  }
  
  /* SNSアイコン */
  .nav-sns-item {
    margin-left: auto;  /* SNS項目だけ右端に飛ぶ */
  }
  
  .header__sns {
    margin-top: 0px;
    gap: 2.4vw;    /*PC時のアイコン同士の間隔*/
  }

  .header__sns a {
    width: 2.8vw;  /*PC時のアイコンサイズ*/
    padding: 0;
  }
  
  #gloval-nav ul li {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  #gloval-nav nav ul li.changeColor a {
    color: #000;
  }

  .footer__inner {
    /* 左(ロゴ側)は中身に合わせ、右(メニュー)は余った分全部 */
    grid-template-columns: auto 1fr; 
    column-gap: 60px;
    align-items: center;
  }

  /*.footer__box {
     grid-column: 1 / 2; は自動で割り当てられるので省略 
  }*/

  .footer__menu {
    grid-column: 2 / 3; /* 明示的に2列目に指定 */
    display: flex;      /* メニューを横並びにする */
    flex-wrap: wrap;    /* 入りきらない場合は折り返し */
    gap: 20px 40px;     /* 項目間の隙間 */
    border-left: none;
    padding-left: 20px;
  }

  .footer__menu li {
    padding: 0;
  }
  
  .footer__menu .footer-menu li a {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
  }
  .footer__menu .footer-menu li a span:first-child {
    font-size: 1.2em;
    margin-right: 0;      /* 横の余白は不要に */
    margin-bottom: 4px;   /* 上下間隔を調整 */
    font-weight: bold;    /* 少し強調する */
  }
  .footer__menu .footer-menu li a span:last-child {
    font-size: 0.8em;     /* 少し小さくする */
    opacity: 0.8;         /* 少し薄く */
  }

  .footer__copyright {
    font-size: 0.85rem;
    margin-top: 6vh;
  }
}

/* PC refinements (960px and wider). */
@media screen and (min-width: 960px) {


  .main__inner-title {
    padding: 0px 80px;
  }


  .main__title {
    font-size: 46px;
    letter-spacing: 0.2rem;
    line-height: 1.4;
  }


  .main__inner-detail {
    padding: 0px 80px 0px 0px;
  }


  .main__copy {
    font-size: 42px;
    letter-spacing: 0.18rem;
    line-height: 1.1;
    padding: 0px 0 0 0;
  }


  .main__lead {
    font-size: 20px;
    letter-spacing: 0.08rem;
    line-height: 1.6;
    padding: 4px 0 0 0;
  }


  .main__text {
    font-size: 15px;
    letter-spacing: 0.06rem;
    line-height: 2;
    padding: 40px 0 0 0;
  }


  .main-other__inner-title {
    padding: 0px 80px;
  }


  .main-other__title {
    font-size: 46px;
    letter-spacing: 0.2rem;
    line-height: 1.4;
    text-align: center;
  }


  .main-other__img {
    width: 500px;
    height: 600px;
  }
}
@media screen and (min-width: 960px) and (max-height: 765px) {


  .main {
    /* 横幅1300px以上で、高さ500px以下の場合 */
    height: 72vh;
  }


  .main__copy {
    /* 横幅960px以上で、高さ500px以下の場合 */
    font-size: 40px;
  }


  .main__lead {
    /* 横幅960px以上で、高さ500px以下の場合 */
    font-size: 18px;
  }


  .main__text {
    /* 横幅960px以上で、高さ500px以下の場合 */
    padding-top: 30px;
  }


  .main-other {
    /* 横幅1300px以上で、高さ500px以下の場合 */
    height: 70vh;
  }
}
