/* =========================
   Base
========================= */
:root{
  --bg: #f5f7fb;
  --card: #ffffff;
  --primary: #ff8fb1;
  --primary-dark: #ff6f9e;
  --text: #2b2b2b;
  --muted: #777;
  --border: #e5e7eb;
  --radius: 12px;
}

*{
  box-sizing: border-box;
}

body{
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

/* =========================
   Header
========================= */
header{
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 1.5rem 1rem;
  text-align: center;
}

header h1{
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: .05em;
}


/* ===== レイアウト ===== */
.layout{
    display:flex;
    min-height:100vh;
}

/* ===== メイン ===== */
.content{
    flex:1;
    display:flex;
    flex-direction:column;
}

/* ===== サイドバー ===== */
.sidebar{
    width:260px;
    background: rgba(0,0,0,.06);
    border-right:1px solid var(--primary);
    padding:24px 16px;
}

.sidebar-title{
    font-size:1.2rem;
    margin-bottom:16px;
    color:var(--sub);
}

.sidebar-menu{
    list-style:none;
    padding:0;
    margin:0;
}

.sidebar-menu li{
    margin-bottom:10px;
}

.sidebar-menu a{
    display:block;
    padding:12px 14px;
    border-radius:10px;
    text-decoration:none;
    color:var(--text);
    background:rgba(255,255,255,0.03);
    transition:all .25s;
}

.sidebar-menu a:hover{
    background:var(--card);
    transform:translateX(4px);
}
.menu-name{
    display:block;
    font-weight:600;
}

.menu-desc{
    display:block;
    font-size:.75rem;
    color:var(--muted);
}

/* =========================
   Layout
========================= */
main{
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* =========================
   Form
========================= */
form{
  background: var(--card);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
  margin-bottom: 1.5rem;
}

select,
button{
  padding: .55rem .6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: .9rem;
  background: #fff;
}

select:focus,
button:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255,143,177,.25);
}

button{
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}

button:hover{
  background: var(--primary-dark);
  transform: translateY(-1px);
}
/* =========================
   Clearfix（左固定パネル）
========================= */
.clearfix {

  background: var(--card);
  padding: 1rem;
  margin: auto 0 1.5rem 0;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
/* =========================
   Grid
========================= */
.grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* =========================
   Card
========================= */
.card{
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  padding: .75rem;
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.card img{
  width: 100%;
  border-radius: 10px;
}

/* =========================
   Card Text
========================= */
.card .title{
  font-weight: 600;
  margin-top: .6rem;
  font-size: .95rem;
}

.card .meta{
  font-size: .75rem;
  color: var(--muted);
  margin-top: .2rem;
}

/* =========================
   Color Palette
========================= */
.palette{
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.palette span{
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,.15);
}

/* =========================
   Empty
========================= */
.empty{
  text-align: center;
  font-weight: 600;
  padding: 3rem 1rem;
  color: var(--muted);
}
/* =========================
   Context Menu
========================= */
.context-menu{
  position: fixed;
  display: none;
  flex-direction: column;
  min-width: 180px;
  background: #e5e7eb;
  color: #000;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
  border: 1px solid #e5e7eb;
  z-index: 9999;
  overflow: hidden;
}

.context-menu button{
  background: none;
  color: #000;
  border: none;
  padding: .65rem .9rem;
  text-align: left;
  font-size: .85rem;
  cursor: pointer;
}

.context-menu button:hover{
  color: #000;
  background: #f5f7fb;
}

/* =========================
   Sunstripe Illustration Section
========================= */
.section-box {
  background: linear-gradient(
    135deg,
    #fff6fb 0%,
    #f3f8ff 40%,
    #f6fff9 100%
  );
  border-radius: 18px;
  padding: 1.8rem 1.6rem;
  margin-bottom: 2rem;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* 見出し */
.section-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  background: linear-gradient(
    90deg,
    #ff8ec7,
    #8bb6ff,
    #7fe0b3
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* figure */
.section-box figure {
  margin: 0 0 1.2rem;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section-box figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

/* 画像 */
.section-box figure img {
  display: block;
  width: 100%;
}

/* キャプション */
.section-box figcaption {
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  text-align: center;
  color: #666;
  background: linear-gradient(
    90deg,
    rgba(255, 200, 230, 0.4),
    rgba(200, 220, 255, 0.4)
  );
}

/* 本文 */
.section-box p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 0.8rem;
  padding: 0 0.4rem;
}

/* 最後の段落は余白なし */
.section-box p:last-child {
  margin-bottom: 0;
}

#banner-code {
  background: #f3f4f6;
  padding: 1rem;
  border-radius: 8px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.85rem;
  overflow-x: auto;
}


/* =========================
   Section-Box common
========================= */

.section-box {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 20px;
}

.section-box > h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
}

.section-box > h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #ff5fa2, #5fd1ff);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* =========================
   Site Map / Related Facilities
========================= */

.site-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.site-map .card {
  display: block;
  background: #ffffff;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.site-map .card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,95,162,0.12),
    rgba(95,209,255,0.12)
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-map .card:hover::before {
  opacity: 1;
}

.site-map .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.site-map .card h2 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: #111827;
  position: relative;
  z-index: 1;
}

.site-map .card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
  position: relative;
  z-index: 1;
}


/* =========================
   Footer
========================= */
footer{
  text-align: center;
  padding: 1.25rem;
  background: #f0f2f7;
  margin-top: 3rem;
  font-size: .8rem;
  color: var(--muted);
}

/* ===== レスポンシブ ===== */
@media (max-width:900px){
    .layout{
        flex-direction:column;
    }
    .sidebar{
        width:100%;
        border-right:none;
        border-bottom:1px solid #222;
    }
}