/*
Theme Name: Alchemist Corporate Theme
Theme URI: https://www.alchemist-20240202.com
Author: Alchemist / Codex
Description: 株式会社アルケミスト公式サイト用の固定ページテンプレート型WordPressテーマ。
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: alchemist
*/

@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Noto+Sans+JP:wght@400;500;700;800&display=swap");

:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #151a1f;
  --muted: #65707a;
  --line: rgba(21, 26, 31, 0.12);
  --charcoal: #20262d;
  --navy: #11304d;
  --blue: #166fa3;
  --orange: #f05a1a;
  --gold: #c89a36;
  --soft-blue: #e8f4fb;
  --soft-orange: #fff1e6;
  --display: "Noto Sans JP", "Barlow Condensed", sans-serif;
  --body: "Noto Sans JP", sans-serif;
  --header-height: 78px;
  color: var(--ink);
  font-family: var(--body);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(240, 90, 26, 0.035) 1px, transparent 1px) 0 0 / 92px 92px,
    var(--bg);
}

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

button,
input,
textarea {
  font: inherit;
}

main {
  overflow: hidden;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 22px;
  height: var(--header-height);
  left: 0;
  padding: 0 clamp(20px, 5vw, 54px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  min-width: 216px;
}

.brand-logo {
  background: white;
  display: block;
  height: 42px;
  object-fit: contain;
  padding: 4px;
  width: 42px;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  display: block;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.05em;
  margin-top: 2px;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.desktop-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 0;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  gap: 10px;
}

.menu-button {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  display: none;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.mobile-menu {
  background: rgba(247, 248, 245, 0.98);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  left: 0;
  padding: 18px 22px 24px;
  position: absolute;
  right: 0;
  top: var(--header-height);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.is-closed {
  display: none;
}

.mobile-menu a {
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  padding: 15px 0;
}

.cta-button {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  white-space: nowrap;
}

.cta-button:hover {
  transform: translateY(-2px);
}

.cta-button.sm {
  font-size: 13px;
  min-height: 42px;
  padding: 0 15px;
}

.cta-button.business {
  background: var(--charcoal);
  border-color: rgba(255, 255, 255, 0.58);
  box-shadow: 0 16px 34px rgba(21, 26, 31, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: white;
}

.cta-button.recruit {
  background: var(--orange);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 34px rgba(86, 28, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  color: white;
}

.cta-button.blue {
  background: var(--blue);
  color: white;
}

.cta-button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.cta-button.light {
  background: white;
  color: var(--navy);
}

.cta-button.outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.44);
  color: white;
}

.home-hero {
  align-items: end;
  color: white;
  display: grid;
  min-height: min(780px, calc(100svh - var(--header-height)));
  overflow: hidden;
  padding: 64px clamp(22px, 7vw, 96px);
  position: relative;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(35, 34, 45, 0.22), rgba(240, 90, 26, 0.08) 46%, rgba(240, 90, 26, 0.16) 100%),
    linear-gradient(135deg, #f05a1a 0%, #f36a20 45%, #ef4e18 100%);
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
}

.hero-bg::before {
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.28) 10% 11%, transparent 11% 30%, rgba(255, 255, 255, 0.22) 30% 31%, transparent 31%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.13) 0 2px, transparent 2px 38px);
  bottom: 4%;
  height: 78%;
  left: 47%;
  opacity: 0.52;
  transform: skewX(-9deg);
  width: 48%;
}

.hero-bg::after {
  background:
    linear-gradient(90deg, rgba(240, 90, 26, 0.24), rgba(240, 90, 26, 0.02) 28%, rgba(21, 26, 31, 0.12)),
    url("assets/images/hero-field-photo-v2.png") center / cover no-repeat;
  box-shadow: -36px 36px 0 rgba(255, 255, 255, 0.12);
  height: min(58vh, 520px);
  opacity: 0.92;
  right: clamp(28px, 7vw, 112px);
  top: 19%;
  transform: rotate(-1.5deg);
  width: min(43vw, 680px);
}

@keyframes staffMove {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-18px, -8px, 0); }
}

.hero-copy {
  animation: heroIn 720ms ease both;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  color: var(--orange);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
}

.home-hero h1,
.home-hero p {
  color: white;
}

.hero-copy h1,
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 6.8vw, 92px);
  font-weight: 800;
  line-height: 1.02;
  margin: 0;
  max-width: 890px;
}

.hero-copy h1 span,
.hero-copy p span {
  display: block;
}

.hero-copy h1 span {
  white-space: nowrap;
}

.hero-copy p:not(.eyebrow),
.page-hero > div > p:not(.eyebrow) {
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.8;
  margin: 22px 0 0;
  max-width: 560px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.business-band .button-row .cta-button {
  min-width: 380px;
}

.hero-actions .cta-button {
  min-width: 246px;
}

.section,
.split-section,
.business-band,
.recruit-band,
.area-price,
.contact-cta,
.legal-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 92px 28px;
}

.split-section {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 82px);
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
}

.section-title {
  max-width: 920px;
}

.section-title.center {
  margin: 0 auto;
  text-align: center;
}

.section-title h2 {
  font-family: var(--display);
  font-size: clamp(32px, 4.8vw, 58px);
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

.section-title h2 span {
  display: block;
}

.recruit-band .section-title h2 span,
.page-hero.recruit h1 span {
  display: block;
}

.recruit-band .section-title {
  max-width: 620px;
}

.recruit-band .section-title h2,
.page-hero.recruit h1 {
  font-feature-settings: "palt";
  letter-spacing: 0;
  line-break: strict;
  overflow-wrap: normal;
  word-break: keep-all;
}

.recruit-band .section-title h2 span,
.page-hero.recruit h1 span {
  max-width: 100%;
  white-space: nowrap;
}

.section-title p,
.split-section p,
.business-band p,
.recruit-band p,
.area-price p,
.legal-page p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

@media (min-width: 761px) {
  .section-title p,
  .split-section p,
  .business-band p,
  .recruit-band p,
  .area-price p,
  .legal-page p,
  .page-hero > div > p:not(.eyebrow) {
    overflow-wrap: normal;
    word-break: keep-all;
  }
}

.photo-frame {
  background: #2c2c36;
  display: block;
  margin: 0;
  min-height: 260px;
  overflow: hidden;
  position: relative;
}

.photo-frame.tall {
  min-height: 470px;
}

.photo-frame.work {
  min-height: 190px;
}

.photo-frame img {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.photo-frame::after {
  background:
    linear-gradient(180deg, rgba(16, 23, 31, 0.04), rgba(16, 23, 31, 0.2)),
    linear-gradient(90deg, rgba(240, 90, 26, 0.18), transparent 48%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.photo-caption {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  bottom: 52px;
  color: var(--ink);
  display: none;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  left: 18px;
  max-width: calc(100% - 36px);
  padding: 10px 13px;
  position: absolute;
}

.service-grid,
.strength-grid,
.achievement-grid,
.job-grid,
.voice-grid,
.faq-columns,
.dual-cta,
.form-grid,
.contact-choice {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.service-grid.core {
  grid-template-columns: repeat(2, 1fr);
}

.service-grid.expansion {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.service-grid.core + .cta-button,
.service-grid.expansion + .cta-button {
  margin-top: 48px;
}

.service-card,
.strength-card,
.job-card,
.voice-card,
.achievement-card,
.contact-choice a,
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover,
.job-card:hover,
.achievement-card:hover,
.contact-choice a:hover {
  border-color: rgba(240, 90, 26, 0.34);
  box-shadow: 0 20px 50px rgba(21, 26, 31, 0.08);
  transform: translateY(-4px);
}

.service-card svg {
  color: var(--orange);
}

.voice-avatar {
  align-items: center;
  background: var(--soft-orange);
  border: 1px solid rgba(240, 90, 26, 0.28);
  color: var(--orange);
  display: inline-flex;
  height: 76px;
  justify-content: center;
  margin-bottom: 10px;
  width: 76px;
}

.voice-avatar svg {
  height: 34px;
  width: 34px;
}

.service-card h3,
.strength-card h3,
.job-card h3,
.voice-card h3,
.achievement-body h3,
.dual-cta h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 16px 0 10px;
}

.service-card p,
.strength-card p,
.job-card p,
.voice-card p,
.achievement-body p,
.dual-cta p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

.service-card.compact {
  background: transparent;
  padding: 20px;
}

.strength-grid {
  grid-template-columns: repeat(4, 1fr);
}

.strength-card span {
  color: var(--gold);
  font-family: var(--display);
  font-size: 34px;
}

.business-band,
.recruit-band {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  max-width: none;
  padding-left: clamp(28px, 8vw, 118px);
  padding-right: clamp(28px, 8vw, 118px);
}

.business-band {
  background: #2b2b36;
  color: white;
}

.business-band .section-title {
  max-width: 720px;
}

.business-band .section-title h2 {
  font-size: clamp(38px, 4.6vw, 72px);
  line-height: 1.08;
}

.business-band .section-title p,
.business-band p {
  color: rgba(255, 255, 255, 0.76);
}

.recruit-band {
  background: #fff2e8;
}

.recruit-band .cta-button.recruit {
  box-shadow: none;
}

.check-list,
.large-checks {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.check-list li,
.large-checks li {
  align-items: center;
  display: flex;
  gap: 10px;
  font-weight: 800;
}

.large-checks {
  grid-template-columns: repeat(3, 1fr);
}

.large-checks li {
  background: var(--paper);
  border: 1px solid var(--line);
  min-height: 72px;
  padding: 18px;
}

.large-checks svg,
.check-list svg {
  color: var(--orange);
  flex: 0 0 auto;
}

.badge-row,
.pill-grid,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.badge-row span,
.pill-grid span,
.filter-row button,
.tag {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 9px 13px;
}

.pill-grid span {
  font-size: 16px;
  padding: 18px 20px;
}

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

.achievement-grid + .cta-button {
  margin-top: 48px;
}

.achievement-card {
  padding: 0;
  overflow: hidden;
}

.achievement-body {
  padding: 24px;
}

.achievement-body dl {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 14px 0;
}

.achievement-body dl div {
  display: grid;
  gap: 12px;
  grid-template-columns: 70px 1fr;
}

.achievement-body dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.achievement-body dd {
  margin: 0;
}

.achievement-body strong {
  color: var(--ink);
  display: inline-block;
  margin-right: 10px;
}

.faq-columns {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 48px;
}

.faq-columns h2,
.faq-columns h3 {
  margin-top: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
}

.faq-item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 800;
  gap: 12px;
  justify-content: space-between;
  padding: 18px 20px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  padding: 0 20px 18px;
}

.contact-cta {
  border-top: 1px solid var(--line);
}

.dual-cta {
  grid-template-columns: repeat(2, 1fr);
}

.dual-cta article {
  background: #2b2b36;
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 34px;
}

.dual-cta article:nth-child(2) {
  background: var(--orange);
}

.dual-cta p {
  color: rgba(255, 255, 255, 0.78);
}

.dual-cta .cta-button {
  align-self: flex-start;
  margin-top: auto;
  min-width: 280px;
}

.dual-cta article {
  gap: 14px;
}

.page-hero {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  min-height: 560px;
  padding: 72px clamp(28px, 8vw, 118px);
}

.page-hero:not(.recruit) {
  background:
    radial-gradient(circle at 82% 20%, rgba(240, 90, 26, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(240, 90, 26, 0.05) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(135deg, #fff6ef 0%, #fbfaf7 68%);
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  position: relative;
}

.page-hero:not(.recruit)::after {
  border: 1px solid rgba(240, 90, 26, 0.24);
  content: "";
  height: 230px;
  position: absolute;
  right: clamp(34px, 10vw, 160px);
  top: 88px;
  transform: rotate(-7deg);
  width: min(30vw, 360px);
}

.page-hero:not(.recruit) > div {
  max-width: 850px;
  position: relative;
  z-index: 1;
}

.page-hero:not(.recruit) .photo-frame {
  display: none;
}

.page-hero > div {
  min-width: 0;
}

.page-hero.business {
  background:
    radial-gradient(circle at 82% 20%, rgba(240, 90, 26, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(240, 90, 26, 0.05) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(135deg, #fff6ef 0%, #fbfaf7 68%);
}

.page-hero h1 span {
  display: block;
}

.page-hero.recruit {
  background: linear-gradient(135deg, #fff0e7, #f7f8f5);
  gap: clamp(36px, 5vw, 72px);
  grid-template-columns: minmax(380px, 0.84fr) minmax(420px, 1.16fr);
  min-height: 620px;
  padding-bottom: 56px;
  padding-top: 56px;
}

.page-hero.recruit h1 {
  font-size: clamp(52px, 5.1vw, 78px);
  line-height: 1.02;
  max-width: 620px;
}

.page-hero.recruit > div > p:not(.eyebrow) {
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.75;
  max-width: 560px;
}

.page-hero.recruit .photo-frame {
  min-height: 460px;
}

.page-hero.recruit .cta-button {
  box-shadow: none;
}

.area-price {
  background: #2b2b36;
  color: white;
  max-width: none;
  padding-left: clamp(28px, 8vw, 118px);
  padding-right: clamp(28px, 8vw, 118px);
}

.area-price p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 850px;
}

.flow-list {
  counter-reset: flow;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.flow-step {
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  gap: 16px;
  min-height: 112px;
  padding: 20px;
}

.flow-step span {
  align-items: center;
  background: var(--ink);
  color: white;
  display: inline-flex;
  flex: 0 0 42px;
  font-family: var(--display);
  height: 42px;
  justify-content: center;
  width: 42px;
}

.flow-step h3 {
  margin: 4px 0 6px;
}

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

.job-card h3 {
  overflow-wrap: normal;
  word-break: keep-all;
}

.job-card p {
  overflow-wrap: normal;
  word-break: keep-all;
}

.timeline {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  margin-top: 32px;
}

.timeline div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: 110px 1fr;
  min-height: 66px;
  padding: 0 22px;
}

.timeline div:last-child {
  border-bottom: 0;
}

.timeline span {
  color: var(--orange);
  font-family: var(--display);
  font-size: 24px;
}

.timeline p {
  margin: 0;
}

.profile-table {
  background: var(--paper);
  border-collapse: collapse;
  margin-top: 30px;
  width: 100%;
}

.profile-table th,
.profile-table td {
  border: 1px solid var(--line);
  line-height: 1.8;
  padding: 18px 20px;
  text-align: left;
  vertical-align: top;
}

.profile-table th {
  background: #f0f2ee;
  width: 180px;
}

.voice-grid {
  grid-template-columns: repeat(3, 1fr);
}

.filter-row button {
  cursor: pointer;
}

.filter-row button.active {
  background: var(--ink);
  color: white;
}

.service-detail-list {
  display: grid;
  gap: 38px;
}

.service-detail {
  align-items: center;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.service-detail:nth-child(even) .photo-frame {
  order: 2;
}

.service-detail h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 56px);
  margin: 10px 0 16px;
}

.service-detail h2 span {
  display: block;
}

.service-detail h3 {
  margin: 18px 0 8px;
}

.service-detail p {
  color: var(--muted);
  line-height: 1.82;
}

.map-placeholder {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(17, 48, 77, 0.08) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(0deg, rgba(17, 48, 77, 0.08) 1px, transparent 1px) 0 0 / 40px 40px,
    #edf1ed;
  border: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-weight: 800;
  gap: 12px;
  height: 340px;
  justify-content: center;
  margin-top: 28px;
}

.access-card {
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  gap: 22px;
  margin-top: 32px;
  max-width: 820px;
  padding: 30px;
}

.access-card > svg {
  color: var(--orange);
  flex: 0 0 auto;
  height: 34px;
  width: 34px;
}

.access-card h3 {
  font-size: 22px;
  margin: 0 0 10px;
}

.access-card p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 12px;
}

.access-card .cta-button {
  margin-top: 10px;
}

.contact-choice {
  grid-template-columns: repeat(2, 1fr);
}

.contact-choice a svg,
.contact-choice > div svg {
  color: var(--orange);
}

.contact-choice > div {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
}

.contact-choice > div h2 {
  margin: 16px 0 10px;
}

.contact-choice > div p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.contact-choice > div .cta-button {
  margin-top: 22px;
}

.form-grid {
  align-items: start;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 28px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form h2 {
  margin: 0 0 8px;
}

.form-note {
  background: var(--soft-orange);
  border: 1px solid rgba(240, 90, 26, 0.24);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin: -2px 0 10px;
  padding: 13px 15px;
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label span {
  font-size: 13px;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  background: #fbfcfa;
  border: 1px solid var(--line);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.contact-form button {
  align-items: center;
  background: var(--ink);
  border: 0;
  color: white;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 50px;
  margin-top: 8px;
}

.contact-hero {
  align-items: center;
  background:
    radial-gradient(circle at 80% 22%, rgba(240, 90, 26, 0.14), transparent 28%),
    linear-gradient(90deg, rgba(240, 90, 26, 0.055) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(135deg, #fff6ef 0%, #fbfaf7 66%);
  display: grid;
  min-height: 430px;
  overflow: hidden;
  padding: 82px clamp(28px, 8vw, 118px);
  position: relative;
}

.contact-hero::after {
  border: 1px solid rgba(240, 90, 26, 0.24);
  content: "";
  height: 230px;
  position: absolute;
  right: clamp(34px, 10vw, 160px);
  top: 88px;
  transform: rotate(-7deg);
  width: min(30vw, 360px);
}

.contact-hero > div {
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1.04;
  margin: 0;
}

.contact-hero p:not(.eyebrow) {
  color: var(--ink);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 800;
  line-height: 1.9;
  margin: 24px 0 0;
  max-width: 720px;
}

.contact-note {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 22px;
}

.contact-note-large {
  margin-top: 34px;
  padding: 34px;
}

.contact-note-large p {
  font-size: clamp(18px, 2.2vw, 26px);
}

.contact-note p {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 10px;
  margin: 0;
}

.line-entry-hero {
  align-items: center;
  background:
    radial-gradient(circle at 84% 16%, rgba(240, 90, 26, 0.18), transparent 28%),
    linear-gradient(135deg, #fff0e7 0%, #fffaf5 54%, #fbfaf7 100%);
  display: grid;
  min-height: 430px;
  overflow: hidden;
  padding: 82px clamp(28px, 8vw, 118px);
  position: relative;
}

.line-entry-hero::after {
  background:
    linear-gradient(90deg, rgba(240, 90, 26, 0.12) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(0deg, rgba(240, 90, 26, 0.12) 1px, transparent 1px) 0 0 / 42px 42px;
  content: "";
  height: 310px;
  opacity: 0.65;
  position: absolute;
  right: clamp(20px, 8vw, 120px);
  top: 58px;
  transform: rotate(-4deg);
  width: min(34vw, 440px);
}

.line-entry-hero > div {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.line-entry-hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 92px);
  line-height: 1.04;
  margin: 0;
}

.line-entry-hero h1 span {
  display: block;
  white-space: nowrap;
}

.line-entry-hero p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.9;
  margin: 24px 0 0;
  max-width: 760px;
}

.line-entry-card {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  padding: clamp(28px, 5vw, 58px);
}

.line-entry-card h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.08;
  margin: 0 0 20px;
}

.line-entry-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
  margin: 0;
}

.line-steps {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.line-steps li {
  align-items: center;
  background: #fbfcfa;
  border: 1px solid var(--line);
  display: flex;
  font-weight: 800;
  gap: 14px;
  min-height: 58px;
  padding: 13px 16px;
}

.line-steps span {
  color: var(--orange);
  font-family: var(--display);
  font-size: 22px;
}

.line-qr {
  background: white;
  border: 1px solid rgba(21, 26, 31, 0.14);
  margin: 0;
  padding: 22px;
  text-align: center;
}

.line-qr img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  width: 360px;
}

.line-qr figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-top: 12px;
}

.legal-page {
  max-width: 880px;
}

.legal-page h2 {
  margin: 32px 0 8px;
}

.site-footer {
  background: #2b2b36;
  color: white;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  padding: 56px clamp(28px, 8vw, 118px) 92px;
}

.site-footer .brand-logo {
  background: white;
}

.site-footer p,
.site-footer small {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer nav {
  display: grid;
  gap: 12px 24px;
  grid-template-columns: repeat(3, 1fr);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.mobile-fixed-cta {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@media (max-width: 1080px) {
  .desktop-nav,
  .header-actions {
    display: none;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .menu-button {
    display: inline-flex;
  }

  .service-grid.core,
  .strength-grid,
  .job-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-grid.expansion,
  .large-checks,
  .flow-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  body {
    padding-bottom: 78px;
  }

  .site-header {
    padding: 0 16px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 13px;
  }

  .brand small {
    display: none;
  }

  .brand-logo {
    height: 38px;
    width: 38px;
  }

  .home-hero {
    min-height: calc(84svh - var(--header-height));
    padding: 34px 20px;
  }

  .hero-bg::after {
    height: 36vh;
    opacity: 0.28;
    right: -24vw;
    top: auto;
    bottom: 4%;
    transform: rotate(-2deg);
    width: 86vw;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(34px, 12vw, 52px);
  }

  .hero-copy h1 span {
    white-space: normal;
  }

  .hero-copy p:not(.eyebrow),
  .page-hero > div > p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-button {
    min-height: 52px;
    width: 100%;
  }

  .business-band .button-row .cta-button {
    min-width: 0;
  }

  .section,
  .split-section,
  .business-band,
  .recruit-band,
  .area-price,
  .contact-cta,
  .legal-page,
  .page-hero {
    padding: 68px 20px;
  }

  .page-hero:not(.recruit) {
    min-height: 340px;
  }

  .page-hero:not(.recruit)::after {
    height: 160px;
    opacity: 0.55;
    right: -46px;
    top: 70px;
    width: 190px;
  }

  .split-section,
  .business-band,
  .recruit-band,
  .page-hero,
  .service-detail,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: clamp(36px, 13vw, 50px);
  }

  .recruit-band .section-title h2,
  .page-hero.recruit h1 {
    font-size: clamp(32px, 10vw, 42px);
    line-height: 1.2;
  }

  .photo-frame,
  .photo-frame.tall {
    min-height: 300px;
  }

  .service-grid.core,
  .service-grid.expansion,
  .strength-grid,
  .achievement-grid,
  .faq-columns,
  .dual-cta,
  .large-checks,
  .flow-list,
  .job-grid,
  .voice-grid,
  .contact-choice,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .business-band,
  .area-price {
    padding-left: 20px;
    padding-right: 20px;
  }

  .achievement-body dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .flow-step {
    min-height: auto;
  }

  .timeline div {
    gap: 8px;
    grid-template-columns: 82px 1fr;
    padding: 14px;
  }

  .profile-table,
  .profile-table tbody,
  .profile-table tr,
  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
  }

  .profile-table th {
    border-bottom: 0;
  }

  .line-entry-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .line-entry-hero {
    min-height: 360px;
    padding: 58px 20px;
  }

  .line-entry-hero::after {
    height: 220px;
    opacity: 0.45;
    right: -76px;
    top: 56px;
    width: 260px;
  }

  .line-entry-hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .line-entry-hero h1 span {
    white-space: normal;
  }

  .contact-hero {
    min-height: 340px;
    padding: 58px 20px;
  }

  .contact-hero::after {
    height: 160px;
    opacity: 0.55;
    right: -46px;
    top: 70px;
    width: 190px;
  }

  .contact-hero h1 {
    font-size: clamp(44px, 15vw, 66px);
  }

  .line-qr img {
    width: min(100%, 320px);
  }

  .service-detail:nth-child(even) .photo-frame {
    order: 0;
  }

  .site-footer nav {
    grid-template-columns: 1fr;
  }

  .mobile-fixed-cta {
    background: rgba(247, 248, 245, 0.92);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
    left: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 40;
  }

  .mobile-fixed-cta.single {
    grid-template-columns: 1fr;
  }

  .mobile-fixed-cta .cta-button {
    font-size: 13px;
    min-height: 48px;
    padding: 0 10px;
  }
}

/* Redesign mockup overrides: calmer corporate polish while keeping the existing Alchemist identity. */
:root {
  --bg: #fbfaf7;
  --ink: #111820;
  --muted: #5f6b75;
  --orange: #f15a1a;
  --charcoal: #20242c;
}

body {
  background:
    linear-gradient(90deg, rgba(240, 90, 26, 0.028) 1px, transparent 1px) 0 0 / 112px 112px,
    var(--bg);
}

.site-header {
  box-shadow: 0 10px 28px rgba(17, 24, 32, 0.04);
}

.brand-logo {
  background: transparent;
  padding: 0;
}

.home-hero {
  align-items: center;
  min-height: min(820px, calc(100svh - var(--header-height)));
  padding: 72px clamp(22px, 7vw, 112px);
}

.hero-bg {
  background:
    radial-gradient(circle at 20% 32%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #d85421 0%, #f05a1a 46%, #ff6a22 100%);
}

.hero-bg::before {
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(255, 255, 255, 0.22) 10% 10.8%, transparent 10.8% 29%, rgba(255, 255, 255, 0.18) 29% 29.8%, transparent 29.8%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.10) 0 2px, transparent 2px 42px);
  bottom: 0;
  height: 100%;
  left: 45%;
  opacity: 0.45;
  transform: skewX(-8deg);
  width: 55%;
}

.hero-bg::after {
  background:
    linear-gradient(90deg, rgba(240, 90, 26, 0.88) 0%, rgba(240, 90, 26, 0.62) 22%, rgba(240, 90, 26, 0.08) 44%, rgba(240, 90, 26, 0.00) 68%),
    url("assets/images/hero-field-photo-v2.png") center right / cover no-repeat;
  box-shadow: none;
  height: 100%;
  opacity: 0.98;
  right: 0;
  top: 0;
  transform: none;
  width: min(68vw, 1100px);
}

.hero-copy {
  max-width: 760px;
  text-shadow: 0 18px 46px rgba(45, 16, 0, 0.28);
}

.hero-copy h1,
.page-hero h1,
.section-title h2 {
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow) {
  max-width: 720px;
}

.hero-actions .cta-button,
.business-band .button-row .cta-button,
.dual-cta .cta-button {
  min-width: 260px;
}

.cta-button.business,
.cta-button.recruit {
  border-color: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 38px rgba(17, 24, 32, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.section,
.split-section,
.business-band,
.recruit-band,
.area-price,
.contact-cta,
.legal-page {
  padding-bottom: 104px;
  padding-top: 104px;
}

.split-section {
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
}

.section-title {
  max-width: 960px;
}

.section-title h2 {
  line-height: 1.08;
}

.section-title p,
.split-section p,
.business-band p,
.recruit-band p,
.area-price p,
.legal-page p,
.service-card p,
.job-card p,
.voice-card p,
.service-detail p {
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.service-grid.core {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.strength-card,
.job-card,
.voice-card,
.achievement-card,
.contact-choice a,
.contact-form,
.large-checks li,
.flow-step,
.faq-item,
.profile-table,
.access-card {
  box-shadow: 0 14px 40px rgba(17, 24, 32, 0.035);
}

.service-card {
  min-height: 275px;
}

.service-card h3,
.job-card h3,
.voice-card h3 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.business-band {
  background:
    linear-gradient(135deg, rgba(21, 24, 31, 0.98), rgba(42, 43, 54, 0.96)),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 88px 88px;
}

.business-band .photo-frame,
.recruit-band .photo-frame,
.page-hero .photo-frame {
  box-shadow: 28px 28px 0 rgba(240, 90, 26, 0.18);
}

.recruit-band {
  background:
    linear-gradient(135deg, #fff0e7 0%, #ffffff 72%);
}

.page-hero {
  overflow: hidden;
}

.page-hero.recruit {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
}

.page-hero.recruit h1 span {
  white-space: normal;
}

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

.job-card {
  padding: 26px 24px;
}

.job-card p {
  font-size: 15px;
}

.voice-card {
  padding: 36px;
}

.voice-avatar {
  height: 86px;
  width: 86px;
}

.service-detail {
  gap: clamp(34px, 5vw, 70px);
  grid-template-columns: minmax(330px, 0.86fr) minmax(0, 1.14fr);
  padding: 18px 0;
}

.service-detail h2 {
  line-height: 1.08;
}

.contact-form button::after {
  content: "（確認用モックアップ）";
  font-size: 12px;
  font-weight: 700;
  opacity: 0.72;
}

@media (max-width: 1180px) {
  .service-grid.core,
  .job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-hero {
    min-height: calc(86svh - var(--header-height));
    padding: 34px 20px;
  }

  .hero-bg::after {
    background:
      linear-gradient(180deg, rgba(240, 90, 26, 0.92) 0%, rgba(240, 90, 26, 0.72) 42%, rgba(240, 90, 26, 0.38) 100%),
      url("assets/images/hero-field-photo-v2.png") center right / cover no-repeat;
    bottom: 0;
    height: 100%;
    opacity: 0.34;
    right: -38vw;
    top: 0;
    width: 140vw;
  }

  .hero-copy h1 span,
  .hero-copy p span {
    white-space: normal;
  }

  .section,
  .split-section,
  .business-band,
  .recruit-band,
  .area-price,
  .contact-cta,
  .legal-page,
  .page-hero {
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .service-grid.core,
  .job-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .business-band .photo-frame,
  .recruit-band .photo-frame,
  .page-hero .photo-frame {
    box-shadow: 12px 12px 0 rgba(240, 90, 26, 0.16);
  }
}

.recruit-band .cta-button.recruit {
  box-shadow: none;
}

/* Responsive stability patch 2026-07-18
   Mobile/tablet/desktop guardrails: prevent clipped Japanese text, oversized headings, and narrow multi-column cards. */
html,
body {
  width: 100%;
  overflow-x: clip;
}

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

main,
section,
article,
div,
header,
footer,
nav,
figure,
figcaption,
ul,
ol,
li,
dl,
dt,
dd,
p,
h1,
h2,
h3,
a,
span {
  min-width: 0;
}

h1,
h2,
h3,
p,
li,
dd,
dt,
.cta-button,
.tag,
.badge-row span,
.pill-grid span {
  overflow-wrap: break-word;
  word-break: normal;
  line-break: strict;
}

.home-hero h1,
.page-hero h1,
.section-title h2,
.service-detail h2,
.contact-hero h1,
.line-entry-hero h1,
.line-entry-card h2 {
  text-wrap: balance;
  max-width: 100%;
}

.home-hero h1,
.page-hero h1 {
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.08;
}

.section-title h2 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.16;
}

.business-band .section-title h2 {
  font-size: clamp(36px, 4.2vw, 64px);
}

.page-hero.recruit h1,
.recruit-band .section-title h2 {
  font-size: clamp(42px, 4.4vw, 68px);
}

.service-detail h2 {
  font-size: clamp(34px, 3.8vw, 54px);
}

.contact-hero h1,
.line-entry-hero h1 {
  font-size: clamp(46px, 6vw, 86px);
}

.cta-button {
  max-width: 100%;
  white-space: normal;
}

.cta-button span {
  line-height: 1.25;
}

@media (max-width: 1180px) {
  .page-hero.recruit,
  .business-band,
  .recruit-band,
  .split-section,
  .service-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero.recruit .photo-frame,
  .business-band .photo-frame,
  .recruit-band .photo-frame,
  .split-section .photo-frame,
  .service-detail .photo-frame {
    max-width: 760px;
    width: 100%;
  }

  .page-hero.recruit .photo-frame,
  .recruit-band .photo-frame {
    order: 2;
  }

  .job-grid,
  .service-grid.core,
  .strength-grid,
  .achievement-grid,
  .voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section,
  .split-section,
  .business-band,
  .recruit-band,
  .area-price,
  .contact-cta,
  .legal-page,
  .page-hero,
  .contact-hero,
  .line-entry-hero {
    padding-left: clamp(24px, 5vw, 70px);
    padding-right: clamp(24px, 5vw, 70px);
  }
}

@media (max-width: 900px) {
  .home-hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .home-hero h1,
  .page-hero h1,
  .page-hero.recruit h1 {
    font-size: clamp(38px, 8.2vw, 58px);
    line-height: 1.14;
  }

  .section-title h2,
  .business-band .section-title h2,
  .recruit-band .section-title h2,
  .service-detail h2 {
    font-size: clamp(32px, 6.5vw, 48px);
    line-height: 1.18;
  }

  .contact-hero h1,
  .line-entry-hero h1 {
    font-size: clamp(40px, 8vw, 58px);
  }

  .page-hero,
  .contact-hero,
  .line-entry-hero {
    min-height: auto;
    padding-top: 64px;
    padding-bottom: 72px;
  }

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

  .profile-table th,
  .profile-table td {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 78px;
  }

  .section,
  .split-section,
  .business-band,
  .recruit-band,
  .area-price,
  .contact-cta,
  .legal-page,
  .page-hero,
  .contact-hero,
  .line-entry-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .home-hero {
    min-height: auto;
    padding: 42px 18px 54px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .home-hero h1,
  .page-hero h1,
  .page-hero.recruit h1 {
    font-size: clamp(34px, 9.8vw, 46px);
    line-height: 1.16;
  }

  .section-title h2,
  .business-band .section-title h2,
  .recruit-band .section-title h2,
  .service-detail h2 {
    font-size: clamp(30px, 8vw, 40px);
    line-height: 1.22;
  }

  .contact-hero h1,
  .line-entry-hero h1,
  .line-entry-card h2 {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.18;
  }

  .home-hero p:not(.eyebrow),
  .page-hero > div > p:not(.eyebrow),
  .section-title p,
  .service-detail p,
  .contact-hero p:not(.eyebrow),
  .line-entry-hero p:not(.eyebrow),
  .line-entry-card p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.8;
  }

  .service-grid.core,
  .service-grid.expansion,
  .strength-grid,
  .achievement-grid,
  .faq-columns,
  .dual-cta,
  .large-checks,
  .flow-list,
  .job-grid,
  .voice-grid,
  .contact-choice,
  .form-grid,
  .site-footer,
  .site-footer nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card,
  .strength-card,
  .job-card,
  .voice-card,
  .achievement-card,
  .dual-cta article,
  .contact-choice > div,
  .line-entry-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .achievement-body h3 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.32;
  }

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

  .photo-frame,
  .photo-frame.tall {
    min-height: 220px;
  }

  .hero-actions,
  .button-row {
    gap: 12px;
  }

  .cta-button {
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    width: 100%;
  }

  .mobile-fixed-cta .cta-button {
    min-height: 46px;
    padding: 0 8px;
  }

  .mobile-fixed-cta .cta-button span {
    font-size: 12px;
    line-height: 1.2;
  }

  .line-steps li {
    align-items: flex-start;
    line-height: 1.5;
  }
}

@media (max-width: 390px) {
  .home-hero h1,
  .page-hero h1,
  .page-hero.recruit h1 {
    font-size: clamp(30px, 9vw, 36px);
  }

  .section-title h2,
  .business-band .section-title h2,
  .recruit-band .section-title h2,
  .service-detail h2,
  .contact-hero h1,
  .line-entry-hero h1,
  .line-entry-card h2 {
    font-size: clamp(28px, 8.2vw, 34px);
  }

  .brand strong {
    font-size: 12px;
  }

  .mobile-fixed-cta {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* Japanese readability patch 2026-08-04
   Wider cards and gentler line wrapping so words do not split awkwardly. */
.service-grid,
.job-grid,
.voice-grid,
.strength-grid,
.achievement-grid {
  align-items: stretch;
}

.service-grid.core {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.service-card,
.job-card,
.voice-card,
.strength-card,
.achievement-card {
  min-width: 0;
}

.service-card {
  padding: clamp(26px, 3vw, 38px);
}

.service-card h3,
.job-card h3,
.voice-card h3,
.strength-card h3,
.achievement-body h3 {
  overflow-wrap: normal;
  word-break: keep-all;
  line-break: strict;
}

.service-card p,
.job-card p,
.voice-card p,
.strength-card p,
.dual-cta p,
.achievement-body p,
.service-detail p,
.page-hero p,
.section-title p,
.check-list li,
.large-checks li,
.line-steps li {
  overflow-wrap: normal;
  word-break: keep-all;
  line-break: strict;
  text-wrap: pretty;
}

.service-card p {
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.95;
}

@media (min-width: 1280px) {
  .service-grid.core {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
  }
}

@media (max-width: 1279px) {
  .service-grid.core,
  .strength-grid,
  .job-grid,
  .voice-grid {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
}

@media (max-width: 760px) {
  .service-grid.core,
  .service-grid.expansion,
  .strength-grid,
  .job-grid,
  .voice-grid,
  .achievement-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card p,
  .job-card p,
  .voice-card p,
  .strength-card p,
  .dual-cta p,
  .achievement-body p,
  .service-detail p,
  .page-hero p,
  .section-title p,
  .check-list li,
  .large-checks li,
  .line-steps li {
    word-break: normal;
    overflow-wrap: anywhere;
  }

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

/* Mobile achievement card fix 2026-08-04 */
.achievement-grid,
.achievement-card,
.achievement-body {
  min-width: 0;
  max-width: 100%;
}

.achievement-card {
  overflow: hidden;
}

.achievement-body h3 {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
  text-wrap: pretty;
}

@media (max-width: 760px) {
  .achievement-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px;
  }

  .achievement-card {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .achievement-card .photo-frame,
  .achievement-card .photo-frame.work {
    min-height: 190px;
    width: 100%;
  }

  .achievement-body {
    padding: 24px 20px 26px;
  }

  .achievement-body .tag {
    display: inline-flex;
    max-width: 100%;
    white-space: normal;
    line-height: 1.35;
    font-size: 14px;
    padding: 12px 16px;
  }

  .achievement-card .achievement-body h3 {
    font-size: clamp(24px, 6.2vw, 30px) !important;
    line-height: 1.34 !important;
    letter-spacing: 0 !important;
    margin: 18px 0 20px !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
  }

  .achievement-body dl,
  .achievement-body dl div {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .achievement-body dl {
    gap: 12px;
  }

  .achievement-body dl div {
    gap: 4px;
  }

  .achievement-body dd,
  .achievement-body p {
    font-size: 16px;
    line-height: 1.85;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .achievement-body strong {
    display: inline-block;
    margin-right: 8px;
  }

  .mobile-fixed-cta {
    z-index: 1000;
  }
}

@media (max-width: 390px) {
  .achievement-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .achievement-card .achievement-body h3 {
    font-size: clamp(22px, 6vw, 27px) !important;
  }
}
