/* =========================================
   A.I Company Inc. LP
   白・黒・写真だけで構成するミニマルなデザイン
   ========================================= */

:root {
  --black: #111;
  --gray: #777;
  --line: #d9d9d9;
  --bg-soft: #f6f5f3;
  --white: #fff;
  --en: "Bodoni Moda", "Times New Roman", serif;
  --ja: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--ja);
  font-size: 14px;
  line-height: 2.1;
  letter-spacing: .08em;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.pc { display: inline; }

.en {
  font-family: var(--en);
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

/* ---------- ヘッダー ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  transition: height .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { height: 64px; border-color: var(--line); }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: auto; height: 40px; transition: height .4s var(--ease); }
.header.is-scrolled .logo-mark { height: 32px; }
.logo-name { display: flex; flex-direction: column; line-height: 1.25; }
.logo-ja { font-size: 9px; letter-spacing: .25em; color: var(--gray); }
.logo-en { font-family: var(--en); font-size: 22px; letter-spacing: .08em; }

.menu-btn {
  position: absolute;
  left: 32px;
  width: 26px;
  height: 16px;
  display: none;
}
.menu-btn span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--black);
  transition: transform .4s var(--ease), opacity .3s;
}
.menu-btn span:nth-child(1) { top: 0; }
.menu-btn span:nth-child(2) { top: 50%; }
.menu-btn span:nth-child(3) { top: 100%; }
.menu-btn.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.is-open span:nth-child(2) { opacity: 0; }
.menu-btn.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav { position: absolute; right: 32px; }
.nav ul { display: flex; gap: 28px; }
.nav a {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: .12em;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  min-width: 200px;
  padding: 14px 40px;
  border: 1px solid var(--black);
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: .25em;
  text-align: center;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { background: var(--black); color: var(--white); }
.btn--large { min-width: 300px; padding: 20px 48px; font-family: var(--ja); letter-spacing: .15em; }

/* ---------- 共通セクション ---------- */
.section { padding: 140px 6vw; max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 80px; }
.section-head .en { color: var(--gray); margin-bottom: 14px; }
.section-head h2 { font-size: 24px; font-weight: 400; letter-spacing: .15em; }
.section-head::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  margin: 32px auto 0;
  background: var(--black);
}
h3 { font-weight: 400; }
h2, h3 { text-wrap: balance; }
.note { font-size: 11px; color: var(--gray); margin-top: 32px; line-height: 1.9; }
.small { font-size: 11px; color: var(--gray); }

/* ---------- ファーストビュー ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 6vw 120px;
  text-align: center;
}
.hero-sub { font-family: var(--en); font-size: 12px; letter-spacing: .4em; color: var(--gray); margin-bottom: 40px; }
.hero-title {
  font-size: clamp(26px, 3.4vw, 46px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .2em;
  margin-bottom: 36px;
}
.hero-title span { display: block; white-space: nowrap; }
.hero-lead { color: #444; margin-bottom: 64px; }

/* 下へうながす細い線 */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--en);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--gray);
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 72px;
  background: linear-gradient(var(--black) 50%, var(--line) 50%) 0 0 / 1px 200%;
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine { from { background-position: 0 100%; } to { background-position: 0 -100%; } }

/* ---------- お悩み ---------- */
.problem-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.problem-list li {
  padding: 48px 28px;
  text-align: center;
  font-size: 14px;
  line-height: 2.2;
}
.problem-list li + li { border-left: 1px solid var(--line); }

/* ---------- 選ばれる理由 ---------- */
.strength { background: var(--bg-soft); max-width: none; }
.strength-list {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}
.strength-item .num {
  font-family: var(--en);
  font-size: 44px;
  font-style: italic;
  line-height: 1;
  margin-bottom: 28px;
}
.strength-item h3 { font-size: 18px; line-height: 1.8; margin-bottom: 20px; letter-spacing: .1em; }
.strength-item p:last-child { color: #444; }

/* ---------- サービス（写真タイル） ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--black);
}
.service-item img { transition: transform 1.2s var(--ease), opacity .6s var(--ease); opacity: .82; }
.service-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: var(--white);
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 60%);
}
.service-text .en { font-size: 10px; margin-bottom: 6px; opacity: .85; }
.service-text h3 { font-size: 19px; letter-spacing: .12em; line-height: 1.6; }
.service-text p:last-child {
  font-size: 12px;
  line-height: 1.9;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .6s var(--ease), opacity .6s var(--ease), margin .6s var(--ease);
}
.service-item:hover img { transform: scale(1.06); opacity: .55; }
.service-item:hover .service-text p:last-child { max-height: 120px; opacity: 1; margin-top: 12px; }

/* ---------- 実績 ---------- */
.works-feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 120px;
}
.works-image { aspect-ratio: 4 / 3; overflow: hidden; }
.works-image img { transition: transform 1.2s var(--ease); }
.works-image:hover img { transform: scale(1.04); }
.works-text .en { color: var(--gray); margin-bottom: 16px; }
.works-text h3 { font-size: 22px; line-height: 1.7; margin-bottom: 24px; font-family: var(--en); letter-spacing: .06em; }
.works-text p { margin-bottom: 12px; }

.brand-block { border-top: 1px solid var(--line); padding: 56px 0; }
.brand-block:last-child { border-bottom: 1px solid var(--line); }
.brand-title {
  font-family: var(--en);
  font-size: 13px;
  letter-spacing: .3em;
  text-align: center;
  margin-bottom: 40px;
}
.brand-title span {
  display: block;
  font-family: var(--ja);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--gray);
  margin-top: 6px;
}
.brand-row { display: grid; grid-template-columns: 1fr 1fr; }
.brand-row > div { text-align: center; }
.brand-row > div + div { border-left: 1px solid var(--line); }
.brand-cat { font-family: var(--en); font-style: italic; color: var(--gray); margin-bottom: 16px; }
.brand-list li { font-family: var(--en); font-size: 18px; letter-spacing: .1em; line-height: 2.2; }
.brand-list--client {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}
.brand-list--client li { font-size: 16px; padding: 0 28px; position: relative; }
.brand-list--client a {
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size .5s var(--ease), color .3s;
}
.brand-list--client a:hover { background-size: 100% 1px; }
.brand-list--client li + li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 14px;
  background: var(--line);
  transform: translateY(-50%);
}

/* ---------- 料金 ---------- */
.fee { max-width: 1100px; }
.plan-sub { display: block; font-size: 11px; color: var(--gray); }
.text-link { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .3s; }
.text-link:hover { opacity: .6; }

/* 金額のお問い合わせ案内 */
.price-ask {
  max-width: 860px;
  margin: 12px auto 0;
  font-size: 12px;
  color: var(--gray);
  line-height: 1.9;
}
.price-ask .text-link { margin-left: .5em; color: #444; }
.fee-table-wrap { overflow-x: auto; }
.fee-table {
  width: 100%;
  min-width: 560px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.fee-table th, .fee-table td {
  padding: 22px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
  text-align: center;
  line-height: 1.8;
}
.fee-table tbody th { text-align: left; color: #444; }
.fee-table thead th:first-child { width: 24%; }
.fee-table thead th { border-bottom: 1px solid var(--black); padding-bottom: 24px; vertical-align: bottom; }
.fee-table thead .en { display: block; font-size: 15px; margin-bottom: 4px; }

.fee-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fee-sub-item { padding: 48px 40px; text-align: center; }
.fee-sub-item + .fee-sub-item { border-left: 1px solid var(--line); }
.fee-sub-item .en { color: var(--gray); margin-bottom: 8px; }
.fee-sub-item h3 { font-size: 17px; margin-bottom: 16px; }
.fee-sub-item p:last-child { font-size: 12px; color: #444; line-height: 1.9; }

.fee-option { margin-top: 96px; }
.option-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  border-top: 1px solid var(--line);
}
.option-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.8; }
.fee-option .note { max-width: 860px; margin: 24px auto 0; }

/* ---------- 流れ ---------- */
.flow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flow-list li { padding: 40px 20px; text-align: center; }
.flow-list li + li { border-left: 1px solid var(--line); }
.flow-list .num { font-family: var(--en); font-style: italic; font-size: 28px; display: block; margin-bottom: 12px; }
.flow-list h3 { font-size: 16px; margin-bottom: 10px; letter-spacing: .12em; }
.flow-list p { font-size: 12px; color: #444; line-height: 1.9; }

/* ---------- 代表あいさつ ---------- */
.message { background: var(--bg-soft); max-width: none; }
.message-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 88px;
  align-items: center;
}
.message-image { aspect-ratio: 4 / 5; overflow: hidden; }
.message-image img { object-position: 60% center; }
.message-text .en { color: var(--gray); margin-bottom: 20px; }
.message-text h2 { font-size: 22px; font-weight: 400; line-height: 1.9; letter-spacing: .12em; margin-bottom: 32px; }
.message-text p { color: #333; }
.nb { display: inline-block; }
.sign { margin-top: 40px; font-size: 13px; }
.sign span { font-size: 20px; margin-left: 12px; letter-spacing: .2em; }
.sign small { display: block; font-size: 11px; color: var(--gray); }

/* ---------- よくある質問 ---------- */
.faq { max-width: 900px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 48px 28px 0;
  text-align: left;
  font-size: 15px;
  letter-spacing: .08em;
  position: relative;
}
.faq-q::before { content: "Q"; font-family: var(--en); font-size: 20px; font-style: italic; }
.faq-q::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--black), var(--black)) center / 100% 1px no-repeat,
    linear-gradient(var(--black), var(--black)) center / 1px 100% no-repeat;
  transform: translateY(-50%);
  transition: transform .4s var(--ease);
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-50%) rotate(135deg); }
.faq-a {
  height: 0;
  overflow: hidden;
  transition: height .5s var(--ease);
}
.faq-a p { padding: 0 0 32px 40px; color: #444; }

/* ---------- お問い合わせ ---------- */
.contact {
  padding: 160px 6vw;
  text-align: center;
  border-top: 1px solid var(--line);
}
.contact .en { color: var(--gray); margin-bottom: 20px; }
.contact h2 { font-size: 26px; font-weight: 400; letter-spacing: .15em; margin-bottom: 28px; }
.contact p { margin-bottom: 56px; color: #444; }
.contact .contact-mail { font-family: var(--en); letter-spacing: .12em; margin: 24px 0 0; color: var(--gray); }

/* ---------- フッター ---------- */
.footer {
  padding: 96px 6vw 40px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-logo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-logo img { width: 150px; height: auto; }
.footer-tagline {
  font-family: var(--en);
  font-style: italic;
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 2;
  color: #555;
  margin-top: 24px;
}
.footer-info { font-size: 12px; color: #555; margin: 32px 0 48px; line-height: 2; }
.copyright { font-family: var(--en); font-size: 11px; letter-spacing: .2em; color: var(--gray); }

/* ---------- スクロールで現れる演出 ---------- */
.fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
}
.fade.is-show { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================
   タブレット・スマホ
   ========================================= */
@media (max-width: 960px) {
  .menu-btn { display: block; left: 24px; }
  .header { padding: 0 24px; }
  .nav {
    position: fixed;
    inset: 0;
    right: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
    z-index: -1;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: 32px; }
  .nav a { font-size: 22px; }

  .hero { min-height: 88vh; min-height: 88svh; }

  .problem-list { grid-template-columns: 1fr 1fr; }
  .problem-list li:nth-child(3) { border-left: 0; }
  .problem-list li:nth-child(n+3) { border-top: 1px solid var(--line); }

  .strength-list { grid-template-columns: 1fr; gap: 56px; max-width: 560px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .works-feature, .message-inner { grid-template-columns: 1fr; gap: 40px; }
  .message-image { max-width: 420px; }

  .flow-list { grid-template-columns: 1fr; }
  .flow-list li + li { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  body { font-size: 13px; }
  .pc { display: none; }
  .section { padding: 96px 6vw; }
  .section-head { margin-bottom: 56px; }
  .section-head h2 { font-size: 20px; }
  .logo-en { font-size: 19px; }
  .logo-ja { font-size: 8px; }

  .problem-list { grid-template-columns: 1fr; }
  .problem-list li + li { border-left: 0; border-top: 1px solid var(--line); }
  .problem-list li { padding: 32px 12px; }

  .service-grid { grid-template-columns: 1fr; }
  .service-item { aspect-ratio: 4 / 3; }
  .service-text p:last-child { max-height: 120px; opacity: 1; margin-top: 10px; }

  .brand-row { grid-template-columns: 1fr; gap: 40px; }
  .brand-row > div + div { border-left: 0; }
  .brand-list li { font-size: 16px; }
  .brand-list--client li { padding: 0 16px; font-size: 14px; }

  .fee-sub { grid-template-columns: 1fr; }
  .fee-sub-item + .fee-sub-item { border-left: 0; border-top: 1px solid var(--line); }
  .option-list { grid-template-columns: minmax(0, 1fr); }

  .contact h2 { font-size: 20px; }
  .btn--large { min-width: 0; width: 100%; padding: 18px 20px; }
}
