/* React/Tailwind 版から移植したデザイントークンです。ブランドカラー変更時は各コンポーネントより先にここを編集してください。 */
:root {
  --container-gutter: 48px;
  --container-gutter-wide: 80px;
  --container-gutter-mobile: 32px;
  --container-max: 1280px;
  --header-height: 80px;
  --header-height-wide: 96px;
  --main-offset: var(--header-height);
  --main-offset-wide: 128px;
  --logo-aspect: 471 / 358;
  --logo-nav-height: 56px;
  --logo-nav-height-wide: 64px;
  --background: oklch(0.995 0.002 240);
  --foreground: oklch(0.22 0.04 250);
  --primary: oklch(0.52 0.14 252);
  --primary-foreground: oklch(0.99 0.003 247);
  --primary-deep: oklch(0.38 0.13 255);
  --secondary: oklch(0.97 0.012 248);
  --muted-foreground: oklch(0.50 0.03 250);
  --border: oklch(0.92 0.012 248);
  --destructive: oklch(0.577 0.245 27.325);
  --shadow-elegant: 0 30px 60px -30px oklch(0.38 0.13 255 / 0.25);
  --font-display: "Cormorant Garamond", "Noto Serif JP", serif;
  --font-jp: "Noto Serif JP", serif;
  --font-sans: "Inter", "Noto Serif JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
label:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

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

.container--narrow {
  max-width: 1024px;
}

.container--table {
  max-width: 896px;
}

.container--contact {
  max-width: 768px;
}

.text-center {
  text-align: center;
}

/* 初期表示のローディングです。CSS アニメーションだけで自動的に非表示になります。 */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--background);
  pointer-events: auto;
  transition: opacity 700ms ease, visibility 700ms ease;
  animation: loaderOverlayOut 700ms ease 1600ms forwards;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: loaderIn 900ms ease-out both;
}

.loader__inner img {
  height: 80px;
  width: auto;
  aspect-ratio: var(--logo-aspect);
  object-fit: contain;
  mix-blend-mode: multiply;
}

.loader__inner span {
  height: 1px;
  width: 0;
  margin-top: 24px;
  background: var(--primary);
  animation: loaderLine 1200ms ease-in-out 150ms forwards;
}

/* 固定ナビです。アンカー先がヘッダーに隠れないよう、下のヘッダー高と main の padding を揃えてください。 */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  border-bottom: 1px solid oklch(0.92 0.012 248 / 0.4);
  background: oklch(0.995 0.002 240 / 0.7);
  backdrop-filter: blur(12px);
}

.site-header__inner {
  width: min(100% - var(--container-gutter), var(--container-max));
  height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: var(--logo-nav-height);
  width: auto;
  aspect-ratio: var(--logo-aspect);
  object-fit: contain;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 40px;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--muted-foreground);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.menu-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.menu-button span {
  height: 1px;
  background: var(--foreground);
  transition: transform 250ms ease, width 250ms ease;
}

.menu-button span:first-child {
  width: 24px;
}

.menu-button span:last-child {
  width: 16px;
}

.nav-toggle:checked + .site-header__inner .menu-button span {
  width: 24px;
}

.nav-toggle:checked + .site-header__inner .menu-button span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle:checked + .site-header__inner .menu-button span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  display: block;
  max-height: 0;
  overflow: hidden;
  border-top: 0 solid transparent;
  background: oklch(0.995 0.002 240 / 0.95);
  backdrop-filter: blur(8px);
  transition: max-height 250ms ease, border-color 250ms ease;
}

.nav-toggle:checked ~ .mobile-nav {
  max-height: 260px;
  border-top: 1px solid oklch(0.92 0.012 248 / 0.4);
}

.mobile-nav a {
  display: block;
  margin-inline: 24px;
  padding: 12px 0;
  border-bottom: 1px solid oklch(0.92 0.012 248 / 0.4);
  color: var(--foreground);
  letter-spacing: 0.25em;
}

.mobile-nav a:first-child {
  margin-top: 24px;
}

.mobile-nav a:last-child {
  margin-bottom: 24px;
  border-bottom: 0;
}

main {
  padding-top: var(--main-offset);
}

/* ヒーローアニメーションは HTML の文字 span と CSS だけで制御します。 */
.hero {
  position: relative;
  min-height: calc(100svh - var(--main-offset));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__mark {
  display: none;
  position: absolute;
  right: -8%;
  top: 50%;
  width: 95vw;
  height: auto;
  aspect-ratio: var(--logo-aspect);
  object-fit: contain;
  max-width: 1150px;
  transform: translate(10px, -50%) scale(1.08);
  opacity: 0;
  pointer-events: none;
  user-select: none;
  animation: markIn 2.4s cubic-bezier(0.22, 1, 0.36, 1) 1600ms forwards;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 24px;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

.hero__eyebrow {
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease 1700ms forwards;
}

.hero__title {
  color: var(--foreground);
  font-family: var(--font-jp);
  font-weight: 300;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.25;
  letter-spacing: 0;
}

.char {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: charIn 760ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms) forwards;
}

.char-line--primary,
.char-line--primary .char {
  color: var(--primary);
}

.hero__lead {
  max-width: 576px;
  margin-top: 40px;
  color: var(--muted-foreground);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 1s ease 2800ms forwards;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1s ease 3000ms forwards;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  padding: 16px 32px;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 200ms ease, color 200ms ease;
}

.button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button--primary:hover {
  background: var(--primary-deep);
}

.button--primary span {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button--primary:hover span {
  transform: translateX(3px);
}

.button-link {
  display: inline-flex;
  border: 0;
  border-bottom: 1px solid oklch(0.22 0.04 250 / 0.4);
  padding: 0 0 4px;
  background: transparent;
  color: var(--foreground);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 200ms ease, border-color 200ms ease;
}

.button-link:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  color: var(--muted-foreground);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  transform: translateX(-50%);
  opacity: 0;
  animation:
    fadeIn 1s ease 3400ms forwards,
    scrollFloat 1.9s ease-in-out 4400ms infinite;
}

/* 静的ページ全体で使う共通セクション部品です。 */
.section {
  padding-block: 96px;
}

.section--large {
  padding-block: 128px;
}

.section--soft {
  background: oklch(0.97 0.012 248 / 0.3);
}

.anchor-section {
  scroll-margin-top: var(--main-offset);
}

.section-title {
  color: var(--foreground);
  font-family: var(--font-jp);
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}

.section-title--large {
  font-size: clamp(1.875rem, 5vw, 3rem);
}

.section-copy {
  max-width: 672px;
  margin: 40px auto 0;
  color: var(--muted-foreground);
  font-family: var(--font-jp);
  line-height: 2;
}

.section-copy--spaced {
  margin-bottom: 64px;
}

/* 代表メッセージのレイアウトです。写真は元デザインに合わせて 4:5 の固定フレームにしています。 */
.message-grid {
  display: grid;
  gap: 48px;
  align-items: start;
}

.ceo-photo {
  position: relative;
  aspect-ratio: 4 / 5;
}

.ceo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-elegant);
}

.ceo-photo span {
  position: absolute;
  right: -16px;
  bottom: -16px;
  z-index: -1;
  width: 128px;
  height: 128px;
  border: 1px solid oklch(0.52 0.14 252 / 0.4);
}

.message-title {
  margin-bottom: 32px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.body-copy {
  display: grid;
  gap: 20px;
  color: var(--muted-foreground);
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 2;
}

.name-story {
  padding-top: 8px;
}

.name-story__heading {
  margin-bottom: 8px;
  color: var(--foreground);
  font-size: 16px;
}

.name-story p + p {
  margin-top: 12px;
}

.signature {
  margin-top: 32px;
  color: var(--foreground);
  font-family: var(--font-jp);
  font-size: 14px;
}

/* 受賞実績のタイムライン表示です。HTML の並び順が表示順になります。 */
.awards {
  position: relative;
  margin: 0 0 0 12px;
  padding: 0;
  border-left: 1px solid oklch(0.92 0.012 248 / 0.6);
  list-style: none;
}

.awards li {
  position: relative;
  padding-left: 32px;
}

.awards li + li {
  margin-top: 40px;
}

.awards span {
  position: absolute;
  top: 8px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary);
}

.awards p,
.service-card p {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.25em;
}

.awards h3 {
  margin-top: 8px;
  color: var(--foreground);
  font-family: var(--font-jp);
  font-size: clamp(1.125rem, 3vw, 1.25rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}

.awards div,
.service-card div {
  margin-top: 8px;
  color: var(--muted-foreground);
  font-family: var(--font-jp);
  line-height: 1.7;
}

.company-title {
  margin-bottom: 64px;
}

/* 会社概要は HTML 側で定義リストにしています。この grid はラベルと値の見た目だけを制御します。 */
.company-table {
  margin: 0;
  border-top: 1px solid oklch(0.92 0.012 248 / 0.6);
}

.company-table > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid oklch(0.92 0.012 248 / 0.6);
}

.company-table dt {
  padding-top: 4px;
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.company-table dd {
  margin: 0;
  color: var(--foreground);
  font-family: var(--font-jp);
  line-height: 1.7;
}

.services-title {
  margin-bottom: 64px;
}

/* 1px の grid gap を使って、事業内容カード間の区切り線を作っています。 */
.services-grid {
  display: grid;
  gap: 1px;
  background: oklch(0.92 0.012 248 / 0.6);
}

.service-card {
  min-height: 100%;
  padding: 40px;
  background: var(--background);
  transition: background 500ms ease;
}

.service-card:hover {
  background: oklch(0.97 0.012 248 / 0.6);
}

.service-card p {
  font-size: 24px;
  letter-spacing: 0;
}

.service-card h3 {
  margin: 32px 0 16px;
  color: var(--foreground);
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
}

.service-card div {
  font-size: 14px;
}

.contact-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  line-height: 1.2;
}

.section-copy--contact {
  margin-block: 16px 48px;
}

/* お問い合わせは HTML の mailto フォームです。フォーム編集時は name 属性がメール本文の項目名になります。 */
.contact-form {
  display: grid;
  gap: 32px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.radio-field legend {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.field em {
  color: var(--destructive);
  font-style: normal;
}

.field input:not([type="radio"]),
.field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  padding: 12px 0;
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-jp);
  transition: border-color 300ms ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
}

.field textarea {
  resize: none;
}

.radio-field {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.radio-field legend {
  width: 100%;
  margin-bottom: 8px;
}

.radio-field label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-jp);
  font-size: 14px;
}

.radio-field input {
  accent-color: var(--primary);
}

.form-actions {
  padding-top: 16px;
  text-align: center;
}

.form-note {
  padding-top: 16px;
  color: var(--muted-foreground);
  font-family: var(--font-jp);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.form-note a {
  color: var(--primary);
  text-decoration: underline;
}

.site-footer {
  margin-top: 128px;
  border-top: 1px solid oklch(0.92 0.012 248 / 0.6);
}

.site-footer__top {
  display: grid;
  gap: 40px;
  padding-block: 64px;
}

.site-footer p,
.site-footer address,
.site-footer a {
  color: var(--muted-foreground);
  font-family: var(--font-jp);
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
}

.site-footer .footer-brand {
  margin-bottom: 12px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
}

.site-footer a {
  transition: color 200ms ease;
}

.site-footer a:hover {
  color: var(--primary);
}

.site-footer__copy {
  border-top: 1px solid oklch(0.92 0.012 248 / 0.6);
  padding: 24px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Reveal は HTML/CSS だけでも表示されます。JS が使える環境では元の React 版に近い一度きりの表示演出にします。 */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: revealIn 900ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms) both;
    animation-range: entry 0% cover 28%;
    animation-timeline: view();
  }
}

.enhanced .reveal {
  opacity: 0;
  transform: translateY(30px);
  animation: none;
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0ms);
}

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

@keyframes loaderOverlayOut {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes loaderIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loaderLine {
  to {
    width: 120px;
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes scrollFloat {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 4px);
  }
}

@keyframes markIn {
  to {
    opacity: 0.06;
    transform: translate(-4px, -50%) scale(1);
  }
}

/* ブレークポイントは移植元ページの Tailwind md/lg 相当の挙動に合わせています。 */
@media (min-width: 768px) {
  .container {
    width: min(100% - var(--container-gutter-wide), var(--container-max));
  }

  .site-header__inner {
    width: min(100% - var(--container-gutter-wide), var(--container-max));
    height: var(--header-height-wide);
  }

  .site-logo img {
    height: var(--logo-nav-height-wide);
  }

  .desktop-nav {
    display: flex;
  }

  .menu-button,
  .nav-toggle,
  .mobile-nav {
    display: none;
  }

  main {
    padding-top: var(--main-offset-wide);
  }

  .anchor-section {
    scroll-margin-top: var(--main-offset-wide);
  }

  .hero__mark {
    display: block;
  }

  .hero {
    min-height: 92vh;
  }

  .hero__lead {
    font-size: 18px;
  }

  .section {
    padding-block: 128px;
  }

  .section--large {
    padding-block: 176px;
  }

  .message-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
  }

  .awards {
    margin-left: 24px;
  }

  .awards li {
    padding-left: 48px;
  }

  .company-table > div {
    grid-template-columns: 200px 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .container,
  .site-header__inner {
    width: min(100% - var(--container-gutter-mobile), var(--container-max));
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    padding-inline: 28px;
  }

  .company-table > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .message-grid {
    gap: 56px;
  }

  .ceo-photo {
    width: min(82%, 300px);
    margin-inline: auto;
    aspect-ratio: 5 / 6;
  }

  .ceo-photo span {
    right: -10px;
    bottom: -10px;
    width: 88px;
    height: 88px;
  }

  .service-card {
    padding: 32px 24px;
  }
}

@media (max-width: 520px) and (max-height: 700px) {
  .hero__eyebrow {
    margin-bottom: 24px;
  }

  .hero__lead {
    margin-top: 32px;
  }

  .hero__actions {
    margin-top: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .loader {
    display: none;
  }

  .hero__eyebrow,
  .hero__lead,
  .hero__actions,
  .hero__scroll,
  .enhanced .reveal,
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero__mark {
    opacity: 0.06;
    transform: translate(-4px, -50%);
  }
}

/*追加css*/

@media (max-width: 1024px) {
  article.service-card.reveal.mb-none.is-visible{
    display: none;
  }
}
