/* =========================================================
   MERCURY AD SERVICES — mercury-ad.com のトップ（LP の紹介）
   組み方は mercury-ad.pro のトップと同じ。色と文字は公式サイト mercury-ad.design に合わせる（白・墨・薄いグレー）
   ========================================================= */

:root {
  --ink: #1a1a1a;
  --sumi: #2d2d2d;
  --shu: #1a1a1a;
  --shu-hi: #484848;
  --shu-ink: #727272;
  --paper: #ffffff;
  --paper-2: #f1f1f1;
  --paper-3: #eeeeee;
  --text: #333333;
  --text-2: #5b5b5b;
  --text-3: #909090;
  --line: rgba(0, 0, 0, .14);
  --line-2: rgba(0, 0, 0, .07);
  --line-l: rgba(255, 255, 255, .2);
  --line-l2: rgba(255, 255, 255, .1);
  --serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --sans: "Lato", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --latin: "Cardo", "Shippori Mincho", serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (min-width: 960px) { body { font-size: 16px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { font-weight: 500; font-feature-settings: "palt"; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; }
::selection { background: rgba(0, 0, 0, .12); }
.container { width: min(var(--maxw), 100% - var(--gutter) * 2); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 400; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip:not(:focus) { width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nb { display: inline-block; }

/* ---------- parts ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--latin); font-size: 13px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--shu-ink);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 2.2em; border: 1px solid transparent; border-radius: 2px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 500; letter-spacing: .12em; line-height: 1.4;
  transition: background-color .4s, color .4s, border-color .4s;
  overflow: hidden; isolation: isolate; text-align: center;
}
.btn > span { display: inline-flex; align-items: center; gap: .9em; }
.btn > span::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .5s var(--ease-out); }
.btn:hover > span::after { width: 30px; }
.btn--shu { background: var(--shu); color: #fff; }
.btn--shu:hover { background: var(--shu-hi); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--shu-hi); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-io); }
.btn--dark:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--line { border-color: var(--text); color: var(--text); background: transparent; }
.btn--line:hover { background: var(--text); color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 1.4em; font-size: 12.5px; }
.btn--sm > span::after { display: none; }
.btn--block { display: flex; width: 100%; }

/* スクロールで出る（JS がないときは最初から見える） */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.lps > li:nth-child(3n+2) { transition-delay: .08s; }
.lps > li:nth-child(3n+3) { transition-delay: .16s; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 76px; color: var(--text);
  transition: height .4s var(--ease-out), background-color .5s, color .5s, box-shadow .5s;
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); padding-inline: var(--gutter); }
.brand { flex: none; display: block; }
.brand img { height: clamp(18px, 1.6vw, 22px); width: auto; filter: brightness(0); opacity: .9; transition: filter .5s, opacity .5s; }
.gnav { display: flex; gap: clamp(18px, 2.4vw, 38px); margin-left: auto; }
.gnav a { display: flex; flex-direction: column; align-items: center; line-height: 1.2; position: relative; padding: 6px 0; }
.gnav__en { font-family: var(--latin); font-size: 16.5px; letter-spacing: .06em; }
.gnav__ja { font-size: 9.5px; letter-spacing: .14em; opacity: .65; }
.gnav a::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 1px; background: var(--shu); transition: width .5s var(--ease-out), left .5s var(--ease-out); }
.gnav a:hover::after { width: 100%; left: 0; }
.header-cta { flex: none; }
.site-header.is-scrolled { height: 64px; color: var(--text); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line-2); }
.site-header.is-scrolled .brand img { filter: brightness(0); opacity: .86; }

.menu-btn { display: none; align-items: center; gap: 12px; padding: 8px 0; background: none; border: 0; }
.menu-btn__lines { position: relative; width: 28px; height: 10px; }
.menu-btn__lines i { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.menu-btn__lines i:first-child { top: 0; }
.menu-btn__lines i:last-child { top: 9px; }
.menu-btn__label { font-family: var(--latin); font-size: 13px; letter-spacing: .25em; text-transform: uppercase; }
.menu-open .menu-btn__lines i:first-child { top: 5px; transform: rotate(20deg); }
.menu-open .menu-btn__lines i:last-child { top: 5px; transform: rotate(-20deg); }
.menu-open { overflow: hidden; }
.menu-open .site-header { color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .site-header .brand img { filter: brightness(0) invert(1); }

.menu {
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 96px var(--gutter) 48px; background: var(--sumi); color: var(--paper);
  opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu .btn--shu { background: #fff; color: var(--ink); }
.menu__nav { display: grid; border-top: 1px solid var(--line-l); }
.menu__nav a { display: grid; grid-template-columns: 40px 1fr; align-items: baseline; column-gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line-l); }
.menu__no { font-family: var(--latin); font-size: 13px; color: rgba(255, 255, 255, .5); }
.menu__en { font-family: var(--latin); font-size: 30px; line-height: 1.1; }
.menu__ja { grid-column: 2; font-size: 11.5px; letter-spacing: .14em; opacity: .62; }

@media (max-width: 960px) {
  .gnav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) { .header-cta { display: none; } .menu-btn { margin-left: auto; } }
@media (min-width: 961px) { .menu { display: none; } }

/* ---------- hero ---------- */
/* 白地に明るい写真を右に置き、文字は左から写真に少しかける（公式サイトのトップと同じ置き方） */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; max-height: 940px; background: var(--paper); color: var(--ink); overflow: hidden; }
.hero__img { position: absolute; top: 76px; bottom: clamp(56px, 9vh, 96px); left: 34%; right: var(--gutter); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero__inner { position: absolute; z-index: 1; left: 0; right: 0; top: 50%; transform: translateY(-38%); }
.hero__company { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: clamp(12px, 1vw, 14px); letter-spacing: .26em; color: var(--text-2); }
.hero__company::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hero__title { margin-top: clamp(18px, 2vw, 28px); font-family: var(--latin); font-weight: 400; font-size: clamp(48px, 7vw, 108px); line-height: 1; letter-spacing: .02em; }
.hero__ja { margin-top: clamp(18px, 2vw, 28px); font-family: var(--serif); font-size: clamp(14px, 1.25vw, 18px); font-weight: 500; letter-spacing: .26em; color: var(--text); }
.hero__scroll { position: absolute; z-index: 1; left: var(--gutter); bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: var(--latin); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; writing-mode: vertical-rl; color: var(--text-3); }
.hero__scroll::after { content: ""; width: 1px; height: clamp(40px, 7vh, 72px); background: linear-gradient(var(--text-3), rgba(0, 0, 0, 0)); }
.js .hero__inner > * { opacity: 0; transform: translateY(18px); animation: rise 1.4s var(--ease-out) forwards; }
.js .hero__inner > :nth-child(2) { animation-delay: .15s; }
.js .hero__inner > :nth-child(3) { animation-delay: .3s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- about ---------- */
.about { padding: clamp(96px, 12vw, 168px) 0 clamp(80px, 9vw, 120px); }
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__title { margin-top: 22px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.6; letter-spacing: .1em; }
.about__text { padding-top: 6px; font-size: 15.5px; line-height: 2.3; color: var(--text-2); }

/* ---------- LP 一覧 ---------- */
.svc { padding-bottom: clamp(104px, 12vw, 168px); }
.sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px 56px; margin-bottom: clamp(44px, 5vw, 72px); }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head__en { font-family: var(--latin); font-weight: 400; font-size: clamp(64px, 8.8vw, 128px); line-height: .82; letter-spacing: -.005em; }
.sec-head__ja { margin-top: 20px; font-family: var(--serif); font-size: clamp(15px, 1.4vw, 19px); letter-spacing: .2em; color: var(--text-2); }
.sec-head__lead { padding-bottom: 4px; font-size: 14px; line-height: 2.1; color: var(--text-2); }

.lps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(56px, 6vw, 80px) clamp(20px, 2.6vw, 40px); }
.lps > li { display: flex; }
.lp { display: flex; flex-direction: column; width: 100%; }
.lp__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.lp__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.lp:hover .lp__media img { transform: scale(1.04); }
.lp__no { position: absolute; left: 0; top: 0; padding: 8px 14px 6px; background: var(--paper); font-family: var(--latin); font-size: 15px; line-height: 1; letter-spacing: .08em; color: var(--shu-ink); }
.lp__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.lp__cat { font-size: 12px; letter-spacing: .14em; }
.lp__meta::after { content: ""; width: 22px; height: 1px; flex: none; background: var(--shu); transition: width .5s var(--ease-out); }
.lp:hover .lp__meta::after { width: 40px; }
.lp__title { margin-top: 16px; font-family: var(--serif); font-size: clamp(21px, 1.9vw, 26px); font-weight: 500; line-height: 1.45; letter-spacing: .04em; transition: color .4s; }
.lp__catch { margin-top: 10px; font-size: 13.5px; line-height: 1.95; color: var(--text-2); }
.lp:hover .lp__title { color: var(--shu-ink); }

/* ---------- company ---------- */
.company { padding: clamp(96px, 11vw, 150px) 0; background: var(--paper-2); }
.company__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.company__title { margin-top: 20px; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); letter-spacing: .14em; }
.company__text { margin-top: 24px; font-size: 14.5px; line-height: 2.15; color: var(--text-2); }
.company__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.company__table { border-top: 1px solid var(--line); }
.company__table > div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company__table dt { font-family: var(--serif); font-size: 14px; letter-spacing: .14em; color: var(--text-2); }
.company__table dd { font-size: 14px; line-height: 2; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper); color: var(--text); padding: clamp(72px, 8vw, 104px) 0 32px; border-top: 1px solid var(--line-2); }
.footer__top { display: grid; grid-template-columns: 1fr 2.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer__logo { display: inline-block; }
.footer__logo img { height: 24px; width: auto; filter: brightness(0); opacity: .9; }
.footer__name { margin-top: 18px; font-family: var(--latin); font-size: 17px; letter-spacing: .12em; color: var(--text-3); }
.footer__nav { display: grid; grid-template-columns: 2fr 1fr; gap: 32px 24px; }
.footer__cat { font-family: var(--latin); font-size: 19px; color: var(--ink); }
.footer__nav ul { display: grid; gap: 6px; margin-top: 12px; }
.footer__svc ul { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.footer__nav li a { font-size: 12.5px; letter-spacing: .06em; line-height: 1.7; color: var(--text-2); transition: color .3s; }
.footer__nav li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 28px; }
.footer__make { display: inline-flex; align-items: center; gap: 14px; }
.footer__make span { font-family: var(--latin); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-3); }
.footer__make img { height: 16px; width: auto; filter: brightness(0); opacity: .7; }
.footer__copy { font-size: 11px; letter-spacing: .06em; color: var(--text-3); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .lps { grid-template-columns: repeat(2, 1fr); }
  .lps > li { transition-delay: 0s !important; }
  .lps > li:nth-child(2n) { transition-delay: .08s !important; }
}
@media (max-width: 960px) {
  .about__grid, .company__grid { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  /* 縦長の画面では、写真を上に置いて文字を下に */
  .hero { height: auto; min-height: 0; max-height: none; padding: 64px 0 96px; }
  .hero__img { position: relative; inset: auto; height: 46vh; min-height: 280px; margin: 0 0 40px; }
  .hero__img img { object-position: 55% 50%; }
  .hero__inner { position: relative; top: auto; transform: none; }
  .hero__title { font-size: clamp(36px, 10.6vw, 56px); }
  .hero__ja { letter-spacing: .24em; }
  .hero__scroll { font-size: 11px; left: auto; right: var(--gutter); }
  .about__text { font-size: 14.5px; line-height: 2.15; }
  .sec-head__ja { margin-top: 14px; }
  .sec-head__lead { font-size: 13.5px; }
  .sec-head__lead br { display: none; }
  .lps { grid-template-columns: 1fr; gap: 52px; }
  .lps > li { transition-delay: 0s !important; }
  .lp__title { font-size: 22px; }
  .lp__catch { font-size: 13.5px; }
  .company__table > div { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
  .company__cta .btn { flex: 1 1 100%; }
  .footer__nav { grid-template-columns: 1fr; }
  .footer__svc ul { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .hero__inner > * { opacity: 1; transform: none; }
}
