/* file name: top.css */

@charset "UTF-8";

/* test用(すべての要素に境界線を入れる。謎の右側空白あぶり出し) */
/*
*{
    outline: 2px red solid;
}
*/
/* === レイアウトのためのCSS === */

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  /*
  height: 100%;
  */
  height: auto;
  min-height: 100vh;
  box-sizing: border-box;
  overflow-x: hidden;
}

img {
  margin: 0 auto 20px auto;
  max-width: 100%;
  height: auto;
  display: block;
}

#top-body {
  background: url("../sozai/jpg/1450671.jpg") repeat fixed center;
  background-size: 300px 300px;
  background-color: #fff8f8;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: #003399;
  /*
  background-image: url(../sozai/jpg/bg057_05_03.jpg);
  background-color: #CCFFFF;
  */
}

  a:link { color: #6666FF; }
  a:visited { color: #009933; }
  a:hover { color: #ff0000; }
  a:active { color: #FF33FF; }

*, *::before, *::after {
  box-sizing: border-box;
}

/* 22-07-27 */
/* === タイトルロゴレイアウト === */
.flex-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  align-items: flex-start;
  /*
  width: 100vw;
  */
}

.flex-container > div {
  box-sizing: border-box;
  margin: 5px;
  width: 350px;
  min-width: 0;
}

/* 左側の空白（バランス用） */
.tl-layout1 {
  flex: 1;
}

/* タイトルロゴ中央 */
.title-logo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  flex: 2;
  text-align: center;
/*
  background: url("../sozai/png/00216.png") no-repeat center top;
  background-size: contain;
  padding: 5px;
*/
}
.ribbon-img {
  width: 150px;
  height: auto;
  margin-bottom: -95px; /* 少し上にかぶせたい場合 */
  z-index: 1;
}
/* タイトル画像をふんわり浮かせる影（黒影は使わない） */
.title-img {
  z-index: 2;
  position: relative;
  display:block;
  margin-inline:auto;
  height:auto;
  /* 350px 基準の時は幅固定。スマホは後述のメディアクエリで縮めます */
  width:380px;

  /* ふんわり白＋淡ピンク影で“ぷるっ”と見せる */
  filter:
    drop-shadow(0 1px 0 rgba(255,255,255,.96))
    drop-shadow(0 0 10px rgba(255,182,193,.16))
    drop-shadow(0 8px 18px rgba(255,105,180,.20));
}

/* 右側の更新日 */
.tl-layout2 {
  flex: 1;
  text-align: right;
  color: red;
  padding-right: calc(1em + 8px);
  align-self: flex-start;   /* ← 念のため上寄せを強制 */
}

/* スケジュール表示用装飾 */
#schedule {
  text-align: center;
  color: #FF9900;
}
/* 更新履歴の装飾 */
.tb-rireki {
  margin: auto;
  border-collapse: collapse;
  font-size: 0.95rem;       /* 少しだけ小さく */
  line-height: 1.6;         /* 行間広めで読みやすく */
  color: #444;              /* 優しいグレー系 */
  font-family: "Hiragino Maru Gothic ProN", "Rounded M+ 1c", "Yu Gothic", sans-serif;
}
.tb-rireki-inner {
  background: #fffce8;
  border-radius: 10px;
  padding: 0.8em;
}

#tb-tr-rireki {
  background: #fffce8;        /* 優しいレモンイエローに近い色 */
  border-radius: 10px;
  padding: 0.8em;
  /*
  background: #FFFFCC;
  */
}
.tb-rireki td {
  padding: 0.5em 1em;
  vertical-align: top;
}
.tb-rireki td:last-child {
  padding-left: 0.5em;
  font-size: 0.9rem;
  color: #666;
}
#tb-tr-rireki td:first-child {
  color: #444;
}
.rireki-date {
  color: #cc3366;
  font-weight: bold;
}

.top-main {
  font-family: "Hiragino Maru Gothic ProN", "Rounded M+ 1c", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  text-shadow: 1px 1px 2px #eee;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  margin: 10px auto;
  max-width: 800px;
  text-align: center;
}

footer {
  background: linear-gradient(to bottom, #fff0f5, #ffe6f0);
  padding: 20px;
  border-top: 2px dashed #ff99cc;
  text-align: center; /* 中のカウンター中央寄せのために追加 */
}
footer p {
  font-size: 14px;
  color: #666;
}

footer > hr {
	height: 2px;
    background-color: #99FF66;
    border: none;
}
footer > p,address {
  text-align: center;
  color: black;
  font-size: 13px;
}

footer > .counter-box {
  display: inline-block; /* 内容サイズに合わせる */
  background-color: #fff;
  padding: 10px 15px;
  margin-top: 10px;
  border: 1px dotted #ffccdd;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 192, 203, 0.3); /* ふんわり影を追加 */
}
.counter-box img,
.counter-box script {
  display: block;
  margin: 0 auto;
}

body {
  font-family: "Hiragino Maru Gothic ProN", "Rounded M+ 1c", "Yu Gothic", sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

h1, h2, h3 {
  color: #aa3366;
  font-weight: bold;
  margin-bottom: 0.6em;
}

p {
  margin: 1.2em 0;
}
/*
footer p,
.copyright,
.notice {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  text-align: center;
}
*/

.top-photo-frame {
  display: flex;
  flex-direction: column; /* ← これを追加！ */
  align-items: center;     /* 中央寄せ */
  justify-content: center;
  padding: 10px;
  background: rgba(255, 240, 250, 0.6);
  border: 2px dashed #ffccdd;
  border-radius: 16px;
  margin: 20px auto;
  max-width: 580px;
  box-shadow: 0 4px 12px rgba(255, 192, 203, 0.3);
}

.top-photo {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(255, 192, 203, 0.4);
}

.top-photo-message {
  text-align: center;
  font-size: 1.1em;
  margin-top: 10px;
  color: #b26e99;
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
}

/* === スマホ環境 === */
@media screen and (max-width: 768px) {
  .rireki-wrapper {
    overflow-x: auto;
    width: 100%;
  }
  .tb-rireki {
    width: 100%;
    min-width: 500px; /* スクロール可能な最小幅に調整 */
  }

  .tb-rireki-inner {
    width: 100%;
    border-collapse: collapse;
  }

  .tb-rireki-inner td {
    padding: 0.3em 0.5em;
    font-size: 0.9rem;
    vertical-align: top;
  }

  .tb-rireki-inner .rireki-number {
    text-align: right;
    color: #666;
    white-space: nowrap;
    width: 4em;
  }

  #top-body {
    background-image: url("../sozai/jpg/1450671.jpg");
    background-repeat: repeat;
    background-position: center;
    background-size: 300px 300px;
    background-color: #fff8f8;
    background-attachment: scroll; 
  }

  .title-logo {
    position: relative;
  }
  .ribbon-img {
    position: relative;
    width: 120px;
    margin-bottom: -78px;
    z-index: 1;
  }
  .title-img {
    position: relative;
    width: 300px;
    z-index: 2;
  }

  .counter-box img {
    display: inline-block;
    margin: 0 auto;
  }
  img {
    max-width: 100%;
    height: auto;
  }

  #top-body {
    overflow-x: hidden;
  }

  /* 2504251334 追加 */
  .flex-container {
    flex-direction: column;
    align-items: center;
    row-gap: 1px;   /* ← ここだけで“バナー↔日付”の間隔を確実に確保 */
  }

  .flex-container > div {
    width: 100%;
    text-align: center;
    padding: 2px 0;
  }

  .tl-layout2 {
    display: flex;
    justify-content: center;     /* 横方向中央 */
    align-items: center;
    width: 100%;                 /* 横幅いっぱいにして中央基準を安定 */
    padding-right: 0;
    margin: 0px auto 0;
    text-align: center;
  }

  .tl-layout2 > *{
    margin: 0;                   /* p などのデフォルト余白をリセット */
  }
}

/* スマホ：横幅に合わせて自然に縮む */
@media (max-width: 420px){
  .title-img{ width:min(88vw, 340px); }
}
