/* CSS Document */

  html {
  scroll-behavior: smooth;
}
    :root{
      --bg:#f5f6f7;
      --paper:#ffffff;
      --ink:#111111;
      --muted:#6b7280;
      --accent:#CD212A;
      --header:#000000;
      --footer:#000000;
      --ring: rgba(205,33,42,.35);
      --radius: 7px;
    }
    *{box-sizing:border-box}
    html,body{margin:0;background:var(--bg);color:var(--ink);font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans JP",sans-serif;}
    img{max-width:100%;display:block}
    a{color:inherit;text-decoration:none}
    .container{max-width:1180px;margin:0 auto;padding:24px}

    header{position:sticky;top:0;z-index:50;background:var(--header);color:#fff;border-bottom:1px solid #111}
    .nav{display:flex;align-items:center;justify-content:space-between;padding:14px 24px}
    .brand{font-family:"Noto Serif JP",serif;font-weight:700;letter-spacing:.06em}
    .brand small{display:block;font-weight:400;font-size:.8rem;opacity:.7}


/* ナビ文字を小さく */
.nav a.btn {
  font-size: 0.9rem;
}

/* ページトップボタン */
#backToTop {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
  transition: background 0.3s, opacity 0.3s;
  opacity: 0.7;
  z-index: 100;
}
#backToTop:hover {
  background: #a91820;
  opacity: 1;
}
    /* ===== header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.8); /* ← 透過黒 */
  color: #fff;
  border-bottom: 1px solid rgba(17,17,17,0.6); /* ボーダーも透過 */
  backdrop-filter: blur(4px); /* ★オプション：下の映像をぼかす */
}
/* ===== contact ===== */
.contact-section{padding:40px 0;margin-top:40px; margin: 40px 50px 40px 50px; border-top:1px solid #eee}
.contact-alert{padding:12px 14px;margin-bottom:16px;border-radius:4px}
.contact-success{background:#f0fff4;border:1px solid #b7eb8f}
.contact-error{background:#fff1f0;border:1px solid #ffa39e}
.contact-section .row{display:flex;flex-direction:column;margin-bottom:12px}
.contact-section label{font-weight:600;margin-bottom:6px}
.contact-section input,.contact-section textarea{padding:10px;border:1px solid #ccc;border-radius:4px}
.contact-section .req{color:#e11}
.btn-contact{padding:10px 18px;border:0;border-radius:4px;background-color:#E3AC55; cursor:pointer}
.btn-contact:hover{background-color:#FF8833;}


    /* ===== Navigation Menu ===== */
    .nav-actions{display:flex;gap:28px;align-items:center}
    .nav a.btn{position:relative;padding:0;border:none;background:transparent;color:#fff;display:inline-flex;align-items:center;gap:4px;font-weight:600;line-height:1;transition:color .2s ease;font-size:0.7rem}
    .nav a.btn i{font-size:0.7rem;transition:transform .2s ease}   
     .nav a.btn:hover{color:var(--accent)}
    .nav a.btn::before{content:"";position:absolute;bottom:-4px;left:0;width:0;height:2px;background:var(--accent);transition:width .3s ease}
    .nav a.btn:hover::before{width:100%}

    /* Store button special */
    .nav a.store{padding:8px 14px;background:var(--accent);color:#fff;border-radius:6px 0 6px 0;font-size: 0.8rem;}
    .nav a.store::before{display:none}
    .nav a.store:hover{color:#FFFF00} /* ライトグレー */

 /* ===== Video Banner (NEW) ===== */
    .video-banner{width:100vw;max-width:100%;margin:0;overflow:hidden;background:#000}
    .video-wrap{position:relative;width:100vw;height:min(60vh,680px);min-height:340px}
    .video-wrap video,
    .video-wrap iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0}


/* =========================
   Hero Slider (slide version)
   ========================= */

/* ヒーロー周りの枠（任意） */
.hero{
  padding:0; margin:0;
  width:100%; max-width:100%;
  overflow:hidden;
}

/* スライダー本体のサイズ */
.slider{
  position:relative;
  width:100vw;
  overflow:hidden;
  margin:0 auto;
  background:#000;              /* 読み込み中の背景色 */
}

/* ---- 横スライド用のトラック＆スライド ---- */
.slider .slider-track{
  display:flex;
  height:100%;
  transition: transform var(--slide-ms, 600ms) ease;
  will-change: transform;
}

.slider .slide{
  position:relative;            /* ← absolute は使わない */
  inset:auto;
  flex:0 0 100%;                /* 1枚=幅100% */
  height:100%;
  opacity:1;
  transition:none;
}

/* 画像/動画は全面カバー */
.slide img,
.slide video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* ---- 前後ボタン ---- */
.slider-prev,
.slider-next{
  position:absolute;
  top:50%; transform:translateY(-50%);
  width:44px; height:44px;
  border:0; border-radius:50%;
  background: rgba(0,0,0,.45);
  color:#fff;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  z-index:5;
  transition:background .2s, transform .2s;
}
.slider-prev{ left:16px; }
.slider-next{ right:16px; }

.slider-prev:hover,
.slider-next:hover{ background: rgba(0,0,0,.65); }
.slider-prev:active,
.slider-next:active{ transform:translateY(-50%) scale(.96); }

/* キーボード操作のためのフォーカスリング */
.slider-prev:focus-visible,
.slider-next:focus-visible{
  outline:2px solid var(--accent, #CD212A);
  outline-offset:2px;
}

/* ---- ドット ---- */
.slider-dots{
  position:absolute;
  left:50%; bottom:12px;
  transform:translateX(-50%);
  display:flex; gap:8px;
  z-index:5;
}
.slider-dots .dot{
  width:10px; height:10px; border-radius:50%;
  background: rgba(255,255,255,.6);
  border:0; cursor:pointer;
  padding:0;
}
.slider-dots .dot.active{
  background: var(--accent, #CD212A);
}

/* ===== Gallery Categories (base) ===== */
.grid { 
  display: grid; 
  grid-template-columns: repeat(12, 1fr); 
  gap: 16px; 
}
.categories { 
  grid-template-columns: repeat(3, 1fr);  /* PC：3列 */
  gap: 20px; 
}
.cat { position: relative; overflow: hidden; display:block; }
.cat .thumb { height: 220px; position: relative; }
.cat .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Category Label ===== */
.cat .label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 8px 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
}
.cat .label span.en {
  font-size: 0.8rem;
  opacity: 0.8;
}
/* ===== Category Hover Effect ===== */
.cat {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* サムネイルの動き */
.cat .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat:hover .thumb img {
  transform: scale(1.08);
}

/* ラベルも少しアニメーション */
.cat .label {
  transition: background 0.3s ease;
}
.cat:hover .label {
  background: rgba(0,0,0,0.75);
}

    
    /* ===== insta ===== */
    .insta-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
    .insta-item{aspect-ratio:1/1;border-radius:10px;overflow:hidden}
    .insta-item img{width:100%;height:100%;object-fit:cover}

    /* ===== Profile & School ===== */
    .profile-card{display:grid;grid-template-columns:300px 1fr;gap:20px;align-items:start;background:var(--paper);padding:20px;border-radius:var(--radius);}
    .school-card{display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:start;background:var(--paper);padding:24px;border-radius:var(--radius);}    .school-images{display:flex;flex-direction:column;gap:16px}
    .school-images img{border-radius:var(--radius);object-fit:cover;width:100%;height:200px}
    footer{background:var(--footer);color:#9ca3af}
    .footer-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 24px;font-size:.85rem;flex-wrap:wrap;gap:12px}
    .footer-social{display:flex;gap:16px;align-items:center}
    .footer-social a{color:#9ca3af;font-size:1.4rem;transition:color .2s}
    .footer-social a:hover{color:var(--accent)}
    .link-accent{color:var(--accent)}
    .pill{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;border:1px solid #e5e7eb;background:#fff}
    .pill .dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}
    
    
/* ===== YouTube Grid ===== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 横2列に並べる */
  gap: 20px; /* 余白 */
  align-items: start;
}

.video-grid .video iframe {
  width: 100%;
  height: 315px; /* 16:9比率にするなら → calc(100vw * 9 / 16) と調整可 */
  border-radius: 8px;
}
/* ===== More Videos Button ===== */
.more-videos {
  text-align: center;   /* 中央揃え */
  margin-top: 20px;
}
.more-videos a {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  transition: background .3s;
}
.more-videos a:hover {
  background: #a91820; /* 濃い赤 */
}

/*インスタ 3列グリッド（→ 2列 → 1列） */
.insta-embeds{
  display:grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap:16px;
  align-items:start; /* 高さがバラつくembedを上揃え */
}
.insta-embeds .instagram-media{
  margin:0 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}


/* 均一カード幅（好みで 280～360px に調整） */
:root { --card-w: 260px; }

.gp-grid{
  display:flex;
  flex-wrap:wrap;             /* 自動折り返し */
  justify-content:center;     /* センター揃え */
  gap:16px;                   /* カード間の余白（縦横） */
}

.gp-card{
  width:var(--card-w);
  box-sizing:border-box;
  border:1px solid #eaeaea;
  border-radius:10px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 1px 1px rgba(0,0,0,.02);
}

.gp-thumb{ display:block; background:#f2f2f2; }
.gp-thumb img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:4/3;           /* 4:3 を維持 */
  object-fit:cover;
}

.gp-body{ padding:12px; }
.gp-title{ font-weight:700; }
.gp-muted{ color:#666; font-size:12px; margin-top:4px; }





/* --- Video: 最終上書き（高さを確実に付ける） --- */
.video-banner{ background:#000; }

.video-wrap{
  position:relative !important;
  width:100% !important;      /* 100vw の横スクロール対策 */
  max-width:100% !important;
  height:min(60vh, 680px) !important;
  min-height:340px !important;
  overflow:hidden;
}

.video-wrap video,
.video-wrap iframe{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}




/* 古いブラウザ向けフォールバック（min()非対応時） */
@supports not (height: min(1px, 1px)) {
  .video-wrap{ height:60vh !important; }
}

/* ===== Single Artwork (Desktop) ===== */

  /* レイアウト幅・余白 */
  .gp-wrap{
    max-width: 1200px;
    margin: 24px auto 56px;
    padding: 0 24px;
  }

  /* 作品画像（1ページ1枚） */
  .gp-figure{
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
  }
  .gp-figure img{
    display: block;
    margin: 0 auto;
    /* 画面に収まる最大サイズ（ヘッダー分を少し引く） */
    max-width: min(1100px, 100%);
    max-height: calc(100vh - 220px);
    width: auto;
    height: auto;
    object-fit: contain;
  }

  /* メタ情報 */
  .gp-meta{
    color:#666;
    font-size:14px;
    text-align:center;
    margin: 12px 0 0;
  }

  /* ナビゲーション（左右に“浮く”サムネ付きボタン） */
  .gp-navrow{   /* デスクトップでは下段横並びは使わない */
    display: block !important;
    height: 0 !important;
  }

  .gp-navbtn{
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;

    width: 112px;
    padding: 10px 10px 12px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    text-decoration: none;
    color: #111;
  }
  .gp-prev{ left: 16px; }
  .gp-next{ right: 16px; }

  .gp-navbtn img{
    width: 88px;
    height: 66px;            /* 4:3 */
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    display: block;
  }
  .gp-navbtn .gp-arrow{
    font-size: 20px;
    line-height: 1;
  }
  .gp-navbtn .gp-caption{
    font-size: 12px;
    color:#444;
    max-width: 96px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  /* ホバー/焦点時のフィードバック */
  .gp-navbtn:hover,
  .gp-navbtn:focus-visible{
    border-color:#cbd5e1;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    outline: none;
  }

	.gp-back{
		padding:8px 14px;background:var(--accent);color:#fff;border-radius:6px 0 6px 0;font-size: 0.8rem;
		width: 120px;
		margin-bottom: 30px;
	}
	
/* ===== ヒーロー下のお知らせ ===== */
/* ===== ニュース ===== */
.news-hero { margin:24px auto; padding:16px; border-top:2px solid #eee; border-bottom:2px solid #eee; 
 position: relative;
  z-index: 20;
}
.news-hero .news-title { font-size:1.2rem; margin-bottom:8px; }
.news-hero .news-list { list-style:none; margin:0; padding:0; }
.news-hero .news-list li { padding:6px 0; font-size:0.95rem; border-bottom:1px dotted #ddd; }
.news-hero .date { color:#666; margin-right:8px; font-variant-numeric:tabular-nums; }

.news-more {
  margin-top:10px; padding:8px 16px;
  border:1px solid #ccc; border-radius:6px;
  background:#f8f8f8; cursor:pointer; font-weight:600;
}
.news-more:hover { background:#f0f0f0; }

/* 隠し領域（初期は非表示） */
.news-hidden {
  max-height:0;
  overflow:hidden;
  transition:max-height .6s ease;
}
.news-hidden.open {
  max-height:3500px; /* 過去件数に合わせて調整 */
}

  /* すごく広い画面で左右に寄りすぎるのを少し内側に（任意） */
  @media (min-width: 1400px){
    .gp-prev{ left: max(16px, calc((100vw - 1200px)/2 - 96px)); }
    .gp-next{ right: max(16px, calc((100vw - 1200px)/2 - 96px)); }
  }
}
   


    @media (max-width: 1024px){
		
     .categories{grid-template-columns:repeat(2,1fr)!important}
      .insta-grid{grid-template-columns:repeat(4,1fr)}
	 .insta-embeds{ grid-template-columns: repeat(2, minmax(260px,1fr)); }

 html, body{ overflow-x: hidden; }
 .slide img{
    width: 100% !important;   
		}
 .hero,
  .slider,
  .video-banner,
  .video-wrap{
    width: 100% !important;   /* 100vw を上書き */
    max-width: 100% !important;
	  
	  }
	 :root{ --card-w: 100%; }  
  .gp-card{ max-width: 360px; margin: 0 auto; }
}



	  
    @media (max-width: 840px){
			 .video-grid {
    grid-template-columns: 1fr;
  }
      .nav{flex-direction:column;align-items:flex-start;gap:8px}
      .nav-actions{gap:16px}
      .nav a.btn{font-size:0.7rem}
      
      .insta-grid{grid-template-columns:repeat(2,1fr)}
      /* プロフィールを縦並びに */
      .profile-card{grid-template-columns:1fr!important}
      .school-card{grid-template-columns:1fr!important}
      .school-images img{height:auto}    
      
     /* ===== Category Cards ===== */
    .grid{display:grid;grid-template-columns:repeat(12,1fr);gap:16px}
		 .grid.categories{grid-template-columns:2fr !important;gap:20px}
    .cat{position:relative;overflow:hidden}
    .cat .thumb{height:220px;position:relative}
    .cat .thumb img{width:100%;height:100%;object-fit:cover}
		 :root{ --card-w: 100%; }    /* 1列表示。最大幅を決めたいなら下で制限 */
  
   

  .insta-embeds{ grid-template-columns:1fr; }

		  .gp-navrow{flex-wrap:nowrap !important;display:flex !important;gap:8px !important;justify-content:center;margin-top:12px;height:auto !important}
      .gp-navbtn{
        position:static !important; left:auto !important; right:auto !important; transform:none !important;
        width:auto !important; flex:0 0 auto !important; min-width:160px !important;
        padding:10px 6px !important; gap:6px !important; box-shadow:none !important; border-radius:3px !important;
        flex-direction:row; align-items:center; justify-content:center;
      }
      .gp-navbtn img{display:block !important;width:40px !important;height:30px !important;object-fit:cover;border-radius:3px}
      .gp-navbtn .gp-arrow{font-size:23px !important}
      .gp-navbtn .gp-caption{display:block;font-size:11px !important;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
		
/* ===== お問い合わせフォーム ===== */
  .contact-section { padding: 28px 0; margin-top: 24px; border-top: 1px solid #eee; }
  .contact-section h2 { font-size: 1.25rem; margin-bottom: 12px; }

  .contact-alert { padding: 12px; border-radius: 10px; font-size: 0.95rem; }
  .contact-success{ background:#f0fff4; border:1px solid #b7eb8f; }
  .contact-error{ background:#fff1f0; border:1px solid #ffa39e; }

  .contact-form .row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
  .contact-form label { font-weight: 600; }
  /* iOSのフォーム拡大対策: font-size>=16px */
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    -webkit-appearance: none;
    background: #fff;
  }
  .contact-form textarea { min-height: 144px; resize: vertical; }

  .btn-contact{
    width: 100%;
    padding: 14px 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .02em;
  }

  /* 戻るボタンの位置調整（邪魔にならないように） */
  #backToTop { right: 12px; bottom: 12px; width: 44px; height: 44px; }
}
 .news-hero { padding: 12px; }
  .news-hero .news-title { font-size: 1.1rem; }
  .news-hero .news-list li { font-size: 0.9rem; }
		
 }
.news-hidden {
  max-height:0;
  overflow:hidden;
  transition:max-height 0.6s ease;
}
.news-hidden.open {
  max-height:2000px; /* ← 大きめに変更 */
}

/* 幅ぴったり＆余白調整（埋め込み側の!importantに合わせる） */
.insta-embeds .instagram-media{
  margin:0 !important;
  width:100% !important;
  max-width:100% !important;
}
