/* ============================================================
   株式会社コンバインドエフォート — サイト共通スタイル
   ロゴの赤(#df0709)と紙色(#fcfbf9)を基調に、
   紅梅(強さと優しさ)をモチーフにした和モダンデザイン。
   色やフォントを変えたい場合は :root の変数を編集してください。
   ============================================================ */

:root {
  /* ブランドカラー(ロゴから採取) */
  --red: #df0709;          /* ロゴの赤 */
  --red-deep: #a50d10;     /* 濃い紅(ホバー・見出し) */
  --paper: #fcfbf9;        /* ロゴと同じ紙色 */
  --paper-warm: #f7f3ec;   /* やや温かいベージュ(交互セクション) */
  --ume: #e7b9be;          /* 紅梅の薄紅 */
  --ume-pale: #f8ecec;     /* ごく薄い桜色(帯・ホバー) */
  --ink: #251f1c;          /* 墨色 */
  --text: #3d3733;
  --text-weak: #8a817a;
  --line: #e6dfd6;

  /* タイポグラフィ */
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 2;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: min(1080px, 90%); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 20px 0;
  transition: padding 0.3s ease;
}
/* 背景は擬似要素に持たせる(メニューの position: fixed を壊さないため) */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(252, 251, 249, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  opacity: 0; transition: opacity 0.3s ease;
}
.site-header.scrolled::before { opacity: 1; border-bottom-color: var(--line); }
.site-header.scrolled { padding: 14px 0; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-en {
  font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
  color: var(--red); text-transform: lowercase;
}
.brand-jp { font-size: 10.5px; color: var(--text); letter-spacing: 0.1em; }

.global-nav ul { display: flex; align-items: center; gap: 34px; }
.global-nav a {
  font-size: 14px; font-weight: 500; color: var(--text);
  position: relative; padding: 6px 0; transition: color 0.3s ease;
}
.global-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease;
}
.global-nav a:hover { color: var(--red-deep); }
.global-nav a:hover::after, .global-nav a.current::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: inline-block; padding: 10px 24px !important; border-radius: 999px;
  background: var(--red); color: #fff !important; font-weight: 700;
  transition: background 0.25s ease;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--red-deep); color: #fff !important; }

/* ハンバーガー(モバイル) */
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  position: relative; z-index: 110;
}
.nav-toggle span {
  position: absolute; left: 10px; width: 24px; height: 1.5px;
  background: var(--ink); transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- 梅モチーフ ---------- */
.ume-mark { color: var(--ume); }
.ume-watermark {
  position: absolute; pointer-events: none; user-select: none;
  color: var(--ume-pale);
}

/* ---------- ヒーロー(トップ) ---------- */
.hero {
  position: relative; min-height: 92svh;
  display: flex; align-items: center;
  background: var(--paper); overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; z-index: 2; padding: 170px 0 110px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0;
  font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; letter-spacing: 0.2em; color: var(--ink);
  margin-bottom: 36px;
  border-left: 4px solid var(--red);
  padding-left: 16px;
}
.hero-eyebrow::before { display: none; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5.6vw, 58px); font-weight: 600; line-height: 1.65;
  letter-spacing: 0.08em; color: var(--ink); margin-bottom: 30px;
}
.hero-title .accent { color: var(--red); }
.hero-lead {
  max-width: 540px; font-size: 15px;
  color: var(--text); margin-bottom: 46px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-en {
  position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2;
  font-size: 11px; letter-spacing: 0.34em; color: var(--text-weak);
}
.hero-en .container { display: flex; align-items: center; gap: 18px; }
.hero-en .container::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ヒーロー右の梅(大きな薄紅の紋) */
.hero-ume {
  position: absolute; right: -120px; top: 50%; transform: translateY(-54%);
  width: clamp(380px, 44vw, 620px); height: auto; z-index: 1;
}
.hero-petal { position: absolute; z-index: 1; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 36px; border-radius: 999px; font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 下層ページのヒーロー ---------- */
.page-hero {
  position: relative; background: var(--paper);
  padding: 180px 0 80px; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero .ume-watermark { right: -90px; top: -40px; width: 340px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero-en {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.28em; color: var(--text-weak);
  text-transform: uppercase; margin-bottom: 18px;
}
.page-hero-en::before { content: ""; width: 36px; height: 1px; background: var(--red); }
.page-hero h1 {
  font-family: var(--font-serif); font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 600; letter-spacing: 0.1em; color: var(--ink);
}

/* ---------- セクション共通 ---------- */
.section { padding: 110px 0; position: relative; overflow: hidden; }
.section-white { background: #fff; }
.section-warm { background: var(--paper-warm); }
.section-head { margin-bottom: 60px; }
.section-label {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.section-label::before { content: ""; width: 30px; height: 1px; background: var(--red); }
.section-title {
  font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600; letter-spacing: 0.1em; color: var(--ink);
}
.section-desc { margin-top: 20px; max-width: 620px; color: var(--text); font-size: 15px; }

/* ---------- カード(事業内容・パートナー) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--line); grid-gap: 1px; }
.card {
  position: relative; background: #fff;
  padding: 48px 36px 44px;
  transition: background 0.3s ease;
}
.section-warm .card, .section .card { background: var(--paper); }
.section-white .card { background: #fff; }
.card:hover { background: var(--ume-pale); }
.card-num {
  font-family: var(--font-serif); font-size: 15px; letter-spacing: 0.15em;
  color: var(--red); margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.card-num::after { content: ""; width: 24px; height: 1px; background: var(--ume); }
.card-icon { width: 40px; height: 40px; margin-bottom: 20px; color: var(--red); }
.card-icon svg { width: 100%; height: 100%; }
.card h3 {
  font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  color: var(--ink); margin-bottom: 14px; letter-spacing: 0.08em;
}
.card p { font-size: 14px; color: var(--text); }

/* 2枚並びのカード */
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- ご支援の流れ(ステップ) ---------- */
.flow {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; border: 1px solid var(--line); background: var(--line);
  counter-reset: flow;
}
.flow.steps-4 { grid-template-columns: repeat(4, 1fr); }
.flow li { background: #fff; padding: 30px 22px 28px; counter-increment: flow; }
.section-white .flow li { background: var(--paper); }
.flow li::before {
  content: "0" counter(flow);
  font-family: var(--font-serif); color: var(--red);
  font-size: 15px; letter-spacing: 0.15em;
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.flow h3 {
  font-family: var(--font-serif); font-size: 16.5px; font-weight: 600;
  color: var(--ink); margin-bottom: 8px; letter-spacing: 0.06em;
}
.flow p { font-size: 13px; color: var(--text); line-height: 1.9; }

/* ---------- 箇条書き(こんなときに) ---------- */
.use-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; max-width: 760px; }
.use-list li {
  position: relative; padding: 16px 0 16px 30px; font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.use-list li::before {
  content: ""; position: absolute; left: 4px; top: 26px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}

/* ---------- 注記 ---------- */
.note { font-size: 12.5px; color: var(--text-weak); margin-top: 20px; line-height: 1.9; }

/* ---------- CTAのボタン並び ---------- */
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 数字で見る ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.stat { border-top: 1px solid var(--ink); padding-top: 28px; }
.stat-label { font-size: 13px; color: var(--text); margin-bottom: 10px; letter-spacing: 0.12em; }
.stat-value {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(40px, 4.6vw, 56px); line-height: 1.2; color: var(--red);
  letter-spacing: 0.04em;
}
.stat-value .unit { font-size: 0.4em; color: var(--ink); letter-spacing: 0.1em; }
.stat-note { font-size: 12px; color: var(--text-weak); margin-top: 8px; }

/* ---------- 理念(メッセージ帯) ---------- */
.mission {
  position: relative; background: var(--red-deep); color: var(--paper);
  padding: 120px 0; overflow: hidden; text-align: center;
}
.mission .ume-watermark { color: rgba(252, 251, 249, 0.07); left: -100px; bottom: -120px; width: 420px; }
.mission .ume-watermark.right { left: auto; right: -80px; top: -100px; bottom: auto; width: 300px; }
.mission .container { position: relative; z-index: 2; }
.mission-en {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ume); margin-bottom: 24px;
}
.mission h2 {
  font-family: var(--font-serif); font-size: clamp(24px, 3.8vw, 40px);
  font-weight: 600; line-height: 1.9; letter-spacing: 0.12em; margin-bottom: 28px;
}
.mission p { max-width: 660px; margin-inline: auto; color: rgba(252, 251, 249, 0.85); font-size: 15px; }

/* ---------- ニュース ---------- */
.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex; align-items: baseline; gap: 28px; padding: 28px 10px;
  border-bottom: 1px solid var(--line); transition: background 0.25s ease;
}
.news-item:first-child { border-top: 1px solid var(--line); }
.news-item:hover { background: var(--ume-pale); }
.news-date {
  font-family: var(--font-serif); font-size: 13px; letter-spacing: 0.1em;
  color: var(--red); flex: none; width: 100px;
}
.news-tag {
  flex: none; font-size: 11px; font-weight: 500; color: var(--text-weak);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; background: #fff;
}
.news-item h3, .news-item .news-title { font-size: 15px; font-weight: 500; color: var(--text); }

/* ニュース詳細(記事) */
.article {
  background: #fff; border: 1px solid var(--line);
  padding: 52px 48px; margin-bottom: 36px;
}
.article-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.article h2 {
  font-family: var(--font-serif); font-size: 23px; font-weight: 600;
  color: var(--ink); margin-bottom: 20px; letter-spacing: 0.06em;
  padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.article p { font-size: 15px; margin-bottom: 1em; }
.article p:last-child { margin-bottom: 0; }

/* ---------- 会社概要テーブル / 沿革 ---------- */
.info-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.info-table th, .info-table td { padding: 24px 30px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.info-table th {
  width: 240px; font-family: var(--font-serif); font-weight: 600;
  color: var(--ink); background: var(--paper-warm); white-space: nowrap;
  letter-spacing: 0.1em;
}

.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -40px; top: 10px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--paper); border: 4px solid var(--red);
}
.timeline-date {
  font-family: var(--font-serif); font-weight: 600; color: var(--red);
  font-size: 16px; letter-spacing: 0.1em;
}
.timeline-body { font-size: 15px; color: var(--text); margin-top: 4px; }

/* ---------- お問い合わせ ---------- */
.contact-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  background: #fff; border: 1px solid var(--line);
  padding: 56px 52px;
}
.contact-panel h3 {
  font-family: var(--font-serif); font-size: 18px; font-weight: 600;
  color: var(--ink); margin-bottom: 20px; letter-spacing: 0.08em;
}
.contact-mail {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: clamp(17px, 2.2vw, 21px);
  color: var(--red); border-bottom: 1px solid currentColor; padding-bottom: 6px;
  transition: color 0.25s ease;
}
.contact-mail:hover { color: var(--red-deep); }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; font-size: 15px; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 12px; height: 12px;
  border-radius: 50%; border: 1.5px solid var(--red);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: 13px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--red);
}

/* CTA帯 */
.cta-band {
  position: relative; background: var(--ume-pale); padding: 100px 0;
  text-align: center; overflow: hidden; border-top: 1px solid var(--line);
}
.cta-band .ume-watermark { color: rgba(223, 7, 9, 0.05); right: -110px; top: 50%; transform: translateY(-50%); width: 380px; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band h2 {
  font-family: var(--font-serif); font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 600; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 18px;
}
.cta-band p { color: var(--text); margin-bottom: 40px; font-size: 15px; }

/* ---------- 法務ページ(規約・ポリシー) ---------- */
.legal { background: #fff; border: 1px solid var(--line); padding: 56px 52px; }
.legal h2 {
  font-family: var(--font-serif); font-size: 19px; font-weight: 600;
  color: var(--ink); margin: 44px 0 16px; padding-left: 16px;
  border-left: 3px solid var(--red); letter-spacing: 0.08em;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 15px; margin-bottom: 0.8em; }
.legal ul { padding-left: 1.4em; }
.legal ul li { list-style: disc; }
.legal a { color: var(--red); text-decoration: underline; }
.legal .legal-date { text-align: right; color: var(--text-weak); font-size: 13px; margin-top: 36px; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 70px 0 40px; color: var(--text);
}
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-logo { width: 250px; height: auto; }
.footer-address { font-size: 13px; margin-top: 20px; line-height: 2.1; color: var(--text); }
.footer-nav { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-nav-col h4 {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--text-weak); margin-bottom: 18px;
}
.footer-nav-col li { margin-bottom: 12px; }
.footer-nav-col a { font-size: 13.5px; transition: color 0.25s ease; }
.footer-nav-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; padding-top: 30px; font-size: 12px; color: var(--text-weak);
}
.footer-bottom .en { letter-spacing: 0.1em; }

/* ---------- スクロール表示アニメーション ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .card-grid, .card-grid.cols-2 { grid-template-columns: 1fr; }
  .flow, .flow.steps-4 { grid-template-columns: 1fr; }
  .use-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 36px; }
  .contact-panel { grid-template-columns: 1fr; padding: 40px 30px; }
  .hero-ume { opacity: 0.6; }
}
/* ナビ項目が多いため、中間幅からハンバーガーメニューに切り替え */
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .global-nav {
    position: fixed; inset: 0; background: rgba(252, 251, 249, 0.98);
    display: grid; place-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  body.nav-open .global-nav { opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; gap: 30px; text-align: center; }
  .global-nav a { font-size: 17px; font-weight: 700; color: var(--ink); }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .hero-inner { padding: 150px 0 110px; }
  .hero-ume { right: -150px; top: 16%; width: 340px; }
  .hero-petal { display: none; }

  .info-table th, .info-table td { display: block; width: 100%; }
  .info-table th { padding-bottom: 8px; }
  .info-table td { padding-top: 14px; }
  .news-item { flex-wrap: wrap; gap: 8px 16px; }
  .article, .legal { padding: 34px 24px; }
  .footer-nav { gap: 40px; }
  .footer-logo { width: 210px; }
}
