
:root{
  --bg:#ffffff;
  --fg:#0f172a;
  --muted:#475569;
  --link:#065f46;
  --accent:#10b981;
  --accent-600:#059669;
  --accent-700:#047857;
  --accent-50:#ecfdf5;
  --border:#e5e7eb;
  --card:#ffffff;
  --shadow:0 10px 30px rgba(2,6,23,.06);
  --radius:18px;
  --max:1080px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg);font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",sans-serif;line-height:1.8;scroll-behavior:smooth}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
.muted{color:var(--muted)}

.header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);z-index:50}
.nav{max-width:var(--max);margin:0 auto;display:flex;align-items:center;gap:28px;padding:16px 20px}

.brand{
  display:flex;
  align-items:center;
}

.brand img{
  height: 34px;
  width: auto;
  display:block;
}

@media (min-width: 640px){
  .brand img{ height: 38px; }
}


.spacer{flex:1}
.nav a{padding:8px 12px;border-radius:10px}
.nav a.active,.nav a:hover{background:var(--accent-50)}

/* Hero */
.hero{position:relative;isolation:isolate}
.hero-wrap{max-width:var(--max);margin:0 auto;padding:88px 20px 88px;} /* 96→88でもOK */
@media (max-width:900px){
  .hero-wrap{padding-top:72px;} /* ここは据え置きでOK */
}

.hero-title{font-size:44px;line-height:1.2;margin:0 0 14px}
.hero-sub{color:var(--muted);margin:0 0 22px}
.hero-media{
  position:absolute; inset:0; z-index:-1;
  background:
    /* ほんのり白→淡いグリーンのグラデーション */
    linear-gradient(135deg, #ffffff 0%, #e9f7ef 100%),
    url('./hero_trust.png?v=8') center 8% / cover no-repeat;
}



.btn{display:inline-block;background:var(--accent-600);color:#fff;padding:12px 18px;border-radius:999px;box-shadow:var(--shadow);border:none;cursor:pointer}
.btn:hover{background:var(--accent-700);text-decoration:none}

/* Sections & cards */
section{max-width:var(--max);margin:0 auto;padding:56px 20px}
.section-title{font-size:28px;text-align:center;margin:0 0 28px;position:relative}
.section-title::after{content:"";display:block;width:64px;height:3px;background:var(--accent);margin:12px auto 0;border-radius:999px}
.grid{display:grid;gap:20px}
.grid-2x2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}
.card h3{margin:0 0 10px;font-size:20px}
.card p{margin:0;color:var(--muted);font-size:1.05rem}

/* News list */
.list{display:grid;gap:12px}
.item{padding:18px;border:1px solid var(--border);border-radius:12px}

/* Footer */
footer{border-top:1px solid var(--border);margin-top:40px;background:#fff}
.foot{max-width:var(--max);margin:0 auto;padding:28px 20px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;color:var(--muted)}
.badge{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--accent-50);color:var(--accent-700);font-size:12px;border:1px solid var(--border)}

/* Table (about) */
table{width:100%;border-collapse:collapse;margin-top:24px;font-size:1rem}
th,td{padding:12px 10px;border-bottom:1px solid var(--border);text-align:left}
th{width:30%;background:var(--accent-50);font-weight:600;color:var(--fg)}
@media(max-width:640px){
  th,td{display:block;width:100%}
  th{background:none;font-weight:bold;margin-top:12px}
  td{margin-bottom:8px;border:none}
  table{border:none}
}

/* Responsive */
@media (max-width:900px){
  .grid-2x2{grid-template-columns:1fr 1fr}
  .hero-wrap{padding-top:72px}
}
@media (max-width:640px){
  .grid-2x2{grid-template-columns:1fr}
  .hero-title{font-size:32px}
}

.container{max-width:var(--max);margin:0 auto;padding:24px 20px}
.small{font-size:.925rem;color:var(--muted)}
.form-row{display:flex;gap:8px;margin-bottom:8px}
.form-row input{width:100%;padding:10px;border:1px solid var(--border);border-radius:10px}
.table-like{width:100%;border-collapse:collapse;margin-top:16px}
.table-like th,.table-like td{border:1px solid var(--border);padding:8px}
.actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}


/* === Mobile Menu (hamburger) === */
.menu-btn{
  display:none;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  cursor:pointer;
}
.menu-btn .bar{
  display:block;
  width:18px;
  height:2px;
  background:var(--fg);
  box-shadow:0 6px 0 var(--fg),0 -6px 0 var(--fg);
}

.nav-links{
  display:flex;
  gap:28px;
}

@media (max-width:768px){
  .spacer{
    display:none;
  }

  .menu-btn{
    display:inline-flex;
    margin-left:auto;
  }

  .nav{
    position:relative;
  }

  .nav-links{
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:#fff;
    border-bottom:1px solid var(--border);
    display:none;
    flex-direction:column;
    gap:0;
  }

  .nav-links a{
    padding:16px 20px;
    border-radius:0;
  }

  .nav.open .nav-links{
    display:block;
  }
}





/* ===== Privacy hero を about と同じ見た目に ===== */
.hero-privacy{
  position: relative;
  margin-bottom: 48px;     /* 下の余白も合わせる */
}
.hero-privacy .hero-media{
  height:45vh;
  min-height:320px;
  background:url('./hero_privacy.png?v=2') center/cover no-repeat;
  position: relative;
}
.hero-privacy .hero-media::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,0.35); /* about と同じ濃さの暗幕 */
}
/* タイトルを画像の中央に重ねる */
.hero-privacy .hero-wrap{
  position:absolute; inset:0;
  display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center; color:#fff; z-index:1;
  padding:16px;
}

/* ===== Heroタイトル統一（about / privacy 共通） ===== */
.hero-about .hero-title,
.hero-privacy .hero-title{
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width:640px){
  .hero-about .hero-title,
  .hero-privacy .hero-title{
    font-size: 1.8rem;
  }
}




/* ===== index.phpで使用しているstyle ===== */
/* カードタイトル（黒で強調） */
.card h3{
  font-size:1.25rem;
  font-weight:700;
  color:#000;
  margin:0.3rem 0 0.4rem;
}

/* 本文の行間 */
.card p{ line-height:1.9; }

/* サブタイトル（緑でアクセント） */
.card p.sublead{
  font-size:1.05rem;
  font-weight:600;
  color:var(--accent) !important; /* 他の指定に負けないように */
  margin:.25rem 0 .6rem;
}


/* 事業カードのメディア枠：カード幅にフィット */
.card .media{
  width:100%;
  aspect-ratio:16/9;        /* ← ここを16/9から4/3に変更して縦を少し長く */
  border-radius:12px;
  overflow:hidden;
  background:#ecfdf5;
  margin:0 0 10px;
}

/* 中の画像/ピクチャ/SVGを枠にフィット */
.card .media > img,
.card .media > picture,
.card .media > svg{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;         /* デフォは cover＝枠に合わせてトリミング */
}

/* ロゴ用：はみ出さず余白を残して収める */
.card .media.logo > img{
  object-fit:contain;       /* 余白ありで縮小表示 */
  padding:16px;             /* ロゴの周囲に余白 */
  background:#fff;          /* ロゴが映えるよう白背景（お好みで） */
}

/* ===== HERO（フルブリード＋左寄せコピー） ===== */
.hero{ position:relative; margin-bottom:48px; isolation:isolate; }

/* 画像は“背景＋白ベール”を1レイヤーで指定（::afterは使わない） */
.hero-media{
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(rgba(255,255,255,.50), rgba(255,255,255,.65)),
    url('./hero_trust.png?') 65% 22% / cover no-repeat;
}

/* テキストは左寄せ・上余白多め */
.hero-wrap{
  max-width:1200px; margin:0 auto;
  padding:120px 20px 96px;
  display:flex; flex-direction:column; align-items:flex-start;
}

/* タイトル存在感 */
.hero-title{
  font-size: clamp(32px, 4.5vw, 56px);
  line-height:1.2; margin:0 0 12px; color:#0f172a;
  text-shadow:0 1px 2px rgba(0,0,0,.08);
}
.hero-sub{ color:#2f3b4d; margin:0 0 22px; }

@media (max-width:900px){
  .hero-wrap{ padding:88px 16px 64px; }
  .hero-media{ background-position: 58% 18%; } /* モバイルはさらに上寄せ */
}




/* === 「お知らせ」見出しが画像に乗らないよう余白を確保 === */
#news{ 
  padding-top: 8px;              /* 好みで 16〜24px まで増減OK */
}

/* ===== 【追加】Aboutヒーローを白文字＋暗幕少し濃く ===== */ .hero-about .hero-title{ color:#fff !important; text-shadow:0 1px 2px rgba(0,0,0,.25); } .hero-about .hero-media::after{ background: rgba(0,0,0,.40) !important; /* inline を上書き */ } /* 追加（styles.css の一番下など）：開いたメニューを最前面に */ @media (max-width:768px){ .nav-links{ z-index: 60; } }


/* サービスカード：写真＋ロゴ重ね */
.card .media.has-logo{
  position: relative;
}

.card .media.has-logo .overlay-logo{
  position: absolute;
  top: 16px;
  left: 16px;

  height: 36px;
  width: auto;          /* ← これ超重要：細長さ解消 */
  max-width: 50%;

  object-fit: contain;  /* ← ロゴはcontainが正解 */
  z-index: 2;

  background: rgba(15,23,42,0.75);  /* ← 白ロゴが見える濃紺 */
  padding: 6px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

@media (min-width: 900px){
  .card .media.has-logo .overlay-logo{
    height: 56px;     /* ← PCは大きく */
    max-width: 60%;   /* ← 横も少し許可 */
    padding: 8px 10px;
  }
}


/* WINASロゴは白背景の方が映える（NoBoFiの濃紺背景を上書き） */
.card .media.has-logo .overlay-logo--winas{
  background: rgba(255,255,255,0.88);
}


.brand-en{
  margin: .25rem 0 .75rem;   /* 見出しと本文の間を気持ちよく */
  font-size: .92rem;         /* 小さめでサブっぽく */
  color: var(--muted);       /* グレー寄り */
  font-weight: 600;
  letter-spacing: .08em;     /* “英字サブタイトル感” */
  line-height: 1.4;
}
