/* =========================================================
   common.css
   共通レイヤー（header / footer / navigation）
   ========================================================= */
:root {
    --clr-cafe: #d1ce66;
  --clr-cafe2: #dbbb04;
  --clr-sale: #a1cfcf;
  --clr-sale2: #0990b5;
  --clr-exh: #983;
}

/* 言語 */
html[data-lang="ja"] .en { display: none; }
html[data-lang="en"] .ja { display: none; }

:root {
  --side-nav-width: 260px;
  --mob-width: 650px;
}

html {
    scroll-behavior: smooth;
}


body {
  --tag-lang: ja;
}

body {
    font-family:
	"Helvetica Neue", Helvetica, Arial, 
	"Hiragino Kaku Gothic ProN",
	sans-serif;

    margin: 0;
    color: #000;
    background-color: #fafafa;
    cursor: inherit;  
    overflow-x: hidden; /* 横スクロール禁止 */
    overflow-y: visible;
 }
.ja {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.en {
    font-family :"Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/******/
.side-nav svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}
.side-nav .pin-icon {
    fill: #e60023;
    fill: #000;
}
/*****/

/* 言語ボタン */


.from-bottom {
  position: fixed;
  bottom: 70px;
  left: 50px;
  width: var(--side-nav-width);
}


.pin-links a{
  display:flex;
  align-items:center;
  text-align: center;
  gap:10px;
  font-size: 14px;
  margin-bottom: 14px;
  margin-left: -14px;
}

.pin-icon{
    width:16px;
    height:16px;
    fill:#e60023; /* Pinterest赤 */
    flex-shrink:0;
}

.tag-lang-switch {
  display: flex;
  flex-direction: row;
  gap: 8px;

  text-align: center;
  margin: 0;

}

button:focus {
  outline: none;
}


/* ボタン */
.tag-lang-switch button {
    /*width: 60px;*/
  font-size: 12px;
  padding: 4px 15px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid #000;
  background: transparent;
}

.tag-lang-switch button.active {
    background: #333;
    color: #fff;
}


.tag-lang-switch button:hover {
    background:#f0f0f0;
}
.tag-lang-switch button.active:hover {
    background: #333;
}

.cover-text {
    position: fixed; /* ここから数行消しても変化なし*/
    top: 20px;
    right: 0;
    left: var(--side-nav-width);
    width: calc(100vw - var(--side-nav-width));
    pointer-events: none; 
		    
    height:80px;
    background-color: rgba(250, 250, 250, 0.7);

    margin: 0;
    color: #000;
    padding-top: 5px;
    padding-bottom: 1px;
    padding-right: 30px;
    text-align: right;
    z-index: 900;
}

.cover-text a {
  pointer-events: auto;
}

.page-title {
    margin-top:7px;
    font-size: 34px;
    font-weight: normal;
    letter-spacing: 0.05em;
}
.sub-title{
    margin-top:7px;
    font-size: 14px;
    font-weight: normal;
}


/* リセット的な最小設定 */
* {
  box-sizing: border-box;
}

/* 共通：縦並び */
.tag-circle span {
  display: block;
  line-height: 1.1;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {

/* ここから数行消しても関係ない */
    position: fixed;
    top: 0;
    right: 0;
    width: 100px;
    
    z-index: 1000;
    
    display: flex;
    align-items: center;
    gap: 15px;
    
    padding: 15px;
}


.site-header-top {

    /* ここから数行消しても関係ない */
    position: fixed;
    top: 0;
  left: 0;
    
  display: flex;
  align-items: center; 
  justify-content: flex-start;
  height: 70px; 
}


.site-title {
    width: 100vw;
    height:30px;
    padding-top: 8px;
    padding-left: 45px;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-decoration: none;
    z-index: 1001;
}

.site-title a {
  text-decoration: none;
  color: #000;
}


/* =========================================================
   サイドナビ
   ========================================================= */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--side-nav-width);
  height: 100dvh;
  padding: 40px 20px 20px 10px;
  background: rgba(255, 255, 255, 0.93);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 100px;
  z-index: 1000;
}

/* ナビ内リスト風 */

.menu-footer{
    position: fixed;
    bottom: 1.0vh;
    margin:10px;
    margin-left: 40px;
    font-size: 10px;
}

/* ページリンク */
.page-links {

    height: 80vh;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    padding-left: 50px;
}

.page-links a {
    display: flex;
    align-items: center;
    justify-content: left;
    
    width: 100%;
    height: 100%;
    
    text-align: center;
    line-height: 1.8;
}
.page-links a, .has-children a,.sns-links a {
  text-decoration: none;
  color: #000;
  font-size: 14px;
}

.otww{ font-size: 16px;}

.sns-links{
}

.sns-links a{
    margin-top: 14px;
    display:flex;
    align-items:center;
    gap:8px;
}

.sns-icon{
  width:16px;
  height:16px;
  fill:currentColor;
  opacity:0.9;
  flex-shrink:0;
  margin-left: -24px; /* 左へ飛び出す */
}

/* 日英テキストがレイアウトに影響しないように */
.page-links .nav.ja,
.page-links .nav.en {
    white-space: nowrap;
}



/* =========================================================
   Footer
   ========================================================= */

.site-footer{
  position: fixed;
  bottom: 10px;
  z-index: 900;


  }

.footer-credit{
    display:none;
}



/* =========================================================
   ボタン類
   ========================================================= */
.hamburger:focus {
  outline: 2px solid transparent; /* フォーカスは残るが見えなくなる */
  outline-offset: 2px;            /* 好みに合わせて調整 */
}

#menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  z-index: 1010;
  padding: 15px;
}

#menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #222;
  border-radius: 1px;
}

#filter-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    z-index: 1001;
    padding: 15px;
}

#filter-toggle span {
    display: block;
    width: 8px;
    height: 8px;
    border: 1.5px solid #222;
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
}

/* =========================================================
   背景ランダム画像
   ========================================================= */
/* ===== 背景画像 ===== */
.cover-bg {
    position: absolute;
    inset: 0;
}

.bg-left,
.bg-right {
  position: absolute;
  top: 0;
  bottom: 0;
}
.bg-right{ z-index: 5;}
.bg-left{ z-index: 20;}

.bg-left {
  left: 0;
  width: calc(100vw - 348px);
  background-size: cover;
  background-position: center;
}
.bg-right {
  right: 0;
  width: 350px;
  background-size: cover;
  background-position: center;
}


/* =========================================================
   横並びの◯
   ========================================================= */

.circles {
    left: var(--side-nav-width);
    height: 400px;
    margin-top:300px;
    gap: 100px;
    display: flex;
    justify-content: center;
    overflow: hidden;      /* はみ出しを隠す */
    flex-wrap: nowrap;     /* 折り返さない */
}
  
.circles span {
  width: 45px;
  height: 45px;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;        /* 縮小させない */
}


/* =========================================================
   上へ戻るボタン
   ========================================================= */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 4dvh;
    z-index: 1;

    padding: 12px 14px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    text-decoration: none;

    font-size: 12px;
    line-height: 1.2;
    border-radius: 999px;

    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.back-to-top:hover {
    opacity: 1;
}

/* =========================================================
   PC表示（常時表示・ハンバーガー無効）
   ========================================================= */
.hamburger {
  -webkit-tap-highlight-color: transparent; /* iOS/Androidのタップ青枠を消す */
  outline: none;                             /* フォーカス枠を消す */
  box-shadow: none;                          /* 影が出る場合に消す */
}


@media (hover: none) and (pointer: coarse) {
  .hamburger:focus {
    outline: none;
    box-shadow: none;
  }
}


    
@media (min-width: 1200px) {
    /* on the white wall for humberger */
    .site-title {
	display:none;
    }


    /* ハンバーガーを消す */
    #menu-toggle {
	display: none;
    }
    #menu-close{ display: none;}  
    
    /* サイドナビを左カラムとして固定 */
    .side-nav {
	transform: none;
	transition: none;
	position: fixed;
	left: 0;
	top: 0;
	width: var(--side-nav-width);
    }
    body {
	padding-right: 0;
    }
}

/* =========================================================
   タブレット/スマホ表示（非表示・ハンバーガー有効）
   ========================================================= */
@media (max-width: 1200px) {
    .cover-text {
	left: 0;
	width: 100vw;
    }
    
    #menu-toggle {
	position: fixed;
	left: 0;
	top: 0;
	width: 36px;
	height: 70px;          /* ヘッダーの高さ */
	transform: none;
	border: none;
    }
    /* サイドナビを消す */
    .side-nav {
	transform: translateX(-100%);
	display:none;
    }
    .page-links {
	height: 70vh;
    }
    /* 開 */
    .side-nav.open {
	transform: translateX(0);
	display: block;
    }
    .site-title {
	background: transparent;
	z-index:1010;
	pointer-events: none;
    }
    .menu-close {
	position: absolute;
	
	top: 12px;
	right: 12px;
	
	font-size: 28px;
	line-height: 1;
	background: none;
	border: none;
	padding: 8px;
    }
    
    .menu-close, .filter-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	padding: 8px;
    }
    
    .menu-close svg, .filter-close svg {
	width: 24px;
	height: 24px;
    }
    
    .menu-close line, .filter-close line {
	stroke: #333;
	stroke-width: 2;
	stroke-linecap: round;
    }
    .footer-credit{
	display: block;
	position: sticky;
	bottom: 14px;
	text-align: center;
	width: 100vw;
	font-size:8px;
	padding-top: 3px;
	line-height: 1.1;
	background:rgba(255, 255, 255, 0.5);
    }
    
}

@media (max-width: 600px), (max-height: 600px) {
    .back-to-top {
	padding: 6px 8px;
	font-size: 8px;
	line-height: 1.1;
	bottom: 4dvh;
    }
}

@media (max-width: 600px) {

    .site-title {
	background: transparent;
	z-index: 1010;
	display: none;
    }
    .cover-text{
	height: 65px;
    }
    
    .page-title {
        padding-top:3px;
	font-size: 18px;
	font-weight: normal;
    }
    .sub-title{
	margin-top:3px;
	font-size: 9px;
    }
    
    .circles {
	left: 0;
	width: 100vw; 
	height: 300px;
	margin-top:250px;
	gap: 30px;
    }
    
    .circles span {
	width: 25px;
	height: 25px;
	border: 1px solid currentColor;
	border-radius: 50%;
	flex-shrink: 0;        /* 縮小させない */
    }

    .back-to-top {
	padding: 7px 10px;
	font-size: 8px;
	line-height: 1;
	bottom: 4dvh;
    }

    .from-bottom {
	bottom: 6dvh;           /* ← ここで下からの距離を調整 */
    }
}

/* ========
   タグ丸
 ========== */
.tag-cloud {  
    margin-bottom: 5px;
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, 70px);
    gap: 17px;
    width: 100%;
}

.tag-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
  border: 1px solid currentColor;
}

.tag {  font-size: 15px;}
.tag.ja {  font-size: 12px;}
.tag.en {  font-size: 13px;}
.tag-circle span {
  display: block;
  line-height: 1.1;
}

/* ステータス色 */
.tag-circle.available {
    border: 2px solid var(--clr-sale2);
}
.tag-circle.cafe,.tag-circle.cafed {
    border: 2px solid var(--clr-cafe2);    
}

.tag-circle.available {  font-size: 13px;}
.tag-circle.cafe,.tag-circle.cafed{  font-size: 13px;}

.tag-circle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

.tag-circle.or {
  background: linear-gradient(to right, transparent 50%, #bbb 50%);
  color: inherit;
  border: 1px solid #bbb;
  font-weight: 600;
}

.tag-circle.available.or {
    background: linear-gradient(to right, transparent 50%, var(--clr-sale2) 50%);
    border: 2px solid var(--clr-sale2);
}
.tag-circle.cafe.or {
    background: linear-gradient(to right, transparent 50%, var(--clr-cafe2) 50%);
    border: 2px solid var(--clr-cafe2);
}



.tag-circle.and {
    background-color: #333;  
    color: white; 
    border: 1px solid #333;
    font-weight: 600;
}

.tag-circle.and.cafe { background-color: var(--clr-cafe2);
		       border: 1px solid var(--clr-cafe2);
		     }
.tag-circle.and.available { background-color: var(--clr-sale2);
			    border: 1px solid var(--clr-sale2);
			  }


.tag-circle.not {
    background-color: transparent;
    color: inherit;
    border: 2.5px solid #222;     
    position: relative;
}
.tag-circle.not::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); 
  background-color: rgba(0, 0, 0, 1); 
  transform: translate(-50%, -50%) rotate(45deg);
  pointer-events: none;
}


.icon-or,
.icon-and,
.icon-not{
  display:inline-block;
  width:0.9em;
  height:0.9em;
  vertical-align:-0.1em;
  margin:0 2px;
}

/* OR 半月 */
.icon-or{
  border:1px solid currentColor;
  border-radius:50%;
  background:linear-gradient(to right, transparent 50%, currentColor 50%);
}

/* AND 塗りつぶし */
.icon-and{
  border-radius:50%;
  background:currentColor;
}

/* NOT 斜線 */
.icon-not{
  border:1px solid currentColor;
  border-radius:50%;
  position:relative;
}

.icon-not::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:100%;
  height:1px;
  background:currentColor;
  transform:translate(-50%, -50%) rotate(-45deg);
}


/* =========================
   カスタムカーソル定義
   ========================= */
/* 通常カーソル */

html,body, button.active,
.tag-circle.disabled {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36'><defs><radialGradient id='soft'><stop offset='0%'   stop-color='%23000000' stop-opacity='0.8'/><stop offset='80%'  stop-color='%23000000' stop-opacity='0.8'/><stop offset='90%'  stop-color='%23000000' stop-opacity='0.7'/><stop offset='100%' stop-color='%23000000' stop-opacity='0'/></radialGradient></defs><circle cx='18' cy='18' r='10' fill='url(%23soft)'/></svg>") 18 18, auto;
}


/* クリック可能要素 */
a, 
.tag-lang-switch button:not(.active),
.tag-filter-mode:not(.active),
.tag-circle,
.tag-filter-reset,
.menu-close,#menu-toggle,#load-more-button,
.nav-btn.nav-state,
.showcase-image img,
.image-overlay img,
.overlay-right, .overlay-left,
    .index-work    {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='20' cy='20' r='16' fill='%23ffffff' stroke='%23b0b0b0' stroke-width='1' opacity='0.7'/></svg>") 20 20, auto;
}


/*a span:hover,*/
a:hover,
.page-links a:hover,
.sns-links a:hover {
  text-decoration: underline;
}

.series-link,
.series-link:hover,
.back-to-top,
.back-to-top:hover {
  text-decoration: none;
}

/* 例外リンク用の下線 */
.underline-link {
    position: relative;
    text-decoration: underline;
    z-index: 1200;
}

/* ドラッグ中
:active {
  cursor: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='34' height='34'>\
<defs>\
  <radialGradient id='g3'>\
    <stop offset='0%' stop-color='%23999999'/>\
    <stop offset='90%' stop-color='%23b0b0b0' stop-opacity='0.5'/>\
    <stop offset='100%' stop-color='%23b0b0b0' stop-opacity='0'/>\
  </radialGradient>\
</defs>\
<circle cx='17' cy='17' r='12' fill='url(%23g3)'/>\
</svg>") 17 17, auto;
}
*/

/* テキスト入力時は標準カーソルに戻す */
input,
textarea {
  cursor: text;
}






/* menu 用区切り直線 */
.menu-divider {
  width: 80px;           /* 横線の長さ（px指定） */
  height: 1px;            /* 細い線 */
   background-color: rgba(0, 0, 0, 0.05); /* 上品な薄め黒 */
  margin-bottom: 7vh;
  margin-top: 1vh;

}
.menu-divider-vspace-top {
  margin-top: 10vh;       /* 上に空間を作る */
  margin-bottom: 1vh;     /* 下は詰める */
}
.menu-divider-vspace {
  margin-top: 3vh;       
  margin-bottom: 3vh;    
}



@media (max-height: 600px) {

    .menu-divider {
	margin-bottom: 20px;
	margin-top: 3px;
    }
    .menu-divider-vspace-top {
	margin-top: 20px;   
	margin-bottom: 3px; 
    }
    .menu-divider-vspace {
	margin-top: 10px;       
	margin-bottom: 3px;    
    }
}


@media (max-height: 300px) {

    .menu-divider {
	margin-bottom: 5px;
	margin-top: 2px;
    }
    .menu-divider-vspace-top {
	margin-top: 5px;   
	margin-bottom: 2px; 
    }
    .menu-divider-vspace {
	margin-top: 4px;       
	margin-bottom: 1px;    
    }
}


/** 今いるところにマルをつける **/
.page-links .menu-item {
  position: relative;
}

.page-links .menu-item.current::before {
  content: "";
  position: absolute;
  left: -24px; 
  top: 0.27em;  
  width: 0.9em;
  height: 0.9em;
  border: 1.0px solid currentColor;
  border-radius: 50%;
}
