/* Cherry Well — style.css */

:root {
  --bg: #EEF0EA;
  --surface: #FFFFFF;
  --ink: #14231F;
  --muted: #4A5752;
  --line: #CDD2C8;
  --red: #D2261F;
  --red-dark: #A81D18;
  --blue: #1F5FBF;
  --green: #2E8B57;
  --yellow: #F2B705;
  --logo-bg: #F5F5EB;
  --radius: 16px;
  --font-head: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
}

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}
/* 左端は他セクションと揃え、行の長さだけ抑える */
.narrow > * { max-width: 760px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--red-dark); }
.btn-small {
  min-height: 44px;
  padding: 8px 20px;
  font-size: 0.9375rem;
}

/* ヘッダー */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--red);
  text-decoration: none;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-sub { display: none; }
.nav-sub a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 500;
  text-decoration: none;
}
.nav-sub a:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .nav-sub { display: block; }
  .nav-list { gap: 12px; }
}

/* ヒーロー */
.hero { padding-block: 48px 64px; }
.hero-title {
  font-weight: 900;
  font-size: clamp(2rem, 7.4vw, 3.75rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.hero-title span { display: inline-block; }
.hero-lead {
  max-width: 40em;
  font-size: 1.0625rem;
  margin-bottom: 28px;
}
.hero-image {
  width: 100%;
  height: auto;
  margin-top: 40px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 40%;
  border-radius: var(--radius);
  background: #d9ddd3;
}
@media (min-width: 768px) {
  .hero { padding-block: 80px 96px; }
  .hero-image { aspect-ratio: 16 / 9; margin-top: 56px; }
}

/* セクション共通 */
.section { padding-block: 64px; }
.section-alt { background: #E4E7DE; }
.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 28px;
}
@media (min-width: 768px) {
  .section { padding-block: 96px; }
  .section-title { margin-bottom: 36px; }
}

/* 事業内容カード */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) and (max-width: 979px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-media {
  height: 180px;
  background: #d9ddd3;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-media-logo {
  background: var(--logo-bg);
  padding: 14px;
}
.card-media-logo img { object-fit: contain; }
.card-media-route {
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-media-route svg {
  width: 100%;
  height: 100%;
}
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.card-title {
  font-size: 1.1875rem;
  margin-bottom: 12px;
}
.card-link {
  margin-top: auto;
  padding-top: 16px;
}
.card-link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

/* 会社概要 */
.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.company-table th,
.company-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.company-table tr:last-child th,
.company-table tr:last-child td { border-bottom: 0; }
.company-table th {
  width: 11em;
  font-weight: 700;
  background: #F6F7F3;
  white-space: nowrap;
}
@media (max-width: 599px) {
  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td { display: block; width: 100%; }
  .company-table th {
    padding: 14px 18px 2px;
    border-bottom: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.875rem;
  }
  .company-table td { padding: 0 18px 14px; }
  .company-table tr { border-bottom: 1px solid var(--line); }
  .company-table tr:last-child { border-bottom: 0; }
  .company-table td { border-bottom: 0; }
}

/* フォーム */
.req-note { display: inline-block; }
.req {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.7;
  vertical-align: 0.1em;
}
.req-note .req { margin-left: 0; margin-right: 2px; }
.contact-form {
  margin-top: 28px;
  padding: 24px 20px;
  background: var(--surface);
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  .contact-form { padding: 36px 40px; }
}
.field { margin-bottom: 22px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #8A948E;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
}
.field textarea { resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline-offset: 1px;
  border-color: var(--blue);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn-submit { width: 100%; }
@media (min-width: 768px) {
  .btn-submit { width: auto; min-width: 220px; }
}
.form-status { margin: 0 0 12px; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--red-dark); }
.privacy-note {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.privacy-note a {
  display: inline-block;
  padding-block: 10px;
  color: var(--ink);
}

/* フッター */
.site-footer {
  background: var(--ink);
  color: #E6E9E2;
  padding-block: 48px;
  font-size: 0.9375rem;
}
.site-footer a {
  color: #fff;
  display: inline-block;
  padding-block: 10px;
}
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-inner p { margin: 0 0 6px; }
.footer-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.25rem;
  color: #fff;
}
.copyright { margin-top: 16px !important; color: #C3C9C2; }

/* 下層ページ */
.page { padding-block: 56px 80px; }
.page h1 {
  font-size: clamp(1.625rem, 5vw, 2.25rem);
  margin-bottom: 28px;
}
.page h2 {
  font-size: 1.1875rem;
  margin: 36px 0 10px;
}
.page ul { padding-left: 1.4em; margin: 0 0 1em; }
.page .btn { margin-top: 12px; }
