/* =========================================================
   伊藤祐貴法律事務所 — トップページ専用（Studio デザイン・2026/09）
   style.css の後に読み込む。body.studio のみに適用。
   OS標準フォントのみ。ブランド色: personal=#c6416f / corporate=#128c74
   ========================================================= */
body.studio {
  --st-bg: #fbfaf7;
  --st-ink: #1a1d22;
  --st-ink-2: #4b5158;
  --st-line: rgba(26,29,34,.08);
  --st-card: #ffffff;
  --st-personal: #c6416f;
  --st-personal-soft: #fbeef3;
  --st-personal-text: #8a2350;
  --st-corporate: #128c74;
  --st-corporate-soft: #e8f5f1;
  --st-corporate-text: #0e6e5c;
  --st-radius: 18px;
  --st-radius-lg: 28px;
  --st-maxw: 1328px;
  background: var(--st-bg);
  color: var(--st-ink);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Helvetica Neue", Arial, "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
  font-feature-settings: "palt";
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body.studio a { color: inherit; text-decoration: none; }
body.studio .st-mono { font-family: "SF Mono", Menlo, Consolas, "Courier New", monospace; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; color: var(--st-ink-2); }
body.studio .st-wrap { max-width: var(--st-maxw); margin: 0 auto; padding: 0 24px; }
body.studio .st-card { background: var(--st-card); border: 1px solid var(--st-line); border-radius: var(--st-radius); }
body.studio .st-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font-size: 14px; font-weight: 600; line-height: 1.2; transition: transform .18s ease, opacity .18s ease; }
body.studio .st-pill:hover { transform: translateY(-1px); opacity: .92; }
body.studio .st-pill svg { flex: none; }
body.studio .st-pill--personal { background: var(--st-personal); color: #fff; }
body.studio .st-pill--corporate { background: var(--st-corporate); color: #fff; }
body.studio .st-pill--ink { background: var(--st-ink); color: #fff; }
body.studio .st-pill--paper { background: #fff; color: var(--st-ink); }

/* ---------- ヘッダー ---------- */
body.studio .st-header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body.studio .st-header .st-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
body.studio .st-brand { display: flex; align-items: center; gap: 12px; }
body.studio .st-brand img { width: 30px; height: 30px; }
body.studio .st-brand .n { font-size: 16px; font-weight: 600; letter-spacing: .04em; line-height: 1.2; display: flex; flex-direction: column; }
body.studio .st-brand .n small { font-size: 9px; letter-spacing: .18em; color: var(--st-ink-2); font-weight: 500; margin-top: 2px; }
body.studio .st-nav { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
body.studio .st-nav a { display: inline-block; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--st-ink-2); transition: background .18s ease, color .18s ease; }
body.studio .st-nav a:hover { background: #f1f1ee; color: var(--st-ink); }
body.studio .st-nav .st-nav-cta a { margin-left: 8px; padding: 12px 22px; background: var(--st-ink); color: #fff; font-weight: 600; }
body.studio .st-nav .st-nav-cta a:hover { background: #2a2f36; }
body.studio .st-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; border-radius: 999px; }
body.studio .st-toggle svg { width: 24px; height: 24px; stroke: var(--st-ink); }

/* ---------- ヒーロー ---------- */
body.studio .st-hero-wrap { position: relative; margin: 0 24px; }
body.studio .st-hero { position: relative; height: min(660px, 78vh); min-height: 520px; border-radius: var(--st-radius-lg); overflow: hidden; background: #6b7a86; }
body.studio .st-hero > picture, body.studio .st-hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; filter: saturate(.82) contrast(1.02) brightness(1.04); }
body.studio .st-hero::after { content: ""; position: absolute; inset: 0; background: rgba(26,29,34,.10); }
body.studio .st-hero-card { position: absolute; left: 40px; bottom: 40px; z-index: 2; width: min(620px, calc(100% - 80px)); padding: 40px 44px; display: flex; flex-direction: column; gap: 22px; background: rgba(255,255,255,.96); border-radius: 22px; }
body.studio .st-hero-card h1 { margin: 0; font-size: clamp(30px, 3.1vw, 44px); line-height: 1.35; font-weight: 600; letter-spacing: .01em; word-break: keep-all; overflow-wrap: anywhere; }
body.studio .st-hero-card p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--st-ink-2); }
body.studio .st-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
body.studio .st-byline { position: absolute; right: 40px; bottom: 40px; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 14px 22px 14px 16px; background: #fff; border: 1px solid var(--st-line); border-radius: 999px; }
body.studio .st-byline picture { display: flex; flex: none; }
body.studio .st-byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center top; }
body.studio .st-byline .n { font-size: 14px; font-weight: 600; line-height: 1.35; display: flex; flex-direction: column; }
body.studio .st-byline .n small { font-size: 12px; font-weight: 400; color: var(--st-ink-2); }
body.studio .st-byline:hover { background: #f7f6f3; }

/* ---------- 分野 ---------- */
body.studio .st-section { padding: 64px 0 0; }
body.studio .st-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 26px; }
body.studio .st-section-head h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: .02em; }
body.studio .st-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.studio .st-area { padding: 24px 22px 22px; display: flex; flex-direction: column; gap: 12px; min-height: 216px; transition: transform .18s ease, box-shadow .18s ease; }
body.studio .st-area:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(26,29,34,.07); }
body.studio .st-area svg { width: 24px; height: 24px; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
body.studio .st-area--p svg { stroke: var(--st-personal); }
body.studio .st-area--c svg { stroke: var(--st-corporate); }
body.studio .st-area h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
body.studio .st-area p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--st-ink-2); }
body.studio .st-area .st-tag { margin-top: auto; display: inline-flex; width: fit-content; padding: 6px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f1f1ee; color: var(--st-ink-2); }
body.studio .st-area--p .st-tag.hot { background: var(--st-personal-soft); color: var(--st-personal-text); }
body.studio .st-area--c .st-tag.hot { background: var(--st-corporate-soft); color: var(--st-corporate-text); }
body.studio .st-more { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
body.studio .st-more a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(26,29,34,.18); font-size: 13px; font-weight: 600; }
body.studio .st-more a:hover { background: #f1f1ee; }

/* 複数サービスのカードは、各リンクから行き先を選ぶ */
body.studio .st-area--choices:hover { transform: none; box-shadow: none; }
body.studio .st-choice-links { display: flex; flex-direction: column; gap: 4px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--st-line); }
body.studio .st-choice-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 9px 10px; border-radius: 8px; color: var(--st-ink); font-size: 13px; font-weight: 600; line-height: 1.6; }
body.studio .st-choice-links a::after { content: "→"; flex: none; }
body.studio .st-choice-links a:hover { background: #f1f1ee; }
body.studio .st-choice-links a:focus-visible { outline: 2px solid var(--st-ink); outline-offset: 2px; }
body.studio .st-area--choices .st-tag { margin-top: 0; }
body.studio .st-plan-choices .st-choice-links { margin-top: 20px; }

/* ---------- クチコミ（自動切替） ---------- */
body.studio .st-reviews { margin: 56px 24px 0; padding: 36px 40px; border-radius: 22px; background: var(--st-ink); color: #fff; display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
body.studio .st-reviews .st-mono { color: rgba(255,255,255,.6); }
body.studio .st-score { display: flex; flex-direction: column; gap: 8px; }
body.studio .st-score .num { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
body.studio .st-score .stars { font-size: 12px; color: rgba(255,255,255,.7); }
body.studio .st-score .gbp { font-size: 12px; color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 3px; }
body.studio .st-carousel { position: relative; min-height: 132px; }
body.studio .st-review { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 10px; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
body.studio .st-review.is-active { position: relative; opacity: 1; visibility: visible; }
body.studio .st-review blockquote { margin: 0; font-size: 17px; line-height: 1.9; color: rgba(255,255,255,.92); }
body.studio .st-review .src { font-size: 11px; color: rgba(255,255,255,.55); }
body.studio .st-controls { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
body.studio .st-dots { display: flex; gap: 8px; }
body.studio .st-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); cursor: pointer; transition: background .2s, transform .2s; }
body.studio .st-dots button[aria-current="true"] { background: #fff; transform: scale(1.25); }
body.studio .st-arrows { display: flex; gap: 6px; margin-left: auto; }
body.studio .st-arrows button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
body.studio .st-arrows button:hover { background: rgba(255,255,255,.12); }
body.studio .st-arrows svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.studio .st-review-note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 11px; line-height: 1.7; color: rgba(255,255,255,.55); }
body.studio .st-review-note a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- お知らせ・コラム帯 ---------- */
body.studio .st-strip { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
body.studio .st-strip .st-card { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; }
body.studio .st-strip h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.5; }
body.studio .st-strip p { margin: 0; font-size: 13px; line-height: 1.8; color: var(--st-ink-2); }
body.studio .st-strip .lnk { margin-top: auto; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

/* ---------- フッター ---------- */
body.studio .st-footer { margin-top: 72px; padding: 56px 0 40px; border-top: 1px solid var(--st-line); }
body.studio .st-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
body.studio .st-footer p { margin: 0 0 12px; font-size: 13px; line-height: 1.9; color: var(--st-ink-2); }
body.studio .st-footer h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .12em; color: var(--st-ink); }
body.studio .st-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--st-ink-2); }
body.studio .st-footer ul a:hover { color: var(--st-ink); text-decoration: underline; text-underline-offset: 3px; }
body.studio .st-footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--st-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--st-ink-2); }
body.studio .st-footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- スマホ固定CTA（style.css の .mobile-cta-bar をピル形に） ---------- */
@media (max-width: 760px) {
  body.studio .mobile-cta-bar { background: rgba(251,250,247,.94); border-top: 1px solid var(--st-line); box-shadow: none; }
  body.studio .mobile-cta-bar a { border-radius: 999px; }
  body.studio .mobile-cta-bar .mcta-line { background: var(--st-personal); }
  body.studio .mobile-cta-bar .mcta-form { background: var(--st-ink); }
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1024px) {
  body.studio .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.studio .st-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body.studio .st-wrap { padding: 0 14px; }
  body.studio .st-header .st-wrap { height: 60px; }
  body.studio .st-brand img { width: 26px; height: 26px; }
  body.studio .st-brand .n { font-size: 15px; }
  body.studio .st-brand .n small { display: none; }
  body.studio .st-toggle { display: inline-flex; }
  body.studio .st-nav { display: none; position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 14px 16px; background: rgba(251,250,247,.98); border-bottom: 1px solid var(--st-line); }
  body.studio .st-nav.open { display: flex; }
  body.studio .st-nav a { padding: 14px 12px; border-radius: 12px; font-size: 15px; }
  body.studio .st-nav .st-nav-cta a { margin: 8px 0 0; text-align: center; }
  body.studio .st-hero-wrap { margin: 0 14px; }
  body.studio .st-hero { height: 300px; min-height: 0; border-radius: 22px; }
  body.studio .st-hero > picture img { object-position: center 60%; }
  body.studio .st-hero::after { background: rgba(26,29,34,.06); }
  body.studio .st-hero-card { position: static; width: auto; margin: 22px 8px 0; padding: 0; background: transparent; border-radius: 0; gap: 16px; }
  body.studio .st-hero-card h1 { font-size: 28px; line-height: 1.4; }
  body.studio .st-hero-card p { font-size: 14px; }
  body.studio .st-hero-actions { flex-direction: column; }
  body.studio .st-hero-actions .st-pill { justify-content: space-between; padding: 16px 20px; font-size: 15px; }
  body.studio .st-hero-caption { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11px; color: var(--st-ink-2); }
  body.studio .st-byline { position: static; margin: 16px 8px 0; padding: 0; background: transparent; border: 0; border-radius: 0; }
  body.studio .st-section { padding: 40px 0 0; }
  body.studio .st-section-head { margin-bottom: 14px; padding: 0 8px; }
  body.studio .st-section-head h2 { font-size: 20px; }
  body.studio .st-grid { gap: 10px; }
  body.studio .st-area { padding: 18px 16px; min-height: 150px; gap: 10px; }
  body.studio .st-area svg { width: 22px; height: 22px; }
  body.studio .st-area h3 { font-size: 15px; }
  body.studio .st-area p { font-size: 12px; }
  body.studio .st-more { justify-content: stretch; }
  body.studio .st-more a { flex: 1; justify-content: center; }
  body.studio .st-reviews { margin: 32px 14px 0; padding: 24px 22px; grid-template-columns: 1fr; gap: 14px; border-radius: 20px; }
  body.studio .st-score { flex-direction: row; align-items: baseline; gap: 12px; }
  body.studio .st-score .num { font-size: 32px; }
  body.studio .st-carousel { min-height: 150px; }
  body.studio .st-review blockquote { font-size: 14px; line-height: 1.85; }
  body.studio .st-strip { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  body.studio .st-footer { margin-top: 48px; padding: 40px 0 32px; }
  body.studio .st-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (min-width: 761px) and (max-width: 1040px) {
  body.studio .st-byline { bottom: auto; top: 28px; right: 28px; }
  body.studio .st-hero-card { width: calc(100% - 80px); }
}
@media (min-width: 761px) {
  body.studio .st-hero-caption { position: absolute; left: 40px; top: 28px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.86); font-size: 11px; color: var(--st-ink-2); letter-spacing: .06em; }
}

/* ---------- モーション配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  body.studio .st-review { transition: none; }
  body.studio .st-pill, body.studio .st-area { transition: none; }
}
