/* =========================
   Base
========================= */
:root{
  --text:#111;
  --muted:#666;
  --bg:#fff;
  --panel:#f2f2f2;
  --card:#e9e9e9;
  --line:#9a9a9a;
  --cta:#6b6b6b;
  --shadow:0 6px 18px rgba(0,0,0,.08);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"Noto Sans JP", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height:1.75;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }
a:hover{ opacity:.92; }

/* =========================
   Layout
========================= */
.container{
  max-width:1000px;
  margin:0 auto;
  padding:0 20px;
}

.section{
  padding:64px 0;
}

/* 見出し */
.section__title{
  text-align:center;
  margin:0 0 24px;
  font-size:22px;
  letter-spacing:.08em;
}

/* パネル/カード */
.card{
  background:var(--card);
  padding:28px;
  border-radius:10px;
}

.center{ text-align:center; }

@media (max-width:768px){
  .section{ padding:44px 0; }
  .card{ padding:20px; }
  .section__title{ font-size:20px; }
}

/* =========================
   Header
========================= */
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
}

.header-brand{
  display:flex;
  align-items:center;
  gap:18px;
  text-decoration:none;
  color:#111;
}

.header-brand:hover{
  opacity:0.8;
}

.header-logo{
  width:150px;
  height:auto;
  filter: contrast(180%) brightness(60%);
}

.header-title{
  font-size:17px;
  font-weight:500;   /* ←600から下げる */
  letter-spacing:1px;
  color:#222;
}

.site-nav{
  display:flex;
  gap:24px;
  white-space:nowrap;
}

@media (max-width: 900px){

  .header-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:16px;
  }

  .site-nav{
    flex-wrap:wrap;
    gap:16px;
  }

}

/* ヘッダー内のリンクに出てくる縦線(擬似要素)を無効化 */
.site-header a::before,
.site-header a::after{
  content:none !important;
  display:none !important;
}

/* フォーカス時の枠線/点滅を無効化（必要なら） */
.site-header a:focus,
.site-header a:focus-visible{
  outline:none !important;
  box-shadow:none !important;
}

/* Headerの横幅を制限して間延びを防ぐ */
.site-header .header-inner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px; /* 左右の余白も確保 */
  box-sizing: border-box;
}

/* Firefox含め、ヘッダーの間延びを防ぐ */
.site-header .header-inner{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  box-sizing: border-box;
}

/* ロゴ側は縮まない / ナビは折り返し許可 */
.header-brand{ flex: 0 0 auto; }
.site-nav{ flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-end; }

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  background-image: url("hero_pc.jpg");
  background-size: cover;
  background-position: left center;
}

/* 白ベール */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,.45),
    rgba(255,255,255,.25)
  );
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

/* SP */
@media (max-width: 768px) {
  .hero {
    min-height: 64vh;
    background-image: url("hero_sp.jpg");
    background-position: center top;
  }
}

/* ロゴ＋協会名 */
.hero__brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
}

/* ロゴ仮置き（後で差し替え） */
.logo-placeholder{
  width:44px;
  height:44px;
  border:1px solid var(--line);
  border-radius:6px;
  background:rgba(255,255,255,.55);
}

/* 協会名 */
.hero__org{
  color: #1a1a1a;     /* 濃くする */
  font-weight: 600; /* 少し強め */
  letter-spacing: 1px;
}

/* テロップ（明朝） */
.hero__copy{
  margin:0 0 22px;
  font-size:42px;
  font-weight:600;
  line-height:1.35;
  letter-spacing:.06em;
  color:#111;
  text-shadow: 0 2px 6px rgba(0,0,0,.08);
  font-family:"Noto Serif JP","游明朝体","YuMincho","Yu Mincho","Hiragino Mincho ProN",serif;
}

@media (max-width:768px){
  .hero__copy{
    font-size:30px;
  }
}

.hero__note{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* PCだけ改行させる */
br.pc{
  display:inline;
}

/* タブレット・スマホでは改行させない */
@media (max-width:1024px){
  br.pc{
    display:none;
  }
}

@media (max-width:768px){
  .hero__copy{
    line-height:1.5;
  }
}

/* =========================
   About us
========================= */
.section.about{
  background:#f5f5f5;   /* 真っ白じゃないのがポイント */
}

.container.narrow{
  max-width:720px;      /* 読ませる幅 */
}

.section-label{
  font-family:"Noto Sans JP", sans-serif;
  font-size:0.75rem;
  letter-spacing:0.2em;
  color:#666;
  margin-bottom:8px;
}

.about .section__title{
  margin-bottom:32px;
}

.about-text{
  font-family:"Noto Serif JP", serif; /* 明朝 */
  line-height:1.9;
  margin-bottom:24px;
}

/* =========================
   Grid
========================= */
.grid-2{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:20px;
  align-items:stretch;
}

@media (max-width:768px){
  .grid-2{ grid-template-columns:1fr; }
}

/* =========================
   Lists
========================= */
.list{
  list-style:none;
  margin:0;
  padding:0;
}

.list li{
  padding:8px 0;
  font-size:16px;
  letter-spacing:.04em;
}

.muted{ color:var(--muted); }
.small{ font-size:13px; }

/* ブロック塀診断士のみ字間を少し広げる */
.important{ letter-spacing:.08em; }

/* 罫線 */
.line{
  height:1px;
  background:var(--line);
  margin:18px 0;
}

/* =========================
   CTA（ブロック塀診断）
========================= */
.cta{
  display:block;
  height:100%;
  text-decoration:none;
  background:var(--cta);
  color:#fff;
  padding:24px;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.cta__title{
  font-size:18px;
  letter-spacing:.08em;
  margin-bottom:8px;
}

.cta__text{
  font-size:13px;
  letter-spacing:.04em;
  opacity:.9;
}

.cta:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  opacity:.98;
}

/* ブロック塀カードの見た目調整 */
.card--block{
  text-align: left;
}

.card--block h3{
  margin: 0 0 12px;
  line-height: 1.4;
}

.card--block p{
  margin: 0 0 12px;
  line-height: 1.8;
}

/* ボタンをスマホで気持ちよく */
.btn--wide{
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.mt{ margin-top: 16px; }

.card--block{ text-align:left; }
.btn--wide{ width:100%; box-sizing:border-box; text-align:center; }
.mt{ margin-top:16px; }

/* =========================
   News
========================= */
.news-list{
  margin:0;
  padding:0;
  list-style:none;
}

.news-list li{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:10px 0;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.news-list li:last-child{ border-bottom:none; }

.news-date{
  min-width:96px;
  font-size:13px;
  color:var(--muted);
  letter-spacing:.04em;
}

/* HTML内の a.textlink 用 */
.textlink{
  text-decoration:none;
}
.textlink:hover{
  text-decoration:underline;
  text-underline-offset:4px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #0097b2;
  color: #0097b2;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
}

.btn:hover {
  background-color: #0097b2;
  color: #ffffff;
}

/* =========================
   About（本文/小見出し/会員リスト）
========================= */
.body{
  margin:0 0 14px;
}

.subhead{
  margin:22px 0 12px;
  font-size:16px;
  letter-spacing:.08em;
}

/* 本会員・賛助会員の2ボックス */
.member-boxes{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:10px;
}

@media (max-width:768px){
  .member-boxes{ grid-template-columns:1fr; }
}

.member-box{
  background:rgba(255,255,255,.45);
  border:1px solid rgba(0,0,0,.08);
  padding:18px;
}

.member-box__title{
  text-align:center;
  font-size:15px;
  letter-spacing:.1em;
  margin-bottom:12px;
  color:#333;
}

.member-box .list li{
  text-align:center;
  padding:6px 0;
  font-size:14px;
}
.company-link{
  text-decoration:none;
  color:inherit;            /* 文字色はそのまま */
  position:relative;
}

.company-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:100%;
  height:1px;
  background:rgba(0,0,0,.35);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}

.company-link:hover::after{
  transform:scaleX(1);
}

.company-link[target="_blank"]::after{
  content:" ↗";
  font-size:0.75em;
  opacity:.6;
}

/* =========================
   Contact button
========================= */
.button{
  display:inline-block;
  margin:10px 0 12px;
  padding:14px 28px;
  border:2px solid #666;
  border-radius:999px;
  text-decoration:none;
  letter-spacing:.08em;
  transition: background .2s ease, color .2s ease, transform .18s ease;
}

.button:hover{
  background:#666;
  color:#fff;
  transform:translateY(-1px);
}

/* =========================
   Office / Map placeholder
========================= */
.map-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
  color:var(--muted);
  letter-spacing:.06em;
}

/* =========================
   Footer
========================= */
.site-footer{
  margin-top: 100px;
  padding: 40px 16px;
  border-top: 1px solid rgba(0,0,0,.08);
  text-align: center;
  font-size: 13px;
  letter-spacing: .5px;
  color: #777;
}

.site-footer p{
  margin: 0;
}