/* =========================================================
   Liberty & Friends, Inc. — 公式サイト スタイル
   白基調・上品でプロフェッショナルなコーポレートデザイン
   ========================================================= */

:root {
  --navy: #1f2a44;        /* メインの濃紺 */
  --navy-deep: #161e33;
  --gold: #b08d57;        /* 上品なアクセント（ゴールド） */
  --ink: #1c1c1c;         /* 本文の黒 */
  --gray: #6b6b6b;        /* 補助テキスト */
  --line: #e6e6e2;        /* 区切り線 */
  --paper: #ffffff;       /* 背景・白 */
  --mist: #f6f6f3;        /* 薄いグレー背景 */
  --max: 1120px;          /* コンテンツ最大幅 */
  --serif: "Noto Serif JP", "Times New Roman", serif;
  --sans: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* 日本語をなるべく意味のかたまり（文節）で折り返す。
   対応ブラウザ(Chrome等)では自然な改行、非対応(一部Safari)でも通常表示にフォールバック */
p, h1, h2, h3, h4, li, td, th, .hero p, .section-head p {
  line-break: strict;
  word-break: auto-phrase;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--navy);
}
.brand span { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 0.92rem; color: var(--ink);
  position: relative; padding: 4px 0; transition: color 0.2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold); transition: width 0.25s;
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--navy); font-weight: 600; }

.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: 10px 20px; border-radius: 2px; font-size: 0.88rem;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy-deep); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 6px;
}
.menu-toggle span { display: block; height: 2px; background: var(--navy); transition: 0.3s; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; min-height: 78vh;
  display: flex; align-items: center;
  background: linear-gradient(rgba(22,30,51,0.55), rgba(22,30,51,0.55)),
              url("../assets/hero.png") center/cover no-repeat;
  color: #fff;
}
.hero-content { max-width: 720px; padding: 64px 0; }
.hero .eyebrow {
  font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.35; margin-bottom: 24px;
}
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.9); margin-bottom: 36px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: 14px 32px; font-size: 0.95rem;
  border-radius: 2px; transition: 0.25s; cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #9c7a47; }
.btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-deep); }

/* ---------- セクション共通 ---------- */
.section { padding: 96px 0; }
.section.mist { background: var(--mist); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .eyebrow {
  font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--navy); margin-bottom: 18px;
}
.section-head p { color: var(--gray); }

/* ---------- カードグリッド ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  padding: 38px 32px; border-radius: 4px; transition: 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31,42,68,0.08); }
.card .num {
  font-family: var(--serif); font-size: 1.4rem; color: var(--gold); margin-bottom: 14px;
}
.card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 12px; }
.card p { color: var(--gray); font-size: 0.95rem; }

/* ---------- 2カラム（画像＋文） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split img { border-radius: 4px; }
.split h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--navy); margin-bottom: 20px;
}
.split p { color: var(--gray); margin-bottom: 16px; }

/* ---------- CTA 帯 ---------- */
.cta-band {
  background: var(--navy); color: #fff; text-align: center; padding: 80px 0;
}
.cta-band h2 {
  font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 18px;
}
.cta-band p { color: rgba(255,255,255,0.82); margin-bottom: 32px; }

/* ---------- ニュース一覧 ---------- */
.news-list { max-width: 820px; margin: 0 auto; }
.news-item {
  display: flex; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.news-item time { color: var(--gold); font-size: 0.88rem; white-space: nowrap; min-width: 110px; }
.news-item .tag {
  display: inline-block; font-size: 0.72rem; background: var(--mist);
  color: var(--gray); padding: 2px 10px; border-radius: 2px; margin-left: 10px;
}
.news-item h3 { font-size: 1.05rem; font-weight: 500; margin-bottom: 6px; }
.news-item p { color: var(--gray); font-size: 0.92rem; }

/* ---------- クリックできる一覧 ＆ 詳細ページ ---------- */
a.news-item { transition: background 0.2s; }
a.news-item:hover h3 { color: var(--gold); }
.news-item .more { display: inline-block; margin-top: 10px; color: var(--navy); font-size: 0.88rem; border-bottom: 1px solid var(--gold); }
.back-link { color: var(--gray); font-size: 0.9rem; transition: color 0.2s; }
.back-link:hover { color: var(--navy); }
.article-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.05rem); color: var(--navy);
  line-height: 1.6; margin: 14px 0 28px;
}

/* ---------- 実績エントリー（画像・リンク付き） ---------- */
.news-entry { max-width: 820px; margin: 0 auto; padding: 48px 0; border-bottom: 1px solid var(--line); }
.news-entry:first-of-type { padding-top: 0; }
.news-entry:last-of-type { border-bottom: none; padding-bottom: 0; }
.news-entry-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.news-entry-meta time { color: var(--gold); font-size: 0.88rem; }
.news-entry h3 { font-size: 1.28rem; color: var(--navy); line-height: 1.65; margin-bottom: 18px; }
.news-entry p { color: var(--gray); margin-bottom: 14px; }
.news-entry .report-link {
  display: inline-block; color: var(--navy); border-bottom: 1px solid var(--gold);
  font-weight: 500; transition: color 0.2s;
}
.news-entry .report-link:hover { color: var(--gold); }
.news-entry-img { margin-top: 24px; border-radius: 6px; overflow: hidden; }
.news-entry-img img { width: 100%; display: block; }
.news-photo-ph {
  aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e9e9e3, #d7d7cf);
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #9a9a8f; font-size: 0.9rem; line-height: 1.7;
}

/* ---------- お問い合わせフォーム ---------- */
.form { max-width: 640px; margin: 0 auto; }
.form-row { margin-bottom: 22px; }
.form label { display: block; font-size: 0.9rem; margin-bottom: 8px; color: var(--navy); font-weight: 500; }
.form label .req { color: var(--gold); margin-left: 4px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line);
  border-radius: 3px; font-family: inherit; font-size: 1rem; background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--gold);
}
.form textarea { min-height: 150px; resize: vertical; }
.form .btn { width: 100%; border: none; }

/* ---------- サービス詳細ページ ---------- */
.lead {
  max-width: 900px; margin: 0 auto; text-align: center;
  color: #333; font-size: 1.1rem; line-height: 1.95;
}
.service-block { max-width: 880px; margin: 0 auto; }
section[id] { scroll-margin-top: 90px; }  /* アンカー遷移時に見出しが固定ヘッダーで隠れないように */
.service-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 22px; }
.service-head .service-num {
  font-family: var(--serif); font-size: 2.1rem; color: var(--gold); line-height: 1; flex-shrink: 0;
}
.service-head h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2rem); color: var(--navy);
}
.service-block > p { color: var(--gray); margin-bottom: 16px; }
.box {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 4px; padding: 26px 30px; margin-top: 26px;
}
.section.mist .box { background: #fff; }
.box h4 { color: var(--navy); font-size: 1rem; margin-bottom: 14px; }
.check-list { list-style: none; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 9px; color: var(--gray); line-height: 1.6; }
.check-list li:last-child { margin-bottom: 0; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.box-grid .box { margin-top: 26px; }
@media (max-width: 760px) {
  .box-grid { grid-template-columns: 1fr; gap: 0; }
  .service-head .service-num { font-size: 1.7rem; }
}

/* ---------- 代表紹介 ---------- */
.founder {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px;
  align-items: start; max-width: 960px; margin: 0 auto;
}
.founder-photo {
  aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, #e9e9e3, #d7d7cf);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-photo .ph { color: #9a9a8f; font-size: 0.9rem; line-height: 1.7; padding: 16px; }
.founder-info .name { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); margin-bottom: 6px; }
.founder-info .role {
  color: var(--gold); font-size: 0.88rem; letter-spacing: 0.08em;
  margin-bottom: 22px; text-transform: uppercase;
}
.founder-info p { color: var(--gray); }
.founder-info p + p { margin-top: 1.1em; }
@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; gap: 28px; max-width: 420px; }
}

/* ---------- ページ見出し（下層ページ） ---------- */
.page-hero {
  background: var(--navy); color: #fff; padding: 64px 0 52px; text-align: center;
}
.page-hero .eyebrow {
  font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.page-hero h1 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.8rem); }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.78); padding: 64px 0 32px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 48px; }
.footer-brand { font-family: var(--serif); font-size: 1.2rem; color: #fff; margin-bottom: 14px; }
.footer-brand span { color: var(--gold); }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.9rem; padding: 5px 0; color: rgba(255,255,255,0.78); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55); text-align: center;
}

/* ---------- スクロール時のふわっと表示 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- レスポンシブ（スマホ） ---------- */
@media (max-width: 860px) {
  .nav {
    position: fixed; top: 72px; right: 0; left: 0;
    background: #fff; flex-direction: column; gap: 0;
    padding: 8px 24px 24px; border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform 0.3s; box-shadow: 0 12px 24px rgba(0,0,0,0.06);
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav-cta { text-align: center; margin-top: 12px; }
  .menu-toggle { display: flex; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > div:first-child { order: 2; }
  .section { padding: 64px 0; }
  .news-item { flex-direction: column; gap: 6px; }
  .news-item time { min-width: auto; }
}
