/* pulsedesign — 見た目（palnetlab.com と同じ作り：グラデーション・方眼・角の丸いカード・3列。ベースカラーはターコイズブルー） */
:root {
  --paper: #ffffff; --ink: #17272a; --muted: #566a66; --line: #dcefe8; --sunk: #edfaf5; --gray: #f3f3f3;
  --accent: #16b5a2;   /* ターコイズ（線・印） */
  --deep: #0a7d70;     /* 濃いターコイズ（小見出し・リンクの文字） */
  --grad: linear-gradient(135deg, #4edcb0 0%, #16b5a2 45%, #0b8487 100%);
  --shadow: 0 64 55;   /* 影の色（rgb） */
  --font-en: "Lexend", "Hiragino Sans", sans-serif;
  --font-ja: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --w: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --header: 68px;
  --col: 430px;   /* PCの中央の列の幅（palnetlab.com と同じ） */
}
/* スマホのダークモードでも白い背景のまま */
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-ja); line-height: 1.65; -webkit-text-size-adjust: 100%; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.4; text-wrap: balance; }
p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.inner { width: min(100%, var(--w)); margin-inline: auto; padding-inline: var(--gutter); }
.inner.narrow { width: min(100%, 820px); }

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header); background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s ease; }
.site-header.pd-scrolled { box-shadow: 0 6px 18px -12px rgb(var(--shadow) / .35); }
.site-header .inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.site-logo { text-decoration: none; display: inline-flex; align-items: center; }
.site-logo img:not(.logo-img) { max-height: 40px; width: auto; }
.logo-img { display: block; width: 190px; height: auto; }
.logo-img.is-white { filter: brightness(0) invert(1); }
.logo-img.is-header { width: 180px; }
.global-nav .menu { display: flex; gap: clamp(14px, 2vw, 28px); }
.global-nav a { font-family: var(--font-en); font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--muted); padding: 6px 0; position: relative; }
.global-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--grad); transform: scaleX(0); transition: transform .25s ease; }
.global-nav a:hover { color: var(--ink); }
.global-nav a:hover::after, .global-nav .current-menu-item a::after { transform: scaleX(1); }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .menu-toggle { display: grid; gap: 5px; width: 44px; height: 44px; place-content: center; border: 0; border-radius: 12px; background: var(--grad); cursor: pointer; }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .global-nav { position: fixed; inset: var(--header) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgb(var(--shadow) / .35); padding: 8px var(--gutter) 18px; display: none; }
  .global-nav.is-open { display: block; }
  .global-nav .menu { flex-direction: column; gap: 0; }
  .global-nav a { display: block; padding: 12px 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .global-nav a::after { display: none; }
}

/* ---------- 共通の部品 ---------- */
.eyebrow { font-family: var(--font-en); font-weight: 800; font-size: .76rem; letter-spacing: .18em; }
.label { font-family: var(--font-en); font-weight: 800; font-size: .76rem; letter-spacing: .18em; color: var(--deep); }
.sec { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.hero + .sec { border-top: 0; }
.sec h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 900; margin-top: 6px; }
.sec h2 em, .hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); margin-top: 14px; max-width: 46em; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: .94rem; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgb(var(--shadow) / .6); }
.btn.ghost { background: transparent; color: var(--deep); border: 1.5px solid currentColor; }
.btn.white { background: #fff; color: var(--deep); }
.more { margin-top: 28px; text-align: center; }
.empty { margin-top: 20px; color: var(--muted); background: var(--gray); border-radius: 16px; padding: 18px 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tags span { font-family: var(--font-en); font-size: .7rem; font-weight: 700; color: var(--deep); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.notice { margin-top: 24px; background: var(--grad); color: #fff; font-weight: 700; border-radius: 16px; padding: 16px 20px; font-size: .95rem; }

/* 本文は両端揃え（日本語は文字の間隔で揃える） */
.lead, .hero-lead, .page-lead, .point p:not(.tags), .entry p, .faq details p, .notice, .imgtext .entry, .pnl-text {
  text-align: justify; text-justify: inter-character; }

/* アイコン付きカード */
.points { display: grid; gap: 12px; margin-top: 28px; }
.points.cols-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.point { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; background: var(--gray); border-radius: 18px; padding: 18px; }
.ic { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.point h3 { font-size: 1.02rem; }
.point p { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* palnet Lab. へのバナー（palnet Lab. の色＝オレンジのまま） */
.pnl-banner { --pnl-grad: linear-gradient(135deg, #f4a514 0%, #ee8212 45%, #e03a1e 100%);
  position: relative; overflow: hidden; display: grid; justify-items: start; gap: 8px; margin-top: 14px; padding: 22px 22px 20px;
  border-radius: 20px; background: var(--pnl-grad); color: #fff; text-decoration: none; text-shadow: 0 1px 3px rgb(90 30 0 / .25);
  box-shadow: 0 14px 30px -18px rgb(90 30 0 / .6); transition: transform .25s ease, box-shadow .25s ease; }
.pnl-banner::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 24px 24px; }
.pnl-banner > * { position: relative; }
.pnl-banner:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -18px rgb(90 30 0 / .7); }
.pnl-label { font-family: var(--font-en); font-size: .68rem; font-weight: 800; letter-spacing: .16em; opacity: .92; }
.pnl-logo { width: 150px; filter: brightness(0) invert(1); }
.pnl-title { font-size: 1.1rem; font-weight: 900; margin-top: 2px; }
.pnl-text { font-size: .88rem; opacity: .95; }
.pnl-icons { display: flex; gap: 8px; margin-top: 4px; }
.pnl-icons img { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 6px 14px -6px rgb(0 0 0 / .35); }
.pnl-go { margin-top: 4px; font-weight: 700; font-size: .88rem; background: #fff; color: #e2531a; text-shadow: none; border-radius: 999px; padding: 6px 16px; }
@media (prefers-reduced-motion: reduce) { .pnl-banner, .pnl-banner:hover { transition: none; transform: none; } }

/* 表（会社概要など） */
.table { margin-top: 24px; border-top: 1px solid var(--line); }
.table > div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.table dt { font-weight: 700; font-size: .9rem; }
.table dd { color: var(--muted); }
@media (max-width: 560px) { .table > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- ヒーロー（方眼のベースカラー） ---------- */
.hero { position: relative; color: #fff; background: var(--grad); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 32px 32px; }
.hero .inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; padding-block: clamp(64px, 10vw, 120px); }
.hero .eyebrow { opacity: .92; }
.hero h1 { font-size: clamp(2.3rem, 7vw, 3.6rem); font-weight: 900; line-height: 1.3; margin-top: 14px; text-shadow: 0 2px 6px rgb(var(--shadow) / .2); }
.hero h1 em { background: none; color: #fff; -webkit-text-fill-color: #fff; text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .18em; text-decoration-color: rgb(255 255 255 / .6); }
.hero-lead { margin-top: 18px; max-width: 34em; opacity: .95; }
.hero .btn { background: #fff; color: var(--deep); }
.hero .btn.ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / .8); }
/* スマホだけのイラスト・改行（下の 860px 以下で表示） */
.hero-art-sp, .sp-br { display: none; }
.hero-visual { display: flex; justify-content: center; }
.hero-art img { width: min(320px, 100%); height: auto; filter: drop-shadow(0 2px 4px rgb(var(--shadow) / .18)); }
.hero-photo { border-radius: 24px; box-shadow: 0 30px 60px -30px rgb(var(--shadow) / .6); }
@media (max-width: 860px) {
  .hero .inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-art img { width: min(230px, 66%); margin-inline: auto; }
  /* スマホ：キャッチを短い行に分け、右にイラスト（palnetlab.com と同じ並び） */
  .hero-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .hero h1 { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .hero-art-sp { display: block; width: clamp(110px, 33vw, 190px); height: auto; flex: none; filter: drop-shadow(0 2px 4px rgb(var(--shadow) / .18)); }
  .hero-visual.is-art { display: none; }
  .sp-br { display: inline; }
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.about:has(.about-photo) { grid-template-columns: 1.1fr .9fr; }
.about-photo img { border-radius: 20px; }
@media (max-width: 860px) { .about:has(.about-photo) { grid-template-columns: 1fr; } }

/* ---------- 制作実績 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; margin-top: 28px; }
.work-card { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--paper);
  transition: transform .25s ease, box-shadow .25s ease; }
.work-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgb(var(--shadow) / .5); }
.work-card .thumb { aspect-ratio: 10 / 7; overflow: hidden; }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .thumb img { transform: scale(1.04); }
.work-card .body { padding: 14px 16px 16px; }
.work-card .cats { font-size: .74rem; font-weight: 700; color: var(--deep); }
.work-card h3 { font-size: 1rem; margin-top: 2px; }
.work-card .thumb.is-logo { background: #fff; border-bottom: 1px solid var(--line); display: grid; place-items: center; padding: 18px; }
.work-card .thumb.is-logo img { width: auto; height: auto; max-width: 60%; max-height: 100%; object-fit: contain; }
.work-card:hover .thumb.is-logo img { transform: scale(1.06); }
.icons-title { font-family: var(--font-en); font-size: 1rem; font-weight: 800; margin-top: 32px; padding-left: 12px; border-left: 4px solid var(--accent); }
.icons-title:first-of-type { margin-top: 28px; }
.work-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px; margin-top: 24px; }
.work-icons li { display: grid; justify-items: center; gap: 8px; text-align: center; }
.work-icons img { width: 100%; max-width: 120px; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 560px) { .work-icons { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.works-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-top: 28px; }
.works-list > div { background: var(--gray); border-radius: 18px; padding: 20px; }
.works-list h3 { font-size: 1rem; padding-left: 12px; border-left: 4px solid var(--accent); }
.works-list ul { margin-top: 10px; display: grid; gap: 4px; }
.works-list li { color: var(--muted); font-size: .9rem; padding-left: 1em; text-indent: -1em; }
.works-list li::before { content: "・"; }
.noimage { width: 100%; height: 100%; display: grid; place-items: center; background: var(--grad); position: relative; }
.noimage::before { content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 24px 24px; }
.noimage span { position: relative; color: #fff; font-size: 3rem; font-weight: 900; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.filter a { text-decoration: none; font-size: .88rem; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; color: var(--muted); }
.filter a:hover { color: var(--deep); border-color: var(--deep); }
.filter a[aria-current="page"] { background: var(--grad); color: #fff; border-color: transparent; }

.work-detail { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.work-side { position: sticky; top: calc(var(--header) + 20px); display: grid; gap: 14px; }
.work-side .table { margin-top: 0; }
.work-side .table > div { grid-template-columns: 6em 1fr; }
.work-side .btn { width: 100%; }
@media (max-width: 860px) { .work-detail { grid-template-columns: 1fr; } .work-side { position: static; } }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-top: 24px; }
.gallery-grid img { border-radius: 14px; width: 100%; }

/* ---------- お知らせ ---------- */
.news-list { margin-top: 24px; border-top: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 16px; align-items: baseline; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s ease; }
.news-list a:hover { background: var(--sunk); }
.news-list time { font-family: var(--font-en); font-size: .86rem; color: var(--muted); }
.cat { font-size: .72rem; font-weight: 700; color: var(--deep); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; text-decoration: none; white-space: nowrap; }
.news-list .title { font-weight: 700; }
.news-list a:hover .title { color: var(--deep); }
@media (max-width: 560px) { .news-list a { grid-template-columns: auto 1fr; } .news-list .title { grid-column: 1 / -1; } .news-list .cat { justify-self: start; } }

/* ---------- 採用 ---------- */
.recruit { background: var(--grad); color: #fff; border-radius: 24px; padding: clamp(28px, 5vw, 48px); position: relative; overflow: hidden; }
.recruit::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 32px 32px; }
.recruit > * { position: relative; }
.recruit .label, .recruit .lead { color: #fff; }
.recruit h2 em { background: none; color: #fff; -webkit-text-fill-color: #fff; }

/* ---------- 会社概要・地図 ---------- */
.company { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.company:has(.map) { grid-template-columns: 1fr 1fr; }
.map { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .company:has(.map) { grid-template-columns: 1fr; } }

/* ---------- お問い合わせ ---------- */
.contact-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 28px; }
.contact-box { background: var(--gray); border-radius: 18px; padding: 18px 20px; display: grid; grid-template-columns: 42px 1fr; column-gap: 14px; row-gap: 2px; align-items: center; }
.contact-box .ic { margin: 0; }
.contact-box .s { grid-column: 2; }
.contact-box .line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.contact-box .k { font-size: .9rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.contact-box .v { font-family: var(--font-en); font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; }
.contact-box a.v { text-decoration: none; white-space: nowrap; }
.contact-box .v.mail { font-size: clamp(1.05rem, 2.4vw, 1.3rem); word-break: break-all; }
.contact-box .s { font-size: .84rem; color: var(--muted); }

/* ---------- 下層ページ ---------- */
.page-head { position: relative; color: #fff; background: var(--grad); overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 32px 32px; }
.page-head .inner { position: relative; padding-block: clamp(44px, 7vw, 80px); }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; margin-top: 8px; text-shadow: 0 2px 6px rgb(var(--shadow) / .2); }
.page-lead { margin-top: 12px; opacity: .95; max-width: 40em; }
.page-head + .sec, .page-head + .block { border-top: 0; }

.block { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 900; margin-top: 6px; }
.block .entry { margin-top: 16px; }
.block-notice, .block-cta { border-top: 0; padding-top: 0; }
.imgtext { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.imgtext.reverse figure { order: 2; }
.imgtext img { border-radius: 20px; }
@media (max-width: 860px) { .imgtext { grid-template-columns: 1fr; } .imgtext.reverse figure { order: 0; } }
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: var(--gray); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--deep); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 16px; }
.cta { text-align: center; display: grid; gap: 16px; justify-items: center; background: var(--sunk); border-radius: 20px; padding: 32px 20px; }

/* 記事・エディターの本文 */
.article-head .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-family: var(--font-en); font-size: .86rem; }
.article-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 900; margin-top: 10px; }
.eyecatch { margin-top: 28px; }
.eyecatch img { border-radius: 20px; width: 100%; }
.entry { margin-top: 28px; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: 1.4rem; font-weight: 900; margin-top: 2em; padding-left: 14px; border-left: 4px solid var(--accent); }
.entry h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.6em; }
.entry a { color: var(--deep); }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry ul { list-style: disc; }
.entry img { border-radius: 14px; }
.entry blockquote { margin-inline: 0; padding: 14px 20px; background: var(--gray); border-radius: 14px; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9rem; }
.post-nav a { color: var(--deep); text-decoration: none; font-weight: 700; }
.post-nav .next { margin-left: auto; text-align: right; }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: .9rem; }
.pagination .page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }

/* ---------- フッター ---------- */
.site-footer { background: linear-gradient(135deg, #868f92 0%, #6b7477 45%, #525a5d 100%); color: #fff; position: relative; overflow: hidden; text-shadow: 0 1px 3px rgb(0 0 0 / .18); }
.site-footer::before { content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 32px 32px; }
.site-footer > * { position: relative; }
.site-footer .inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-block: 48px 32px; }
.site-footer .logo-img { width: 210px; }
.foot-name { font-weight: 700; margin-top: 10px; }
.foot-addr { font-size: .88rem; color: rgb(255 255 255 / .9); margin-top: 4px; }
.foot-nav .menu { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-nav a { font-family: var(--font-en); font-weight: 700; text-decoration: none; font-size: .92rem; }
.foot-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.sns { display: flex; gap: 14px; margin-top: 14px; font-size: .88rem; }
.copy { text-align: center; font-family: var(--font-en); font-size: .76rem; padding: 14px var(--gutter) 22px; color: rgb(255 255 255 / .85); }

/* ---------- 全ページ：PCは palnetlab.com と同じ3列（左＝ロゴ・キャッチ／中央＝スマホ幅の本文／右＝メニュー） ---------- */
.side { display: none; }
/* 本文が短いページでも、フッターは画面の一番下に */
.center { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.center > main { flex: 1 0 auto; }
@media (min-width: 1100px) {
  body { background: var(--grad); background-attachment: fixed; }
  body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .14;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 32px 32px; }
  .stage { display: grid; grid-template-columns: 1fr var(--col) 1fr; min-height: 100vh; }
  .side { display: flex; position: sticky; top: 0; height: 100vh; padding: 48px clamp(28px, 4vw, 64px); color: #fff;
    flex-direction: column; justify-content: center; gap: 26px; text-shadow: 0 1px 3px rgb(var(--shadow) / .25); }
  .side.left { align-items: flex-end; text-align: right; }
  .side.right { align-items: flex-start; justify-content: flex-start; padding-top: max(28px, calc(50vh - 220px)); gap: 34px; }
  .stage .center { background: var(--paper); min-width: 0; position: relative; z-index: 1; box-shadow: 0 0 0 1px rgb(0 0 0 / .04), 0 30px 80px -20px rgb(var(--shadow) / .45); }
  .stage .inner { width: 100%; padding-inline: 24px; }

  /* 中央の列の中身 */
  .stage .site-header .global-nav .menu { gap: 8px; }
  .stage .site-header .global-nav a { font-size: .68rem; }
  .stage .site-header .logo-img { width: 132px; }
  .stage .hero { background: var(--paper); color: var(--ink); }
  .stage .hero::before { display: none; }
  .stage .hero .inner { grid-template-columns: 1fr; gap: 0; padding-block: 36px 34px; }
  .stage .hero-visual { display: none; }
  .stage .hero .eyebrow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 1; }
  .stage .hero h1 { font-size: 2.45rem; line-height: 1.32; text-shadow: none; }
  .stage .hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; text-decoration: none; }
  .stage .hero-lead { color: var(--muted); opacity: 1; font-size: .95rem; }
  .stage .hero .btn { background: var(--ink); color: #fff; }
  .stage .hero .btn.ghost { background: transparent; color: var(--deep); border-color: currentColor; }
  .stage .sec { padding-block: 40px; }
  .stage .sec h2 { font-size: 1.4rem; }
  .stage .lead { font-size: .95rem; }
  .stage .about:has(.about-photo), .stage .company:has(.map) { grid-template-columns: 1fr; }
  .stage .work-icons { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .stage .table > div { grid-template-columns: 6.5em 1fr; gap: 10px; }
  .stage .contact-box .v { font-size: 1.5rem; }
  .stage .site-footer .inner { flex-direction: column; gap: 20px; padding-block: 36px 20px; }
  .stage .page-head { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
  .stage .page-head::before { display: none; }
  .stage .page-head .inner { padding-block: 36px 30px; }
  .stage .page-head .eyebrow { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .stage .page-head h1 { font-size: 1.7rem; text-shadow: none; }
  .stage .page-lead { color: var(--muted); opacity: 1; }
  .stage .block { padding-block: 36px; }
  .stage .block h2 { font-size: 1.3rem; }
  .stage .imgtext, .stage .work-detail { grid-template-columns: 1fr; gap: 20px; }
  .stage .work-side { position: static; }
  .stage .article-head h1 { font-size: 1.45rem; }
}
.side .brand-mark { width: min(300px, 100%); display: flex; flex-direction: column; align-items: center; gap: 18px; text-decoration: none; }
.side .hero-art { display: flex; justify-content: center; }
.side .hero-art img { width: min(210px, 100%); }
@media (max-height: 780px) { .side .hero-art img { width: 140px; } .side { gap: 18px; } }
.side .logo-img { width: min(300px, 100%); filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgb(var(--shadow) / .25)); }
.side .catch { font-size: clamp(1.4rem, 2vw, 2rem); font-weight: 900; line-height: 1.45; }
.side .catch em { font-style: normal; }
.side .desc { font-size: .9rem; opacity: .92; }
.side-title { font-family: var(--font-en); font-size: .76rem; font-weight: 800; letter-spacing: .16em; opacity: .9; margin-bottom: 4px; }
.side-menu { display: grid; gap: 2px; }
.side-menu a { font-family: var(--font-en); font-weight: 700; font-size: 1.05rem; text-decoration: none; padding: 3px 0; position: relative; transition: opacity .2s ease; }
.side-menu a:hover { text-decoration: underline; text-underline-offset: 5px; }
.side-menu a::before { content: ""; position: absolute; left: -16px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .25s ease; }
.side-menu a.is-current::before { transform: scale(1); }
.side-menu:has(a.is-current) a:not(.is-current) { opacity: .72; }
.side-contact p:not(.side-title) { font-size: .86rem; line-height: 1.7; }
@media (max-width: 1099px) {
  /* スマホ・タブレット：左端にベースカラーの帯（palnetlab.com と同じ） */
  body::after { content: ""; position: fixed; top: 0; bottom: 0; left: 0; width: 8px; background: linear-gradient(180deg, #4edcb0, #16b5a2 45%, #0b8487); z-index: 30; pointer-events: none; }
}

/* ---------- 動き（main.js と組み合わせ。JSなし・動きを減らす設定では何もしない） ---------- */
.pd-ch { visibility: hidden; }
.pd-ch.pd-on { visibility: visible; }
.hero h1 { position: relative; }
.pd-caret { position: absolute; display: inline-block; width: .08em; height: 1em; margin-left: .04em; background: currentColor; transform: translateY(.28em); animation: pd-blink 1s steps(1) infinite; }
.pd-caret-done { animation: pd-fadeout .6s ease forwards; }
@keyframes pd-blink { 50% { opacity: 0; } }
@keyframes pd-fadeout { to { opacity: 0; } }
.pd-reveal-ready .pd-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--pd-d, 0ms); }
.pd-reveal-ready .pd-reveal.pd-in { opacity: 1; transform: none; }
.pd-motion .hero-art img { animation: pd-float 6s ease-in-out infinite; }
@keyframes pd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ページの上へ戻るボタン（palnetlab.com と同じ位置・同じオレンジ：PCは中央の列の右下、スマホは右下） */
.pd-totop { position: fixed; z-index: 15; bottom: 18px; right: max(16px, calc(50% - var(--col) / 2 + 16px)); width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: linear-gradient(135deg, #f4a514 0%, #ee8212 45%, #e03a1e 100%); display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgb(80 20 0 / .55);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.pd-totop.pd-show { opacity: 1; transform: none; pointer-events: auto; }
.pd-totop:hover { transform: translateY(-2px); }
.pd-totop svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: reduce) {
  .pd-caret { display: none; }
  .btn, .work-card, .work-card .thumb img, .pd-totop, .site-header { transition: none; }
  .btn:hover, .work-card:hover, .work-card:hover .thumb img, .pd-totop { transform: none; }
}
