@charset "UTF-8";

/* ===== Base ===== */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  line-height: 1.6;
}

/* generic responsive media */
img { max-width: 100%; height: auto; display: block; }

/* ===== Container ===== */
.container {
  max-width: 1200px;      /* site max width */
  width: 100%;
  margin: 0 auto;         /* center align */
  padding: 0 16px;        /* small side padding */
}

/* ===== Header Image ===== */
.header-image-wrap {
  display: flex;
  justify-content: center; /* horizontal center */
}

.header-image {
  width: 100%;
  height: auto;
  max-width: 1200px;      /* do not exceed header width */
  display: block;
}


/* ===== 2 Column Section ===== */
.main-2col {
  background: #fff;
  padding: 24px 0;
}

.main-2col .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;  /* ← right menu = 320px fixed width */
  gap: 24px;
  box-sizing: border-box;
}

/* left placeholder */
.left-pane {
  background: #fbfffa;
  min-height: 600px;
  border: none; 
  border-radius: 0px;
  overflow: hidden;
}

/* right menu */
.right-menu {
  align-self: start;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-btn img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0px;
}


/* ===== Footer ===== */
.site-footer {
  background: #31522d;          /* dark background */
  color: #fff;
  padding: 24px 0;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;         /* match top image width */
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;           /* wraps on narrow screens */
  gap: 12px;
  box-sizing: border-box;
}

.footer-logo {
  margin: 0;
  font-weight: bold;
  font-size: 15px;
}

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-nav a:hover {
  text-decoration: underline;
}


/* pointer cursor */
.menu-btn,
.menu-btn img { cursor: pointer; }

.menu-btn { transition: transform .05s, opacity .15s, box-shadow .15s; }
.menu-btn:hover { opacity: .9; box-shadow: 0 0 0 2px rgba(0,0,0,.06) inset; }
.menu-btn:active { transform: translateY(1px); }
.menu-btn:focus-visible { outline: 3px solid rgba(73,163,255,.35); outline-offset: 2px; }

/* */
.menu-btn.is-active { box-shadow: 0 0 0 3px rgba(73,163,255,.25) inset; }


.menu-btn.is-active { outline: 3px solid rgba(73,163,255,.35); }




/* ===== Top Slider ===== */
.slider {
  position: relative;
  width: 100%;
  max-width: 1200px; 
  height: auto;
  margin: 0 auto;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

.slide.active {
  opacity: 1;
  position: relative;
}



/* ===== 2 Column Layout (Left flexible, Right adaptive, Side below) ===== */
.main-2col .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(400px, 1fr) 320px;
  grid-template-areas:
    "left  right"
    "left  side";
  gap: 16px;
  box-sizing: border-box;
  padding: 0 16px;
}

.left-pane  { grid-area: left; }
.right-menu { grid-area: right; }
.side-images{ grid-area: side; text-align: center; }

.menu-btn img {
  width: 100%;
  height: auto;
  display: block;
}

.side-images img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 320px; /* default on PC */
  margin: 0 auto;
}

/* ===== 800–651px: shrink right column to avoid overflow ===== */
@media (max-width: 800px) and (min-width: 651px) {
  .main-2col .container {
    grid-template-columns: minmax(400px, 1fr) minmax(220px, 280px);
    gap: 12px;
    padding: 0 12px;
  }
}

/* ===== Below 650px: vertical layout ===== */
@media (max-width: 650px) {
  .main-2col .container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "right"
      "left"
      "side";
    gap: 12px;
    padding: 0 12px;
  }

  .menu-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
  }

  /* shrink side images */
  .side-images img {
    max-width: 250px;
    width: 100%;
    height: auto;
  }
}


/* Back to top (anchor version, always visible) */
.back-to-top{
  position: fixed;
  right: 16px;
  bottom: 80px;   /* lifted above footer */
  width: 56px;
  height: 56px;
  z-index: 9999;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  background: transparent;
  border: none;
  cursor: pointer;
}

.back-to-top img{
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* smooth scroll effect */
html { scroll-behavior: smooth; }

/* 2clam junban*/
.main-2col .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(400px, 1fr) 320px;
}

.right-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-images img {
  width: 100%;
  height: auto;
  display: block;
}

/* below 650px → vertical layout */
@media (max-width: 650px) {
  .main-2col .container {
    grid-template-columns: 1fr;
  }

  #sideImagesHolder {
    margin-top: 12px; /* spacing above images */
  }

  .side-images img {
    max-width: 250px;
    margin: 0 auto;
  }
}


.left-pane {
  background: #fff;
  border: none;
  padding-left: 32px;  /* left-space */
  padding-top: 16px;   /* top-space */
  padding-right: 16px; /* right-space */
  box-sizing: border-box;
}



/* completely remove all spacing between separator and first image */
.side-images {
  margin-top: 0 !important;
  padding-top: 0 !important;
  line-height: 0; /* remove inline-gap caused by line height */
}

.side-images img {
  display: block;
  margin: 0 auto 8px auto !important;
  padding: 0 !important;
}

.side-images img:first-child {
  margin-top: 0 !important; /* no gap above first image */
}

.side-images img:last-child {
  margin-bottom: 0 !important;
}

/* PC separator */
.menu-list::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: #ddd;
  margin: 6px 0 0 0; /* top only */
}


/* Mobile separator */
@media (max-width: 650px) {
  .menu-list::after { display: none; }

  .left-pane::after {
    content: "";
    display: block;
    width: 80%;
    max-width: 300px;
    height: 1px;
    background-color: #ddd;
    margin: 8px auto 0 auto; /* top only */
  }
}


:root, html, body {
  font-family: "Meiryo", "Yu Gothic",
               "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               "MS PGothic", sans-serif;
}

body, button, input, select, textarea {
  font-family: inherit;
}

:where(*):not(i):not([class*="fa-"]) {
  font-family: inherit;
}



/* ===== responsive title image ===== */
.page-title {
  text-align: left !important;
  margin: 0 0 20px 0 !important; 
  max-width: 100%;
}

.page-title img.responsive-title {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 !important;
}

/* responsive left-aligned image (class: imagesize) */
.imagesize {
  display: block;
  max-width: 480px;   /* upper limit on large screens */
  width: 100%;        /* shrink to fit small screens */
  height: auto;
  margin: 0 0 16px 0; /* left align + bottom space */
  object-fit: contain; /* keep full image visible */
}



/* === responsive table inside left pane, inline-style friendly === */

.left-pane {
  position: relative;
  overflow-x: hidden;       /* no horizontal scrollbar */
  overflow-y: visible;
  box-sizing: border-box;
  height: auto !important;
  max-height: none !important;
}

/* override inline widths safely */
.left-pane table {
  width: 100% !important;     /* ignore inline width like 774px */
  max-width: 100% !important;
  border-collapse: collapse;
  table-layout: fixed;
  box-sizing: border-box;
  background: #fff;
  color: #555;
  font-family: "Meiryo", sans-serif;
}

/* cells */
.left-pane td,
.left-pane th {
  width: auto !important;     /* ignore inline cell widths */
  max-width: 100% !important;
  border: 1px solid #999;
  padding: 8px 10px;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: #fff;
  box-sizing: border-box;
}

/* first column (date) */
.left-pane td:first-child {
  width: 7.5em !important;
  text-align: center;
  white-space: normal;
}

/* hr above table */
.left-pane hr {
  clear: both;
  border: 0;
  border-top: 1px solid #bbb;
  margin: 24px 0;
  width: 100%;
  box-sizing: border-box;
}

/* responsive text & padding */
@media (max-width: 480px) {
  .left-pane td,
  .left-pane th {
    font-size: 13px;
    padding: 6px 8px;
  }
}


/* === colored bar below header image (same width as header) === */
.header-bar {
  max-width: 1200px;        /* same as your site container width */
  height: 8px;             /* thickness of the bar */
  background-color: #eeeeee; /* adjust color as needed */
  margin: 0 auto;           /* center align */
  border-radius: 0px;       /* optional, for soft edges */
  box-sizing: border-box;
}


.greet-row{
  display:block;
}

.greet-photo{
  display:block;
  max-width:100%;
  height:auto;
  margin:16px 0 0;
}

.greet-text{
  margin:0;
}

.greet-sign{
  margin-top:10px;
}

@media (min-width:1000px){
  .greet-row{
    display:flex;
    gap:24px;
    align-items:flex-start;
  }

  .greet-photo{
    width:280px;
    max-width:280px;
    margin:0;
    flex:0 0 auto;
  }

  .greet-text{
    flex:1;
    min-width:0;
  }
}

/* mobile first: text on top, image below */
.greet-row{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.greet-text{
  order: 1;
}

.greet-photo{
  order: 2;
  max-width: 320px;
  width: 100%;
  height: auto;
}

/* desktop: image left, text right */
@media (min-width: 1000px){
  .greet-row{
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }

  .greet-photo{
    order: 1;
    flex: 0 0 280px;
  }

  .greet-text{
    order: 2;
    flex: 1;
  }
}