:root {
  --color-text: #1a1a1a;
  --color-muted: #666;
  --color-accent: #b8533f;
  --color-accent-soft: #fbeee8;
  --color-bg: #ffffff;
  --color-border: #e5e5e5;
  --max-width: 1200px;
  --header-height: 104px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 75px;
  width: auto;
  display: block;
}

.primary-nav ul {
  display: flex;
  gap: 36px;
}

.primary-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  transition: color 0.2s ease;
}

.primary-nav a:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
}

.nav-toggle-bars span {
  display: block;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text);
  line-height: 1;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  width: 100%;
  height: clamp(460px, 58vw, 640px);
  overflow: hidden;
  isolation: isolate;
  background: #f8f8f4;
}

/* 周囲のイラスト */
.hero-illusts {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.illust {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(70px, 8vw, 124px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(var(--r));
  opacity: 0;
  animation: illustIn 0.8s ease-out var(--d) forwards, illustFloat 7s ease-in-out var(--d) infinite;
  pointer-events: auto;
  transition: transform 0.35s ease, filter 0.35s ease;
}

/* キャッチコピーの近くに置く小さめのアクセントイラスト */
.illust-near {
  width: clamp(48px, 5vw, 80px);
}

.illust svg {
  width: 100%;
  height: 100%;
  display: block;
}

.illust:hover {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.12);
  filter: drop-shadow(0 8px 18px rgba(40, 60, 60, 0.18));
  z-index: 3;
}

@keyframes illustIn {
  from { opacity: 0; transform: translate(-50%, -40%) rotate(var(--r)); }
  to   { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)); }
}

@keyframes illustFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}

/* hero copy（中央配置） */
.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #1a1a1a;
  pointer-events: none;
}

.hero-copy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 720px;
  padding: 0 24px;
}

.hero-copy-en {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(11px, 1vw, 14px);
  letter-spacing: 0.35em;
  font-weight: 700;
  color: var(--color-accent);
  background: #fff;
  border: 1.5px solid var(--color-accent);
  padding: 6px 16px;
  border-radius: 999px;
  margin: 0 0 28px;
  opacity: 0;
  transform: translateY(12px);
  animation:
    heroFadeIn 0.9s ease-out 0.1s forwards,
    badgePulse 4s ease-in-out 1.8s infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-2px) scale(1.025); }
}

.hero-copy-en span {
  color: #2a1410;
  opacity: 0.4;
}

.hero-copy-main {
  font-size: clamp(28px, 5.6vw, 64px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0 0 24px;
}

.hero-copy-main .line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation:
    heroLineIn 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards,
    lineFloat 6s ease-in-out infinite;
}

.hero-copy-main .line-1 { animation-delay: 0.25s, 2.1s; }
.hero-copy-main .line-2 { animation-delay: 0.55s, 4.0s; }

@keyframes lineFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.hero-copy-main em {
  position: relative;
  font-style: normal;
  color: var(--color-accent);
  background-image: linear-gradient(transparent 68%, #ffe0b8 68%, #ffe0b8 92%, transparent 92%);
  display: inline-block;
  animation: emBreathe 3.5s ease-in-out 2.4s infinite;
}

.hero-copy-main .line-2 em {
  animation-delay: 4.0s;
}

@keyframes emBreathe {
  0%, 100% { transform: scale(1);    filter: brightness(1); }
  50%      { transform: scale(1.05); filter: brightness(1.08) saturate(1.1); }
}

.hero-copy-sub {
  font-size: clamp(13px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0;
  color: #444;
  opacity: 0;
  transform: translateY(12px);
  animation:
    heroFadeIn 0.9s ease-out 0.95s forwards,
    subShimmer 5.5s ease-in-out 3s infinite;
}

@keyframes subShimmer {
  0%, 100% { opacity: 1;   transform: translateY(0); }
  50%      { opacity: 0.75; transform: translateY(-1.5px); }
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .illust,
  .hero-copy-en,
  .hero-copy-main .line,
  .hero-copy-main em,
  .hero-copy-sub {
    animation: none;
  }
  .illust {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  }
  .hero-copy-en,
  .hero-copy-main .line,
  .hero-copy-main em,
  .hero-copy-sub {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ===== News / Topics ===== */
.news {
  padding: 80px 24px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 12px;
  margin: 0 0 40px;
}

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

.news-card a {
  display: block;
  background: var(--color-accent);
  border-radius: 16px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.news-card a:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(184, 83, 63, 0.25);
}

.news-card a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.news-card a:hover img {
  transform: scale(1.05);
}

.news-card-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* ===== Page Header (sub pages) ===== */
.page-header {
  padding: 96px 24px 32px;
}

.page-header-en {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--color-accent);
  font-weight: 700;
  margin: 0 0 8px;
}

.page-header-ja {
  font-size: 32px;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.05em;
}

/* ===== About Page ===== */
.about-intro {
  padding: 24px 24px 48px;
  max-width: 880px;
}

.about-intro p {
  font-size: 15px;
  line-height: 2;
  margin: 0 0 16px;
}

.about-intro p:last-child {
  margin-bottom: 0;
}

.about-section {
  padding: 32px 24px;
  max-width: 880px;
}

.about-section p {
  font-size: 15px;
  line-height: 2;
  margin: 0 0 16px;
}

.about-section p:last-child {
  margin-bottom: 0;
}

.mission-quote {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  padding: 16px 0 24px;
  line-height: 1.5;
}

.values-list {
  display: grid;
  gap: 24px;
}

.values-list li {
  padding: 20px 24px;
  border-left: 3px solid var(--color-accent);
  background: var(--color-accent-soft);
}

.values-list h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
}

.values-list p {
  font-size: 14px;
  margin: 0;
  line-height: 1.8;
}

.company-info {
  margin: 0;
}

.company-info > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  margin: 0;
}

.company-info > div:last-child {
  border-bottom: none;
}

.company-info dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

.company-info dd {
  margin: 0;
  font-size: 15px;
}

/* ===== Service Page ===== */
.service-list {
  padding: 32px 24px 64px;
  max-width: 880px;
  display: grid;
  gap: 40px;
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}

.service-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.service-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin: 0;
  line-height: 1;
}

.service-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.service-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 3px 10px;
  border-radius: 3px;
  margin: 0 0 14px;
}

.service-body p {
  font-size: 15px;
  line-height: 2;
  margin: 0 0 12px;
  color: var(--color-text);
}

.service-body p:last-child {
  margin-bottom: 0;
}

.service-body .label {
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.about-section a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ===== Contact Form ===== */
.contact-form-wrap {
  padding: 16px 24px 80px;
  max-width: 720px;
}

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

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.required {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: #e25b5b;
  padding: 2px 8px;
  border-radius: 3px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--color-text);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-row select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23666' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row textarea {
  resize: vertical;
  min-height: 160px;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(184, 83, 63, 0.18);
}

.form-row-check label {
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.form-row-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

.form-submit {
  text-align: center;
  margin-top: 8px;
}

.form-submit button {
  background: var(--color-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: none;
  padding: 16px 56px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  min-width: 240px;
}

.form-submit button:hover {
  background: #9a4334;
}

.form-submit button:active {
  transform: translateY(1px);
}

.form-note {
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.8;
  text-align: center;
  margin: 8px 0 0;
}

/* ===== News Article ===== */
.news-article {
  padding-bottom: 80px;
}

.article-header {
  padding: 96px 24px 24px;
  max-width: 880px;
}

.article-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  margin: 0 0 16px;
  flex-wrap: wrap;
}

.article-date {
  color: var(--color-muted);
  font-weight: 600;
}

.article-category {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
}

.article-title {
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.article-lead {
  font-size: 15px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.8;
}

.article-hero {
  padding: 24px 24px 40px;
  max-width: 1000px;
}

.article-hero img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.article-body {
  padding: 0 24px 48px;
  max-width: 760px;
  font-size: 15px;
  line-height: 2;
}

.article-body p {
  margin: 0 0 24px;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-accent);
  letter-spacing: 0.04em;
}

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
}

.article-list {
  list-style: disc;
  padding-left: 24px;
  margin: 0 0 24px;
}

.article-list li {
  margin-bottom: 8px;
  line-height: 1.8;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 8px 0 32px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-end {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
}

.article-nav {
  padding: 0 24px;
  max-width: 880px;
}

.back-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 12px 24px;
  border-radius: 4px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.back-link:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ===== Footer ===== */
.site-footer {
  padding: 32px 24px;
  text-align: center;
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: 0.1em;
}

/* ===== Responsive (Mobile) ===== */
@media (max-width: 768px) {
  :root {
    --header-height: 88px;
  }

  .container {
    padding: 0 16px;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo img {
    height: 40px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
  }

  .nav-toggle {
    display: flex;
    gap: 4px;
    flex: 0 0 auto;
    margin-left: 12px;
  }

  .nav-toggle-bars {
    width: 25px;
    height: 17px;
  }

  .nav-toggle-bars span {
    height: 2.5px;
  }

  .nav-toggle-label {
    font-size: 10px;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .primary-nav.is-open {
    max-height: 400px;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .primary-nav li {
    border-bottom: 1px solid var(--color-border);
  }
  .primary-nav li:last-child {
    border-bottom: none;
  }

  .primary-nav a {
    display: block;
    padding: 18px 24px;
    font-size: 14px;
  }

  .hero {
    height: clamp(440px, 95vw, 580px);
  }

  .hero-copy-main {
    font-size: clamp(26px, 8vw, 38px);
  }

  .hero-copy-inner {
    padding: 0 16px;
    margin: 0;
  }

  .illust {
    width: clamp(50px, 14vw, 76px);
  }

  /* モバイル時：中央列の内側イラスト（コピーと重なるもの）だけ非表示 */
  .illust-inner {
    display: none;
  }
  /* 上下中央に再配置する内側イラストはモバイルでも表示 */
  .illust-7,
  .illust-8,
  .illust-12,
  .illust-13 {
    display: block;
  }

  /* モバイル用の散布配置（コピーは中央 約30%〜70% にあるので、それ以外に置く） */
  /* エッジ列（左右の縦3点） */
  .illust-1 { --x: 8%;  --y: 20%; }   /* listening 左上 */
  .illust-2 { --x: 6%;  --y: 50%; }   /* laptop    左中 */
  .illust-3 { --x: 8%;  --y: 80%; }   /* camera    左下 */
  .illust-4 { --x: 92%; --y: 20%; }   /* map       右上 */
  .illust-5 { --x: 94%; --y: 50%; }   /* coffee    右中 */
  .illust-6 { --x: 92%; --y: 80%; }   /* people    右下 */
  /* 上下中央付近（コピーの真上 / 真下の帯） */
  .illust-7  { --x: 36%; --y: 8%;  }  /* handshake 上中央左 */
  .illust-8  { --x: 64%; --y: 8%;  }  /* chat      上中央右 */
  .illust-12 { --x: 36%; --y: 92%; }  /* mic       下中央左 */
  .illust-13 { --x: 64%; --y: 92%; }  /* checklist 下中央右 */

  /* キャッチコピー近接のアクセントイラスト：小さめ＋コピーを避ける位置
     HTMLのinline styleが優先されるので !important で強制上書き */
  .illust-near {
    width: clamp(38px, 10vw, 56px);
  }
  .illust-15 { --x: 22% !important; --y: 26% !important; } /* sprout：上左（バッジ脇） */
  .illust-16 { --x: 78% !important; --y: 26% !important; } /* sun：上右（バッジ脇） */
  .illust-17 { --x: 82% !important; --y: 42% !important; } /* gear：右側（青丸上）に移動 */
  .illust-18 { --x: 78% !important; --y: 88% !important; } /* heart：右側（青丸下）に移動 */

  .news {
    padding: 35px 16px 48px;
  }

  .page-header {
    padding: 48px 16px 24px;
  }

  .page-header-ja {
    font-size: 24px;
  }

  .about-intro,
  .about-section {
    padding: 24px 16px;
  }

  .company-info > div {
    grid-template-columns: 100px 1fr;
    padding: 12px 0;
  }

  .company-info dt {
    font-size: 12px;
  }

  .company-info dd {
    font-size: 14px;
  }

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

  .service-item {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .service-num {
    font-size: 22px;
  }

  .service-body h2 {
    font-size: 17px;
  }

  .service-body p {
    font-size: 14px;
  }

  .contact-form-wrap {
    padding: 16px 16px 48px;
  }

  .form-submit button {
    width: 100%;
    min-width: 0;
    padding: 16px 24px;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .news-card-title {
    padding: 18px 10px 8px;
    font-size: 11px;
  }
}
