/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --d-orange:        #ef7521;
  --d-orange-dark:   #c9601a;
  --d-orange-light:  #fdf2eb;
  --d-orange-border: #f5c9a0;
  --d-pink:          #edc5de;
  --d-pink-light:    #fdf5fa;
  --d-blue:          #8fc6e8;
  --d-blue-light:    #eef6fb;
  --d-charcoal:      #373935;
  --d-gray:          #6e6f6c;
  --d-light-gray:    #b0b0ae;
  --d-border:        #e5e5e3;
  --d-surface:       #fbfbf9;
  --d-white:         #ffffff;
  --content-max:     920px;
  --content-pad:     24px;
}

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

body {
  font-family: 'BIZ UDPGothic', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  color: var(--d-charcoal);
  background: var(--d-white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

@font-face {
  font-family: 'BIZ UDPGothic';
  src: url('../font/BIZUDPGothic-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'BIZ UDPGothic';
  src: url('../font/BIZUDPGothic-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.l-wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--content-pad); }

/* ── Skip link ── */
.skip-link {
  position: absolute; top: -40px; left: 0; padding: 6px 12px;
  background: var(--d-orange); color: var(--d-white); font-size: 0.75rem;
  z-index: 9999; border-radius: 0 0 4px 0;
}
.skip-link:focus { top: 0; }

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--d-white);
  border-bottom: 1px solid var(--d-border);
}
.site-header__inner {
  display: flex; align-items: center; gap: 0;
  height: 60px;
}
.site-header__logo {
  font-size: 1.5rem; font-weight: 700; color: var(--d-orange);
  letter-spacing: -0.02em; flex-shrink: 0;
}
.site-header__nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-header__nav a {
  font-size: 0.9375rem; color: var(--d-charcoal);
  transition: color 0.2s;
}
.site-header__nav a:hover { color: var(--d-orange); }
.site-header__cta {
  background: var(--d-orange); color: var(--d-white);
  font-size: 0.875rem; font-weight: 700;
  padding: 8px 18px; border-radius: 4px;
  letter-spacing: 0.04em; white-space: nowrap;
  margin-left: 28px;
  transition: background 0.2s;
}
.site-header__cta:hover { background: var(--d-orange-dark); }

/* Hamburger button (SP) */
.site-header__menu-btn {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
  margin-left: auto;
}
.site-header__menu-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--d-charcoal); border-radius: 1px;
}

/* ── Mobile Drawer ── */
.site-drawer { display: none; position: fixed; inset: 0; z-index: 200; }
.site-drawer.is-open { display: block; }
.site-drawer__overlay {
  position: absolute; inset: 0;
  background: rgba(55,57,53,0.55);
}
.site-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 280px; background: var(--d-white);
  padding: 20px 24px; overflow-y: auto;
}
.site-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.site-drawer__logo {
  font-size: 1.25rem; font-weight: 700; color: var(--d-orange);
}
.site-drawer__close {
  font-size: 0.8125rem; color: var(--d-gray); cursor: pointer;
  background: none; border: none;
}
.site-drawer__nav a {
  display: block; font-size: 0.9375rem; color: var(--d-charcoal);
  font-weight: 500; padding: 14px 0;
  border-bottom: 1px solid var(--d-border);
}
.site-drawer__nav a:last-child { border-bottom: none; }
.site-drawer__contact {
  display: block; margin-top: 24px;
  background: var(--d-orange); color: var(--d-white);
  font-size: 0.875rem; font-weight: 700;
  padding: 12px 20px; border-radius: 4px; text-align: center;
}

/* ================================================================
   HERO (Top page)
   ================================================================ */
.hero { overflow: hidden; }
.hero__inner {
  position: relative;
  min-height: 420px;
  padding-left: max(var(--content-pad), calc((100vw - var(--content-max)) / 2));
  display: flex; align-items: center;
}
.hero__photo {
  position: absolute; inset: 0; z-index: 0;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 10%;
}
.hero__content {
  padding: 48px 52px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 1;
  background: var(--d-white);
  width: fit-content;
}
.hero__kicker {
  font-size: 0.75rem; letter-spacing: 0.15em;
  color: var(--d-orange); font-weight: 700;
  text-transform: uppercase; margin-bottom: 14px;
}
.hero__h1 {
  font-size: 3rem; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.025em; color: var(--d-charcoal);
  margin-bottom: 18px;
}
.hero__rule {
  width: 36px; height: 3px; background: var(--d-orange);
  border-radius: 2px; margin-bottom: 18px;
}
.hero__vision {
  font-size: 0.9375rem; line-height: 2.1; color: var(--d-gray);
}

/* ================================================================
   SECTION COMMON
   ================================================================ */
.section { padding: 64px 0; }
.section--surface { background: var(--d-surface); }

/* Section label — orange pill (distinct from note.jp's monochrome style) */
.section__tag {
  display: block;
  font-size: 1.5rem; font-weight: 700; color: var(--d-charcoal);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

/* ================================================================
   SERVICE CARDS
   ================================================================ */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.svc-card {
  background: var(--d-white);
  border: 1px solid var(--d-border); border-radius: 8px; overflow: hidden;
}

.svc-card__img { width: 100%; height: 220px; object-fit: cover; }
.svc-card__img--contain {
  object-fit: contain; background: var(--d-orange-light); padding: 24px;
}
.svc-card__body { padding: 22px 24px 26px; }
.svc-card__label {
  font-size: 0.75rem; color: var(--d-orange); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
.svc-card__title {
  font-size: 1.125rem; font-weight: 700; color: var(--d-charcoal);
  margin-bottom: 10px; line-height: 1.5;
}
.svc-card__desc {
  font-size: 0.9375rem; line-height: 1.9; color: var(--d-gray); margin-bottom: 16px;
}
.svc-card__achievement {
  border: 1px solid var(--d-border); border-radius: 4px;
  padding: 12px 14px;
}
.svc-card__achievement p {
  font-size: 0.875rem; color: var(--d-gray); margin-bottom: 10px;
}
.svc-card__links { display: flex; gap: 8px; flex-wrap: wrap; }
.svc-card__link {
  font-size: 0.75rem; font-weight: 700; color: var(--d-white);
  background: var(--d-orange);
  padding: 8px 18px; border-radius: 4px;
  letter-spacing: 0.04em; white-space: nowrap;
  transition: background 0.2s;
}
.svc-card__link:hover { background: var(--d-orange-dark); }

/* ================================================================
   ABOUT TABLE
   ================================================================ */
.about-table { width: 100%; border-collapse: collapse; }
.about-table tr { border-bottom: 1px solid var(--d-border); }
.about-table tr:first-child { border-top: 1px solid var(--d-border); }
.about-table th {
  font-size: 0.9375rem; font-weight: 600; color: var(--d-gray);
  text-align: left; padding: 15px 20px 15px 0;
  width: 160px; vertical-align: top; white-space: nowrap;
}
.about-table td {
  font-size: 0.9375rem; color: var(--d-charcoal);
  padding: 15px 0; vertical-align: top; line-height: 1.75;
}
.about-table td img { display: inline-block; height: auto; width: auto; vertical-align: middle; }
.about-table td small { color: var(--d-gray); font-size: 0.75rem; }
.about-security { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.about-security__text { color: var(--d-charcoal); }

/* ================================================================
   CONTACT CTA BLOCK
   ================================================================ */
.contact-cta { background: var(--d-orange); padding: 60px 0; }
.contact-cta__h {
  font-size: 1.25rem; font-weight: 700;
  color: var(--d-white); margin-bottom: 10px;
}
.contact-cta__d {
  font-size: 0.875rem; color: rgba(255,255,255,0.85);
  margin-bottom: 26px; line-height: 1.85;
}
.contact-cta__btn {
  display: inline-block;
  background: var(--d-white); color: var(--d-orange);
  font-size: 0.875rem; font-weight: 700;
  padding: 13px 30px; border-radius: 4px;
  transition: opacity 0.2s;
}
.contact-cta__btn:hover { opacity: 0.88; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer { background: var(--d-charcoal); padding: 36px 0 28px; }
.site-footer__nav {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 20px;
}
.site-footer__nav a {
  font-size: 0.8125rem; color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.site-footer__nav a:hover { color: var(--d-white); }
.site-footer__copy { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }

/* Page-top button */
.pagetop {
  position: fixed; bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  background: var(--d-orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s; z-index: 50; border: none;
}
.pagetop.is-visible { opacity: 1; pointer-events: auto; }
.pagetop svg { fill: var(--d-white); }

/* ================================================================
   BREADCRUMB (sub pages)
   ================================================================ */
.breadcrumb { background: var(--d-surface); border-bottom: 1px solid var(--d-border); }
.breadcrumb__list {
  display: flex; align-items: center; gap: 6px;
  list-style: none;
  font-size: 0.75rem; color: var(--d-gray); padding: 12px 0;
}
.breadcrumb__sep { color: var(--d-border); }
.breadcrumb__current { color: var(--d-charcoal); }

/* ================================================================
   PAGE TITLE (sub pages)
   ================================================================ */
.page-title { padding: 44px 0 36px; border-bottom: 3px solid var(--d-orange); }
.page-title__h1 {
  font-size: 1.75rem; font-weight: 700;
  color: var(--d-charcoal); letter-spacing: -0.015em;
}

/* ================================================================
   PAGE CONTENT (sub pages)
   ================================================================ */
.page-body { padding: 48px 0 72px; }
.page-content { max-width: 720px; }

.page-content p {
  font-size: 0.9375rem; line-height: 2.1; color: var(--d-charcoal); margin-bottom: 20px;
}
.page-content h2 {
  font-size: 1.125rem; font-weight: 700; color: var(--d-charcoal);
  margin: 40px 0 14px; padding-left: 14px;
  border-left: 3px solid var(--d-orange);
}
.page-content h3 {
  font-size: 1rem; font-weight: 700; color: var(--d-charcoal);
  margin: 28px 0 10px;
}
.page-content ol { list-style: none; padding: 0; counter-reset: list-counter; }
.page-content ol > li {
  font-size: 0.9375rem; line-height: 1.9; color: var(--d-charcoal);
  margin-bottom: 10px;
  padding: 12px 16px 12px 42px;
  border: 1px solid var(--d-border); border-radius: 4px;
  counter-increment: list-counter; position: relative;
}
.page-content ol > li::before {
  content: counter(list-counter);
  position: absolute; left: 14px; top: 13px;
  font-weight: 700; color: var(--d-orange); font-size: 0.875rem;
}
.page-content ul { padding-left: 0; list-style: none; }
.page-content ul > li {
  font-size: 0.9375rem; line-height: 1.9; color: var(--d-charcoal);
  margin-bottom: 6px; padding-left: 18px; position: relative;
}
.page-content ul > li::before {
  content: ''; position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px;
  background: var(--d-orange); border-radius: 50%;
}
.page-content ol > li ul { margin-top: 8px; }

.page-content a { color: var(--d-orange); text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { color: var(--d-orange-dark); }

.page-content table {
  width: 100%; border-collapse: collapse;
  font-size: 0.9375rem; margin-bottom: 20px;
}
.page-content table td {
  padding: 10px 14px; border: 1px solid var(--d-border);
  color: var(--d-charcoal); line-height: 1.7;
}
.page-content table td:first-child {
  color: var(--d-gray); font-weight: 600;
  width: 200px; background: var(--d-surface); white-space: nowrap;
}
.break-all { word-break: break-all; }

.page-content .date {
  text-align: right; font-size: 0.75rem; color: var(--d-light-gray);
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--d-border);
}
.page-content .date-block {
  text-align: right; font-size: 0.8125rem; color: var(--d-gray);
  margin-top: 24px; line-height: 1.9;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  :root { --content-pad: 16px; }

  .site-header__nav { display: none; }
  .site-header__cta { display: none; }
  .site-header__menu-btn { display: flex; }

  .hero__inner { position: relative; display: block; min-height: auto; padding-left: 0; padding-top: 80px; }
  .hero__content { padding: 36px 16px 32px; background: none; width: auto; }
  .hero__h1 { font-size: 1.875rem; }
  .hero__photo { position: absolute; top: 0; left: 0; right: 0; height: 80px; overflow: hidden; border-bottom-left-radius: 0; }
  .hero__photo img { width: 100%; height: 100%; object-fit: cover; }
  .section { padding: 44px 0; }
  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-card__img { height: 200px; }
  .about-table th { width: 100px; font-size: 0.9375rem; padding-right: 12px; }
  .about-table td { font-size: 0.9375rem; }
  .contact-cta { padding: 44px 0; }
  .contact-cta__h { font-size: 1.0625rem; }
  .site-footer__nav { gap: 8px 16px; }

  .page-title { padding: 28px 0 22px; }
  .page-title__h1 { font-size: 1.25rem; }
  .page-body { padding: 32px 0 52px; }
  .page-content h2 { margin: 28px 0 10px; }
  .page-content h3 { margin: 20px 0 8px; }
  .page-content ol > li { padding: 10px 12px 10px 36px; }
  .page-content table td:first-child { width: 120px; white-space: normal; }
  .pagetop { bottom: 16px; right: 16px; }
}
