/* 下層ページ。トップの style.css（ヘッダー・丸いボタン・点つきの見出し・札）に重ねて読む */
body.sub { padding-top: 92px; }
body.sub .hd { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); padding-block: 14px; }

.page { max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 5vw, 64px); }
.crumbs { font-size: 12px; color: var(--faint); margin: 8px 0 28px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span::before { content: "/"; margin-right: 6px; }

/* ページの頭：左に見出し、右に絵 */
.ph-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: clamp(56px, 8vh, 96px); }
.ph-hero.solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 820px) { .ph-hero { grid-template-columns: minmax(0, 1fr); } }
.ph-hero h1 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.4; font-weight: 700; margin: 14px 0 18px; text-wrap: balance; }
.ph-hero .lede { color: var(--sub); max-width: 34em; }
.ph-hero .pic img { border-radius: 24px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ph-hero .pic.wide img { aspect-ratio: auto; border-radius: 0; }
.ph-hero .pic.shot img { object-position: 50% 0; box-shadow: 0 0 0 1px var(--line); }  /* サービスのサイトの画面（上を見せる） */
.ph-hero.center { text-align: center; }
.ph-hero.center .label { justify-content: center; }
.ph-hero.center .lede { margin-inline: auto; }
.ph-hero.solo h1, .ph-hero.center h1 { font-size: clamp(30px, 4.2vw, 52px); }

/* 区画 */
.blk { padding-block: clamp(48px, 7vh, 80px); border-top: 1px solid var(--line); }
.blk-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.55; margin: 12px 0 18px; text-wrap: balance; }
.prose { max-width: 40em; color: var(--sub); }
.prose p + p { margin-top: 1em; }
.prose b { color: var(--ink); }
.panel { background: var(--gray); border-radius: 24px; padding: clamp(24px, 4vw, 44px); }
.panel + .panel { margin-top: 20px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (max-width: 820px) { .two { grid-template-columns: minmax(0, 1fr); } }
.two img { border-radius: 20px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.note { font-size: 12px; color: var(--faint); margin-top: 14px; }

/* 考え方などの小さな札 */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tiles:has(> :nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
@media (min-width: 900px) { .tiles:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { background: var(--gray); border-radius: 20px; padding: 22px 24px 24px; min-width: 0; }
.tile .num { display: inline-block; margin-bottom: 12px; }
.tile h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; line-height: 1.5; }
.tile p { font-size: 14px; color: var(--sub); }

/* 表 */
.table { display: grid; grid-template-columns: 11em minmax(0, 1fr); border-top: 1px solid var(--line); max-width: 860px; }
.table dt, .table dd { padding: 18px 0; border-bottom: 1px solid var(--line); }
.table dt { font-weight: 700; font-size: 15px; }
.table dd { color: var(--sub); }
@media (max-width: 560px) { .table { grid-template-columns: minmax(0, 1fr); } .table dt { border-bottom: 0; padding-bottom: 0; } }

/* 三人の図 */
.trio { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.trio span { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; border: 1.5px solid var(--ink); font-weight: 700; font-size: 15px; background: #fff; }

/* 例：打つと／喋ると */
.compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 700px) { .compare { grid-template-columns: minmax(0, 1fr); } }
.compare div { background: var(--gray); border-radius: 20px; padding: 22px 26px; }
.compare small { display: block; font-size: 12px; color: var(--faint); margin-bottom: 6px; font-weight: 700; }
.compare p { font-size: 16px; }

/* 事業の札（一覧） */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; background: var(--gray); border-radius: 26px; padding: 16px; transition: transform .3s; }
.svc + .svc { margin-top: 20px; }
.svc:hover { transform: translateY(-3px); }
.svc img { border-radius: 18px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #fff; }
.svc .body { padding: 8px 16px 8px 0; }
.svc h2 { font-size: 24px; font-weight: 700; margin: 12px 0 4px; }
.svc .ln { font-weight: 700; margin-bottom: 8px; }
.svc p { color: var(--sub); font-size: 14px; }
@media (max-width: 760px) { .svc { grid-template-columns: minmax(0, 1fr); } .svc .body { padding: 0 8px 12px; } }

/* これまでの仕事 */
.work { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding-block: 28px; }
.work:nth-child(even) img { order: 2; }
@media (max-width: 760px) { .work { grid-template-columns: minmax(0, 1fr); } .work:nth-child(even) img { order: 0; } }
.work img { border-radius: 20px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.work .yr { font-family: var(--en); font-weight: 600; color: var(--faint); font-size: 14px; }
.work h3 { font-size: 21px; font-weight: 700; line-height: 1.55; margin: 6px 0 10px; text-wrap: balance; }
.work p { color: var(--sub); font-size: 15px; }
.work .tagline { display: inline-block; font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; margin-top: 10px; color: var(--sub); }

/* お知らせ */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button { font: inherit; font-size: 13px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 16px; cursor: pointer; color: var(--sub); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.nlist { list-style: none; display: grid; gap: 10px; }
.nlist li { display: grid; grid-template-columns: 7em 9em minmax(0, 1fr); gap: 16px; align-items: baseline; background: var(--gray); border-radius: 16px; padding: 18px 24px; }
.nlist time { font-family: var(--en); color: var(--faint); }
.nlist .cat { font-size: 12px; color: var(--sub); }
@media (max-width: 640px) { .nlist li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* メンバー */
.team { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; }
.team li { text-align: center; }
.team .ph { display: block; width: min(150px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: #ececea; margin: 0 auto 14px; }
.team b { display: block; font-size: 17px; }
.team small { color: var(--sub); font-size: 13px; }

/* 沿革 */
.history { list-style: none; position: relative; max-width: 760px; }
.history::before { content: ""; position: absolute; left: 5.4em; top: 14px; bottom: 14px; width: 1.5px; background: var(--ink); }
.history li { display: grid; grid-template-columns: 4.6em 1.6em minmax(0, 1fr); align-items: baseline; padding: 10px 0; }
.history .y { font-family: var(--en); font-weight: 700; }
.history .d { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); justify-self: center; position: relative; top: 1px; }

/* お問い合わせ */
.form { display: grid; gap: 18px; max-width: 680px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.form label small { font-weight: 400; color: var(--faint); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; background: #fff; color: var(--ink); }
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); }
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.form button.pill { border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.sent { background: var(--gray); border-radius: 18px; padding: 22px 26px; font-weight: 700; }
.guide { list-style: none; display: grid; gap: 8px; color: var(--sub); font-size: 14px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.pill.ghost { background: #fff; border: 1.5px solid var(--line); }
.pill[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* サービスのロゴ（assets/brand/。どれを使うかは pages.py の LOGO） */
.svc img.svc-logo, img.svc-logo { height: 30px; width: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; background: none; display: block; margin-bottom: 10px; }
img.svc-logo.lg { height: 44px; margin-bottom: 16px; }
.svc h2 { font-size: 20px; line-height: 1.55; }
.ph-hero .pic img[src$=".svg"] { background: var(--gray); }

/* 考え方：絵と一緒に並べる */
.diagram { width: 100%; height: auto; max-width: 560px; justify-self: center; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.value { background: var(--gray); border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.value img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.value div { padding: 18px 22px 24px; }
.value .num { display: inline-block; margin-bottom: 10px; }
.value h3 { font-size: 18px; line-height: 1.55; margin-bottom: 6px; text-wrap: balance; }
.value p { font-size: 14px; color: var(--sub); }

/* プロジェクト */
.work h2 { font-size: 20px; font-weight: 700; line-height: 1.6; margin: 8px 0 10px; text-wrap: balance; }
.work .tagline { margin: 0 0 0 10px; }

/* お知らせの一覧と記事 */
.nlist li { display: block; padding: 0; }
.nlist li a { display: grid; grid-template-columns: 7em 9em minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 24px; }
.nlist li a:hover .t { text-decoration: underline; }
@media (max-width: 640px) { .nlist li a { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.article { max-width: 760px; padding-bottom: 80px; }
.article .meta { display: flex; gap: 14px; font-size: 13px; color: var(--faint); font-family: var(--en); }
.article h1 { font-size: clamp(24px, 3vw, 34px); line-height: 1.5; margin: 10px 0 28px; text-wrap: balance; }
.article .prose { color: var(--ink); }
.article .prose a { text-decoration: underline; }
.article .prose h2 { font-size: 20px; margin: 1.6em 0 .6em; }
.article .prose ul { padding-left: 1.4em; margin: .6em 0 1em; }
.article .prose li + li { margin-top: .4em; }
.article .prose ul + p, .article .prose p + ul { margin-top: 1em; }
