/* gayosi.com 共通スタイル（2026-11 リニューアル）
   各ページの <style> にはデザイン本体、ここには動き・メニュー・フォームなど共通部分を置く */
html { scroll-behavior: smooth; }
img { max-width: 100%; }
header { position: sticky; top: 0; z-index: 50; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary span[aria-hidden="true"] { transform: rotate(45deg); }
details > summary span[aria-hidden="true"] { transition: transform .25s ease; }

/* スマホ・iPad用メニュー */
.sp-panel { position: fixed; inset: 0; z-index: 60; background: rgba(43,38,32,.45); display: flex; justify-content: flex-end; }
.sp-panel[hidden] { display: none; }
.sp-panel nav { width: min(320px, 86vw); height: 100%; overflow-y: auto; background: #FFFDF8; padding: 88px 28px 40px; display: flex; flex-direction: column; gap: 4px; box-shadow: -12px 0 32px rgba(43,38,32,.15); animation: slideIn .3s ease; }
.sp-panel a { display: block; padding: 12px 4px; font-family: 'Zen Old Mincho', serif; font-weight: 700; font-size: 17px; color: #2B2620; text-decoration: none; border-bottom: 1px solid #EDE5D4; }
.sp-panel a.sub { font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 500; font-size: 14px; padding: 9px 4px 9px 18px; color: #4A433A; }
.sp-panel a.cta { margin-top: 20px; text-align: center; background: #2B2620; color: #F7F2E7; border-radius: 999px; border: 0; }
body.menu-open { overflow: hidden; }
body.menu-open .sp-menu { position: relative; z-index: 70; }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* フッターのリンク */
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-nav a { color: #CFC4AE; text-decoration: none; }
.foot-nav a:hover { color: #F5CF3A; }

/* お問い合わせフォーム */
.fi { min-height: 48px; border: 1px solid #BFB39C; border-radius: 10px; background: #F7F2E7; padding: 0 14px; font-size: 16px; font-family: inherit; color: #2B2620; font-weight: 400; }
textarea.fi { padding: 12px 14px; min-height: 140px; }
.fi:focus { outline: 3px solid rgba(245,207,58,.7); outline-offset: 1px; border-color: #2B2620; }
.req { display: inline-block; margin-left: 6px; font-size: 11px; background: #2B2620; color: #F7F2E7; border-radius: 4px; padding: 0 6px; vertical-align: 1px; }
.lb { display: flex; align-items: center; gap: 8px; }
.lb .req { margin: 0; }
.form-error { grid-column: 1 / -1; margin: 0; color: #A33A1F; font-weight: 700; }
.form-success { background: #F1EADB; border-radius: 20px; padding: 32px; }
#submitBtn[disabled] { opacity: .6; cursor: wait; }

/* スクロールで出てくる（animation-timeline 非対応ブラウザ用） */
html.io .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
html.io .rv.in { opacity: 1; transform: none; }

/* 横スクロールのページ送りの点 */
.m-hint .dots { display: flex; gap: 5px; }
.m-hint .dots i { width: 6px; height: 6px; border-radius: 3px; background: #CFC4AE; transition: width .25s ease, background .25s ease; }
.m-hint .dots i.on { width: 18px; background: #2B2620; }
.m-scroll::-webkit-scrollbar { display: none; }

/* 新着情報の絞り込み */
#newsFilter button[aria-pressed="true"] { background: #2B2620 !important; color: #F7F2E7 !important; }
#newsFilter button[aria-pressed="false"] { background: transparent !important; color: #2B2620 !important; }
article[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.io .rv { opacity: 1; transform: none; transition: none; }
}

/* 重なり・スマホヘッダーの調整 */
.rv > :not([aria-hidden]),.hero-in > :not([aria-hidden]){position:relative;z-index:1}
@media (max-width: 760px){header > div{flex-wrap:nowrap !important;padding:12px 20px !important;gap:10px !important}header a img{height:34px !important}header a span{font-size:12px !important;padding-left:8px !important}.blob-f1,.blob-f2,.blob-f3{scale:.5}}
.m-scroll{scroll-padding-inline:32px}
section[style*="background: #2B2620"] .m-hint{color:#DDD4C3 !important}section[style*="background: #2B2620"] .m-hint .dots i.on,section[style*="background: #2B2620"] .m-hint span span:first-child{background:#F5CF3A !important}
section[id]{scroll-margin-top:84px}
@media (max-width: 760px){.m-inset{left:-8px !important;bottom:-28px !important;height:120px !important;border-width:4px !important}}
