@charset "UTF-8";

/* ============================================================
   web wizardry — profile site
   Figma: ww-desktop-v3 (node 8:4) をもとに実装
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  /* color */
  --c-cream: #faf9f5;
  --c-sky: #eaf2fa;
  --c-navy: #07172d;
  --c-navy-2: #103158;
  --c-ink: #172033;
  --c-muted: #667085;
  --c-primary: #125aa5;
  --c-accent: #f4a900;
  --c-orange: #ff6b00;
  --c-border: #d8dee8;
  --c-white: #fff;

  /* layout */
  --content-max: 1280px;
  --gutter: 80px;

  /* radius */
  --r-sm: 4px;
  --r-md: 8px;

  /* motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  /* 終盤がゆっくり収束する = ふわっと着地する感じ */
  --ease-soft: cubic-bezier(.22, 1, .36, 1);
}

/* ============================================================
   スクロールで「ふわっと」表示
   - ホバーの transform と衝突しないよう translate プロパティを使用
   - .js が付いている（= JS有効）ときだけ初期状態を隠す
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  translate: 0 24px;
  transition:
    opacity .9s var(--ease-soft) var(--reveal-delay, 0s),
    translate .9s var(--ease-soft) var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
  opacity: 1;
  translate: none;
}

/* transition はショートハンドで上書きされるため、
   ホバー演出を持つ要素は reveal 分とまとめて宣言し直す */
.js .service-card[data-reveal] {
  transition:
    opacity .9s var(--ease-soft) var(--reveal-delay, 0s),
    translate .9s var(--ease-soft) var(--reveal-delay, 0s),
    transform .25s var(--ease),
    box-shadow .25s var(--ease);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
ul,
figure,
hr {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 400;
  background: var(--c-cream);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--c-primary);
  color: var(--c-white);
  border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* ============================================================
   shared layout
   ============================================================ */
.section {
  position: relative;
  padding: 120px var(--gutter);
}

.section__inner {
  max-width: var(--content-max);
  margin-inline: auto;
}

/* section の直下要素間ギャップ（Figma: gap 64） */
.section__inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eyebrow {
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
}

.eyebrow--accent {
  color: var(--c-accent);
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.section-heading__title {
  font-size: 36px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--c-ink);
}

.section-heading__title--light {
  color: var(--c-white);
}

/* logo */
.logo-group {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo-group__symbol {
  width: 76.8px;
  height: 38.72px;
  flex-shrink: 0;
}

.logo-group__text {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 700;
  color: var(--c-white);
  white-space: nowrap;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0 var(--gutter) 100px;
  background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
}

.hero__glow {
  position: absolute;
  top: 120px;
  right: 100px;
  width: 400px;
  height: 400px;
  pointer-events: none;
}

.hero__glow img {
  width: 150%;
  height: 150%;
  margin: -25%;
}

.hero__inner {
  position: relative;
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* -- navbar -- */
.navbar {
  position: relative;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.nav-links {
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-white);
  white-space: nowrap;
}

.nav-links a {
  opacity: .85;
  transition: opacity .2s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

/* hamburger（Figma にはないがモバイル用に追加） */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -- hero content -- */
.hero__content {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero__text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--c-white);
}

.hero__catch {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
}

.hero__role {
  font-size: 20px;
  line-height: 1.5;
  font-weight: 500;
  opacity: .9;
}

.hero__graphic {
  flex-shrink: 0;
  width: 480px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__graphic img {
  width: 476px;
  height: 240px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.section--services {
  background: var(--c-sky);
}

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

.service-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  background: var(--c-white);
  border-radius: var(--r-md);
  /* Figma のストロークは内側揃え。inset shadow で高さに影響させない */
  box-shadow: inset 0 0 0 1px var(--c-border);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

/* ホバーで AI活用支援カードと同じオレンジ枠に */
.service-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--c-accent), 0 12px 24px rgba(244, 169, 0, .18);
}

.service-card--featured {
  filter: drop-shadow(0 12px 12px rgba(255, 85, 0, .07));
}

.service-card__title {
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-ink);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
}

.service-card__body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-muted);
}

/* ============================================================
   STRENGTHS
   ============================================================ */
.section--strengths {
  background: var(--c-cream);
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.strength-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.strength-item__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.strength-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--c-sky);
  display: flex;
  align-items: center;
  justify-content: center;
}

.strength-item__icon img {
  width: 16px;
  height: 16px;
}

.strength-item__title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--c-ink);
}

.strength-item__body {
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-muted);
}

/* ============================================================
   BOOKS
   ============================================================ */
.section--books {
  background: var(--c-sky);
  overflow: hidden;
  padding: 80px var(--gutter) 90px;
}

.section--books .section__inner {
  gap: 40px;
}

.books-body {
  display: flex;
  align-items: center;
  gap: 64px;
}

.books-text {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.books-text__lead {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--c-ink);
}

.books-text__rank {
  font-size: 36px;
  color: var(--c-orange);
}

.books-text__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-muted);
}

.books-cards {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

/* Amazon へのリンク。ホバーでオレンジ枠 */
.book-card {
  display: block;
  flex-shrink: 0;
  width: 260px;
  padding: 24px;
  background: var(--c-white);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--c-border);
  filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .05));
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.book-card:hover,
.book-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--c-accent), 0 12px 24px rgba(244, 169, 0, .18);
}

/* 表紙は原寸比を保持（トリミングしない） */
.book-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1062 / 1500;
  object-fit: contain;
}

/* ============================================================
   PROFILE
   ============================================================ */
.section--profile {
  background: var(--c-cream);
}

.profile-body {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.profile-photo {
  flex-shrink: 0;
  width: 500px;
  height: 500px;
  border-radius: var(--r-md);
  overflow: hidden;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile-name {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-name__main {
  font-size: 32px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--c-ink);
}

.profile-name__role {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--c-primary);
}

.profile-rule {
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid var(--c-border);
}

.profile-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--c-muted);
}

.profile-text__lead {
  font-weight: 700;
  color: var(--c-ink);
}

/* Figma では本文3段落は 1 ブロック内に詰めて配置（mb-0） */
.profile-text__body>p {
  margin: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.section--contact {
  background: linear-gradient(180deg, var(--c-navy) 0%, var(--c-navy-2) 100%);
}

.contact-body {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.contact-lead {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--c-white);
}

.contact-lead__title {
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
}

.contact-lead__desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: .8;
}

/* -- form card -- */
.contact-form {
  flex-shrink: 0;
  width: 600px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px;
  background: var(--c-white);
  border-radius: var(--r-md);
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .2));
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field__label {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--c-ink);
}

.field__req {
  color: var(--c-orange);
}

.field__input {
  width: 100%;
  line-height: 1.4;
  padding: 12px;
  font-size: 15px;
  color: var(--c-ink);
  background: var(--c-cream);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.field__input::placeholder {
  color: var(--c-muted);
}

.field__input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(18, 90, 165, .12);
}

.field__input--select {
  appearance: none;
  padding-right: 40px;
  background-image: url("../assets/icon/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  cursor: pointer;
}

.field__input--textarea {
  height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.field__input[aria-invalid="true"] {
  border-color: var(--c-orange);
}

.field__error {
  display: none;
  font-size: 13px;
  color: var(--c-orange);
}

.field__error:not(:empty) {
  display: block;
}

/* スパム対策のハニーポット。
   display:none だと検知するボットがいるため、画面外へ追い出して隠す。
   aria-hidden と tabindex="-1" を併用しているので支援技術・キーボードからは触れない。 */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-action {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button {
  width: 100%;
  line-height: 1.2;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-white);
  background: var(--c-primary);
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color .2s var(--ease);
}

.button:hover {
  background: #0f4d8c;
}

.button:disabled {
  opacity: .6;
  cursor: default;
}

.form-status {
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-muted);
}

/* reCAPTCHA のバッジは非表示にし、代わりに規約で必須の表記を出す */
.grecaptcha-badge {
  visibility: hidden;
}

.recaptcha-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--c-muted);
}

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

.form-status--ok {
  color: var(--c-primary);
}

.form-status--ng {
  color: var(--c-orange);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-navy);
  padding: 80px var(--gutter) 40px;
  color: var(--c-white);
}

.footer .section__inner {
  gap: 48px;
}

.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__tagline {
  font-size: 14px;
  line-height: 1.5;
  opacity: .6;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__nav-title {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--c-accent);
}

.footer__nav a {
  font-size: 14px;
  line-height: 1.2;
  opacity: .7;
  transition: opacity .2s var(--ease);
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  opacity: 1;
}

.footer__rule {
  width: 100%;
  height: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 13px;
  line-height: 1.2;
  opacity: .5;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 1200px) {
  :root {
    --gutter: 40px;
  }

  .hero__catch {
    font-size: 44px;
  }

  .hero__graphic {
    width: 380px;
    height: 300px;
  }

  .hero__graphic img {
    width: 100%;
    height: auto;
  }

  .contact-form {
    width: 520px;
  }

  .profile-photo {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 960px) {
  .section {
    padding: 88px var(--gutter);
  }

  .section--books {
    padding: 72px var(--gutter) 72px;
  }

  .footer {
    padding: 64px var(--gutter) 32px;
  }

  .section__inner {
    gap: 48px;
  }

  .section-heading__title {
    font-size: 30px;
  }

  /* nav → hamburger */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: var(--c-navy);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--r-md);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .35);
    display: none;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 14px 20px;
  }

  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
  }

  .hero__catch {
    font-size: 36px;
  }

  .hero__role {
    font-size: 18px;
  }

  .hero__graphic {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
  }

  .hero__glow {
    right: -60px;
    width: 320px;
    height: 320px;
  }

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

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

  .books-body {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .books-cards {
    justify-content: center;
  }

  .books-text__lead {
    font-size: 21px;
  }

  .books-text__rank {
    font-size: 30px;
  }

  .profile-body {
    flex-direction: column;
    gap: 40px;
  }

  .profile-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 500px;
    margin: 0 auto;
  }

  .contact-body {
    flex-direction: column;
    gap: 40px;
  }

  .contact-form {
    width: 100%;
    padding: 32px;
  }

  .contact-lead__title {
    font-size: 21px;
  }

  .footer__top {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
  }

  .section {
    padding: 64px var(--gutter);
  }

  .section--books {
    padding: 56px var(--gutter) 56px;
  }

  .footer {
    padding: 48px var(--gutter) 28px;
  }

  .section__inner {
    gap: 36px;
  }

  .section-heading__title {
    font-size: 24px;
  }

  .hero {
    padding-bottom: 64px;
  }

  .hero__inner {
    gap: 48px;
  }

  .hero__catch {
    font-size: 28px;
  }

  .hero__role {
    font-size: 16px;
  }

  .logo-group__symbol {
    width: 60px;
    height: 30.25px;
  }

  .logo-group__text {
    font-size: 16px;
  }

  .service-card {
    padding: 24px;
    gap: 16px;
  }

  .service-card__title {
    font-size: 18px;
  }

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

  .books-cards {
    gap: 16px;
  }

  .book-card {
    width: calc(50% - 8px);
    padding: 16px;
  }

  .books-text__lead {
    font-size: 19px;
  }

  .books-text__rank {
    font-size: 26px;
  }

  .books-text__desc {
    font-size: 15px;
  }

  .profile-name__main {
    font-size: 26px;
  }

  .profile-name__role {
    font-size: 16px;
  }

  .profile-text {
    font-size: 15px;
  }

  .contact-form {
    padding: 24px;
    gap: 20px;
  }

  .contact-lead__title {
    font-size: 19px;
  }
}

/* ---------- motion 抑制 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* 動きを抑制する設定では、初期状態から表示しておく */
  .js [data-reveal] {
    opacity: 1;
    translate: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}