/* =======================
   CSS Custom Properties
   ======================= */

:root {
  --accent:        #C0182A;
  --accent-light:  rgba(192, 24, 42, 0.07);
  --accent-border: rgba(192, 24, 42, 0.22);
  --dark:          #111111;
  --muted:         #666666;
  --border:        #e4e4e4;
  --shadow-sm:     0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md:     0 8px 28px rgba(0, 0, 0, 0.11);
  --shadow-lg:     0 14px 40px rgba(0, 0, 0, 0.14);
  --radius:        14px;
  --radius-sm:     10px;
}

/* =======================
   Base
   ======================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
    "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  color: #111111;
  background-color: #ffffff;
  line-height: 1.7;
  font-size: 15px;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =======================
   Header
   ======================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e0e0e0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo img {
  height: 32px;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.nav a {
  text-transform: uppercase;
}

.nav a:hover {
  text-decoration: none;
  border-bottom: 1px solid #111111;
}

/* Hamburger */
.nav-toggle {
  display: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 7px 0;
  background: #111111;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* =======================
   HERO
   ======================= */

.hero {
  position: relative;
  padding: 120px 0 110px;
  background: #0f0f0f;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid #222;
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 50vh;
  position: relative;
  z-index: 2;
}

.hero::after {
  content: "";
  position: absolute;
  right: -15%;
  top: 0;
  width: 55%;
  height: 100%;
  background: #2a2a2a;
  transform: skewX(-10deg);
  opacity: 0.85;
  z-index: 1;
}

.hero-tagline-en {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bbbbbb;
  margin: 0 0 14px;
}

.hero-title {
  font-size: clamp(26px, 5vw, 48px);
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 18px;
  line-height: 1.45;
}

.hero-lead {
  font-size: 15px;
  line-height: 1.9;
  color: #dddddd;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 80px;
  }
  .hero::after {
    right: -30%;
    width: 75%;
    transform: skewX(-135deg);
    opacity: 0.75;
  }
}

/* =======================
   CTA Buttons
   ======================= */

/* Base (dark — for light backgrounds) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid #111111;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease,
    transform 0.2s ease;
}

.btn-primary:hover {
  text-decoration: none;
  background: #333333;
  color: #ffffff;
}

/* Hero variant — light on dark background */
.btn-primary--hero {
  background: #f5f5f5;
  color: #111111;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.btn-primary--hero:hover {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.55);
}

/* Submit variant — gradient */
.btn-primary--submit {
  background: linear-gradient(135deg, #1a1a1a 0%, #111111 100%);
  border: none;
  box-shadow: var(--shadow-sm);
  padding: 13px 32px;
}

.btn-primary--submit:hover {
  background: linear-gradient(135deg, #2e2e2e 0%, #1a1a1a 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: #ffffff;
}

/* =======================
   Section Base
   ======================= */

.section {
  padding: 72px 0;
}

.section-gray {
  background: #f8f8f8;
}

.section-header {
  margin-bottom: 36px;
}

/* Section label with accent line */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(11px, 0.9vw + 3px, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888888;
  margin: 0 0 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
}

/* =======================
   Concept
   ======================= */

.concept-body {
  max-width: 760px;
}

.concept-lead {
  font-size: 16px;
  line-height: 1.9;
  color: #333333;
  margin: 0 0 24px;
}

.concept-list {
  margin-top: 0;
}

.text-block {
  max-width: 760px;
}

.bullet-list {
  padding-left: 1.5em;
  margin: 0;
}

.bullet-list li {
  margin-bottom: 8px;
}

/* =======================
   Business & Service
   ======================= */

.service-intro {
  font-size: 15px;
  line-height: 1.9;
  color: #444444;
  max-width: 760px;
  margin: 0 0 48px;
}

/* Pillar heading row */
.pillar-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pillar-label--spaced {
  margin-top: 56px;
}

.pillar-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  padding: 3px 10px;
  border-radius: 999px;
}

.pillar-heading {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

/* Service cards grid (5 items, 3-col) */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.service-card__icon {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  stroke-width: 1.8;
  fill: none;
}

.service-card__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
}

.service-card__text {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
}

/* Product block */
.product-block {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}

.product-block__icon-col {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #f0f0f0;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-block__icon {
  width: 22px;
  height: 22px;
  stroke: #444444;
  stroke-width: 1.8;
  fill: none;
}

.product-block__body {
  flex: 1;
}

.product-block__text {
  font-size: 14px;
  color: #444444;
  line-height: 1.9;
  margin: 0 0 16px;
}

.product-block__list {
  padding-left: 1.5em;
  margin: 0;
  font-size: 13px;
  color: #555555;
}

.product-block__list li {
  margin-bottom: 6px;
}

/* =======================
   Why PIC
   ======================= */

.why-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.why-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-card__icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-card__icon {
  width: 20px;
  height: 20px;
  stroke: #444444;
  stroke-width: 1.8;
  fill: none;
}

.why-card__number {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #bbbbbb;
  margin: 0 0 8px;
}

.why-card__title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
}

.why-card__text {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.8;
}

/* Quote block */
.why-quote {
  background: #111111;
  color: #ffffff;
  border-radius: var(--radius);
  padding: 36px 44px;
  position: relative;
  overflow: hidden;
}

/* Decorative large quote mark */
.why-quote::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 28px;
  font-size: 140px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
  font-family: Georgia, serif;
}

.why-quote__eyebrow {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 14px;
}

.why-quote__text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.7;
  margin: 0 0 18px;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.why-quote__body {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.85;
  max-width: 640px;
}

/* =======================
   About
   ======================= */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.about-text {
  font-size: 14px;
  color: #444444;
}

.about-block {
  margin-bottom: 24px;
}

.subheading {
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* Profile card */
.profile-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.profile-card__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.profile-card__meta {
  flex: 1;
}

.profile-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 3px;
}

.profile-role {
  font-size: 11px;
  color: #999999;
  margin: 0 0 10px;
  letter-spacing: 0.06em;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  font-weight: 500;
}

/* Timeline */
.profile-timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 0 14px;
  padding-bottom: 22px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

/* Connecting vertical line */
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  width: 1px;
  height: calc(100% - 14px);
  background: #e4e4e4;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cccccc;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1.5px #cccccc;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  z-index: 1;
}

.timeline-item--current .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 1.5px var(--accent-border);
}

.timeline-content {
  min-width: 0;
}

.timeline-org {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 3px;
}

.timeline-desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.75;
}

/* Company info table */
.company-info {
  margin: 0;
  font-size: 13px;
}

.company-info div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 6px 16px;
  margin-bottom: 8px;
}

.company-info dt {
  font-weight: 500;
  color: #666666;
}

.company-info dd {
  margin: 0;
}

/* =======================
   Contact
   ======================= */

.contact-intro,
.contact-note {
  font-size: 14px;
  color: #444444;
  margin: 0 0 28px;
}

.contact-form {
  max-width: 640px;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 6px;
}

.required {
  color: var(--accent);
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d4d4d4;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: #111111;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="text"]:hover,
input[type="email"]:hover,
textarea:hover {
  border-color: #aaaaaa;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* =======================
   Footer
   ======================= */

.site-footer {
  border-top: 1px solid #e0e0e0;
  padding: 16px 0 20px;
  font-size: 12px;
  color: #777777;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.footer-info a {
  text-decoration: underline;
}

/* =======================
   Responsive
   ======================= */

@media (max-width: 768px) {
  /* Header */
  .header-inner {
    height: 56px;
  }

  .nav {
    position: fixed;
    inset: 56px 0 auto 0;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    flex-direction: column;
    padding: 12px 16px 16px;
    gap: 12px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    transform: translateY(-4px) rotate(-45deg);
  }

  /* Hero */
  .hero {
    padding-top: 56px;
  }

  .hero-inner {
    min-height: 0;
  }

  /* Service */
  .service-cards {
    grid-template-columns: 1fr;
  }

  .product-block {
    flex-direction: column;
    padding: 24px 20px;
  }

  /* Why PIC */
  .why-cards {
    grid-template-columns: 1fr;
  }

  .why-quote {
    padding: 28px 24px;
  }

  .why-quote__text {
    font-size: 16px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
  }

  .profile-card__head {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 56px 0;
  }

  .service-cards {
    gap: 14px;
  }

  .why-quote {
    padding: 24px 20px;
  }

  .why-quote__text {
    font-size: 15px;
  }
}

/* =======================
   Cookie Consent Banner
   個人情報保護法 / Consent Mode v2 対応
   ======================= */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #ffffff;
  padding: 18px 24px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
  display: none;
}

.cookie-consent-banner.is-visible {
  display: block;
}

.cookie-consent-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-consent-banner__text {
  flex: 1 1 320px;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  color: #ffffff;
}

.cookie-consent-banner__text a {
  color: #ffffff;
  text-decoration: underline;
}

.cookie-consent-banner__text a:hover {
  opacity: 0.85;
}

.cookie-consent-banner__buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-consent-banner__btn {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #ffffff;
  background: transparent;
  color: #ffffff;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease, background 0.2s ease;
  min-width: 110px;
}

.cookie-consent-banner__btn:hover {
  opacity: 0.85;
}

.cookie-consent-banner__btn--accept {
  background: #ffffff;
  color: #1a1a1a;
}

.cookie-consent-banner__btn--accept:hover {
  background: #f0f0f0;
  opacity: 1;
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    padding: 16px;
  }

  .cookie-consent-banner__inner {
    gap: 14px;
  }

  .cookie-consent-banner__buttons {
    width: 100%;
  }

  .cookie-consent-banner__btn {
    flex: 1;
    min-width: 0;
  }
}

/* フッター内のCookie設定リンク */
.footer-link {
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
}

.footer-link:hover {
  opacity: 0.7;
}
