:root {
  color-scheme: dark;
  --ink: #090b0b;
  --text: #f1efeb;
  --muted: #b4b8b5;
  --gold: #ac9d7e;
  --sans: Arial, "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { position: relative; isolation: isolate; margin: 0; background: var(--ink); color: var(--text); font: 16px/1.7 var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.skip { position: absolute; left: 24px; top: -80px; z-index: 10; padding: 12px 20px; background: var(--ink); }
.skip:focus { top: 12px; }
.frame { width: min(100% - 88px, 1032px); margin-inline: auto; }
.header { max-width: 1240px; margin: auto; padding: 28px 42px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { width: 155px; height: auto; }
main { position: relative; isolation: isolate; overflow: hidden; }
.stone { position: absolute; z-index: -1; pointer-events: none; top: 0; left: 0; width: 100%; height: 760px; background: url('/assets/optimized/web-scroll-start-667e59d4f278.webp') left bottom / 210% auto no-repeat; filter: contrast(1.25) brightness(1.15) saturate(.2); opacity: .68; mask-image: radial-gradient(ellipse 68% 44% at 72% 40%, #000 10%, #0009 44%, transparent 100%); }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 48px 52px; }
.identity { max-width: 460px; }
h1 { margin: 0; font: 400 48px/1.5 "Yu Mincho", "Hiragino Mincho ProN", serif; letter-spacing: .14em; }
.role { display: block; margin-bottom: 6px; color: var(--muted); font: 15px/1.5 var(--sans); letter-spacing: .1em; }
/* 紙名刺裏面Aのロゴ・コピー・接続線の比率を保つ。 */
.signature { position: relative; container-type: inline-size; width: 300px; max-width: 100%; aspect-ratio: 190 / 70; margin: 0; flex-shrink: 0; }
.signature-mark { position: absolute; top: 0; left: 0; width: 26.58%; height: auto; }
.claim { position: absolute; left: 38.58%; top: 10%; margin: 0; white-space: nowrap; font-size: 9.74cqw; line-height: 1.135; letter-spacing: -.263cqw; }
.claim span, .claim em { display: block; }
.claim em { font-family: var(--serif); font-size: 13.16cqw; font-weight: 400; line-height: 1.15; letter-spacing: -.368cqw; }
.signature-line { position: absolute; left: 25.42%; top: 78.57%; width: 74.21%; height: 20%; overflow: visible; }
.contact { display: flex; gap: 18px; padding-block: 4px 48px; }
.footer a:hover, .footer button:hover { color: var(--text); }
.services { padding-block: 36px 56px; }
.services h2 { display: flex; align-items: center; gap: 18px; margin: 0 0 28px; font: italic 34px/1.1 var(--serif); }
.services h2::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.service { display: grid; grid-template-rows: 160px auto; gap: 16px; }
.service img { width: min(100%, 214px); justify-self: center; height: 160px; object-fit: contain; mix-blend-mode: lighten; filter: brightness(.9) saturate(.85); mask-image: radial-gradient(ellipse 50% 48% at 50% 46%, #000 45%, transparent 100%); }
.service-copy { font-size: 17px; padding-bottom: 15px; border-bottom: 1px solid #ffffff25; transition: border-color .25s; }
.service:hover .service-copy { border-color: var(--gold); }

.footer { padding-block: 18px 24px; border-top: 1px solid #ffffff20; color: var(--muted); }
.footer-actions, .footer-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer-actions a, .footer button { padding-block: 10px; min-height: 44px; font-size: 15px; }
.footer button { padding-inline: 0; border: 0; background: transparent; }
#share-status { margin: 0; min-height: 26px; color: var(--gold); font-size: 14px; overflow-wrap: anywhere; }
.footer-meta { margin-top: 12px; font-size: 13px; }
.footer-meta small { font-size: inherit; }
.footer-meta a { padding-block: 10px; }
@media (max-width: 700px) {
  .frame { width: calc(100% - 48px); }
  .header { padding: 18px 24px; gap: 16px; }
  .brand img { width: 139px; }
  .intro { gap: 16px; padding-block: 24px 32px; }
  h1 { font-size: clamp(26px, 8vw, 34px); letter-spacing: .07em; white-space: nowrap; }
  .signature { width: 42%; margin: 0; }
  .contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 4px 32px; }
  .stone { height: 670px; background-size: auto 135%; background-position: 28% bottom; mask-image: radial-gradient(ellipse 100% 43% at 105% 50%, #000 8%, #0008 45%, transparent 100%); }
  .services { padding-block: 28px 28px; }
  .services h2 { font-size: 30px; margin-bottom: 12px; }
  .service-grid { display: block; }
  .service { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px; min-height: 126px; border-bottom: 1px solid #ffffff20; }
  .service img { width: 104px; height: 110px; flex-shrink: 0; }
  .service-copy { min-width: 0; font-size: 16px; border: 0; padding: 0; }
  .service-copy small { max-width: 15em; }
  .footer-actions { gap: 12px; }
  .footer-meta { gap: 8px; flex-wrap: wrap; }
}
@media (max-width: 350px) {
  .frame { width: calc(100% - 40px); }
  .header { padding-inline: 20px; }
  .brand img { width: 127px; }
  h1 { font-size: 26px; }
  .contact .save svg { display: none; }
  .service img { width: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.service-copy strong { display: block; font-weight: 400; }
.service-copy small { display: block; margin-top: 7px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.service[href="/line/"] img { filter: brightness(.82) saturate(.85); }
/* 初回表示で3事業の素材を順に据える。表示後は静止する。 */
@keyframes display-enter {
  from { opacity: 0; transform: translateY(28px) scale(.88) rotate(-5deg); }
  to { opacity: 1; transform: none; }
}
@keyframes manga-enter {
  from { opacity: 0; transform: translateX(-24px) rotate(-9deg) scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes phone-enter {
  from { opacity: 0; transform: translateY(30px) rotate(8deg) scale(.9); }
  to { opacity: 1; transform: none; }
}
@media(prefers-reduced-motion:no-preference) {
  .service img { transform-origin: 50% 85%; }
  .service[href="/web/"] img { animation: display-enter 1.05s cubic-bezier(.16,1,.3,1) .25s both; }
  .service[href="/manga/"] img { animation: manga-enter 1.05s cubic-bezier(.16,1,.3,1) .5s both; }
  .service[href="/line/"] img { animation: phone-enter 1.05s cubic-bezier(.16,1,.3,1) .75s both; }
}

.service img.entry-pending { animation-play-state: paused; }

/* 上部の石に一度だけ光を通し、コピーの背後で静止させる。 */
@property --light-x {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 82%;
}
.intro-stone {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: 0 0 auto;
  height: 360px;
  overflow: hidden;
  background: url('/assets/optimized/web-scroll-start-667e59d4f278.webp') left bottom / 210% auto no-repeat;
  mask-image: linear-gradient(#000 55%, transparent 100%);
}
.intro-stone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #090b0bbd;
}
.intro-stone-light {
  position: absolute;
  inset: 0;
  background: inherit;
  /* 素材の暗部でも照射位置が見えるよう、光量の下限を設ける。 */
  background-color: #353936;
  background-blend-mode: screen;
  filter: saturate(.15) contrast(1.2) brightness(1.45);
  opacity: .6;
  mask-image: radial-gradient(ellipse 25% 90% at var(--light-x) 50%, #000 5%, #000b 35%, transparent 85%);
}
@keyframes intro-stone-pass {
  from { --light-x: 8%; opacity: .85; }
  40% { opacity: 1; }
  to { --light-x: 82%; opacity: .6; }
}
@media (prefers-reduced-motion: no-preference) {
  .intro-stone-light { animation: intro-stone-pass 4.4s cubic-bezier(.45,0,.25,1) .6s both; }
}
@media (max-width: 700px) {
  .intro-stone { height: 285px; background-size: 400% auto; background-position: 15% bottom; }
  .intro-stone-light { mask-image: radial-gradient(ellipse 32% 90% at var(--light-x) 50%, #000 5%, #000b 35%, transparent 85%); }
}

/* 公開版の既存Cookie設定リンクをフッターに収める。 */
.footer-meta { flex-wrap: wrap; }
.footer .analytics-settings { font-size: 13px; }
