/* ==========================================================================
   akinice design — corporate site
   White / Red — sporty & stylish
   ========================================================================== */

:root {
  --red: #e4002b;
  --red-deep: #b80022;
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f5f5f5;
  --gray-200: #e6e6e6;
  --gray-600: #595959;

  --font-sans: "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    "YuGothic", "Noto Sans JP", "Meiryo", Arial, sans-serif;
  --font-display: "Helvetica Neue", "Arial Black", "Hiragino Sans", "Yu Gothic", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --maxw: 1280px;
  --band-space: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 4.75rem;

  /* parallelogram used for photos, buttons and slabs */
  --slant: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
  --slant-sm: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.04em;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, .lead, .hero__catch, .svc-row__title { text-wrap: balance; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.band--red :focus-visible, .site-footer :focus-visible, .page-head :focus-visible { outline-color: var(--white); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--red); color: var(--white); padding: 0.6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-top: 5px solid var(--red);
  border-bottom: 1px solid var(--gray-200);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo img { height: 2.75rem; width: auto; display: block; }

.nav-list { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav-list a {
  position: relative; display: inline-block;
  font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.08em;
  padding-block: 0.5rem;
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.25s ease;
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-list .nav-cta a {
  background: var(--red); color: var(--white);
  padding: 0.7rem 2rem;
  clip-path: var(--slant-sm);
  transition: background-color 0.25s ease;
}
.nav-list .nav-cta a::after { display: none; }
.nav-list .nav-cta a:hover, .nav-list .nav-cta a[aria-current="page"] { background: var(--black); }

.nav-toggle { display: none; width: 3rem; height: 3rem; padding: 0; background: transparent; border: 0; cursor: pointer; position: relative; }
.nav-toggle span {
  position: absolute; left: 0.75rem; right: 0.75rem; top: 50%; height: 2px; margin-top: -1px;
  background: var(--black); transition: background-color 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--black);
  transition: transform 0.25s ease, top 0.25s ease;
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Bands ---------- */
.band { padding-block: var(--band-space); }
.band--white { background: var(--white); color: var(--black); }
.band--gray { background: var(--gray-100); color: var(--black); }
.band--red { background: var(--red); color: var(--white); }

/* Stitch line: dashes like a baseball seam */
.seam {
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--red) 0 18px, transparent 18px 30px);
}

/* Section title: large italic Latin word + Japanese heading */
.section-title { margin-bottom: clamp(2.5rem, 6vw, 5rem); }
.section-title__en {
  display: block;
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(3.5rem, 11vw, 9rem); line-height: 0.95; letter-spacing: -0.03em;
  color: var(--red);
}
.band--red .section-title__en { color: var(--white); }
.section-title h2 {
  display: flex; align-items: center; gap: 0.9rem;
  margin-top: 1rem;
  font-weight: 800; font-size: clamp(1.125rem, 2vw, 1.5rem); letter-spacing: 0.14em;
}
.section-title h2::before {
  content: ""; width: 0.5rem; height: 1.4em; background: var(--red); transform: skewX(-16deg);
}
.band--red .section-title h2::before { background: var(--white); }

.lead {
  font-weight: 900; font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.75rem); line-height: 1.5; letter-spacing: 0.03em;
}
.prose { max-width: 36em; color: var(--gray-600); }
.band--red .prose { color: var(--white); }
.prose p + p { margin-top: 1.5em; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-block; cursor: pointer;
  padding: 1.05rem 3rem;
  background: var(--red); color: var(--white);
  border: 0;
  clip-path: var(--slant-sm);
  font-weight: 800; letter-spacing: 0.12em; font-size: 1rem;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--black); }
.btn--white { background: var(--white); color: var(--red); }
.btn--white:hover { background: var(--black); color: var(--white); }
.btn--line { background: var(--black); color: var(--white); }
.btn--line:hover { background: var(--red); }

.link-line {
  display: inline-flex; align-items: center; gap: 1rem;
  font-weight: 800; letter-spacing: 0.12em; padding-block: 0.5rem;
}
.link-line::after {
  content: ""; width: 3rem; height: 3px; background: currentColor; transition: width 0.3s ease;
}
.link-line:hover::after { width: 5rem; }

/* ---------- Hero (TOP) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
.hero__catch {
  font-weight: 900; font-style: italic;
  font-size: clamp(2rem, 4.5vw, 4.25rem); line-height: 1.25; letter-spacing: 0.02em;
}
.hero__text { margin-top: clamp(1.5rem, 3vw, 2.5rem); color: var(--gray-600); max-width: 30em; }
.hero__actions { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__visual { position: relative; }
.hero__visual::before {
  content: ""; position: absolute; inset: 0;
  background: var(--red); clip-path: var(--slant);
  transform: translate(5%, 7%);
  animation: slab-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hero__photo { position: relative; clip-path: var(--slant); background: var(--gray-100); padding: 2% 9%; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; mix-blend-mode: multiply; }
@keyframes slab-in { from { transform: translate(-6%, 7%); opacity: 0; } to { transform: translate(5%, 7%); opacity: 1; } }

/* ---------- Intro (company) ---------- */
.intro { display: grid; gap: clamp(2rem, 5vw, 4rem); }

/* ---------- Service rows (TOP) ---------- */
.svc-list { border-top: 3px solid var(--black); }
.svc-row {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 3.5rem;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(0.75rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--gray-200);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.svc-row__title {
  font-weight: 900; font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem); line-height: 1.5; letter-spacing: 0.03em;
}
.svc-row__desc { color: var(--gray-600); font-size: 0.9375rem; line-height: 1.8; transition: color 0.25s ease; }
.svc-row__chip {
  justify-self: end; position: relative;
  width: 3.5rem; height: 2.25rem; background: var(--red);
  clip-path: var(--slant-sm); transition: background-color 0.25s ease;
}
.svc-row__chip::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 0.7rem; height: 0.7rem; margin: -0.45rem 0 0 -0.55rem;
  border-top: 3px solid var(--white); border-right: 3px solid var(--white);
  transform: rotate(45deg);
}
.svc-row:hover { background: var(--red); color: var(--white); }
.svc-row:hover .svc-row__desc { color: var(--white); }
.svc-row:hover .svc-row__chip { background: var(--white); }
.svc-row:hover .svc-row__chip::after { border-color: var(--red); }
.svc-more { margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Baseball band (TOP) ---------- */
.ball { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ball h2 {
  font-weight: 900; font-style: italic;
  font-size: clamp(1.75rem, 4vw, 3.25rem); line-height: 1.4; letter-spacing: 0.03em;
}
.ball p { margin-top: 1.5rem; max-width: 28em; }
.ball .link-line { margin-top: 1.75rem; }
.ball__photos { display: grid; grid-template-columns: 1fr; gap: clamp(0.75rem, 2vw, 1.5rem); }
.ball__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: var(--slant); background: var(--white); }

/* ---------- Tiles (TOP: About / Contact) ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  min-height: clamp(16rem, 28vw, 22rem);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: var(--white); color: var(--black);
  border-top: 8px solid var(--red);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.tile__en {
  display: block;
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(2.5rem, 6.5vw, 5.5rem); line-height: 0.95; letter-spacing: -0.03em;
  color: var(--red); transition: color 0.3s ease;
}
.tile__ja { margin-top: 0.75rem; font-weight: 800; letter-spacing: 0.14em; }
.tile__text { color: var(--gray-600); font-size: 0.9375rem; transition: color 0.3s ease; }
.tile:hover { background: var(--red); color: var(--white); }
.tile:hover .tile__en, .tile:hover .tile__text { color: var(--white); }

/* ---------- Sub-page header ---------- */
.page-head {
  background: var(--red); color: var(--white);
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(5rem, 11vw, 9rem);
  clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%);
}
.page-head__en {
  display: block;
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(4rem, 16vw, 13rem); line-height: 0.88; letter-spacing: -0.04em;
}
.page-head h1 {
  margin-top: clamp(1rem, 2.5vw, 2rem);
  display: flex; align-items: center; gap: 0.9rem;
  font-weight: 800; font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: 0.16em;
}
.page-head h1::before { content: ""; width: 0.5rem; height: 1.4em; background: var(--white); transform: skewX(-16deg); }
.page-head__lead { margin-top: 1.25rem; max-width: 34em; }

/* ---------- Service page blocks ---------- */
.svc-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.svc-block--reverse .svc-block__media { order: 2; }
.svc-block__media { position: relative; }
.svc-block__media::before {
  content: ""; position: absolute; inset: 0; background: var(--red); clip-path: var(--slant); transform: translate(4%, 6%);
}
.svc-block__media img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: var(--slant); background: var(--white); }
.svc-block__media--pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 2vw, 1.5rem); }
.svc-block__media--pair::before { display: none; }
.svc-block h2 {
  font-weight: 900; font-style: italic;
  font-size: clamp(1.5rem, 2.8vw, 2.375rem); line-height: 1.5; letter-spacing: 0.03em;
}
.svc-block__lead { margin-top: 1.5rem; color: var(--gray-600); }
.scope { margin-top: 2rem; border-top: 3px solid var(--black); }
.scope li {
  position: relative; padding: 0.95rem 0 0.95rem 1.75rem;
  border-bottom: 1px solid var(--gray-200); font-weight: 700; letter-spacing: 0.06em;
}
.scope li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0.65rem; height: 0.65rem; margin-top: -0.325rem;
  background: var(--red); transform: skewX(-16deg);
}

/* ---------- CTA band ---------- */
.cta__title {
  font-weight: 900; font-style: italic;
  font-size: clamp(1.625rem, 4vw, 3.25rem); line-height: 1.5; letter-spacing: 0.03em; color: var(--red);
}
.cta__text { margin-top: 1.25rem; color: var(--gray-600); max-width: 32em; }
.cta .btn { margin-top: 2.25rem; }

/* ---------- About: profile table ---------- */
.profile { border-top: 4px solid var(--red); }
.profile__row {
  display: grid; grid-template-columns: minmax(8rem, 14rem) 1fr; gap: 2rem;
  padding-block: clamp(1.25rem, 2.5vw, 1.9rem);
  border-bottom: 1px solid var(--gray-200);
}
.profile dt { font-weight: 800; letter-spacing: 0.14em; color: var(--red); }
.profile dd ul li { position: relative; padding-left: 1.4rem; }
.profile dd ul li + li { margin-top: 0.4rem; }
.profile dd ul li::before {
  content: ""; position: absolute; left: 0; top: 0.8em; width: 0.5rem; height: 0.5rem; background: var(--red); transform: skewX(-16deg);
}

/* ---------- Contact form ---------- */
.form { max-width: 46rem; }
.form__intro { color: var(--gray-600); }
.field { margin-top: 1.75rem; }
.field label { display: block; font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.1em; margin-bottom: 0.45rem; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--white);
  border: 2px solid var(--black); border-radius: 0;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 11rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(228, 0, 43, 0.2);
}
.form .btn { margin-top: 2.25rem; }
.form__status { margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 6px solid var(--red); background: var(--gray-100); font-size: 0.9375rem; }
.form__status[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--red); color: var(--white); padding-block: clamp(3.5rem, 8vw, 6rem) 2rem; }
.site-footer__top { display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.site-footer .logo img { height: 3rem; }
.site-footer__company { margin-top: 1rem; font-weight: 700; font-size: 0.9375rem; }
.footer-nav { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.footer-nav ul li + li { margin-top: 0.6rem; }
.footer-nav a { font-weight: 800; letter-spacing: 0.08em; background: linear-gradient(var(--white), var(--white)) no-repeat left bottom / 0 2px; transition: background-size 0.25s ease; }
.footer-nav a:hover { background-size: 100% 2px; }
.footer-nav__sub a { font-weight: 500; font-size: 0.875rem; }
.copyright { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 2px dotted rgba(255, 255, 255, 0.7); font-size: 0.8125rem; }

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .intro { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}

@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: calc(var(--header-h) + 5px) 0 0 0; z-index: 90;
    background: var(--white);
    padding: 2rem var(--gutter);
    transform: translateY(-1rem); opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--gray-200); }
  .nav-list a { display: block; font-size: 1.375rem; padding-block: 1.25rem; }
  .nav-list a::after { display: none; }
  .nav-list .nav-cta { border-bottom: 0; margin-top: 1.5rem; }
  .nav-list .nav-cta a { text-align: center; font-size: 1.125rem; padding-block: 1.1rem; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__catch { font-size: 10vw; }
  .hero__visual { order: -1; margin-right: 5%; margin-bottom: 2rem; }

  .svc-row { grid-template-columns: minmax(0, 1fr) 3rem; row-gap: 0.75rem; gap: 0.75rem 1rem; }
  .svc-row__title br, .svc-block h2 br { display: none; }
  .svc-row__desc { grid-column: 1 / 2; grid-row: 2; }
  .svc-row__chip { grid-column: 2; grid-row: 1; width: 3rem; }

  .ball { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .svc-block { grid-template-columns: 1fr; }
  .svc-block--reverse .svc-block__media { order: 0; }
  .svc-block__media { margin-right: 4%; }
  .profile__row { grid-template-columns: 1fr; gap: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Service: external button / form honeypot ---------- */
.svc-block__action { margin-top: 1.75rem; }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
