@charset "utf-8";

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: #000;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: #000; text-decoration: none; }
a:hover { text-decoration: underline; }

p { text-align: left; margin: 0 0 12px; }

.site {
  width: 100%;
  max-width: 1000px;        /* PC時の横幅1000px */
  margin: 0 auto;           /* 中央寄せ */
  padding: 0 12px;          /* スマホ時の左右余白 */
}

/* ========== Divider ========== */
.divider {
  height: 1px;
  background: #191970;      /* マリンブルーブルー */
  margin: 12px 0;
}

/* ========== Header ========== */
.header {
  text-align: center;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
}

.logo img,
.tel img {
  width: 200px;
  height: 50px;
  object-fit: contain;
}

.catch {
  margin: 10px 0 6px;
  font-size: 16px;
  font-weight: 400;
  color: #000;
}

/* ===============================
   Header Navigation（1000px内固定）
================================ */

/* ナビ全体 */
.nav {
  margin-top: 10px;
  background: #274a78;      /* 青礫 */
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  max-width: 1000px;        /* 1000px内に制限 */
  margin-left: auto;
  margin-right: auto;
  flex-wrap: nowrap;        /* PCでは折り返さない */
}

/* 各ナビ項目 */
.nav-item {
  flex: 1;                  /* 均等5分割 */
  padding: 14px 0;
  text-align: center;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.25);
  font-size: 15px;
  white-space: nowrap;      /* 改行させない */
  transition: background 0.3s ease;
}

.nav-item:last-child {
  border-right: none;
}

.nav-item:hover {
  background: #1f3a63;      /* 少し濃い色 */
  text-decoration: none;
}


/* Hero */
.hero {
  margin-top: 0;
}

.hero img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border: 0;
}

/* ========== Main ========== */
.main {
  text-align: center; /* 全体は中央寄せ */
  padding: 10px 0 0;
  overflow: auto;   /* 高さを正しく計算させる */
}
}

.section-title {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

/* Greeting (2 columns) */
.greeting {
  display: flex;
  gap: 16px;
  align-items: stretch;
  justify-content: center;
  padding: 8px 0;
}

.greeting-item {
  width: 50%;
}

.greeting-photo img {
  width: 100%;
  border: 1px solid #191970;
  border-radius: 6px;
}

.greeting-text {
  text-align: left;
  padding: 6px 8px;
}

/* News */
.news {
  padding: 8px 0;
}

.news-box {
  width: 800px;              /* 指定：横幅800 */
  max-width: 100%;
  margin: 0 auto;
  border: 1px solid #191970;
  border-radius: 8px;
  padding: 12px 14px;
}

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

.news-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(25,25,112,0.25);
}

.news-list li:last-child { border-bottom: none; }

.news-date {
  min-width: 110px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}

.news-text {
  flex: 1;
  text-align: left;
  font-size: 14px;
}

/* ===============================
   3リンクエリア（PC：横3列固定）
================================ */

.links3 {
  padding: 20px 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列固定 */
  gap: 20px;                              /* 等間隔 */
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  text-align: center;
}

.card-link img {
  width: 100%;          /* グリッド幅に合わせる */
  aspect-ratio: 1 / 1;  /* 正方形維持 */
  object-fit: cover;
  border: 1px solid #191970;
  border-radius: 8px;
}

.card-text {
  margin-top: 12px;
  font-size: 14px;
  text-align: left;
}

.card-link img {
  width: 100%;          /* グリッド幅に合わせる */
  aspect-ratio: 1 / 1;  /* 正方形維持 */
  object-fit: cover;
  border: 1px solid #191970;
  border-radius: 8px;
}

.card-text {
  margin-top: 12px;
  font-size: 14px;
  text-align: left;
}

/* ===============================
   Facebook / Youtube 横並び（安定版）
================================ */

.facebook {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1000px;
  width: 100%;
  margin: 60px auto;      /* 余白を広めに */
  gap: 20px;
  box-sizing: border-box;
}

/* 2分割 */
.social-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* iframeをブロック化 */
.fb-placeholder {
  width: 100%;
}

.fb-placeholder iframe {
  width: 100%;
  height: 500px;
  display: block;
}

/* Facebookの動的高さ対策 */
.fb-placeholder {
  overflow: hidden;
}

/* footerを強制的に下へ */
footer.footer {
  clear: both;
  margin-top: 60px;
  position: relative;
}



/* ========== Footer ========== */
.footer {
  margin-top: 10px;
  background: #274a78; /* 青礫 */
  color: #fff;
  padding: 16px 12px;
  text-align: center;
}

.footer a {
  color: #fff;
}

.footer-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.footer-info {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-line {
  margin: 0 0 6px;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
}

.footer-text {
  margin: 0 0 10px;
  text-align: center;
  font-size: 14px;
}

.label {
  font-weight: 700;
}

.sep {
  margin: 0 8px;
  opacity: 0.85;
}

.copyright {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

/* ========== Responsive ========== */
@media (max-width: 820px) {
  .header-top {
    flex-direction: column;
    justify-content: center;
  }

  .greeting {
    flex-direction: column;
  }

  .greeting-item {
    width: 100%;
  }

  .nav-item {
    flex: 1 1 50%;
    min-width: 160px;
    border-right: 1px solid rgba(255,255,255,0.25);
    border-bottom: 1px solid rgba(255,255,255,0.18);
  }

  .nav-item:nth-child(2n) {
    border-right: none;
  }
}
@media (max-width: 768px) {

  .card-grid {
    grid-template-columns: 1fr; /* 縦並び */
  }

}

@media (max-width: 768px) {

  .facebook {
    flex-direction: column;
    align-items: center;
  }

  .social-box {
    width: 100%;
    max-width: 500px;
  }

  .fb-placeholder iframe {
    height: 400px;
  }
}
