@charset "utf-8";

/*iPhoneのブラウザの上下対応*/
#layout_tyousei .menu_bg {
position: absolute;
inset: 0;
z-index: 0;
background: #fff;
pointer-events: none;
width: 100%;
height: 100%;
opacity: 0.01;
}

/* 背景は白ベタ。装飾用canvasとぼかしレイヤーは非表示にする。 */
#layout_tyousei .sp_menu_bg_canvas,
#layout_tyousei .menu_overlay {
  display: none !important;
}


.nav_sp ul li a {
touch-action: manipulation;
}


/* lang_switcher.jsの言語選択のCSSをJSで設定 */
.nav_sp ul li .nav_link_wrap.is_active .hover_shffule {
text-decoration-line: line-through;
}

ul.common_footer02 li .nav_link_wrap.is_active .hover_shffule {
text-decoration-line: line-through;
}


body.menu_open_fixed {
overflow: hidden;
height: 100vh;
}


/* スマホの画像とナビの全体 */
#layout_tyousei {
position: fixed;
z-index: -99;
inset: 0;
visibility: hidden;
display: none;
overflow: hidden;

width: 100%;
height: 100vh;
height: 100dvh;

margin: 0;
padding: 0;

opacity: 1;
background: #fff;
border-bottom: none;
}

/* ▼▼▼ JSで .menu-is-open クラスが付いたら表示 ▼▼▼ */
.menu-is-open #layout_tyousei {
visibility: visible;
display: block;
opacity: 1;
z-index: 9995;
}


.nav_sp {
position: relative;
z-index: 4;
display: block;
margin: 0;
padding: 0;

width: 100%;
height: 100%;

box-sizing: border-box;
}

.nav_sp_layout {
position: relative;

width: 100%;
height: 100%;

margin: 0;
padding: 0 0 0 7vw;/*右あけ*/
box-sizing: border-box;

display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
}



/* ナビ　基本 */
.nav_sp ul {
position: relative;

margin: 0;
padding: 0;

width: fit-content;
}


/* 下部メニュー（言語・Cookie）を左下へ */
.nav_sp ul.nav_sp_bottom {
position: relative;
margin: 40px 0 0 0;
padding: 0;
}



.nav_sp ul li {
position: relative;

margin: 0 0 3px 0;
padding: 0 2px 1px 1px;

width: fit-content;

/*FONT 375px計算*/
font-size: 23px;
font-size: 6.1333333vw;
font-size: clamp(22px, 6.1333333vw, 24px);

color: #000;
letter-spacing: -0.02em;
line-height: 1.0;
font-feature-settings: "liga" 1, "pnum" 1;
text-transform: uppercase;

background-color: #fff;

-webkit-tap-highlight-color: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);

user-select: none;
-webkit-user-select: none;
}




/* スマホ版：現在ページのナビボタン */
li.sp_nav_active a {
pointer-events: none;
cursor: default;
color: #fff;
}


li.sp_nav_active .hover_shffule {
text-decoration: line-through;
pointer-events: none;
}


/*ENGLISH / JAPANESE*/
li#language{
margin: 0 0 3px 0;
padding: 0 1px 0 1px;

/*FONT 375px計算*/
font-size: 13px;
font-size: 3.4666666vw;
font-size: clamp(12px, 3.4666666vw, 14px);

line-height: 1.0;
}

/*COOKIE*/
.nav_sp ul li#cookie {
margin: 0 0 3px 0;
padding: 0 1px 0 1px;

/*FONT 375px計算*/
font-size: 13px;
font-size: 3.4666666vw;
font-size: clamp(12px, 3.4666666vw, 14px);
line-height: 1.0;
text-transform: uppercase;
}



/*SNS*/
.nav_sp ul li#sp_sns_nav{
margin: 0 0 3px 0;
padding: 0 1px 0 1px;

/*FONT 375px計算*/
font-size: 13px;
font-size: 3.4666666vw;
font-size: clamp(12px, 3.4666666vw, 14px);

line-height: 1.0;
}




/*Privacy Policy*/
.nav_sp ul li#privacy {
margin: 0 0 3px 0;
padding: 0 1px 0 1px;

/*FONT 375px計算*/
font-size: 13px;
font-size: 3.4666666vw;
font-size: clamp(12px, 3.4666666vw, 14px);

line-height: 1.0;
}




.nav_haihun{
position: relative;
top: -2px;
margin: 0 0 0 2px;
}


.nav_sp ul li a {
-webkit-tap-highlight-color: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
color: #000;
touch-action: manipulation; /* スマホのタップ遅延を殺す */
}



/* 追加: アニメスパンはレイアウト担当、クリック無効 */
.nav_sp ul li .hover_shffule {
display: inline-block;
position: relative;
z-index: 0;
pointer-events: none;
}

/* ▼▼▼ 日英併記ナビ（1行）：日本語 ── English ▼▼▼ */
/* 罫線の色はPCグロナビと同じ（芸術家=黒 / 世界系=steelblue / 日本系=darkred） */
.nav_sp ul li.nav_bi { --rule: #ccc; }
.nav_sp ul li.nav_bi.nav-artists { --rule: #000; }
.nav_sp ul li.nav_bi.nav-world { --rule: steelblue; }
.nav_sp ul li.nav_bi.nav-jp { --rule: darkred; }

.nav_sp ul li.nav_bi a {
display: inline-flex;
align-items: baseline;
white-space: nowrap;
}

/* 日本語＋罫線のゾーン：幅を全項目で固定（最長5文字＋罫線の最小長24px＋左右の余白9px×2）
   → 英語の開始位置が左そろいになり、罫線は日本語の文字数に応じて自動で伸びる */
.nav_sp ul li.nav_bi .nav_ja {
display: flex;
align-items: baseline;
flex: 0 0 auto;
width: calc(5em + 42px);
font-size: calc(1em - 2px); /* 日本語だけ li より2px小さく（ロゴ・英語は影響なし） */
letter-spacing: 0;
}

/* 罫線：1px、ゾーンの余りを埋める。文字のベースラインに下揃え */
.nav_sp ul li.nav_bi .nav_rule {
flex: 1 1 0;
min-width: 0;
align-self: baseline;
height: 1px;
margin: 0 9px;
background: var(--rule, #ccc);
}

/* 英語：小さく、PCと同じ hoefler-text */
.nav_sp ul li.nav_bi .nav_en {
font-family: "hoefler-text", serif;
font-weight: 400;
font-style: normal;
font-size: 0.636em;
letter-spacing: 0.02em;
text-transform: none;
}

/* ロゴ：大文字化を解除（Art Library のまま表示）。y等の下ひげが次の行の白背景に隠れないよう下を空ける */
.nav_sp ul li#nav_logo {
text-transform: none;
padding-bottom: 0.25em;
}

/* 現在ページ：日本語側も取り消し線 */
li.sp_nav_active .nav_ja {
text-decoration: line-through;
}

/* 追加: language / cookie の複数リンク用ラッパー */
.nav_link_wrap {
position: relative;
display: inline-block;
}

/* クリック禁止 */
.nav_sp ul li a.not_click {
pointer-events: none;
}





/*ナビのコピーライト*/
.copy_only_sp_nav{
position: fixed;
bottom: 8px;
right: 10px;



/*FONT 375px計算*/
font-size: 6px;
font-size: 1.6vw;
font-size: clamp(5px, 1.6vw, 7px);

color: #04181e;

line-height: 1.4;
font-feature-settings: "liga" 1, "pnum" 1;
letter-spacing: 0.02em;

background: white;
}


/*禁止メッセージ*/
.menu_prohibited{
position: fixed;
bottom: 8px;
left: 10px;



/*FONT 375px計算*/
font-size: 6px;
font-size: 1.6vw;
font-size: clamp(5px, 1.6vw, 7px);

line-height: 1.4;
font-feature-settings: "liga" 1, "pnum" 1;
letter-spacing: 0.02em;
text-transform: uppercase;
}

.menu_prohibited span{
background: white;
}






/* メニューボタン：PC・SPで共通の2本線（開くと×に変化）
------------------------------------------------------------------------------ */
.menu-btn {
  position: fixed;
  z-index: 9999;
  display: block;
  visibility: visible;
  top: 0;
  right: 0;
  width: 60px;
  height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.menu-btn__line {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.menu-btn__line--top {
  transform: translate(-50%, -50%) translateY(-2.5px);
}

.menu-btn__line--bottom {
  transform: translate(-50%, -50%) translateY(2.5px);
}

/* 同じボタンをクリックすると×から2本線に戻る */
.menu-is-open .menu-btn__line--top {
  transform: translate(-50%, -50%) rotate(45deg);
}

.menu-is-open .menu-btn__line--bottom {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.menu-btn:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: -4px;
}





/* PCではロゴの左へ。SPではこれまで通り右上 */
@media screen and (min-width: 768px) {


.menu-btn {
display: none;
visibility: hidden;


    top: 0;
    left: 0px;
    right: auto;
    width: 50px;
    height: 50px;
  }

  /* PCのみ：線幅30px、50px高ヘッダー内で上下中央 */
  .menu-btn__line {
    top: 50%;
    width: 30px;
  }

  /* PCのみ：2本線の間隔を合計2px狭くする（中心位置は維持） */
  .menu-btn__line--top {
    transform: translate(-50%, -50%) translateY(-3px);
  }

  .menu-btn__line--bottom {
    transform: translate(-50%, -50%) translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-btn__line {
    transition-duration: 0.01ms;
  }
}


/* ハンバーガーメニュー内：検索フォームと固定ページへのリンク
------------------------------------------------------------------------------ */
/* 追加項目を含め、背の低い端末でもメニュー全体をスクロールできるようにする */
#layout_tyousei {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav_sp {
  height: auto;
  min-height: 100%;
}
.nav_sp_layout {
  height: auto;
  min-height: 100dvh;
  padding-top: 72px;
  padding-bottom: 62px;
}

.drawer-extras {
  width: min(340px, calc(100% - 16px));
  box-sizing: border-box;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #d8d8d8;
}
.drawer-search {
  display: flex;
  width: 100%;
  height: 40px;
  margin: 0;
  border: 1px solid #aaa;
  background: #fff;
  box-sizing: border-box;
}
.drawer-search:focus-within { border-color: #555; }
.drawer-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.drawer-search__input::placeholder { color: #999; opacity: 1; }
.drawer-search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.drawer-search__button {
  flex: 0 0 auto;
  height: 100%;
  padding: 0 16px;
  border: 0;
  border-left: 1px solid #aaa;
  background: #f7f7f7;
  color: #333;
  font-family: "hoefler-text", serif;
  font-weight: 400;
  font-size: 15px;
  cursor: pointer;
}
.drawer-search__button:hover { background: #eee; }
.drawer-utility-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  margin-top: 19px;
}
.drawer-utility-links a {
  background: #fff;
  font-family: YakuHanJPs, "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #333;
  transition: opacity .25s ease;
}
.drawer-utility-links a:hover { opacity: .6; }
.drawer-utility-links a:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }

/* 画面の高さが短いときは中央揃えを解除し、上端から順に表示 */
@media (max-height: 620px) {
  .nav_sp_layout { justify-content: flex-start; }
}


/* ===========================================================================
   ART LIBRARY | SP 展開メニューのPCデザインとの統一 (2026-10-19)
   既存のハンバーガーボタンを保持。背景は白ベタ、展開は即時表示。
   スマートフォン表示（767px以下）のみに適用します。
   =========================================================================== */
@media screen and (max-width: 767px) {
  #drawer-menu-zentai {
    --sp-nav-ink: #252525;
    --sp-nav-rule: #e8e8e5;
    --sp-nav-blue: #4683a5;
    --sp-nav-serif: "hoefler-text", "Hoefler Text", Georgia, serif;
    --sp-nav-jp: YakuHanJPs, "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  }

  /* 画面の高さに応じてメニュー内をスクロール。 */
  #drawer-menu-zentai .nav_sp_layout {
    justify-content: flex-start;
    align-items: stretch;
    width: 100%;
    min-height: 100dvh;
    height: auto;
    padding: 76px 22px 56px;
    color: var(--sp-nav-ink);
    font-family: var(--sp-nav-jp);
  }



/* PCのArt Libraryロゴ / Explore the Libraryと書体を揃える。 */
#drawer-menu-zentai .sp-drawer-brand {
margin: 0 0 30px 0;
letter-spacing: -.03em;

font-family: "minion-pro-display", serif;
font-weight: 400;
font-style: normal;

font-size: 23px;
}




#drawer-menu-zentai .sp-drawer-brand a {
color: var(--sp-nav-ink);
text-decoration: none;
}





#drawer-menu-zentai .sp-drawer-eyebrow {
margin: 0 0 0 0;
color: var(--sp-nav-ink);
font: normal 11px/1.3 var(--sp-nav-serif);
letter-spacing: 0;
-webkit-user-select: none;
user-select: none;
}


  /* PCと同じ「番号 / 日本語 / 英語 + 下線」の7行。 */
  #drawer-menu-zentai .nav_sp ul#japanese {
    width: 100%;
    max-width: 460px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  #drawer-menu-zentai .nav_sp ul#japanese > li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--sp-nav-ink);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: normal;
    text-transform: none;
  }
  #drawer-menu-zentai .nav_sp ul#japanese > li > a.sp-panel-link {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: baseline;
    column-gap: 6px;
    width: 100%;
    min-height: 49px;
    box-sizing: border-box;
    padding: 13px 0 12px;
    border-bottom: 1px solid var(--sp-nav-rule);
    background: transparent;
    color: var(--sp-nav-ink);
    text-decoration: none;
    -webkit-user-select: none;
    user-select: none;
    transition: color .22s ease, padding-left .22s ease;
  }
  #drawer-menu-zentai .sp-panel-link:active { color: #777; }
  /* すべてのメニュー番号（00〜06）を青で統一。 */
  #drawer-menu-zentai .sp-panel-count {
    color: var(--sp-nav-blue);
    font: normal 11px/1.4 var(--sp-nav-serif);
    font-variant-numeric: tabular-nums;
  }
  #drawer-menu-zentai .sp-panel-ja {
    color: inherit;
    font: 400 clamp(16px, 4.4vw, 19px)/1.4 var(--sp-nav-jp);
    white-space: nowrap;
    letter-spacing: 0;
  }
  #drawer-menu-zentai .sp-panel-en {
    color: #777;
    font: 400 12px/1.35 var(--sp-nav-serif);
    letter-spacing: 0;
    white-space: nowrap;
  }

  /* PC展開メニューと同じ「下線だけのフォーム＋黒い丸ボタン」。 */
  #drawer-menu-zentai .drawer-extras {
    width: 100%;
    max-width: 460px;
    margin: 27px 0 0;
    padding: 0;
    border: 0;
  }
  #drawer-menu-zentai .drawer-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 45px;
    margin: 0;
    padding: 0 0 3px;
    border: 0;
    border-bottom: 1px solid #e1e1dd;
    background: transparent;
  }
  #drawer-menu-zentai .drawer-search:focus-within {
    border-color: #e1e1dd;
  }
  #drawer-menu-zentai .drawer-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0 4px;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: var(--sp-nav-ink);
    font-family: var(--sp-nav-jp);
    font-size: 14px;
    line-height: 1.4;
  }
  #drawer-menu-zentai .drawer-search__input:focus,
  #drawer-menu-zentai .drawer-search__input:focus-visible {
    outline: none;
    box-shadow: none;
  }
  #drawer-menu-zentai .drawer-search__button {
    flex: 0 0 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 96px;
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: #2c2c2c;
    color: #fff;
    font: 400 12px/1.3 var(--sp-nav-jp);
    transition: background .2s ease;
    -webkit-appearance: none;
    appearance: none;
  }
  #drawer-menu-zentai .drawer-search__button svg {
    display: block;
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
  }
  #drawer-menu-zentai .drawer-search__button:active { background: #626262; }

  /* サイト情報リンクもPC展開メニューに揃える。 */
  #drawer-menu-zentai .drawer-utility-links {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 11px 17px;
    margin: 22px 0 0;
  }
  #drawer-menu-zentai .drawer-utility-links a {
    color: var(--sp-nav-ink);
    background: transparent;
    font: 400 11px/1.5 var(--sp-nav-jp);
    font-feature-settings: "palt" 1;
    letter-spacing: 0;
    text-decoration: none;
  }

  /* 小さな画面は横幅を有効活用して英語名まで収める。 */
  @media (max-width: 350px) {
    #drawer-menu-zentai .nav_sp_layout { padding-right: 16px; padding-left: 16px; }
    #drawer-menu-zentai .nav_sp ul#japanese > li > a.sp-panel-link { column-gap: 5px; }
    #drawer-menu-zentai .sp-panel-en { font-size: 11px; }
  }
}
