/* =========================================================
   Fonts / Reset
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Noto+Sans+JP:wght@300;400;600&display=swap');

* { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Yu Gothic Medium", "Yu Gothic", "游ゴシック Medium", "游ゴシック体",
               "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  font-weight: 400;
  color: #0a0a0a;
  line-height: 1.9;
  letter-spacing: 0.02em;
  background: #fff;
}

a { color:inherit; text-decoration:none; }
a:hover, a:focus-visible { text-decoration: underline; }

li { list-style:none; }

/* =========================================================
   CSS Variables
========================================================= */
:root{
  /* layout */
  --maxw: 1000px;
  --maxw-narrow: 820px;

  /* color */
  --text: #111;
  --muted: #666;
  --line: #ebedf0;

  /* footer */
  --footer-bg: #181b1f;
  --footer-text: #fff;
  --footer-line: rgba(255,255,255,.25);
  --round: #2a2e34;

  /* card */
  --card-bg: #f7f8fa;
  --card-border: rgba(0,0,0,.08);
  --btn-bg: #262a2f;
  --btn-bg-hover: #1f2327;

  /* space scale */
  --s2: 12px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;
  --s6: 48px;
  --s7: 64px;
  --s8: 96px;

  /* breakpoints */
  --bp-mobile: 430px;
  --bp-tablet: 1024px;

  /* hero rail */
  --hero-rail: clamp(360px, 46vw, 680px);
  --crop-t: 8%; --crop-r: 0%; --crop-b: 10%; --crop-l: 0%;

  --scroll-line-h: 72px;
  --scroll-gap: 12px;
  --scroll-font: 12px;
}

/* =========================================================
   Layout / Utilities
========================================================= */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s4); }
.section   { max-width: var(--maxw); margin: 0 auto; padding: var(--s8) var(--s3) var(--s6); }

.sr-only{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip:rect(0 0 0 0); border:0;
}

/* =========================================================
   Header / Nav
========================================================= */
.g-header { position: relative; z-index: 200; }

.hamburger{
  position: fixed; left: 18px; top: 18px; z-index: 210;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: transparent; border: none; padding: 0; cursor: pointer;
}
.hamburger:focus-visible{ outline: 2px solid #e64b4b; outline-offset: 3px; }
.hamburger__line{
  position: absolute; left: 6px; right: 6px; height: 2px; background:#111;
  transition: transform .25s ease, top .25s ease, opacity .2s ease, background .2s ease;
}
.hamburger__line:first-child{ top: 12px; }
.hamburger__line:last-child { top: 20px; }

.menu-overlay{
  position: fixed; inset: 0; z-index: 200;
  background: #171b1f; color: #fff;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.menu-overlay__inner{
  width: min(1100px, 92vw);
  margin: 0 auto;
  height: 100%;
  display: grid;
  align-items: center;
  justify-items: center;
}
.menu-grid{
  display: grid;
  gap: clamp(24px, 6vw, 60px);
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}
.menu-left{
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
  padding-bottom: 0;
}
.menu-left .company-name {
  font-weight: 600;
  margin-bottom: 8px;
  font-family: "游ゴシック体", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  font-style: normal;
}
.menu-left .company-address{
  line-height: 1.9;
  opacity: .88;
}
.menu-left .contact-row{
  margin-top: auto;
}
.menu-left .contact-label {
  font-family: "游ゴシック体", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  font-style: normal;
}
.menu-copyright{
  margin-top: 12px;
  font-size: 12.5px;
  opacity: .65;
  align-self: flex-start;
}
.menu-right .menu-caption{ 
  margin: 0 0 8px;
  opacity: .8;
  letter-spacing: .08em;
}
.menu-list{ 
  list-style: none; 
  padding-top: 20px; 
  margin: 0; 
}
.menu-list li + li{
  margin-top: 10px;
  padding-top: 15px;
}
.menu-list a{
  position: relative;
  font-family: inherit;
  color: #fff;
  text-decoration: none;
  font-size: clamp(18px, 2.8vw, 16px);
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.15;
  letter-spacing: .01em;
}
.menu-list a:hover,
.menu-list a:focus-visible{
  color: #fff;
}
.menu-list a::after{
  content:"";
  position: absolute;
  left: 0; right: 0;
  bottom: -8px; 
  height: 2px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  opacity: .9;
  transition: transform .35s ease;
}
.menu-list a:hover::after,
.menu-list a:focus-visible::after{
  transform: scaleX(1);
  transform-origin: left;
}

html.menu-open .menu-overlay{ opacity: 1; pointer-events: auto; }

html.menu-open .hamburger__line{ background: #fff; }
html.menu-open .hamburger__line:first-child{
  top: 16px; transform: rotate(45deg);
}
html.menu-open .hamburger__line:last-child{
  top: 16px; transform: rotate(-45deg);
}

/* ===== Reveal ===== */
.reveal{ opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }

/* =========================================================
   Main
========================================================= */
.main{ 
  background-color:#fafbfc;
  padding-top: 30px;
}

/* =========================================================
   Hero
========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #fff;
}

.hero-inner{
  width: min(var(--hero-rail), 92vw);
  display: grid;
  justify-items: center;
  row-gap: 16px;
}

.hero-logo {
  width: min(90vw, clamp(320px, 38vw, 660px));
  height: auto;
  margin-bottom: 24px;
}

.catchcopy {
  font-family: "游ゴシック体", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: clamp(22px, 2.8vw, 28px);
  font-weight: 600;
  color: #030303;
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-align: center;
  width: min(90vw, clamp(320px, 38vw, 640px));
  max-width: 100%;
  margin: 0 auto;
}

/* =========================================================
   Scroll Indicator
========================================================= */
.hero .scroll-indicator{
  position: absolute;
  right: 14px;
  bottom: 8vh;
  z-index: 10;

  writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 6px;

  font-size: var(--scroll-font);
  letter-spacing: .14em;
  color: rgba(0,0,0,.55);
  text-align: center;
  padding-bottom: calc(var(--scroll-line-h) + var(--scroll-gap));
  user-select: none; cursor: pointer;
}

.hero .scroll-indicator::after{ content: none; }
.hero .scroll-indicator::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 1px;
  height: var(--scroll-line-h);
  background:
    linear-gradient(#171b1f 0 0) top / 100% 0 no-repeat,
    rgba(0,0,0,.25);
  pointer-events: none;
  animation: scroll-line-fill 2.2s ease-in-out infinite;
}

@keyframes scroll-line-fill{
  0%   { background-size: 100% 0,    100% 100%; opacity: 1; }
  100% { background-size: 100% 100%, 100% 100%; opacity: 1; }
}

@media (prefers-reduced-motion: reduce){
  .hero .scroll-indicator::before{ animation: none; }
}

/* =========================================================
   Services
========================================================= */
.services{ background:#fafbfc; }

.service-item{
  display:grid;
  grid-template-columns: 1fr 1fr;
  align-items:center;
  column-gap:56px;
  min-height: 420px;
  padding: 12px 0;
  margin-block: 48px;
}
.service-item--reverse{ grid-auto-flow: dense; }
.service-item--reverse .service-text{ order:2; }
.service-item--reverse .service-media{ order:1; }

.service-text{ max-width: 52ch; min-width:0; }
.service-heading{
  position: relative;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 10px;
  letter-spacing: .02em;

  hyphens: auto;
  word-break: normal;
  overflow-wrap: anywhere;
}
.service-heading::before{
  content: "—";
  margin-right: .6em;
  color: #111;
  opacity: .85;
  font-weight: 600;
}
.service-sub{
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.service-text p{ color:#111; line-height:1.9; margin:0; }

.service-media {
  aspect-ratio: 16 / 9;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.service-media img{
  width:100%; height:100%;
  object-fit: contain;
}

.fade-word {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  display: inline-block;
  margin-right: 0.25em;
}

.fade-word.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   Generic Section Title
========================================================= */

.section-title .section-number,
.section-title .section-en,
.section-title .section-ja{
  margin: 0;
}

.section-title .section-en{ margin: 0 0 4px; }
.section-title .section-ja{ margin: 6px 0 0; }

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 80px;
  padding-left: 60px;
}
.section-title::before{
  content:none;
  position:absolute;
  left:0; top: 6px;
  width:4px; height: 56px;
  background:#111; border-radius:2px;
}
.section-number {
  position: absolute;
  top: -60px;
  left: 0;
  font-size: 120px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.06);
  z-index: 0;
  line-height: 1;
  user-select: none;
}
.section-en {
  position: relative;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 43px;
  font-weight: 900;
  color: #030303;
  line-height: 1.1;
  margin-bottom: 4px; 
  letter-spacing: 0.05em;
  z-index: 1;
}
.section-ja {
  position: relative;
  font-size: 14px;
  color: #777;
  margin-top: 6px;
  font-weight: 400;
  z-index: 1;
}
.services .section-title{ margin-bottom: 40px; }

/* =========================================================
   PHILOSOPHY
========================================================= */
.philosophy{
  padding-top:56px;
}
.philosophy-content{ max-width: var(--maxw-narrow); margin:0 auto; }
.philosophy-main{
  font-weight:700; font-size:24px; line-height:1.6;
  margin:28px 0 16px; letter-spacing:.02em;
}
.philosophy-content p{ margin:0 0 1.2em; }

/* =========================================================
   COMPANY
========================================================= */
.company{
  background: #f8fafc;
  padding:56px 20px 40px;
}
.company__inner{
  max-width: 960px;
  margin: 0 auto;
  padding-top: 30px;
  display: block;
}
.company .section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
  padding-left: 60px;
}

.company .section-number {
  position: absolute;
  top: -60px;
  left: 0;
  font-size: 120px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.06);
  z-index: 0;
  line-height: 1;
  user-select: none;
}

.company .section-en {
  position: relative;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: 43px;
  font-weight: 900;
  color: #030303;
  line-height: 1.1;
  margin-bottom: 4px;
  letter-spacing: 0.05em;
  z-index: 1;
}

.company .section-ja {
  position: relative;
  font-size: 14px;
  color: #777;
  margin-top: 6px;
  font-weight: 400;
  z-index: 1;
}

.company-table{
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}
.company-row{
  display: grid;
  grid-template-columns: 180px 1fr;
  align-items: start;
  gap: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.company-row:last-child{ border-bottom: 1px solid var(--line); }

.company-table dt{
  color: #555;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
}
.company-table dd{
  color: #111;
  line-height: 1.9;
  text-align: left;
}
.company-row > dt,
.company-row > dd {
  justify-self: start;
}
.company-address{ font-style:normal; }
.clients{ margin:0; padding:0; list-style:none; display:grid; gap:6px; }

.note{ color:#777; margin-left:.5em; font-size:.92em; }
.mono{ font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; }

/* =========================================================
   Contact Card
========================================================= */
.contact-card{ background:#fff; padding:60px 20px 48px; }
.contact-card__inner{
  max-width: var(--maxw-narrow); margin:0 auto;
  background: #fafbfc;
  border-radius:6px; padding:36px 40px; text-align:center; color:#222;
}
.contact-card__text{ margin:0 0 28px; }
.contact-card__text a{ color:inherit; text-decoration:underline; }

.contact-card__form{ display:flex; flex-direction:column; align-items:center; gap:18px; }
.contact-card__consent{ display:flex; align-items:center; gap:8px; color:#222; font-size:.95rem; }

.contact-card__button{
  appearance:none; border:0; border-radius:0; padding:12px 24px;
  background:var(--btn-bg); color:#fff; font-weight:700; cursor:pointer;
}
.contact-card__button:hover{ background:var(--btn-bg-hover); }
.contact-card__button[disabled]{ opacity:.45; cursor:not-allowed; }

/* =========================================================
   Footer
========================================================= */
.footer{ background:var(--footer-bg); color:var(--footer-text); }
.footer a{ color:var(--footer-text); text-decoration:none; }

.footer-inner{ max-width:var(--maxw); margin:0 auto; padding:60px 40px 30px; }

.footer-top{
  display:grid; gap:var(--s7);
  grid-template-columns:1fr 1fr 1.25fr; align-items:start;
}

.footer-logo{
  width: clamp(80px, 11vw, 113px);
  height:auto;
  display:block;
  margin-bottom:24px;
}

.footer-nav li + li{ margin-top:.9rem; }
.footer-nav a{ line-height:1.4; font-weight:500; }

.info-col{ justify-self:end; text-align:left; max-width:360px; }
.info-col .company-name {
  font-family: "游ゴシック体", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  font-style: normal;
}

.contact-bottom-row{
  grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between;
  margin-bottom: var(--s7);
}

.contact-row{ display:flex; align-items:center; gap:16px; white-space:nowrap; }
.contact-label{ font-weight:600; letter-spacing:.08em; }
.contact-line{ width:48px; height:2px; background:var(--footer-line); display:inline-block; }

.contact-circle{
  width:44px; height:44px; border-radius:50%;
  display:grid; place-items:center; background:#2a2e34; color:#fff;
}
.contact-circle i{ font-size:18px; }

.copyright{
  white-space:nowrap;
  opacity:.7;
  font-weight:400;
  font-size:14px;
  font-family: "游ゴシック体", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "メイリオ", sans-serif;
  font-style: normal;
}

/* =========================================================
   Policy Page
========================================================= */
.policy-page{ background:#fff; }
.policy-page .policy-section{
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: var(--s7) var(--s3) var(--s6);
}
.policy-page h1{
  font-size: clamp(22px, 3.6vw, 28px);
  margin: 0 0 18px;
  line-height: 1.5;
}
.policy-page h2{
  font-size: clamp(16px, 2.6vw, 20px);
  margin: 28px 0 10px;
}
.policy-page p, .policy-page li, .policy-page address{
  font-size: 15px;
  color: var(--text);
}
.policy-page ul{ margin: 8px 0 0 1.2em; list-style: disc; }
.policy-page address a{ text-decoration: underline; }

.contact-alt{ margin-top:10px; font-size:14px; }
.contact-alt a, .contact-alt .linklike{
  color:#2563eb; text-decoration:underline; background:none; border:0; padding:0; cursor:pointer;
}
.contact-alt .sep{ opacity:.6; margin:0 6px; }
