/* akko-onlineassistant.com 共通スタイル（KEYUCA風。00_AI参照情報/デザインシステム/KEYUCA_デザインシステム.md 準拠） */
:root {
  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-en: "Lato", sans-serif;
  --gold: #aa9977;
  --copper: #c28358;
  --btn: #878787;
  --text: #323333;
  --text-sub: #878787;
  --text-muted: #707070;
  --bg: #f3f3f3;
  --bg-sub: #f9f9f9;
  --surface: #ffffff;
  --line: #e2e2e2;
  --container: 960px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 500;
  line-height: 2.0;
  letter-spacing: 0.05em;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

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

/* ---- ヘッダー ---- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-logo {
  text-decoration: none;
  line-height: 1.4;
}
.site-logo .en {
  display: block;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.site-logo .jp { font-size: 17px; }
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
}
.site-nav a:hover { color: var(--gold); }

/* ---- 最初の画面 ---- */
.hero {
  padding: 0 0 56px;
  text-align: center;
  background: var(--bg-sub);
  border-bottom: 1px solid var(--line);
}
/* メインビジュアル：PCは写真を切らずに中央へ小さめに置き、余った左右は同じ写真を大きくぼかして白っぽく敷く。
   写真の左右の端はグラデーションで溶け込ませる。サイト名は写真の下端に重ねた白いカードに載せる */
.hero-visual {
  position: relative;
  overflow: hidden;
  height: clamp(320px, 34vw, 480px);
  background: var(--bg-sub);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: url("/assets/main-visual-960.webp") center / cover no-repeat;
  filter: blur(56px) saturate(.5) brightness(1.08);
  opacity: .5;
}
.hero-img {
  position: relative;
  height: 100%;
  width: auto;
  max-width: none;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.hero-card {
  position: relative;
  display: inline-block;
  margin-top: -56px;
  padding: 28px 56px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.hero .en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 8px;
}
.hero h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

/* ---- セクション ---- */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--white { background: var(--surface); }

.section-title {
  margin: 0 0 40px;
  text-align: center;
  font-weight: 500;
  line-height: 1.6;
}
.section-title .en {
  display: block;
  font-family: var(--font-en);
  font-size: 24px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.section-title .jp {
  display: block;
  font-size: 13px;
  color: var(--text-sub);
}

/* ---- 業務カード ---- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 959px) {
  .service-grid { grid-template-columns: 1fr; }
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 24px;
}
.card ul { flex: 1; }
.card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.card-head img { width: 48px; flex-shrink: 0; }
.card-head small { font-size: 12px; color: var(--text-sub); }
.card-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}
.card ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.card li {
  padding: 6px 0 6px 18px;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
  position: relative;
}
.card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.card .lead {
  margin: 0;
  font-size: 14px;
  color: var(--copper);
}

/* ---- ボタン ---- */
.btn-wrap { text-align: center; margin-top: 40px; }
.btn {
  display: inline-block;
  min-width: 260px;
  padding: 12px 32px;
  border-radius: 20px;
  background: var(--btn);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.6;
  transition: opacity .2s;
}
.btn:hover { opacity: .8; }

.center { text-align: center; }

/* ---- お客様の声カード ---- */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.voice-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s;
}
.voice-card:hover { border-color: var(--gold); }
.voice-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .2s; }
.voice-card:hover img { opacity: .85; }
/* サムネイルの下に肩書と名前（10/24 あっこさん希望） */
.voice-card-caption {
  display: block;
  padding: 12px 16px 14px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}
.voice-card-caption small {
  display: block;
  font-size: 12px;
  color: var(--text-sub);
}

/* ---- 最近のお仕事 ---- */
.recent-list {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.recent-list li {
  display: flex;
  gap: 24px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}
.recent-list li:first-child { border-top: 1px solid var(--line); }
.recent-date {
  flex-shrink: 0;
  width: 64px;
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--gold);
  line-height: 2.15;
}

/* ---- 最近の発信（noteの新着。Worker が <!--note:start--> の位置に差し込む） ---- */
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.note-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s;
}
.note-card:hover { border-color: var(--gold); }
.note-card img { width: 100%; aspect-ratio: 1280 / 670; object-fit: cover; }
.note-card-body { display: block; padding: 12px 16px 16px; font-size: 14px; line-height: 1.8; }
.note-card-body time { display: block; font-family: var(--font-en); font-size: 12px; color: var(--text-sub); }

/* ---- プロフィール ---- */
.profile-message {
  text-align: center;
  font-size: 17px;
  line-height: 2.2;
  margin-bottom: 48px;
}
.profile {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 40px;
}
.profile > img {
  width: 160px;
  border-radius: 50%;
  flex-shrink: 0;
}
.profile-name {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
}
.profile-name small {
  font-size: 13px;
  color: var(--text-sub);
  margin-left: 8px;
}
.profile-activity { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
/* noteの固定記事（オープンチャット・個別相談の案内）へのカード。個別相談ページ（/service/）へは直接リンクしない */
.pin-card {
  display: flex;
  align-items: center;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: border-color .2s;
}
.pin-card:hover { border-color: var(--gold); }
.pin-card img { width: 38%; flex-shrink: 0; aspect-ratio: 1280 / 670; object-fit: cover; }
.pin-card-body { padding: 8px 14px; font-size: 13px; line-height: 1.7; }
.pin-card-body small { display: block; font-family: var(--font-en); font-size: 11px; color: var(--text-sub); }
.profile-strength {
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg-sub);
  border-radius: 6px;
  padding: 10px 16px;
  margin: 16px 0;
}
.sns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sns a {
  display: inline-block;
  padding: 2px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-family: var(--font-en);
  font-size: 13px;
  text-decoration: none;
  color: var(--text-muted);
}
.sns a:hover { border-color: var(--gold); color: var(--gold); }

/* ---- お問い合わせ ---- */
.notice {
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 14px 20px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--surface);
  font-size: 14px;
  text-align: center;
}
.form-frame {
  max-width: 680px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.form-frame iframe {
  display: block;
  width: 100%;
  height: 1250px;
  border: 0;
}

/* ---- フッター ---- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 32px 0;
  font-size: 12px;
  color: var(--text-sub);
  text-align: center;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer small { font-family: var(--font-en); letter-spacing: 0.1em; }

/* ---- スマホ ---- */
@media (max-width: 767px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .hero { padding: 0 0 40px; }
  .hero-visual { height: 280px; }
  .hero-visual::before { display: none; }
  .hero-img { width: 100%; object-fit: cover; object-position: 38% 55%; -webkit-mask-image: none; mask-image: none; }
  .hero-card { margin-top: -40px; padding: 18px 28px 20px; }
  .hero h1 { font-size: 21px; }
  .section { padding: 48px 0; }
  .section-title { margin-bottom: 28px; }
  .section-title .en { font-size: 20px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .voice-grid { grid-template-columns: 1fr; gap: 16px; }
  .note-grid { grid-template-columns: 1fr; gap: 12px; }
  .note-card { flex-direction: row; align-items: center; }
  .note-card img { width: 42%; flex-shrink: 0; }
  .note-card-body { padding: 8px 12px; font-size: 13px; line-height: 1.7; }
  .recent-list li { flex-direction: column; gap: 0; padding: 12px 2px; }
  .recent-date { line-height: 1.6; }
  .card { padding: 24px 20px; }
  .profile { flex-direction: column; align-items: center; padding: 28px 20px; gap: 20px; }
  .profile > img { width: 120px; }
  .profile-message { font-size: 15px; }
  .btn { min-width: 0; width: 100%; }
  /* スマホはヘッダーを薄くして画面上部に追従させる。メニューは長い言葉を省いて1行に */
  .site-header { position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0, 0, 0, .05); }
  .site-header .container { padding-top: 8px; padding-bottom: 6px; gap: 2px 16px; }
  .site-logo .en { font-size: 10px; }
  .site-logo .jp { font-size: 15px; }
  .site-nav ul { gap: 0 16px; font-size: 12px; flex-wrap: nowrap; white-space: nowrap; }
  .nav-long { display: none; }
}

/* ===== 下層ページ（build_pages.py で組むページ共通） ===== */
.page-head {
  padding: 56px 0 48px;
  text-align: center;
  background: var(--bg-sub);
  border-bottom: 1px solid var(--line);
}
.page-head .en {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 8px;
}
.page-head h1 {
  margin: 0 auto;
  max-width: 760px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.08em;
}
.container--narrow { max-width: 800px; }

.entry-date {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 12px;
}
.entry-thumb { width: 100%; border-radius: 6px; margin-bottom: 40px; border: 1px solid var(--line); }

.entry { overflow-wrap: anywhere; }
.entry > *:first-child { margin-top: 0; }
.entry h2 {
  margin: 56px 0 20px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  text-align: center;
}
.entry h3 {
  margin: 48px 0 20px;
  padding: 0 0 10px 16px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
  border-left: 3px solid var(--gold);
  border-bottom: 1px solid var(--line);
}
.entry h3 strong { font-weight: 500; }
.entry strong { font-weight: 700; }
.entry a { color: var(--copper); }
.entry a.btn { color: #ffffff; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1em; }
.entry li { margin-bottom: .3em; }
.entry hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}
.entry figure { margin: 0 0 1.5em; }
.entry figcaption { font-size: 13px; color: var(--text-sub); text-align: center; margin-top: 6px; }
.entry img { margin: 0 auto; }
.entry .is-style-rounded img { border-radius: 50%; }
.entry .aligncenter, .entry .wp-block-image { text-align: center; }
.entry audio { width: 100%; }
.entry blockquote {
  margin: 0 0 1.5em;
  padding: 24px 28px;
  background: var(--bg-sub);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.entry blockquote > *:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry td, .entry th { border: 1px solid var(--line); padding: 10px 14px; vertical-align: top; }
.entry .wp-block-table { overflow-x: auto; }
.entry .wp-block-columns { display: flex; gap: 20px; flex-wrap: wrap; }
.entry .wp-block-column { flex: 1 1 200px; }
.entry .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0; }
.entry .wp-block-button__link {
  display: inline-block;
  min-width: 260px;
  padding: 12px 32px;
  border-radius: 20px;
  background: var(--btn);
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
}
.entry .wp-block-button__link:hover { opacity: .8; }
.entry .has-background { padding: 14px 20px; border-radius: 6px; }
.entry .has-text-align-center { text-align: center; }
.entry .has-text-align-left { text-align: left; }
.entry .u-fz-s, .entry .has-small-font-size { font-size: 13px; }
.entry .u-fz-xs { font-size: 12px; }
.entry .swl-marker { background: linear-gradient(transparent 62%, rgba(170,153,119,.28) 62%); }
.entry .mark_orange { background: linear-gradient(transparent 62%, rgba(194,131,88,.25) 62%); }
.entry .swl-inline-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: .4em;
  vertical-align: -0.12em;
  background: var(--gold);
  -webkit-mask: var(--the-icon-svg) no-repeat center / contain;
  mask: var(--the-icon-svg) no-repeat center / contain;
}
.entry .is-style-check_list, .entry .is-style-good_list { list-style: none; padding-left: 0; }
.entry .is-style-check_list li, .entry .is-style-good_list li { position: relative; padding-left: 1.6em; }
.entry .is-style-check_list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); }
.entry .is-style-good_list li::before { content: "○"; position: absolute; left: 0; color: var(--copper); }
.entry .form-frame { margin-top: 24px; }

@media (max-width: 767px) {
  .page-head { padding: 40px 0 32px; }
  .page-head h1 { font-size: 18px; }
  .entry h3 { font-size: 16px; margin-top: 40px; }
  .entry blockquote { padding: 18px 16px; }
  .entry .wp-block-button__link { min-width: 0; width: 100%; }
  .entry .wp-block-button { width: 100%; }
}
