/*
Theme Name: haiboku
Theme URI: https://example.com/
Author: あなたの名前
Description: モックデザインと管理性を両立した WordPress テーマ
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

/* ===== Base ===== */
html, body { min-height: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
  color: #fff;
  background-color: #000;           /* 画像読み込み前の下地だけ */
  background-repeat: no-repeat;      /* 背景画像は functions.php から注入 */
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;     /* モバイル安定 */
}

a { color: inherit; text-decoration: none; }

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

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Buttons ===== */
.button, button {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.button:hover { opacity: 0.8; }

/* ===== Header / Hero ===== */
header { background: transparent !important; color: #fff; text-align: center; padding: 1em; }
.header-inner { background: transparent !important; box-shadow: none !important; }
.logo img { filter: drop-shadow(0 0 4px #000); }
.header-contact { font-size: 1rem; font-weight: bold; color: #fff; text-align: right; line-height: 1.2; text-shadow: 1px 1px 2px #000; }

/* バナー周りのブロックは常に透明（背景は body で統一） */
.header-and-banner-bg {
  background: transparent !important;
  padding-top: 40px;
  padding-bottom: 120px;
  min-height: 600px;
  width: 100%;
  z-index: 0;
  position: relative;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #000;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  padding-top: 20px;
  padding-bottom: 20px;
}
.site-footer .footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.site-footer .footer-left { flex: 1 1 300px; text-align: left; }
.site-footer .footer-left p { margin: 4px 0; line-height: 1.4; font-size: 0.95em; }
.site-footer .footer-company-name { font-size: 1.1em; font-weight: bold; margin-bottom: 6px; }
.site-footer .footer-company-url a { color: #fff; text-decoration: none; }
.site-footer .footer-company-url a:hover { text-decoration: underline; }
.site-footer .footer-company-address,
.site-footer .footer-company-tel,
.site-footer .footer-company-hours { font-size: 0.95em; }
.site-footer .footer-right { flex: 0 0 200px; text-align: right; }
.site-footer .footer-right .footer-logo { max-width: 180px; height: auto; display: inline-block; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.3); margin-top: 12px; padding-top: 12px; text-align: center; }
.site-footer .footer-bottom .footer-copyright { color: #fff; font-size: .9em; line-height: 1.4; margin: 0; }
.site-footer a { color: #fff; text-decoration: underline; }
.site-footer p { margin: .3em 0; text-shadow: 1px 1px 2px #000; }

/* ===== Layout wrappers: 背景を邪魔しないため常に透明 ===== */
.site, .wrapper, .site-content, .page, .content, #page {
  background: transparent !important;
  box-shadow: none !important;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  main { padding: 15px; }
  header, footer { padding: 0.8em; }
  .button { width: 100%; box-sizing: border-box; }

  .site-footer .footer-top {
    flex-direction: column; align-items: center;
  }
  .site-footer .footer-right {
    order: -1; text-align: center; margin-bottom: 8px; flex: 1 1 100%;
  }
  .site-footer .footer-left {
    order: 0; text-align: center; margin: 0; padding: 0; flex: 1 1 100%;
  }
  .site-footer .footer-bottom { margin-top: 8px; padding-top: 8px; }
}