/* rain-saishin.org 静的サイト共通スタイル
 * Hello Elementor テーマ + Elementor のデフォルトスタイルを簡略化して再現 */
:root {
  --primary: #0168B3;
  --secondary: #54595F;
  --text: #7A7A7A;
  --accent: #61CE70;
  --sky: #44AEEA;
  --font-ja: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --container: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, var(--font-ja);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { margin: .5rem 0 1rem; font-weight: 500; line-height: 1.2; color: inherit; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; } h5 { font-size: 1.25rem; } h6 { font-size: 1rem; }
p { margin: 0 0 .9rem; }
a { color: #c36; text-decoration: none; background: transparent; }
a:hover, a:active { color: #336; }
img { max-width: 100%; height: auto; border: none; vertical-align: middle; }
figure { margin: 0; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
pre { white-space: pre-wrap; font-family: inherit; }
table { width: 100%; border-collapse: collapse; margin-bottom: 15px; font-size: .9em; }
table td, table th { padding: 15px; line-height: 1.5; vertical-align: top; border: 1px solid hsla(0,0%,50%,.5); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link:focus { position: fixed !important; top: 5px; left: 5px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 12px 24px; background: #f1f1f1; color: #21759b; }

/* ---------- レイアウト (Elementor のセクション / カラム) ---------- */
.e-section { position: relative; }
.e-row { display: flex; margin: 0 auto; max-width: var(--container); position: relative; }
.e-full > .e-row, .e-inner > .e-row { max-width: none; }
.e-col { display: flex; position: relative; min-height: 1px; }
.e-col-inner { display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; width: 100%; padding: 10px; position: relative; }
.e-col-inner > * { width: 100%; }
.w { position: relative; }
.w:not(:last-child) { margin-bottom: 20px; }
.w.w-auto { width: auto; max-width: 100%; }
@media (max-width: 767px) {
  .e-row { flex-wrap: wrap; }
  .e-col { width: 100% !important; }
}
.site-main { padding-bottom: 20px; }
.page-header, .post-date, .page-content { max-width: 800px; margin-left: auto; margin-right: auto; padding: 0 10px; }
.page-header { padding-top: 30px; }
.entry-title { color: var(--primary); }
.post-date { color: var(--text); font-size: .9rem; margin-top: -.5rem; }
.page-content { padding-top: 10px; padding-bottom: 30px; }
.page-content img { display: block; margin: 0 auto 1rem; }
.page-content ul.blocks-gallery-grid { list-style: none; padding: 0; }

/* ---------- ウィジェット ---------- */
.e-heading { margin: 0; padding: 0; line-height: 1; color: var(--primary); font-family: Roboto, var(--font-ja); font-weight: 600; }
.e-heading a { color: inherit; font-size: inherit; line-height: inherit; }
.e-heading.size-small { font-size: 15px; }
.e-heading.size-medium { font-size: 19px; }
.e-heading.size-large { font-size: 29px; }
.e-heading.size-xl { font-size: 39px; }
.e-heading.size-xxl { font-size: 59px; }
.w-text-editor { color: var(--text); font-family: Roboto, var(--font-ja); font-weight: 400; }
.w-text-editor .text > :last-child { margin-bottom: 0; }
.w-text-editor .text, .w-html > .wc { overflow-x: auto; overflow-wrap: anywhere; }
.w-image { text-align: center; }
.w-image img { display: inline-block; }
.w-image figcaption { color: var(--text); font-size: .9em; margin-top: 8px; }
.spacer { height: 50px; }
.divider { display: flex; align-items: center; padding: 15px 0; }
.divider::before, .divider::after { content: ""; flex-grow: 1; border-top: 1px solid #ddd; }
.divider:not(.has-text)::after { display: none; }
.divider-text { flex-shrink: 0; margin: 0 10px; color: var(--secondary); font-family: Roboto, var(--font-ja); font-weight: 400; line-height: 1; }
.w-button { text-align: left; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 12px 24px; border-radius: 3px; background-color: var(--accent); color: #fff;
  font-family: Roboto, var(--font-ja); font-weight: 500; font-size: 15px; line-height: 1.2;
  text-align: center; transition: opacity .2s, filter .2s;
}
.btn:hover, .btn:focus { color: #fff; filter: brightness(1.1); }
.btn-xs { font-size: 13px; padding: 10px 20px; } .btn-md { font-size: 16px; padding: 15px 30px; }
.btn-lg { font-size: 18px; padding: 20px 40px; } .btn-xl { font-size: 20px; padding: 25px 50px; }
.w-full .btn { width: 100%; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }
.menu-anchor { display: block; position: relative; top: -20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.quote { margin: 0; padding: 20px 25px; background: #f9fafa; border-left: 5px solid var(--primary); color: var(--text); }
.quote cite { display: block; margin-top: 10px; font-style: normal; font-weight: 700; color: var(--secondary); }
.quote a { word-break: break-all; }
.dot-nav { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 50; }
.dot-nav ul { list-style: none; margin: 0; padding: 6px; border: 2px solid #ddd; border-radius: 5px; background: rgba(255,255,255,.9); }
.dot-nav li a { display: block; width: 14px; height: 14px; margin: 8px 4px; border-radius: 50%; background: var(--sky); position: relative; }
.dot-nav li a span { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--primary); color: #fff; padding: 3px 8px; border-radius: 3px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.dot-nav li a:hover span, .dot-nav li a:focus span { opacity: 1; }
@media (max-width: 767px) { .dot-nav { display: none; } }
.contact-box { max-width: 640px; margin: 0 auto; padding: 24px; border: 1px solid #ddd; border-radius: 6px; color: #444; }
.contact-box ul { margin: 0 0 1rem; padding-left: 1.4em; }
.contact-btn .btn { background: var(--primary); font-size: 16px; }
.contact-alt { font-size: .9rem; color: var(--text); margin: 0; }

/* ---------- ヘッダー / ナビゲーション ---------- */
.site-header nav.e-section { z-index: 20; }
.w-nav-menu { display: flex; justify-content: center; }
.main-menu { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.main-menu li { position: relative; }
.main-menu a {
  display: block; padding: 10px; color: #000; font-size: 13px; font-weight: 500;
  text-transform: uppercase; line-height: 20px; font-family: Roboto, var(--font-ja);
  transition: background-color .3s, color .3s;
}
.main-menu > li > a:hover, .main-menu > li > a:focus { background: var(--primary); color: #fff; }
.main-menu a.current { background: var(--sky); color: #fff; }
.main-menu .has-sub > a::after { content: "\25BE"; margin-left: 4px; font-size: 10px; }
.sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 12em; list-style: none; margin: 0; padding: 0; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.sub-menu a { text-transform: none; white-space: nowrap; padding: 12px 16px; }
.sub-menu a:hover, .sub-menu a:focus { background: #f1f6fb; color: var(--primary); }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { display: block; }
.menu-toggle { display: none; }
@media (max-width: 1024px) {
  .menu-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 3px; background: var(--primary); cursor: pointer;
  }
  .menu-toggle span:not(.sr-only) { display: block; height: 2px; background: #fff; }
  .w-nav-menu { flex-direction: column; align-items: flex-start; }
  .main-menu { display: none; flex-direction: column; width: 100%; margin-top: 10px; }
  .main-menu.open { display: flex; }
  .main-menu a { padding: 12px 16px; border-bottom: 1px solid #eee; }
  .sub-menu { display: block; position: static; box-shadow: none; }
  .sub-menu a { padding-left: 32px; }
  .main-menu .has-sub > a::after { content: ""; }
}

/* ---------- フッター ---------- */
.site-footer .w-text-editor a { color: var(--primary); }
