/* ==========================================================
   gallery2026.css — responsive override
   gallery.css は共用のため変更せず、このファイルだけで
   ギャラリー利用案内ページのレイアウトを上書きします。
   ========================================================== */

@charset "UTF-8";

:root {
  --green: #087a2a;
  --green-dark: #004712;
  --green-soft: #eaf5ed;
  --ink: #222;
  --muted: #666;
  --line: #d9dedb;
  --paper: #fff;
  --bg: #f4f6f4;
  --accent: #d8a900;
  --radius: 12px;
  --shadow: 1px 1px 4px rgba(0,0,0,.07);
}

* { box-sizing: border-box; }
   
/* --- page foundation / legacy layout overrides --- */
html {
  scroll-behavior: smooth;
  /* overflow-x: hidden; */
}

body.category-body,
body.category-body *,
body.category-body *::before,
body.category-body *::after {
  box-sizing: border-box;
}

/* body.category-body {
  overflow-x: hidden;
} */

body.category-body {
  width: 100%;
  max-width: 770px;
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-size: 0.9em;
  line-height: 1.4;
}

body.category-body img,
body.category-body svg {
  max-width: 100%;
}

#container,
#main,
#main-body,
#wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  float: none;
  background: transparent;
}

#header {
  position: static;
  width: 100%;
  height: auto;
  margin: 0;
  z-index: auto;
}

#header-body {
  width: 100%;
}

.blog-logo {
  width: 100%;
}

.blog-logo .logo {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.blog-logo .logo a {
  display: block;
}

.blog-logo .logo img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

#main-body {
  padding-top: 0;
}

#wrapper {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: start;
  gap: 0;
  background: transparent;
}

#sidebar {
  position: sticky;
  top: 0;
  width: auto;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  float: none;
  margin-top: 10px;
  background: #edf2e3;
  border-top:8px solid #004712;
  z-index: 20;
}

#sidebar-body {
  padding: 18px 10px 40px;
}

#content {
  min-width: 0;
  width: auto;
  margin: 0;
  background: transparent;
}

#content-body {
  width: auto;
  max-width: 600px;
  margin: 10px auto;
  padding: 0 0 24px 30px;
  background: transparent;
}

#links {
  display: none;
}

#footer {
  width: 100%;
  clear: both;
  margin: 0;
  height: auto;
}
#footer-body {
  width: 100%;
  max-width: 770px;
  margin: 0 auto;
  padding: 0;
}

#copyright {
  width: 100%;
  margin: 0;
  padding: 5px;
  color: #fff;
  text-align: center;
  background: #004712;
  border: 0;
  font-size: 13px;
}

/* --- existing modern content --- */
.main_container {
  width: 100%;
  max-width: 770px;
  margin-inline: auto;
}

.site-header {
  width: 100%;
  max-width: none;
  margin: 0 auto 20px;
  padding: 10px 30px 2px;
  color: #fff;
  background:var(--green);
  /* border-radius: 12px 12px 0 0; */
  box-shadow: var(--shadow);
}
.gallery-header {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 5px 30px 2px;
  color: #fff;
  background:var(--green-dark);
  box-shadow: var(--shadow);
}

.site-header .eyebrow {
  margin: -5px 0 5px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  opacity: .8;
}
.gallery-header .eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  opacity: .8;
}

.site-header h1 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 26px);
  line-height: 1.35;
  letter-spacing: .04em;
}
.gallery-header h1 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.35;
  letter-spacing: .04em;
}

.toc {
  position: sticky;
  width: 100%;
  top: 0px;
  z-index: 60;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2px 0 10px;
  margin-bottom: 10px;
  background: var(--green);
  backdrop-filter: blur(8px);
  border-radius: 0 0 12px 12px;
}

.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 2px 15px;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid #cfd8d1;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: .2s ease;
}

.toc a:hover,
.toc a:focus-visible {
  color: #fff;
  background: var(--green, #087a2a);
}

.side-info, .notice {
  padding: 20px 40px 10px;
  border: solid 1px var(--green);
  border-radius: var(--radius);
  background-color: var(--green-soft);
  box-shadow: var(--shadow);
}
.side-info strong {
  font-size: 1.2rem;
  color: #cc3333;
}
.side-infotxt {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
  gap: 20px;
}

.section {
  padding: 42px 0 20px;
  scroll-margin-top: 78px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 4px solid var(--green, #087a2a);
}
.section-title span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.2rem;
}

.section-title h2 {
  margin: 0;
  padding: 0;
  color: var(--ink, #222);
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.3;
}

.info-grid, .content-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  min-width: 0;
  padding: 10px 20px;
  background: var(--paper, #fff);
  border: 1px solid var(--line, #d9dedb);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow);
}

.card h3,
.content-list h3 {
  margin: 0 0 10px;
  padding: 0;
  color: var(--green-dark, #075d20);
  font-size: 18px;
  line-height: 1.5;
}

.card p,
.content-list p {
  margin: 0 0 8px;
}

.card ul,
.content-list ul {
  margin: 8px 0 0;
  padding-left: 1.35em;
}

.fee-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}

.fee-table th,
.fee-table td {
  padding: 9px 10px;
  border: 1px solid var(--line, #d9dedb);
  text-align: left;
}

.fee-table th {
  color: #fff;
  background: var(--green, #087a2a);
}

.fee-table td:last-child {
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.step {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: #fff;
  /* border-left: 5px solid var(--green, #087a2a); */
  border-radius: 10px;
  box-shadow: var(--shadow);
}

/* .notice {
  margin-bottom: 18px;
  padding: 18px 20px;
  color: #214d2e;
  background: var(--green-soft, #eaf5ed);
  border: 1px solid #c7dfcc;
  border-radius: var(--radius, 12px);
} */

.content-list {
  /* display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  background: var(--line, #d9dedb);
  border: 1px solid var(--line, #d9dedb);
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow); */
  margin-top: 30px;
}

/* .content-list article.card {
  margin-bottom: 5px;

} */

.facility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.facility-grid dl {
  margin-bottom: 20px;
}

.spec-list {
  margin: 0;
}

.spec-list div {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line, #d9dedb);
}

.spec-list dt {
  color: var(--muted, #666);
}

.spec-list dd {
  margin: 0;
  font-weight: 700;
}

.plan {
  display: block;
  width: 100%;
  height: auto;
  color: #303b35;
}

.plan-small {
  min-height: 0;
  margin-top: 12px;
}

.floorplan-card {
  margin-top: 18px;
}

.floorplan {
  max-width: 900px;
  margin: 10px auto 0;
}

.download-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 18px 0 36px;
  padding: 24px;
  color: #fff;
  background: var(--green-dark, #075d20);
  border-radius: var(--radius, 12px);
}

.download-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.download-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 13px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 7px;
  text-decoration: none;
  font-size: 13px;
}

.download-pdf {
  display: block;
  border: 1px solid var(--accent);
  width: auto;
  padding: 10px 20px;
  margin-bottom: 8px;
  text-align: center;
  border-radius: var(--radius);
  background-color: var(--green);
  font-weight: bold;
	width: 90%;
	background-color: #FFFFCC;
	border: 1px solid #CCCCCC;
	padding-left: 5px;
	color: #999966;
}
/* .download-pdf a {
  color: #fff;
  font-weight: 500;
} */
.contact {
  margin: 0 0 30px;
  padding: 15px 28px;
  text-align: left;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: var(--radius);
}

.contact h2 {
  margin: 0 0 8px;
  color: var(--green-dark);
}

/* --- old sidebar cleanup --- */
#sidebar .side {
  margin: 8px 5px 0 8px;
}

#sidebar .side a {
  display: inline-block;
  line-height: 1.65;
}

#sidebar #address {
  margin: 20px 8px 0;
  font-size: 13px;
  line-height: 1.7;
}

#sidebar font[color="#CC3333"] {
  display: block;
  color: #b02a2a !important;
  line-height: 1.6;
}

#sidebar .sidetitle {
  margin-top: 14px;
}

#sidebar .sidetitle-body {
  padding-top: 5px;
}

#sidebar #side-title {
  margin-left: 5px;
  font-weight: 700;
}

.content-title {
  margin: 10px 0 10px;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 2px double var(--green);
}
.content-title img {
  display: inline-block;
  margin: 10px 0 0 10px;
  width: 16px;
  height: 16px;
}

.side-body li {
  margin: 0 0 6px 6px;
  padding: 0;
  line-height: 1.5;
}


/* --- accessibility / interaction --- */
a:focus-visible,
button:focus-visible {
  outline: 3px solid #d8a900;
  outline-offset: 2px;
}

a {
  overflow-wrap: anywhere;
}

.side-footer {
  display: none;
  background: #edf2e3;
}

/* ==========================================================
   Tablet
   ========================================================== */
@media (max-width: 900px) {
  #wrapper {
    display: block;
  }
  #content {
    width: 100%;
    /* overflow-x: hidden; */
  }
  #content-body {
    max-width: 100%;
    padding-inline: 0;
  }
  #sidebar {
    display: none;
  }
  .site-header {
    margin: 0 auto 20px;
    /* padding: 24px 24px 26px; */
  }

  .download-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-links {
    justify-content: flex-start;
  }
  .side-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
}
@media (max-width: 780px) {  
  .content-title img {
    margin-bottom: 6px;
  }
}

/* ==========================================================
   Smartphone
   ========================================================== */
@media (max-width: 680px) {
  body.category-body {
    width: 100%;
    font-size: 15px;
    line-height: 1.4;
  }
  
  #wrapper {
    display: block;
  }

  #sidebar {
    /* position: static;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible; */
    display: none;
  }

  #sidebar-body {
    display: none;
  }

  #content-body {
    width: 100%;
    max-width: 100%;
    padding: 0 12px 40px;
    /* overflow-x: clip; */
  }

  .site-header {
    margin: 0 auto 20px;
    padding: 12px 18px 6px;
    border-radius: 0;
  }

  .site-header h1 {
    font-size: 25px;
    overflow-wrap: anywhere;
  }

  .card,
  .content-list article,
  .step,
  .notice,
  .contact,
  .download-box {
    overflow-wrap: anywhere;
  }

  .toc {
    justify-content: space-around;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-top: -7px;
    padding: 8px 4px;
    border-radius: 0;
  }

  .toc a {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 13px;
    font-size: 13px;
  }

  .section {
    padding-top: 30px;
  }

  .section-title {
    gap: 9px;
    margin-bottom: 17px;
  }

  .section-title span {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .card,
  .content-list article,
  .contact {
    padding: 17px;
  }

  .step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 15px;
  }

  .step-no {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .fee-table {
    font-size: 12px;
  }

  .fee-table th,
  .fee-table td {
    padding: 7px 6px;
  }

  .spec-list div {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .download-box {
    padding: 18px;
  }

  .download-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .download-links a {
    justify-content: center;
  }

  .contact {
    margin-bottom: 20px;
  }

  .side-infotxt {
    flex-direction: column;
    gap: 12px;
  }
}
