@charset "utf-8";
/* kaonomieru.css のどこかに一時追加してテスト */
/* =========================================================
   Base (site-wide, JS untouched)
   ========================================================= */
html, body {
  height: 100%;
  margin: 0;
  font-family: yamamotoan-stdn, sans-serif;
  font-weight: 400;
  font-style: normal;
  background: #CDEEFF;             /* 水色背景 */
}
/* indexだけスクロール禁止 */
body.page-index {
  overflow: hidden;
  height: 100vh;
}
/* Common reset */
*, *::before, *::after { box-sizing: border-box; }

/* Links */
a, a:link, a:visited, a:hover, a:active, a:focus { text-decoration: none; }

/* =========================================================
   Header / Navigation
   ========================================================= */
.header01 {
  position: relative;
  width: 100%;
  background: rgba(255,255,255,0.3);
  z-index: 2000;
  top: 0;
  font-size: 1.2em;
  font-family: ab-tsubaki, sans-serif;
}

.header01 .header-nav {
  display: flex;
  justify-content: flex-start;
  width: 100%;                      /* 100vw を使用しない */
  height: auto;
}
/* navの中のul/liに当てる */
.header01 .header-nav ul {
  list-style: none;     /* ← ドットを消す本体 */
  display: flex;        /* ← flexはulに持たせるのが素直 */
}
.header01 .header-nav li {
  float: left;
  width: 142px;
  text-align: center;
  margin-right: 24px;               /* 4vw → 24px */
  list-style: none;
}

.header-nav a {
  display: inline-block;
  position: relative;
  width: auto;
  padding: 1px 0;
  transition: 0.3s;
  margin-top: 11px;
}
/* 追加または上書き */
.header-nav ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px; /* ← 統一値。現在より少し広め（60→68） */
  background: rgba(255, 255, 255, 0.0);
  text-decoration: none;
  transition: background 0.3s ease;
}

.header-nav ul li a:hover {
  background: rgba(255, 255, 255, 0.9);
}

.header-nav ul li a .text01 {
  line-height: 1.4;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* Menu text color */
.header-nav a .text01 {
  color: #d75a7a;
  transition: color 0.3s ease;
}
.header-nav a:hover .text01 { color: #c24466; }

/* =========================================================
   Mobile top menu (iconbox)
   ========================================================= */
.iconbox {
  display: none;
}

@media (max-width: 540px) {
  .header01 { display: none; }

  .iconbox {
    position: fixed;
    top: 0;                          /* 画面上部固定 */
    left: 0;
    width: 100%;                     /* 98vw を使用しない */
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-bottom: 1px solid #ddd;
    padding: 6px 0;
    margin: 0;
    z-index: 5000;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
  }

  .iconparts {
    display: flex;
    flex-direction: column;
    font-size: 0.7em;
    color: #d75a7a;
    align-items: center;
  }
  .iconparts:hover { color: #c24466; }
}

/* =========================================================
   Background layer (top page)
   ========================================================= */
.conA {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 12vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  margin: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;                   /* ← ここ重要：0や透明値があると消える */
}


/* arttenpaku_bg02 の位置調整 */
.conA[style*="arttenpaku_bg02.jpg"] { background-position: center 88%; }
@media (max-width: 540px) {
  .conA[style*="arttenpaku_bg02.jpg"] { background-position: center 60%; }
}

/* =========================================================
   Logo block
   ========================================================= */
.artlogo {
  opacity: 1;
  background-image: url("../img/artlogo.png");
  background-repeat: no-repeat;
  width: 30vw;   min-width: 330px;
  height: 12vw;  min-height: 90px;
  z-index: 6000;
  margin: 30px auto 0;
  background-size: contain;
}
.artlogobg {
  width: 40vw;   min-width: 410px;
  height: 14vw;  min-height: 100px;
  z-index: 5000;
  margin: 20% auto 0;
  background-size: contain;
  border-radius: 20px;
  background-color: rgba(255,255,255,0.1);
  padding-top: 20px;
}

@media (max-width: 540px) {
  .artlogo  { width: 70vw; min-width: 0; height: 24vw; min-height: 0; }
  .artlogobg{ width: 82vw; min-width: 0; height: 30vw; min-height: 0; margin-top: 18vh; }
}

/* =========================================================
   Footer (site-wide fixed bottom)
   ========================================================= */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 3000;
}
.footerbox {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.7em;
  color: #000;
  width: 100%;
  min-height: 56px;
  padding: 10px;
}
.text03 {
  font-family: yamamotoan-stdn, sans-serif;
  font-size: 1.2em;
  color: #000000;
  margin-left: 10px;
}

/* =========================================================
   PAGE: about だけスクロール可能に
   ========================================================= */
body.page-about {
  overflow-y: auto;                 /* 上書きでスクロール許可 */
}
@media (max-width: 540px) {
  body.page-about { padding-top: 56px; padding-bottom: 64px; }
}
@media (min-width: 541px) {
  body.page-about { padding-bottom: 64px; }
}

/* =========================================================
   PAGE: gallery（重複なし・クリーン）
   ========================================================= */
/* ギャラリーは横スクロール禁止＋縦スクロール許可 */
html.has-scroll, body.page-gallery {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto;
  min-height: 100%;
}

/* グリッド：auto-fillで列数自動、マージン60px */
body.page-gallery .gallery{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 60px;                        /* ご指定のマージン */
  width: 92%;                       /* ウィンドウより少し狭くして安全域 */
  margin: 80px auto 96px;           /* 上部余白/中央寄せ/フッター分下余白 */
  box-sizing: border-box;
}

/* カード：正方形の枠に統一 */
body.page-gallery .gallerybox{

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255,255,255,0.9);
  border-radius: 12px;
}
body.page-gallery .gallerybox img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ギャラリー内のヘッダー幅は%で固定（vw禁止） */
body.page-gallery .header01 .header-nav { width: 100%; }
body.page-gallery .header01 .header-nav li { margin-right: 24px; }

/* モバイル帯メニューも%で（vw禁止） */
@media (max-width: 540px) {
  body.page-gallery .iconbox { width: 100%; }
}

/* =========================================================
   Effects (optional)
   ========================================================= */
.fadein { opacity: 0; transform: translate(0, 50px); transition: all 1500ms; }
.fadein.scrollin { opacity: 1; transform: translate(0, 0); }

@-webkit-keyframes AnimationName {
  0% { background-position:50% 0% }
  50% { background-position:50% 100% }
  100% { background-position:50% 0% }
}
@-moz-keyframes AnimationName {
  0% { background-position:50% 0% }
  50% { background-position:50% 100% }
  100% { background-position:50% 0% }
}
@keyframes AnimationName {
  0% { background-position:50% 0% }
  50% { background-position:50% 100% }
  100% { background-position:50% 0% }
}
/* 番号と画像のレイアウトを二段に分離（番号が切れないようにする） */
body.page-gallery .gallerybox {
  display: grid;
  grid-template-rows: 36px 1fr;     /* 上：番号  下：画像 */
  align-items: center;
  justify-items: center;
  padding: 8px;                      /* 角丸と余白のバランス用 */
}

/* 番号の見た目（テキストノードでもOK） */
body.page-gallery .gallerybox {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: #d75a7a;                    /* 優しいピンク系 */
  text-align: center;
}

/* 画像は下段に固定して枠いっぱいに */
body.page-gallery .gallerybox img {
  grid-row: 2;                       /* ← 下段に配置 */
  width: 100%;
  height: 100%;
  object-fit: contain;       /* ← 全体表示（縦長の下切れ防止） */
  background: #fff; 
  border-radius: 8px;
}

/* ===== PAGE: contents（ムービー作品） ===== */
body.page-contents {
  overflow-y: auto;
  padding-bottom: 64px; /* フッター被り防止 */
}

body.page-contents .contents-wrap{
  max-width: 1040px;
  margin: 96px auto 96px;
  padding: 0 16px;
}

body.page-contents .intro{
  font-size: 16px;
  line-height: 1.9;
  margin: 8px 0 24px;
}

/* 2カラムの動画グリッド（小さい画面では1カラム） */
body.page-contents .moviegrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 840px){
  body.page-contents .moviegrid{ grid-template-columns: 1fr; }
}

/* 各カード */
body.page-contents .moviecard{
  background: rgba(255,255,255,0.85);
  border-radius: 12px;
  padding: 12px;
}

/* ワイド表示させたいカード（最後の1つを横幅めいっぱいに） */
@media (min-width: 841px){
  body.page-contents .moviecard-wide{
    grid-column: 1 / -1;
  }
}

/* iframe をレスポンシブに（アスペクト比 16:9） */
body.page-contents .iframewrap{
  width: 100%;
}
body.page-contents .iframewrap iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 8px;
  display: block;
}

/* タイトル（inbox） */
body.page-contents .inbox{
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}

/* contactページ：本文に半透明の白い下敷きを付ける */
.page-contact .main-content {
  position: relative;
  z-index: 20;
  padding: 24px 16px;                /* 画面端との余白 */
  min-height: calc(100vh - var(--header-h, 72px) - 80px); /* ヘッダー/フッター分を考慮 */
  display: grid;
  place-items: center;               /* 中央寄せ（任意） */
}

.page-contact .contact-section {
  width: min(92vw, 960px);           /* 横幅は広めのカードに */
  background: rgba(255,255,255,.88); /* 半透明の白背景（読みやすさ重視） */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 28px 24px;                /* 内側の余白をやや広めに */
  color: #222;                       /* 文字色を濃く */
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* 見出し & リードの調整（任意） */
.page-contact .page-title { 
  margin: 0 0 12px; 
  font-size: clamp(20px, 3.2vw, 28px);
  color: #222;
}
.page-contact .lead { 
  margin: 0 0 16px; 
  line-height: 1.8; 
}

/* 背景スライドは奥へ（安全側） */
.page-contact .conA { z-index: 1; }


.contactbox{
	display: flex;
	flex-direction: column;
	background: rgba(255,255,255,0.6);
	border-radius: 15px;
	font-size:1.3em;
	margin-top:150px;
	width: 80vw;
	height: auto;
	padding: 30px;
	margin: 0 auto;
}

.contactinnner{
	width: 25vw;
	margin-left: 50px;
	font-size:18px;
	background: #c3bfa8;
	padding: 5px;
	border-radius: 12px;
	text-align: center;
}