/* =========================================================
   会社ページ（company.html）
   色・書体・ヘッダー・フッター・ボタンは styles.css を共用。
   ここでは会社ページ固有のレイアウトだけを定義します。
   ========================================================= */

.company { background: #fff; }
/* タブ切り替えで内容の高さが変わっても、ブラウザが下の要素に合わせて勝手にスクロールしないようにする */
html:has(.company), .company, .company * { overflow-anchor: none; }
.company .site-footer { padding-bottom: 52px; }
.company :is(h4) { margin: 0; }
/* 会社ページの見出しは、丸ゴシックではなく角ゴシックで落ち着いた印象に */
.company main :is(h1, h2, h3, h4), .co-notice strong, .co-profile dt, .co-member { font-family: var(--sans); font-weight: 700; letter-spacing: .04em; }

/* 共通パーツ：ラベル・見出し・本文 */
.co-label { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--coral-deep); font-family: var(--round); font-weight: 700; font-size: 13px; letter-spacing: .2em; line-height: 1.4; }
.co-label::before { content: ''; width: 28px; height: 1.5px; background: currentColor; }
.co-title { font-size: clamp(27px, 3.4vw, 40px); font-weight: 700; color: var(--navy); }
.co-text { margin-top: 18px; color: #323949; font-size: 15.5px; line-height: 2; }
.co-title + .co-text { margin-top: 24px; }
/* タグライン「まちのいまを、灯す。」：「灯す」をロゴと同じ青→紫→オレンジで見せる */
.company main .co-tagline { font-size: clamp(32px, 4.3vw, 52px); letter-spacing: .06em; line-height: 1.4; white-space: nowrap; }
.home .co-tagline em { position: relative; display: inline-block; background: linear-gradient(95deg, #34A6FA 0%, #A57BE3 48%, #FFA646 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home .co-tagline em::after { content: ''; position: absolute; left: 0; right: 0; bottom: -.08em; height: 4px; border-radius: 4px; background: linear-gradient(95deg, #34A6FA 0%, #A57BE3 48%, #FFA646 100%); transform-origin: left; }
.js [data-reveal] .co-tagline em::after { transform: scaleX(0); transition: transform .9s var(--ease) .45s; }
.js [data-reveal].is-visible .co-tagline em::after { transform: scaleX(1); }
.co-sublead { margin-top: 18px; color: var(--navy); font-weight: 700; font-size: clamp(16px, 1.7vw, 19px); letter-spacing: .04em; line-height: 1.7; }
.co-sublead + .co-text { margin-top: 18px; }
.footer-tagline { letter-spacing: .12em; }
.co-lead { max-width: 640px; margin-top: 16px; color: var(--muted); font-size: 15.5px; }
.co-head { margin-bottom: clamp(28px, 4vw, 44px); }
.co-link { margin-top: 20px; padding-left: 0; color: var(--coral-ink); }
.co-badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 12px 3px 10px; border: 1px solid #F0B6AF; border-radius: 999px; background: #fff; color: var(--coral-ink); font-size: 12px; font-weight: 700; line-height: 1.6; letter-spacing: .06em; white-space: nowrap; }
.co-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.co-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--coral-soft); color: var(--coral-deep); font-size: 21px; }
.co-num { color: #C3A7A1; font-family: var(--round); font-weight: 700; font-size: 13px; letter-spacing: .14em; line-height: 1; }
.co-card { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--border); border-radius: 28px; background: var(--cream); }
.co-card h3 { margin-top: 16px; font-size: clamp(20px, 2.2vw, 25px); font-weight: 700; color: var(--navy); }
.co-card p { margin-top: 12px; color: #3B4252; font-size: 15px; }

/* ===== ヒーロー ===== */
.co-hero { position: relative; padding: clamp(28px, 4vw, 56px) 0 clamp(44px, 5vw, 68px); background: radial-gradient(circle at 0% 0%, #FFE6E1, transparent 46%), radial-gradient(circle at 100% 30%, #EAF3E3, transparent 44%), var(--cream); overflow: hidden; }
.co-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.co-hero-copy > * { animation: rise .8s var(--ease) both; }
.co-hero-copy > :nth-child(2) { animation-delay: .06s; }
.co-hero-copy > :nth-child(3) { animation-delay: .14s; }
.co-hero-copy > :nth-child(4) { animation-delay: .22s; }
.co-crumb { display: flex; align-items: center; gap: 6px; margin-bottom: clamp(24px, 4vw, 44px); color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.co-crumb a { transition: color .2s; }
.co-crumb a:hover { color: var(--coral-ink); }
.co-crumb .i { width: 12px; height: 12px; color: #B8A8A4; }
.co-crumb span { color: var(--ink); font-weight: 700; }
.co-hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.3; color: var(--navy); }
.co-hero h1.swap, .co-hero-lead.swap { animation: rise .5s var(--ease) both; }
.co-hero-lead { max-width: 440px; min-height: 3.8em; margin-top: 18px; color: #323949; font-size: 16px; line-height: 1.9; }
.co-hero-photo { position: relative; container-type: inline-size; aspect-ratio: 1170 / 753; overflow: hidden; border-radius: 28px; background: #EFE6DD; box-shadow: var(--shadow-lg); animation: co-photo 1.1s var(--ease) both .1s; }
/* 写真の右側（看板のある範囲）だけを固定の比率で切り出し、看板の上に社名を重ねる */
.home .co-hero-photo img { position: absolute; left: -42.9%; top: -6.24%; width: 142.9%; max-width: none; height: auto; }
.home .co-hero-photo img.co-plaque { position: absolute; left: 70.7%; top: 24.5%; width: 18.7%; max-width: none; height: 22%; object-fit: contain; transform: rotate(-.6deg); }
@keyframes co-photo { from { opacity: 0; transform: translateY(18px) scale(.985); } }

/* ===== タブ ===== */
.co-tabs-shell { position: sticky; top: 76px; z-index: 30; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.co-tabs-scroll { width: min(1120px, 100%); margin-inline: auto; overflow-x: auto; scrollbar-width: none; }
.co-tabs-scroll::-webkit-scrollbar { display: none; }
.co-tabs { position: relative; display: grid; grid-template-columns: repeat(6, minmax(max-content, 1fr)); min-width: max-content; }
.co-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 64px; padding: 0 20px; border: 0; background: none; color: var(--muted); font-family: var(--round); font-weight: 700; font-size: 14.5px; line-height: 1.3; white-space: nowrap; cursor: pointer; transition: color .25s, background-color .25s; }
.co-tabs button .i { font-size: 16px; transition: transform .35s var(--ease); }
.co-tabs button:hover { color: var(--coral-ink); background: #FFF6F4; }
.co-tabs button:hover .i { transform: translateY(-2px); }
.co-tabs button[aria-selected='true'] { color: var(--coral-ink); }
.home .co-tabs button:focus-visible { outline-offset: -4px; }
.co-tab-line { position: absolute; left: 0; bottom: -1px; width: var(--w, 0); height: 3px; border-radius: 3px 3px 0 0; background: var(--coral-deep); transform: translateX(var(--x, 0)); transition: transform .45s var(--ease), width .45s var(--ease); }

/* ===== パネル共通 ===== */
.co-panels { padding-block: clamp(48px, 7vw, 88px) clamp(64px, 8vw, 104px); }
.co-panel { min-height: 420px; }
.co-panel[hidden] { display: none; }
.co-panel:not([hidden]) { animation: rise .5s var(--ease) both; }
.co-block + .co-block { margin-top: clamp(56px, 8vw, 96px); padding-top: clamp(48px, 7vw, 80px); border-top: 1px solid var(--border); }
.co-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.co-photo { margin: 0; overflow: hidden; border-radius: 28px; aspect-ratio: 3 / 2; background: #EFE6DD; box-shadow: var(--shadow-lg); }
.co-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.co-photo:hover img { transform: scale(1.04); }
.co-photo.small { aspect-ratio: 4 / 3.4; border-radius: 22px; box-shadow: none; }

/* ===== 会社概要 ===== */
.co-points { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(44px, 6vw, 72px); border: 1px solid var(--border); border-radius: 28px; background: #fff; overflow: hidden; }
.co-points li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 18px; padding: 30px clamp(18px, 2.6vw, 34px); transition: background-color .3s, opacity .8s ease var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.co-points li + li { border-left: 1px solid var(--border); }
.co-points li:hover { background: var(--cream); }
.co-points .co-num { grid-column: 1 / -1; }
.co-points h3 { font-size: 17px; font-weight: 700; line-height: 1.55; color: var(--navy); }
.co-notice { display: flex; align-items: center; gap: 22px; margin-top: 24px; padding: 22px 28px; border-radius: 20px; background: var(--cream); }
.co-notice strong { font-family: var(--round); font-size: 16.5px; }
.co-notice p { margin-top: 2px; color: var(--muted); font-size: 14px; }

/* ===== 理念・価値観 ===== */
.co-mission { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.co-checks { display: grid; gap: 12px; margin-top: 24px; padding-top: 22px; border-top: 1px solid #F0D9D3; font-size: 14.5px; font-weight: 700; }
.co-checks li { display: flex; align-items: center; gap: 11px; }
.co-checks .i { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--coral-deep); color: #fff; stroke-width: 3.5; }
.co-subhead { margin: clamp(44px, 6vw, 64px) 0 24px; }
.co-subhead h3 { font-size: clamp(21px, 2.4vw, 26px); font-weight: 700; color: var(--navy); }
.co-subhead > p:last-child { margin-top: 8px; color: var(--muted); font-size: 14.5px; }
.co-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.co-three li { padding: 26px 24px 28px; border: 1px solid var(--border); border-radius: 22px; background: #fff; transition: border-color .3s, box-shadow .3s, transform .4s var(--ease), opacity .8s ease var(--d, 0ms); }
.js .co-three li.is-visible:hover, .co-three li:hover { transform: translateY(-5px); border-color: #F0B6AF; box-shadow: 0 22px 36px -26px rgba(120, 60, 52, .5); }
.co-three h4 { margin-top: 18px; font-size: 17px; font-weight: 700; color: var(--navy); }
.co-three p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.co-vision { text-align: center; }
.co-vision h3, .co-vision p { text-wrap: balance; }
.co-town { display: flex; align-items: flex-end; justify-content: center; gap: clamp(14px, 3vw, 30px); margin-top: 30px; padding-bottom: 12px; border-bottom: 2px solid #F3B8AF; color: #E98E82; }
.co-town .i { stroke-width: 1.4; width: 44px; height: 44px; }
.co-town .i:nth-child(3) { width: 62px; height: 62px; color: var(--coral-deep); }
.co-town .i:nth-child(even) { width: 28px; height: 28px; color: var(--leaf-deep); }
.co-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.co-values li { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; padding: 28px 28px 28px 26px; border: 1px solid var(--border); border-radius: 22px; background: #fff; transition: border-color .3s, box-shadow .3s, transform .4s var(--ease), opacity .8s ease var(--d, 0ms); }
.js .co-values li.is-visible:hover, .co-values li:hover { transform: translateY(-4px); border-color: #F0B6AF; box-shadow: 0 22px 36px -26px rgba(120, 60, 52, .5); }
.co-values .co-num { position: absolute; right: 22px; top: 20px; }
.co-values h3 { font-size: 18px; font-weight: 700; color: var(--navy); }
.co-values p { margin-top: 5px; color: var(--muted); font-size: 14px; }

/* ===== 準備中の写真枠 ===== */
.co-ph { display: grid; place-items: center; align-content: center; gap: 10px; border: 1.5px dashed #EBC9C2; border-radius: 24px; background: repeating-linear-gradient(135deg, #FFF8F6 0 14px, #FFF3F0 14px 28px); color: #D9A39A; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; }
.co-ph .i { width: 44px; height: 44px; stroke-width: 1.3; }

/* ===== 代表挨拶 ===== */
.co-message { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.co-ph.portrait { min-height: 400px; }
.co-message-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; overflow: hidden; }
.co-message-card p { max-width: 560px; }
.co-quote { position: absolute; right: 28px; top: -18px; color: #F8D9D3; font-family: Georgia, serif; font-size: 190px; line-height: 1; }
.co-card .co-sign { margin-top: 28px; padding-top: 18px; border-top: 1px solid #F0D9D3; align-self: stretch; max-width: none; color: var(--ink); font-family: var(--round); font-weight: 700; font-size: 14px; text-align: right; }

/* ===== 会社情報 ===== */
.co-profile { margin: 0; border-top: 2px solid var(--navy); }
.co-profile > div { display: grid; grid-template-columns: 240px 1fr; border-bottom: 1px solid var(--border); transition: background-color .25s; }
.co-profile > div:hover { background: var(--cream); }
.co-profile dt { display: flex; align-items: center; gap: 14px; padding: 24px 20px; color: var(--navy); font-family: var(--round); font-weight: 700; font-size: 15.5px; }
.co-profile dt .i { color: var(--coral-deep); font-size: 17px; }
.co-profile dd { display: flex; align-items: center; margin: 0; padding: 24px 20px; font-size: 16px; font-weight: 500; line-height: 1.7; }
.co-profile dd.tbd { color: #8A909C; }

/* ===== 沿革 ===== */
.co-timeline { position: relative; display: grid; gap: 16px; max-width: 820px; padding-left: 44px; }
.co-timeline::before { content: ''; position: absolute; left: 9px; top: 14px; bottom: 14px; border-left: 2px dashed #F2C1BA; }
.co-timeline li { position: relative; padding: 24px 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--cream); }
.co-timeline li.future { background: #fff; }
.co-dot { position: absolute; left: -44px; top: 30px; width: 20px; height: 20px; border: 4px solid var(--coral); border-radius: 50%; background: #fff; }
.future .co-dot { border-color: #F2C1BA; }
.co-when { color: var(--coral-deep); font-family: var(--round); font-weight: 700; font-size: 12.5px; letter-spacing: .14em; }
.future .co-when { color: #A99A96; }
.co-timeline h3 { margin-top: 4px; font-size: 18px; font-weight: 700; color: var(--navy); }
.co-timeline li > p:last-child { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* ===== チーム ===== */
.co-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.co-team .co-ph { aspect-ratio: 1 / 1.08; }
.co-member { margin-top: 14px; color: var(--navy); font-family: var(--round); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.co-role { color: #8A909C; font-size: 13px; }

/* ===== 会社ロゴ（ヘッダー・フッター） ===== */
.co-service-link .i { transition: transform .25s var(--ease); }
.co-service-link:hover .i { transform: translateX(3px); }
html:has(.company) { scroll-padding-top: 150px; }

/* ===== 事業・サービス ===== */
.co-cta { padding-block: clamp(60px, 8vw, 100px); border-radius: clamp(32px, 5vw, 64px) clamp(32px, 5vw, 64px) 0 0; background: radial-gradient(circle at 92% 0%, rgba(236, 111, 100, .3), transparent 44%), radial-gradient(circle at 0% 100%, rgba(120, 160, 130, .18), transparent 40%), var(--navy); color: #fff; }
.company main .co-cta :is(h2, h3) { color: #fff; }
.co-services-head { margin-bottom: clamp(28px, 4vw, 44px); }
.co-services-head h2 { font-size: clamp(27px, 3.4vw, 40px); }
.co-services-head p:not(.eyebrow) { margin-top: 12px; color: #D5DAE3; font-size: 15.5px; }
.co-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.co-service { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: clamp(24px, 3.4vw, 40px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 26px; background: rgba(255, 255, 255, .07); transition: background-color .3s, border-color .3s, transform .35s var(--ease); }
a.co-service:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 155, 144, .65); transform: translateY(-5px); }
.co-service.upcoming { border-style: dashed; background: none; }
.co-service .co-badge { border-color: transparent; }
.co-service.upcoming .co-badge { background: rgba(255, 255, 255, .12); color: #D5DAE3; }
.co-service.upcoming .co-badge::before { background: #A4ACBA; }
.co-service h3 { margin-top: 18px; font-size: clamp(20px, 2.3vw, 26px); }
.co-service p { margin-top: 8px; color: #C5CBD6; font-size: 14.5px; }
.co-service-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 24px; color: #FFAFA6; font-weight: 700; font-size: 14px; }
.co-service-more .i { transition: transform .25s var(--ease); }
a.co-service:hover .co-service-more .i { transform: translateX(4px); }
.home .co-cta :focus-visible { outline-color: #fff; }
.company .site-footer { border-top: 0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 920px) {
  .co-hero-grid, .co-split, .co-mission { grid-template-columns: 1fr; }
  .co-crumb { margin-bottom: 22px; }
  .co-hero-lead { min-height: 0; }
  .co-three { grid-template-columns: 1fr; }
  .co-team { grid-template-columns: repeat(2, 1fr); }
  .co-message { grid-template-columns: 1fr; }
  .co-ph.portrait { min-height: 0; aspect-ratio: 4 / 3; }
  .co-photo.small { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) {
  .co-tabs-shell { top: 64px; }
  .co-tabs button { min-height: 54px; padding: 0 16px; font-size: 13.5px; gap: 7px; }
  .co-tabs-scroll { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
  .co-hero-photo, .co-photo { border-radius: 22px; }
  .co-points { grid-template-columns: 1fr; }
  .co-points li { padding: 20px 22px; }
  .co-points li + li { border-left: 0; border-top: 1px solid var(--border); }
  .co-points h3 br { display: none; }
  .co-notice { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; }
  .co-values { grid-template-columns: 1fr; }
  .co-values li { padding: 22px 20px; gap: 16px; }
  .co-profile > div { grid-template-columns: 1fr; padding: 16px 4px; }
  .co-profile dt { padding: 0 0 4px; font-size: 13.5px; gap: 9px; }
  .co-profile dd { padding: 0 0 0 27px; font-size: 15.5px; }
  .co-timeline { padding-left: 34px; }
  .co-dot { left: -34px; }
  .co-timeline li { padding: 20px; }
  .co-team { gap: 14px; }
  .co-services { grid-template-columns: 1fr; }
  .co-quote { font-size: 130px; right: 14px; }
}

/* 英語の添え書き（ミッション・ビジョン） */
.co-en { margin-top: 6px; color: #7A8290; font-size: 13px; letter-spacing: .02em; }
/* 代表のプロフィール */
.co-kana { margin-left: 6px; color: #7A8290; font-size: 13px; font-weight: 500; }
.co-post { margin-top: 2px; color: var(--coral-ink); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.co-card .co-sign { font-weight: 500; text-align: left; color: #7A8290; font-size: 13px; }
.co-signature { align-self: stretch; margin-top: 28px; padding-top: 18px; border-top: 1px solid #F0D9D3; }
.co-signature h3 { margin-top: 0; font-size: 19px; }
.co-card .co-bio { color: #5A6272; font-size: 13.5px; }
/* 代表挨拶：左に写真と経歴、右に挨拶 */
.co-message { align-items: start; }
.co-message-side { display: flex; flex-direction: column; gap: 18px; }
.co-message-side .co-ph.portrait { min-height: 0; aspect-ratio: 1 / 1; }
.co-message-side .co-signature { margin-top: 0; padding-top: 0; border-top: 0; }
.co-signature h3 { color: var(--navy); font-weight: 700; }
.co-signature .co-bio { margin-top: 10px; color: #5A6272; font-size: 13.5px; line-height: 1.8; }
.co-message-card { justify-content: flex-start; }
@media (max-width: 860px) { .co-message-side .co-ph.portrait { aspect-ratio: 4 / 3; max-width: 320px; } }
.co-career { margin: 12px 0 0; padding: 0; list-style: none; color: #5A6272; font-size: 13.5px; line-height: 1.7; }
.co-career li { position: relative; padding-left: 14px; }
.co-career li + li { margin-top: 6px; }
.co-career li::before { content: ''; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); }
.nobr { display: inline-block; white-space: nowrap; }
