/* =========================================================
   MERCURY AD PROJECT — mercury-ad.pro のトップ
   色と文字は Premium DM（/premiumdm/）にそろえる
   ========================================================= */

:root {
  --ink: #0f120c;
  --forest: #1c2617;
  --forest-2: #243120;
  --gold: #c2a46a;
  --gold-hi: #ecdcae;
  --gold-ink: #94784a;
  --paper: #f5f0e6;
  --paper-2: #ede6d7;
  --paper-3: #e2d9c5;
  --white: #fffdf8;
  --text: #23211c;
  --text-2: #5d584c;
  --text-3: #8c8574;
  --line: rgba(35, 33, 28, .15);
  --line-2: rgba(35, 33, 28, .08);
  --line-l: rgba(245, 240, 230, .2);
  --line-l2: rgba(245, 240, 230, .1);
  --serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --latin: "Cormorant Garamond", "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(--gold); outline-offset: 3px; }
::selection { background: rgba(194, 164, 106, .35); }
.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(--gold-ink);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; }
.eyebrow--gold { color: var(--gold); }

.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--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--forest); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-io); }
.btn--dark:hover { color: var(--gold-hi); }
.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--line-light { border-color: rgba(245, 240, 230, .5); color: var(--paper); background: transparent; }
.btn--line-light:hover { background: var(--paper); color: var(--ink); border-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%; }

/* 外のサイトへ（新しいタブ）の印 */
.tile__meta::after {
  content: ""; width: 10px; height: 10px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='1.1'%3E%3Cpath d='M1.5 8.5 8.5 1.5M3.2 1.5h5.3v5.3'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10' fill='none' stroke='%23000' stroke-width='1.1'%3E%3Cpath d='M1.5 8.5 8.5 1.5M3.2 1.5h5.3v5.3'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .5s var(--ease-out);
}

/* スクロールで出る（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; }
.tiles > li:nth-child(5n+2) { transition-delay: .06s; }
.tiles > li:nth-child(5n+3) { transition-delay: .12s; }
.tiles > li:nth-child(5n+4) { transition-delay: .18s; }
.tiles > li:nth-child(5n+5) { transition-delay: .24s; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 76px; color: var(--paper);
  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) invert(1); opacity: .94; 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(--gold); 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(245, 240, 230, .88); -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(--forest); color: var(--paper);
  opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.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: var(--gold); }
.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: 560px; max-height: 1080px; background: var(--ink); color: var(--paper); overflow: hidden; }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 18, 12, .72) 0%, rgba(15, 18, 12, 0) 22%, rgba(15, 18, 12, 0) 52%, rgba(15, 18, 12, .55) 100%); pointer-events: none; }
.hero__inner { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(64px, 12vh, 132px); }
.hero__company { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: clamp(12px, 1vw, 14px); letter-spacing: .26em; color: var(--gold); }
.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, 7.6vw, 116px); line-height: .96; letter-spacing: .035em; }
.hero__ja { margin-top: clamp(18px, 2vw, 28px); font-family: var(--serif); font-size: clamp(13px, 1.15vw, 16px); letter-spacing: .34em; color: rgba(245, 240, 230, .82); }
.hero__scroll { position: absolute; z-index: 1; left: 50%; bottom: 0; transform: translateX(-50%); 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: rgba(245, 240, 230, .7); }
.hero__scroll::after { content: ""; width: 1px; height: clamp(48px, 9vh, 88px); background: linear-gradient(rgba(245, 240, 230, .7), rgba(245, 240, 230, 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(96px, 11vw, 150px); }
.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(20px, 1.9vw, 26px); line-height: 1.5; letter-spacing: .1em; }
.about__en { margin-right: .25em; font-family: var(--latin); font-size: 1.3em; font-weight: 400; letter-spacing: .03em; }
.about__text { padding-top: 6px; font-size: 15.5px; line-height: 2.3; color: var(--text-2); }

/* ---------- premium dm ---------- */
.pdm { position: relative; padding: clamp(88px, 10vw, 140px) 0; background: var(--forest); color: var(--paper); }
.pdm__grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(36px, 5.5vw, 88px); align-items: center; }
/* 実績の写真2枚。小さい方を右下に重ね、地の色の縁で切り離す */
.pdm__photos { margin: 0; }
.pdm__frame { position: relative; padding: 0 12% 16% 0; }
.pdm__main, .pdm__sub { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink); }
.pdm__sub { position: absolute; right: 0; bottom: 0; width: 46%; outline: clamp(6px, .8vw, 10px) solid var(--forest); }
.pdm__main img, .pdm__sub img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.pdm__main:hover img, .pdm__sub:hover img { transform: scale(1.04); }
.pdm__cap { margin-top: 18px; font-family: var(--serif); font-size: 12px; letter-spacing: .12em; color: rgba(245, 240, 230, .58); }
.pdm__title { margin-top: 22px; font-family: var(--latin); font-weight: 400; font-size: clamp(54px, 6.4vw, 96px); line-height: .95; letter-spacing: .01em; }
.pdm__catch { margin-top: 22px; font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); letter-spacing: .16em; color: var(--gold-hi); }
.pdm__text { margin-top: 20px; font-size: 14.5px; line-height: 2.1; color: rgba(245, 240, 230, .74); }
.pdm__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.pdm__links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 40px; border-top: 1px solid var(--line-l); }
.pdm__links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line-l); font-size: 13.5px; letter-spacing: .08em; color: rgba(245, 240, 230, .86); transition: color .3s; }
.pdm__links a::after { content: ""; width: 14px; height: 1px; flex: none; background: var(--gold); transition: width .5s var(--ease-out); }
.pdm__links a:hover { color: var(--gold-hi); }
.pdm__links a:hover::after { width: 24px; }

/* ---------- services ---------- */
.svc { padding-top: 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); }

/* サービスは種類で分けず、実物の写真を同じ大きさで並べる */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 52px clamp(16px, 1.8vw, 26px); }
.tiles > li { display: flex; }
.tile { display: flex; flex-direction: column; width: 100%; }
.tile__media { display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-3); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--text-3); }
.tile__en { font-family: var(--latin); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__title { margin-top: 12px; font-family: var(--serif); font-size: clamp(16px, 1.3vw, 18px); font-weight: 500; line-height: 1.55; letter-spacing: .04em; transition: color .4s; }
.tile__catch { margin-top: 4px; font-size: 12.5px; line-height: 1.8; color: var(--text-2); }
.tile:hover .tile__title { color: var(--gold-ink); }
.tile:hover .tile__meta::after { transform: translate(2px, -2px); }

/* ---------- company ---------- */
.company { margin-top: clamp(104px, 12vw, 168px); 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(--ink); color: rgba(245, 240, 230, .8); padding: clamp(80px, 9vw, 120px) 0 32px; }
.footer__top { display: grid; grid-template-columns: 1fr 2.2fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid var(--line-l2); }
.footer__logo { display: inline-block; }
.footer__logo img { height: 24px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer__name { margin-top: 18px; font-family: var(--latin); font-size: 19px; letter-spacing: .12em; color: rgba(245, 240, 230, .6); }
.footer__nav { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 32px 24px; }
.footer__cat { font-family: var(--latin); font-size: 20px; color: var(--gold); }
.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: rgba(245, 240, 230, .72); transition: color .3s; }
.footer__nav li a:hover { color: var(--gold-hi); }
.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: rgba(245, 240, 230, .5); }
.footer__make img { height: 16px; width: auto; filter: brightness(0) invert(1); opacity: .7; }
.footer__copy { font-size: 11px; letter-spacing: .06em; color: rgba(245, 240, 230, .45); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 44px clamp(14px, 3vw, 28px); }
  .tiles > li { transition-delay: 0s !important; }
  .tiles > li:nth-child(2n) { transition-delay: .08s !important; }
}
@media (max-width: 960px) {
  .about__grid, .pdm__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 { background: #26271f; }
  .hero__img { bottom: auto; height: 66%; }
  .hero__img img { object-position: 71% 50%; }
  .hero__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(rgba(38, 39, 31, 0), #26271f); }
  .hero::after { background: linear-gradient(180deg, rgba(15, 18, 12, .55) 0%, rgba(15, 18, 12, 0) 18%); }
  .hero__inner { bottom: 88px; }
  .hero__title { font-size: clamp(42px, 12.4vw, 58px); }
  .hero__ja { letter-spacing: .24em; }
  .hero__scroll { font-size: 11px; }
  .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; }
  .pdm__frame { padding: 0 10% 18% 0; }
  .pdm__sub { width: 50%; }
  .pdm__cap { font-size: 11px; letter-spacing: .06em; }
  .pdm__cta .btn { flex: 1 1 100%; }
  .pdm__links { grid-template-columns: 1fr; }
  .tiles { gap: 36px 14px; }
  .tile__meta { margin-top: 12px; padding-bottom: 6px; }
  .tile__en { font-size: 11px; letter-spacing: .08em; }
  .tile__title { margin-top: 8px; font-size: 15px; letter-spacing: .02em; }
  .tile__catch { font-size: 11.5px; line-height: 1.7; }
  .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 1fr; }
  .footer__svc { grid-column: 1 / -1; order: 3; }
  .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; }
}
