/*
Theme Name: SafetyPlus Theme
Theme URI: https://example.com/
Author: 達矢
Description: SafetyPlus公式テーマ
Version: 1.0
*/

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
header {
  background: #0f4c81;
  color: #fff;
  padding: 16px;
}

header h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

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



article {
  margin-bottom: 40px;
}

.wp-block-image img {
  height: auto;
}
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 8px;
  }
}
/* ===== 全体のベース ===== */
body {
  background: #f4f7fb;
  line-height: 1.8;
  color: #333;
}

/* ===== ヘッダー ===== */
header {
  background: linear-gradient(135deg, #0f4c81, #08375e);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== セクション共通 ===== */
.top-page section,
.top-page .wp-block-group {
  background: #fff;
  padding: 40px;
  margin: 40px 0;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* ===== サービス ===== */
.top-page h3 {
  color: #0f4c81;
}

/* ===== ボタン ===== */
.wp-block-button__link {
  background: #f5a623;
  color: #fff;
  font-weight: bold;
  transition: 0.3s;
}

.wp-block-button__link:hover {
  opacity: 0.85;
}

/* ===== フッター ===== */
footer {
  background: #08375e;
  color: #fff;
  text-align: center;
  padding: 20px;
}
/* ===== ロゴ＋サイト名 ===== */
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding img {
  max-height: 50px;
  width: auto;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-title a {
  color: #fff;
  text-decoration: none;
}
/* 画像＋テキスト */
.wp-block-columns {
  align-items: center;
}
/* フェードイン */
.wp-block-group {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* 通常コンテンツ幅 */


/* ===== 全幅ブロック ===== */
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.site-footer {
  background: #111;
  color: #fff;
  padding: 60px 20px 30px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* 左右に分ける */
  align-items: center;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  max-width: 120px;
  height: auto;
}

.footer-company {
  font-size: 16px;
  font-weight: bold;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

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

.footer-nav a:hover {
  opacity: 0.7;
}
.footer-copy {
  text-align: center;
  margin-top: 40px;
  font-size: 12px;
  color: #aaa;
}
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .footer-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}
/* ===== カバーブロック（完成版） ===== */
.wp-block-cover {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.wp-block-cover__image-background,
.wp-block-cover__video-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  color: #fff;
}
/* ===== カラムブロックを横並びにする ===== */
.wp-block-columns {
  display: flex;
  gap: 30px;
}

.wp-block-column {
  flex: 1;
}
@media (max-width: 768px) {
  .wp-block-columns {
    flex-direction: column;
  }
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
}
.wp-block-cover .hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem) !important;
}
/* ヒーロー見出し */
.wp-block-cover .hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.2;
}
