/* =========================================================
   Fonts
   - 日本語: Noto Sans JP（Google Fonts）
   - 英語: apercu-regular-pro（商用フォント想定 / 自前で配置）
   ========================================================= */

/* apercu-regular-pro はご自身のフォントファイルを配置して使ってください */
@font-face {
  font-family: "Apercu";
  src:
    url("./fonts/apercu-pro-regular.woff2") format("woff2"),
    url("./fonts/apercu-pro-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   Base
   ========================================================= */
:root{
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #5c5c5c;
  --line: rgba(11,11,11,.10);
  --shadow: 0 18px 50px rgba(0,0,0,.08);
  --radius: 18px;
  --container: 1120px;
  --body: 18px;
  --h2: 36px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --line-green: #06C755; /* LINE公式カラー */
  --line-green-hover: #05b14d;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.9;
  font-family:
    "Apercu",
    "Noto Sans JP",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

img{
  max-width: 100%;
  height: auto;
  display: block;
}

a{ color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible{
  outline: 3px solid rgba(11,11,11,.20);
  outline-offset: 3px;
  border-radius: 10px;
}

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

.container{
  width: min(var(--container), 100% - 40px);
  margin-inline: auto;
}

/* =========================================================
   Header (背景はスクロール量で“ふわっと”濃くする)
   ========================================================= */
.header{
  position: absolute; /* 最初はFV上に重ねる */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;

  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;

  transform: translateY(0);
  transition: transform .28s var(--ease);
  will-change: transform;
}

/* 背景（透明度はJSから --header-bg-opacity で制御） */
.header::before{
  content: "";
  position: absolute;
  inset: 0;

  /* 背景色：最大まで濃くなった時の色 */
  background: rgba(255,255,255,0.90);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);

  /* ここがポイント：スクロール量に応じて0→1で変化 */
  opacity: var(--header-bg-opacity, 0);
  transition: opacity .22s linear;

  pointer-events: none;
  will-change: opacity;
}

.header__inner{
  position: relative; /* ::beforeの上に載せる */
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 0;
}

/* スクロール開始で固定（背景は::beforeのopacityで“ふわっと”） */
.header.is-sticky{
  position: fixed;
}

/* アンカー移動時、固定ヘッダーに隠れないようにする */
#home, #works, #services, #about, #contact{
  scroll-margin-top: 90px; /* ヘッダーの実寸に合わせて微調整 */
}
.brand{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}
.brand__tagline{
  margin-top: 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--muted);
  text-transform: uppercase;
  opacity: .85;
}
.brand__mark{
  font-size: 26px;        /* ← 22px → 26px */
  font-weight: 600;
  letter-spacing: .08em;  /* ← 少しだけ広げてロゴ感UP */
  text-transform: none;;
  line-height: 1;
  transition: opacity .2s ease;
}
.brand__mark:hover{ opacity: .75; }

.nav{
  display:flex;
  align-items:center;
  gap: 14px;
}

.nav__toggle{
  display:none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.nav__toggleLine{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}
.nav__toggleLine + .nav__toggleLine{ margin-top: 4px; }

.nav__list{
  list-style:none;
  display:flex;
  align-items:center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

/* グローバルメニュー：下線なし／余裕のある字間 */
.nav__link{
  position: relative;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .14em; /* ← 0.10em → 0.14em */
  color: var(--muted);
  padding: 10px 6px;
  transition: color .2s var(--ease), opacity .2s var(--ease);
}

/* 下線は完全OFF（過去設定が残っていても無効化） */
.nav__link::after{
  content: none !important;
}

.nav__link:hover{
  color: var(--text);
  opacity: .9;
}

.nav__link--cta{
  border: none;
  background: transparent;
}

/* =========================================================
   Hero (center + full screen)
   ========================================================= */
.hero{
  position: relative;
  overflow: hidden;

  min-height: 100svh;
  display: grid;
  place-items: center;

  padding: 0;
}

.hero__bg{
  position: absolute;
  inset: -60px;
  z-index: 0; /* ← 追加：背景を背面に固定 */

  /* 幾何学模様：淡いラベンダーに変更（RGB 230,230,250 を使用） */
  background:
    /* 大きな光の輪（少し濃いめ） */
    radial-gradient(680px 340px at 12% 22%, rgba(230,230,250,.70), transparent 62%),
    radial-gradient(560px 320px at 82% 28%, rgba(230,230,250,.65), transparent 62%),
    radial-gradient(460px 280px at 28% 82%, rgba(230,230,250,.60
    ), transparent 62%),
    /* 回転する扇形の模様（薄め） */
    conic-gradient(from 220deg at 50% 50%,
      rgba(230,230,250,.20), rgba(230,230,250,0) 22%,
      rgba(230,230,250,.15) 44%, rgba(230,230,250,0) 66%,
      rgba(230,230,250,.10) 88%, rgba(230,230,250,0));

  /* 全体の透明度を少し上げて、色が綺麗に見えるように調整 */
  opacity: 1;  /* 元の .75 から変更 */
  background-size: 160% 160%;
  background-position: 50% 50%;

  pointer-events: none;
  opacity: .75; /* ← 0.9だと“白っぽく見えづらい”ことがあるので調整 */

  /* CSSの背景アニメーションはOFF（JSで動かす） */
  animation: none;

  /* 初期の雰囲気 */
  transform: rotate(-2deg) scale(1.04);
}

@keyframes heroBgMove{
  0%{
    background-position: 0% 0%;
  }
  50%{
    background-position: 100% 50%;
  }
  100%{
    background-position: 0% 0%;
  }
}

.hero__inner{
  position: relative;
  z-index: 1; /* ← 追加 */
  text-align: center;
  padding: 120px 0 80px;
}

.hero__eyebrow{
  margin: 0 0 10px;
  color: var(--muted);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 14px;
}
.hero__title{
  margin: 0 0 14px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.hero__subtitle{
  margin: 0 0 26px;
  color: var(--muted);
  max-width: 56ch;
  margin-inline: auto;
}

.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  justify-content: center;
}

.hero__meta{
  list-style:none;
  padding: 0;
  margin: 0;
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  justify-content: center;
}
.hero__meta li{
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,.7);
}
/* Hero animation base */
.hero__inner > *{
  opacity: 0;
  transform: translateY(12px);
  animation: heroFadeUp .8s var(--ease) forwards;
}

/* 出現タイミングをずらす */
.hero__eyebrow{ animation-delay: .1s; }
.hero__title{ animation-delay: .2s; }
.hero__subtitle{ animation-delay: .3s; }
.hero__actions{ animation-delay: .4s; }
.hero__meta{ animation-delay: .5s; }

@keyframes heroFadeUp{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   Sections
   ========================================================= */
.section{
  padding: 96px 0;
}
.section--alt{
  background: rgba(11,11,11,.03);
}

.section__head{
  margin-bottom: 40px;
  text-align: center;
  margin-inline: auto;
}
.section__title{
  margin: 0 0 8px;
  font-size: var(--h2);
  letter-spacing: .08em; /* ← 英語見出し感を強める */
  line-height: 1.3;
}
.section__lead{
  margin-top: 12px;
  max-width: 72ch;
  margin-inline: auto;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
  will-change: transform;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn--primary{
  background: var(--text);
  color: #fff;
  border-color: rgba(11,11,11,.20);
}
.btn--ghost{
  background: rgba(255,255,255,.65);
}
.btn--line{
  background: var(--line-green);
  color: #fff;
  border-color: var(--line-green);
  transition:
    transform .15s var(--ease),
    box-shadow .15s var(--ease),
    background .15s var(--ease);
}
.btn--line:hover{
  background: var(--line-green-hover);
  box-shadow: 0 12px 32px rgba(6, 199, 85, .35);
  transform: translateY(-2px) scale(1.02);
}

/* =========================================================
   WORKS
   ========================================================= */
.worksGroup__title{
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.worksGrid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.workCard{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: #fff;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.workCard:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.workCard__img{
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: rgba(11,11,11,.04);
  transition: transform .35s var(--ease);
  transform: scale(1);
}
.workCard:hover .workCard__img{
  transform: scale(1.03);
}
.workCard__body{
  padding: 20px 18px 22px;
}
.workCard__name{
  margin: 0 0 2px;
  font-weight: 700;
}
.workCard__tag{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   Services
   ========================================================= */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 24px 24px 28px;
}
.card__top{
  display: flex;
  flex-direction: column;   /* ← 横並び → 縦並び */
  align-items: center;      /* ← 中央揃え */
  gap: 6px;                 /* ← タイトルと金額の間隔 */
  margin-bottom: 12px;
}
.card__title{
  margin: 0;
  font-size: 20px;
  text-align: center;
  letter-spacing: .06em;
}
.card__price{
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.card__desc{
  margin: 0 auto 14px;
  color: var(--muted);
  max-width: 40ch;      /* ← 左右の余白を広げるポイント */
}
.card__list{
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.card__list li{
  margin: 6px 0;
}

/* =========================================================
   About
   ========================================================= */
.about{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;          /* ← 22px → 40px */
  align-items: start;
}

.about__imgWrap{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: #fff;
}
.about__img{
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about__name{
.about__nameKana {
  display: inline-block;
  font-size: 14px;        /* 文字を小さく */
  font-weight: 400;       /* 文字を細く */
  color: var(--muted);    /* 色を少し薄くしてバランスを取る */
  letter-spacing: 0.05em;
} 
 margin: 0 0 4px;
  font-weight: 800;
  font-size: 22px;
}

.about__role{
  margin: 0 0 14px;
  color: var(--muted);
}
.about__text{
  margin: 0 0 16px;
  color: var(--muted);
}

.about__dl{
  margin: 0;
  border-top: 1px solid var(--line);
}
.about__row{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.about__row dt{
  color: var(--muted);
  font-weight: 700;
}
.about__row dd{ margin: 0; }

/* =========================================================
   Contact
   ========================================================= */
.contactBox{
  display:flex;
  justify-content:space-between;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}

.contactBox__title{
  margin: 0 0 6px;
  font-weight: 800;
  font-size: 20px;
}
.contactBox__text{
  margin: 0;
  color: var(--muted);
}
.contactBox__right{
  min-width: min(360px, 100%);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap: 10px;
}
.contactBox__note{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* =========================================================
   Footer
   ========================================================= */
.footer{
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.footer__inner{
  color: var(--muted);
  font-size: 14px;
  text-align: center; /* ← 追加 */
}

/* =========================================================
   Page Top
   ========================================================= */
.pagetop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  display:grid;
  place-items:center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  transform: translateY(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.pagetop.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* =========================================================
   Utilities
   ========================================================= */
.u-spOnly{ display:none; }
.u-pcOnly{ display:inline; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .worksGrid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .about{ grid-template-columns: 1fr; }
  .contactBox{ flex-direction: column; }
  .contactBox__right{ min-width: auto; }
  .u-spOnly{ display:inline; }
  .u-pcOnly{ display:none; }

  .nav__toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .nav__list{
    position: absolute;
    right: 20px;
    top: 62px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
    box-shadow: var(--shadow);
  }
  .nav__list.is-open{ display:flex; }
  .nav__link{ padding: 12px 12px; }
}

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* 動きを減らしたい人への配慮 */
@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none;
    transition: none;
  }
}