@charset "UTF-8";
/* =========================================================
   NoriB static site
   ========================================================= */

:root {
  --c-text: #666;
  --c-black: #000;
  --c-heading: #333;
  --c-gray-bg: #f2f5f7;
  --c-white: #fff;
  --c-red: #e02b20;
  --c-blue: #0c71c3;
  --c-highlight: #0077ff;
  --c-orange: #fd6e0a;
  --c-pink: #ff014f;
  --c-ghost: #e0e0e0;
  --c-navy: #001d4b;
  --c-border: #dbdde0;
  --c-bar-bg: #e3e3e3;

  --ff-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --ff-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --ff-kanit: "Kanit", var(--ff-sans);
  --ff-poppins: "Poppins", var(--ff-sans);

  --container: 1140px;
  --header-h: 88px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
p + p { margin-top: 1em; }
strong { font-weight: 700; }
button { font: inherit; cursor: pointer; }

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

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 80%; max-width: var(--container); margin: 0 auto; }
.container--narrow { max-width: 900px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,0);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { background: var(--c-gray-bg); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.header-logo img { width: 120px; }
.global-nav ul { display: flex; gap: 22px; }
.global-nav a {
  font-family: var(--ff-serif); font-size: 18px; font-weight: 500; color: var(--c-black);
  transition: opacity .2s;
}
.global-nav a:hover { opacity: .6; }

.menu-toggle {
  display: none; width: 32px; height: 26px; padding: 0; border: 0; background: none;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 4px; right: 4px; height: 2px; background: var(--c-pink);
  transition: transform .3s, opacity .3s, top .3s;
}
.menu-toggle span:nth-child(1) { top: 5px; }
.menu-toggle span:nth-child(2) { top: 12px; }
.menu-toggle span:nth-child(3) { top: 19px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

.mobile-nav {
  display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--c-white); border-top: 3px solid var(--c-pink);
  box-shadow: 0 2px 5px rgba(0,0,0,.1);
}
.mobile-nav.is-open { display: block; }
.mobile-nav li + li { border-top: 1px solid rgba(0,0,0,.03); }
.mobile-nav a {
  display: block; padding: 10px 5%;
  font-family: var(--ff-serif); font-size: 18px; color: var(--c-black);
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + 10px); background: var(--c-white); }
.hero-inner {
  width: 80%; max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 388px 1fr; gap: 0 117px;
  padding: 34px 0 0;
}
.hero-photo img { width: 100%; }
.hero-body { display: flex; flex-direction: column; }
.hero-logo img { width: 199px; }
.author-designation { margin-top: 2px; font-size: 14px; color: var(--c-text); }
.hero-text p:not(.author-designation) {
  font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--c-black);
}
.hero-text .author-designation + p { margin-top: 28px; }

.scroll-indicator {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 70px 0 0 270px; color: var(--c-black);
}
.scroll-line {
  position: relative; display: block; width: 2px; height: 160px; background: var(--c-black);
}
.scroll-dot {
  position: absolute; left: 50%; top: 0; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: var(--c-red);
  animation: scrollDot 2.4s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: 0; }
  50%  { top: calc(100% - 10px); }
  100% { top: 0; }
}
.scroll-label {
  writing-mode: vertical-rl; font-family: var(--ff-kanit); font-size: 12px;
  font-weight: 500; letter-spacing: .15em;
}

/* ---------- Section common ---------- */
.section { padding: 80px 0; }
.section--gray { background: var(--c-gray-bg); }
.section--white { background: var(--c-white); }

.sec-heading { position: relative; padding-top: 22px; margin-bottom: 26px; }
.sec-heading__ghost {
  position: absolute; top: 0; left: 0;
  font-family: var(--ff-sans); font-size: 30px; font-weight: 700; line-height: 1;
  color: var(--c-ghost); white-space: nowrap; pointer-events: none;
}
.sec-heading h2 {
  position: relative;
  font-family: var(--ff-serif); font-size: 40px; font-weight: 500; line-height: 1.4; color: var(--c-heading);
}
.accent { color: var(--c-red); }
.accent--bold { font-weight: 700; }

.sec-heading--center { text-align: center; }
.sec-heading--center .sec-heading__ghost { left: 50%; transform: translateX(-50%); }
.sec-heading__bar {
  position: relative; display: block; width: 50px; height: 3px; margin: 12px auto 0;
  background: var(--c-heading); border-radius: 2px;
}
.sec-heading__bar span {
  position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--c-red);
  animation: barDot 3s ease-in-out infinite alternate;
}
@keyframes barDot { from { left: 0; } to { left: calc(100% - 8px); } }

.sec-lead, .about-text p, .about-note {
  font-size: 18px; font-weight: 300; line-height: 1.6; color: #444746;
}
.sec-lead { color: var(--c-text); font-size: 16px; }

/* ---------- About ---------- */
.about-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 90px;
  margin-top: 80px; position: relative;
}
.about-cols::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  border-left: 4px dotted #222;
  transform: translateX(-50%);
}

.hl-title {
  position: relative; display: inline-block; margin-bottom: 40px;
  font-family: var(--ff-serif); font-size: 32px; font-weight: 500; line-height: 1; color: var(--c-heading);
}
.hl-title__text { position: relative; z-index: 1; padding: 0 6px; }
.hl-title svg {
  position: absolute; overflow: visible; pointer-events: none;
  fill: none; stroke: var(--c-highlight); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
}
.hl-title svg path { stroke-dasharray: 1500; stroke-dashoffset: 1500; transition: stroke-dashoffset 1.6s ease; }
.hl-title.is-drawn svg path { stroke-dashoffset: 0; }
.hl-title--circle svg { left: -12px; top: -14px; width: calc(100% + 24px); height: calc(100% + 28px); }
.hl-title--wave svg { left: 0; bottom: -14px; width: 100%; height: 30px; }

.can-item { display: flex; gap: 12px; }
.can-item + .can-item { margin-top: 38px; }
.can-icon {
  flex: 0 0 20px; width: 20px; height: 20px; margin: 0 12px 0 0;
  border: 2px solid var(--c-orange); border-radius: 50%; position: relative;
}
.can-icon::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--c-orange);
}
.can-item h4, .skill__title {
  font-family: var(--ff-sans); font-size: 18px; font-weight: 500; line-height: 1.2; color: var(--c-black);
  margin-bottom: 12px;
}
.can-item p, .skill p { font-size: 14px; line-height: 1.7; color: var(--c-text); }

.skill + .skill { margin-top: 38px; }
.skill__title { margin-bottom: 8px; line-height: 2; }
.skill__bar { display: block; height: 22px; background: var(--c-bar-bg); margin-bottom: 18px; }
.skill__fill {
  display: block; height: 100%; width: 0; background: var(--c-blue);
  text-align: right; transition: width 1.4s cubic-bezier(.25,.8,.25,1);
}
.skill__num {
  display: inline-block; padding: 0 10px; font-size: 12px; font-weight: 600; line-height: 22px;
  color: var(--c-white); opacity: 0; transition: opacity .4s 1s;
}
.skill__fill.is-filled .skill__num { opacity: 1; }

.about-note { margin-top: 60px; color: var(--c-text); font-size: 16px; }

/* ---------- Services ---------- */
.service-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 60px; align-items: start;
}
.service-card {
  display: flex; flex-direction: column; padding: 20px;
  background: var(--c-white); border: 1px solid var(--c-border);
  box-shadow: 6px 6px 18px rgba(0,0,0,.3);
}
.service-card img { width: 100%; aspect-ratio: 315 / 177; object-fit: cover; margin-bottom: 20px; }
.service-card h3 {
  font-size: 18px; font-weight: 500; line-height: 1.2; color: var(--c-black); margin-bottom: 12px;
}
.service-card p { font-size: 14px; line-height: 1.7; color: var(--c-text); }
.soon {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-family: var(--ff-kanit); font-size: 15px; font-weight: 500; color: #444746;
}
.soon__icon {
  width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: spin 1.4s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact ---------- */
.section--contact { padding: 100px 0 160px; }
.contact-form { margin-top: 50px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 16px; border: 1px solid #e6e9ec; border-radius: 3px; background: var(--c-white);
  font-family: var(--ff-poppins); font-size: 14px; font-weight: 600; color: #333;
  transition: border-color .2s;
}
.contact-form ::placeholder { color: #999; opacity: 1; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--c-blue); }
.contact-form textarea { min-height: 150px; resize: vertical; display: block; }
.form-turnstile { margin-top: 30px; text-align: center; }
.form-turnstile__widget { display: inline-block; min-height: 65px; }
.form-turnstile .form-error { margin-top: 4px; }
.form-submit { text-align: center; margin-top: 30px; }
.form-submit button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 300px; max-width: 100%; padding: 12px 20px; border: 0; border-radius: 3px;
  background: var(--c-blue); color: var(--c-white);
  font-family: var(--ff-sans); font-size: 16px; font-weight: 500; letter-spacing: 1px;
  transition: background-color .2s;
}
.form-submit button:hover { background: #0a5fa4; }
.form-submit svg { width: 16px; height: 16px; fill: currentColor; }
.form-field + .form-field { margin-top: 0; }
.form-error { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--c-red); }
.form-error:empty { display: none; }
.contact-form [aria-invalid="true"] { border-color: var(--c-red); }
.form-submit button:disabled { opacity: .6; cursor: wait; }
.form-submit button.is-sending svg { animation: plane 0.8s ease-in-out infinite alternate; }
@keyframes plane { to { transform: translate(3px, -3px); } }
.form-status { margin-top: 16px; text-align: center; font-size: 14px; }
.form-status:empty { display: none; }
.form-status.is-success {
  padding: 20px; border: 1px solid #b7dfc4; border-radius: 3px; background: #f0faf3; color: #1b7f3b;
}
.form-status.is-error { color: var(--c-red); }

/* ---------- Simple pages (送信完了・エラー) ---------- */
.simple-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px; background: var(--c-gray-bg); text-align: center;
}
.simple-page__logo { margin-bottom: 50px; }
.simple-page__logo img { width: 160px; }
.simple-page__title {
  position: relative; font-family: var(--ff-serif); font-size: 34px; font-weight: 500; line-height: 1.4; color: var(--c-heading);
}
.simple-page > p { margin-top: 30px; font-size: 16px; font-weight: 300; line-height: 1.9; color: #444746; }
.simple-page__back a {
  display: inline-block; padding: 10px 32px; border-radius: 3px; background: var(--c-blue); color: #fff;
  font-weight: 500; letter-spacing: 1px; transition: background-color .2s;
}
.simple-page__back a:hover { background: #0a5fa4; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: center;
  min-height: 179px; padding: 20px; background: var(--c-navy); color: var(--c-white); font-size: 14px;
}

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 0; bottom: 125px; z-index: 90;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.4); border-radius: 5px 0 0 5px;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-dot, .sec-heading__bar span, .soon__icon { animation: none; }
  .hl-title svg path { stroke-dashoffset: 0; transition: none; }
  .skill__fill { transition: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .hero-inner { gap: 0 60px; }
  .scroll-indicator { margin-left: 120px; }
  .about-cols { gap: 0 60px; }
  .service-cards { gap: 24px; }
}

@media (max-width: 980px) {
  .global-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header { background: var(--c-white); }
  .site-header.is-scrolled { background: var(--c-gray-bg); }

  .hero-inner { grid-template-columns: 1fr; max-width: 495px; }
  .hero-photo { margin-bottom: 40px; }
  .scroll-indicator { margin: 50px auto 0; }

  .about-cols { grid-template-columns: 1fr; gap: 70px 0; }
  .about-cols::before { display: none; }

  .service-cards { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 767px) {
  .section { padding: 54px 0; }
  .hero-text p:not(.author-designation),
  .about-text p, .sec-lead, .about-note { font-size: 16px; }
  .hero-text p br, .about-text p br { display: none; }
  .sec-heading h2 { font-size: 30px; }
  .sec-heading__ghost { font-size: 24px; }
  .hl-title { font-size: 26px; }
  .form-row { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
  .section--contact { padding: 70px 0 100px; }
}
