/* =========================================
   DICE Co., Ltd. — Website Styles
   Color Palette:
   --dark:      #7A2D3F  (deep burgundy — dark bg)
   --dark-mid:  #8C3550  (slightly lighter burgundy)
   --red:       #C41230  (brand red / accent)
   --red-light: #e03350
   --off-white: #F8F7F4
   --cream:     #F0EDEA
   --soft-black:#2D2D2D
   ========================================= */

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

:root {
  --navy: #7A2D3F;
  --navy-mid: #8C3550;
  --gold: #C41230;
  --gold-light: #e03350;
  --off-white: #F8F7F4;
  --cream: #F0EDEA;
  --soft-black: #2D2D2D;
  --text-muted: #888;
  --border: rgba(60,20,35,0.15);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-jp: 'Noto Serif JP', serif;
  --font-body: 'Noto Sans JP', sans-serif;

  --container: 1100px;
  --header-h: 64px;
  --radius: 2px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--soft-black);
  background: var(--off-white);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ========== UTILITY ========== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-jp);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--soft-black);
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.section-header {
  margin-bottom: 2rem;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2.25rem;
  background: transparent;
  color: var(--off-white);
  border: 1.5px solid rgba(248,247,244,0.6);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  margin-top: 2rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: rgba(248,247,244,0.12);
  border-color: var(--off-white);
  transform: translateY(-1px);
}

/* btn-primary on light bg (inside light sections) */
.services .btn-primary,
.news-section .btn-primary,
.page-body .btn-primary,
.sidebar-cta .btn-primary {
  color: var(--navy);
  border-color: var(--navy);
}

.services .btn-primary:hover,
.news-section .btn-primary:hover,
.page-body .btn-primary:hover,
.sidebar-cta .btn-primary:hover {
  background: var(--navy);
  color: var(--off-white);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1.5px solid var(--soft-black);
  color: var(--soft-black);
  font-family: var(--font-body);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  margin-top: 1.5rem;
  background: transparent;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--soft-black);
  color: var(--off-white);
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(248,247,244,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(60,20,35,0.12);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  /* 背景透明・赤ロゴのため、明るいヘッダー上ではそのまま表示 */
}

.logo-sub {
  font-family: var(--font-jp);
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-weight: 300;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--soft-black);
  opacity: 1;
  transition: opacity 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  opacity: 1;
  color: var(--soft-black);
}

.site-nav a.active {
  border-bottom: 1.5px solid var(--gold);
  padding-bottom: 2px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--soft-black);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .header-inner { padding: 0 1.25rem; }
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--off-white);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .site-nav.open {
    max-height: 300px;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
  }

  .site-nav li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
  }

  .site-nav li:last-child a { border-bottom: none; }
}

/* ========== HERO ========== */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--header-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--navy);
  z-index: 0;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(196,18,48,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(196,18,48,0.07) 0%, transparent 60%);
}

.hero-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}

.h-line {
  height: 1px;
  background: rgba(248,247,244,0.04);
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 4rem 2rem;
  animation: fadeUp 0.9s ease both;
}

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

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: rgba(248,247,244,0.70);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.hero-title-jp {
  font-family: var(--font-jp);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--off-white);
  letter-spacing: 0.05em;
}

.hero-title-jp:first-child {
  color: rgba(248,247,244,0.75);
}

.hero-lead {
  font-family: var(--font-jp);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(248,247,244,0.85);
  font-weight: 300;
  line-height: 1.9;
  max-width: 720px;
  letter-spacing: 0.04em;
}

.hero-deco {
  position: absolute;
  right: 3rem;
  bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.deco-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(196,18,48,0.4);
}

.deco-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(196,18,48,0.35), transparent);
}

@media (max-width: 768px) {
  .hero-content { padding: 3rem 1.25rem; }
  .hero-deco { display: none; }
}

/* ========== SERVICES ========== */
.services {
  padding: 7rem 0;
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .services { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  position: relative;
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 32px rgba(60,20,35,0.10);
  transform: translateY(-2px);
}

.service-card--sub {
  background: #fff;
}

.service-card--sub::before {
  content: 'Related Service';
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.service-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  color: var(--soft-black);
  opacity: 0.35;
  margin-top: 2px;
}

.service-card-icon svg {
  width: 100%;
  height: 100%;
}

.service-card-body {
  flex: 1;
  min-width: 0;
}

.service-card-body h3 {
  font-family: var(--font-jp);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--soft-black);
  margin-bottom: 0.6rem;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

.service-sub {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text-muted);
  display: inline-block;
  margin-left: 0.3rem;
}

.service-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid #ccc;
  padding: 1px 8px;
  border-radius: 2px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.service-card-body p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.75;
}

.service-card-arrow {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 2px;
  flex-shrink: 0;
  transform: translateX(-4px);
}

.service-card:hover .service-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ========== ABOUT TEASER ========== */
.about-teaser {
  background: var(--navy);
  padding: 7rem 0;
}

.about-teaser-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-teaser { padding: 4rem 0; }
  .about-teaser-inner { grid-template-columns: 1fr; gap: 3rem; }
}

.about-teaser-text .section-label {
  color: rgba(248,247,244,0.65);
}

.about-teaser-text h2 {
  font-family: var(--font-jp);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 300;
  color: var(--off-white);
  line-height: 1.5;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.about-teaser-text p {
  font-size: 0.9rem;
  color: rgba(248,247,244,0.82);
  line-height: 1.9;
  letter-spacing: 0.03em;
}

.about-teaser-text .btn-secondary {
  border-color: rgba(248,247,244,0.4);
  color: var(--off-white);
}

.about-teaser-text .btn-secondary:hover {
  background: rgba(248,247,244,0.1);
  border-color: var(--off-white);
  color: var(--off-white);
}

.about-visual-block {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.visual-stat {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(196,18,48,0.3);
  padding-left: 1.5rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300;
  color: rgba(248,247,244,0.85);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-plus {
  font-size: 2rem;
  vertical-align: super;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: rgba(248,247,244,0.65);
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.stat-label small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.7rem;
}

/* ========== NEWS ========== */
.news-section {
  padding: 7rem 0;
  background: var(--off-white);
}

@media (max-width: 768px) {
  .news-section { padding: 4rem 0; }
}

.news-list {
  list-style: none;
  border-top: 1px solid var(--border);
  margin-bottom: 2rem;
}

.news-list li {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.news-list time {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  flex-shrink: 0;
  width: 90px;
}

.news-list a {
  color: var(--soft-black);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.news-list a:hover {
  color: var(--gold);
  text-decoration: underline;
}

.news-list span {
  font-size: 0.9rem;
  color: #666;
  letter-spacing: 0.03em;
}

.notice-box {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1.1rem 1.5rem;
  border-radius: 0 2px 2px 0;
}

.notice-box p {
  font-size: 0.84rem;
  line-height: 1.8;
  color: #555;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .news-list li { flex-direction: column; gap: 0.3rem; }
  .news-list time { width: auto; }
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy);
  padding: 3rem 0;
  border-top: 1px solid rgba(196,18,48,0.15);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo { justify-content: center; display: flex; }
  .footer-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
  .footer-related { text-align: center; }
  .footer-copy { text-align: center; grid-column: 1; }
}

.footer-logo-img {
  height: 44px;
  width: auto;
  /* バーガンディ背景上ではロゴを白抜きに */
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.72);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: rgba(248,247,244,1.0);
}

.footer-related {
  font-size: 0.75rem;
  color: rgba(248,247,244,0.60);
  letter-spacing: 0.05em;
}

.footer-related a {
  color: rgba(248,247,244,0.78);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  margin-left: 0.3rem;
}

.footer-related a:hover {
  color: rgba(248,247,244,0.85);
}

.footer-copy {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(248,247,244,0.82);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(196,18,48,0.12);
}

/* ========== PAGE HERO ========== */
.page-hero {
  background: var(--navy);
  padding: 9rem 0 5rem;
}

.page-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.page-hero-inner .section-label {
  color: rgba(248,247,244,0.68);
}

.page-hero h1 {
  font-family: var(--font-jp);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--off-white);
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 0.9rem;
  color: rgba(248,247,244,0.80);
  line-height: 1.9;
}

@media (max-width: 768px) {
  .page-hero { padding: 7rem 0 3.5rem; }
  .page-hero-inner { padding: 0 1.25rem; }
}

.page-body {
  padding: 6rem 0;
}

@media (max-width: 768px) {
  .page-body { padding: 3.5rem 0; }
}

/* ========== BREADCRUMB ========== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: rgba(248,247,244,0.70);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: rgba(248,247,244,0.80);
  text-decoration: none;
}

.breadcrumb a:hover { color: rgba(248,247,244,1.0); }
.breadcrumb span { color: rgba(248,247,244,0.45); }

/* ========== WORKS PAGE ========== */
.works-confidential {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3.5rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.works-confidential .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  opacity: 0.25;
  color: var(--soft-black);
}

.works-confidential h2 {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--soft-black);
  margin-bottom: 1rem;
}

.works-confidential p {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.9;
}

.works-genres h3 {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 500;
  color: var(--soft-black);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .genre-grid { grid-template-columns: repeat(2, 1fr); }
}

.genre-item {
  background: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.genre-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.genre-item span {
  font-size: 0.875rem;
  color: var(--soft-black);
  letter-spacing: 0.03em;
}

/* ========== ABOUT PAGE ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.about-table {
  width: 100%;
  border-collapse: collapse;
}

.about-table tr {
  border-bottom: 1px solid var(--border);
}

.about-table th,
.about-table td {
  padding: 1rem 0;
  font-size: 0.875rem;
  vertical-align: top;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

.about-table th {
  width: 35%;
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-jp);
  padding-right: 1rem;
}

.about-table td {
  color: var(--soft-black);
}

.map-wrap {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 260px;
  background: #e8e8e8;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.map-label {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--soft-black);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.map-label::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

/* ========== CONTACT PAGE ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.contact-info h3 {
  font-family: var(--font-jp);
  font-size: 1rem;
  font-weight: 500;
  color: var(--soft-black);
  margin-bottom: 0.5rem;
}

.contact-info p {
  font-size: 0.875rem;
  color: #777;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.contact-info a {
  color: var(--soft-black);
  text-decoration: none;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--soft-black);
  margin-bottom: 0.5rem;
  font-family: var(--font-jp);
}

.contact-form .required {
  display: inline-block;
  font-size: 0.65rem;
  background: var(--gold);
  color: #fff;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--soft-black);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,18,48,0.08);
}

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

.contact-form .form-submit {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0;
}

/* フォーム内ボタン：ライト背景なので専用スタイル */
.contact-form .btn-primary {
  margin-top: 0;
  color: var(--soft-black);
  border-color: var(--soft-black);
}

.contact-form .btn-primary:hover {
  background: var(--soft-black);
  color: var(--off-white);
}

.contact-form .btn-secondary {
  border-color: #ccc;
  color: #888;
  margin-top: 0;
}

.contact-form .btn-secondary:hover {
  background: #eee;
  color: var(--soft-black);
  border-color: #bbb;
}

/* Radio buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.radio-label {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--soft-black);
  cursor: pointer;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.contact-form .radio-label input[type="radio"],
.radio-label input[type="radio"] {
  width: 1rem !important;
  height: 1rem !important;
  flex-shrink: 0;
  margin-top: 3px;
  padding: 0 !important;
  background: #fff !important;
  border: 1px solid #aaa !important;
  box-shadow: none !important;
  appearance: auto !important;
  -webkit-appearance: radio !important;
  accent-color: var(--gold);
  cursor: pointer;
}

/* ========== SERVICE DETAIL PAGES ========== */
.service-detail-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .service-detail-body { grid-template-columns: 1fr; }
}

.service-content h2 {
  font-family: var(--font-jp);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--soft-black);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  letter-spacing: 0.04em;
}

.service-content h2:first-child { margin-top: 0; }

.service-content p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.service-content ul {
  list-style: none;
  margin: 0 0 1.5rem;
}

.service-content ul li {
  font-size: 0.875rem;
  color: #555;
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.7;
}

.service-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.9em;
  width: 5px;
  height: 1px;
  background: var(--gold);
}

.service-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.sidebar-cta {
  background: transparent;
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  text-align: center;
}

.sidebar-cta h3 {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--soft-black);
  margin-bottom: 0.75rem;
}

.sidebar-cta p {
  font-size: 0.8rem;
  color: #777;
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.sidebar-cta .btn-primary {
  margin-top: 0;
  display: block;
  text-align: center;
  color: var(--soft-black);
  border-color: var(--soft-black);
}

.sidebar-cta .btn-primary:hover {
  background: var(--soft-black);
  border-color: var(--soft-black);
  color: var(--off-white);
}

/* ========== 99PRINT PAGE ========== */
.print-highlight {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 2.5rem 3rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.print-highlight::before {
  content: '99';
  position: absolute;
  right: 2rem;
  bottom: -1.5rem;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 600;
  color: rgba(196,18,48,0.07);
  letter-spacing: -0.05em;
  line-height: 1;
  pointer-events: none;
}

.print-highlight h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  color: var(--soft-black);
  margin-bottom: 0.75rem;
}

.print-highlight p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.9;
  max-width: 500px;
}

.print-highlight .btn-primary {
  position: relative;
  z-index: 1;
  color: var(--soft-black);
  border-color: var(--soft-black);
  margin-top: 1.5rem;
}

.print-highlight .btn-primary:hover {
  background: var(--soft-black);
  color: var(--off-white);
  border-color: var(--soft-black);
}

/* ========== LOGO MOBILE ========== */
@media (max-width: 768px) {
  .logo-img { height: 28px; }
  .logo-sub { display: none; }
}

/* ========== HERO内ボタン上書き ========== */
.hero .btn-primary {
  color: var(--off-white);
  border-color: rgba(248,247,244,0.55);
  background: transparent;
  margin-top: 2rem;
}

.hero .btn-primary:hover {
  background: rgba(248,247,244,0.1);
  border-color: var(--off-white);
  color: var(--off-white);
}

/* ========== SSL SEAL ========== */
.ssl-seal-wrap {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-end;
}

.ssl-seal-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 420px;
}

.ssl-seal-text {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

@media (max-width: 600px) {
  .ssl-seal-wrap { justify-content: center; }
  .ssl-seal-inner { flex-direction: column; text-align: center; max-width: 100%; }
}

/* ========== WORKS ENVIRONMENT ========== */
.works-env-lead {
  font-size: 0.9rem;
  color: #777;
  line-height: 1.9;
  margin-bottom: 2.5rem;
  letter-spacing: 0.03em;
}

.env-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .env-grid { grid-template-columns: 1fr; gap: 1rem; }
}

.env-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.env-card-icon {
  width: 44px;
  height: 44px;
  color: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

.env-card-icon svg {
  width: 100%;
  height: 100%;
}

.env-card-body h3 {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--soft-black);
  margin-bottom: 0.6rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.env-card-body p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.85;
  letter-spacing: 0.02em;
}
