/* =========================================================
   Beau Decor Group $2014 総合案内ページ common.css
   ========================================================= */

:root {
  --color-bg:        #FAF7F2;
  --color-bg-alt:     #F1EBDD;
  --color-surface:   #FFFFFF;
  --color-ink:       #211D19;
  --color-body:      #423B32;
  --color-moss:      #4F5B3A;
  --color-moss-dark: #333B26;
  --color-rust:      #A2532F;
  --color-line:      #DED4C0;
  --color-bd-blue:      #52617B; /* ボー・デコールブルー */
  --color-bd-blue-deep: #52617B;
  --color-gray:      #565D6E;

  --font-display: "Shippori Mincho", serif;
  --font-body: "Noto Sans JP", sans-serif;

  --container-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-ink);
  margin: 0;
  line-height: 1.5;
}

p { margin: 0; }

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

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

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-moss);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 24px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-ink);
}

.brand-mark__icon {
  width: 68px;
  height: auto;
  flex-shrink: 0;
}

.brand-mark__wordmark {
  height: 116px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.brand-mark__icon--inverted {
  filter: brightness(0) invert(1);
}

.brand-mark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-mark__text strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-mark__text small {
  font-size: 0.72rem;
  color: var(--color-body);
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 0.92rem;
}

.site-nav a {
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--color-moss);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__art {
  position: absolute;
  inset: 0;
  background-color: #E7DFC9;
  background-image:
    repeating-linear-gradient(115deg,
      rgba(79, 91, 58, 0.16) 0px, rgba(79, 91, 58, 0.16) 2px,
      transparent 2px, transparent 26px),
    repeating-linear-gradient(25deg,
      rgba(162, 83, 47, 0.10) 0px, rgba(162, 83, 47, 0.10) 2px,
      transparent 2px, transparent 34px),
    linear-gradient(160deg, #EFE7D3 0%, #E2D6B8 55%, #D8CAA5 100%);
}

.hero__inner {
  position: relative;
  padding-top: 108px;
  padding-bottom: 108px;
}

.hero__panel {
  max-width: 620px;
  background: var(--color-bd-blue);
  color: #FFFFFF;
  padding: 44px 40px;
  animation: hero-rise 0.7s ease-out both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: #B9C2E8;
  margin-bottom: 14px;
}

.hero__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 0.98rem;
  line-height: 1.95;
  color: #E4E6F5;
  max-width: 34em;
}

.hero__note {
  position: relative;
  margin: 0;
  padding: 10px 24px;
  font-size: 0.76rem;
  color: var(--color-body);
  background: var(--color-bg-alt);
  text-align: right;
}

/* ---------------- Sections ---------------- */

.section {
  padding: 88px 0;
}

.section__title {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 20px;
}

.section__lead {
  max-width: 40em;
  margin-bottom: 48px;
  color: var(--color-body);
}

/* ---------------- About ---------------- */

.about { background: var(--color-bg); }

.about__lead {
  max-width: 42em;
  margin-bottom: 56px;
  font-size: 1rem;
}

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

.pillar {
  border-top: 2px solid var(--color-moss);
  padding-top: 20px;
}

.pillar h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--color-body);
}

/* ---------------- Brands ---------------- */

.brands { background: var(--color-bg-alt); }

.brand-group { margin-bottom: 52px; }
.brand-group:last-child { margin-bottom: 0; }

.brand-group__title {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-moss-dark);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
}

.brand-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.brand-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  display: flex;
  flex-direction: column;
}

.brand-card__swatch {
  display: block;
  height: 64px;
}

.swatch--moss {
  background:
    repeating-linear-gradient(135deg,
      #4F5B3A 0px, #4F5B3A 8px, #5C6944 8px, #5C6944 16px);
}
.swatch--rust {
  background:
    repeating-linear-gradient(45deg,
      #A2532F 0px, #A2532F 8px, #B3673F 8px, #B3673F 16px);
}
.swatch--sand {
  background:
    repeating-linear-gradient(90deg,
      #C9B98D 0px, #C9B98D 10px, #D6C9A2 10px, #D6C9A2 20px);
}
.swatch--indigo {
  background:
    repeating-linear-gradient(60deg,
      #45525F 0px, #45525F 8px, #53626F 8px, #53626F 16px);
}

.brand-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.brand-card__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-ink);
}

.brand-card__desc {
  font-size: 0.86rem;
  color: var(--color-body);
  line-height: 1.8;
  flex-grow: 1;
}

.brand-card__link {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-moss-dark);
  border-bottom: 1px solid var(--color-moss-dark);
  align-self: flex-start;
}

.brand-card__link:hover {
  color: var(--color-rust);
  border-bottom-color: var(--color-rust);
}

/* ---------------- Recruit ---------------- */

.recruit {
  background: var(--color-gray);
  color: #F6F2E7;
}

.recruit__inner {
  padding: 72px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.recruit__title {
  color: #FBF8EF;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.recruit__text {
  max-width: 36em;
  color: #E7E2D2;
  font-size: 0.95rem;
}

.recruit__button {
  flex-shrink: 0;
  background: #F6F2E7;
  color: var(--color-gray);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 16px 32px;
  border: 1px solid #F6F2E7;
}

.recruit__button:hover {
  background: transparent;
  color: #F6F2E7;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--color-bd-blue-deep);
  color: #E4EFEE;
}

.site-footer__inner {
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.brand-mark--footer { color: #F6F2E7; }
.brand-mark--footer .brand-mark__text small { color: #C7CCE9; }

.site-footer__nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.site-footer__nav a:hover { color: #F6F2E7; }

.site-footer__copy {
  font-size: 0.78rem;
  color: #9AA3D0;
}

/* ---------------- Page top button (mobile) ---------------- */

.page-top {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--color-bd-blue);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(33, 29, 25, 0.28);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.page-top svg { width: 20px; height: 20px; }

.page-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.page-top:hover { background: #232E70; }

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .hero__inner { padding-top: 72px; padding-bottom: 72px; }
  .hero__panel { padding: 32px 26px; }
  .section { padding: 64px 0; }
}

@media (max-width: 620px) {
  .site-header__inner { flex-wrap: wrap; row-gap: 12px; }
  .site-nav { gap: 18px; font-size: 0.85rem; }
  .brand-mark__icon { width: 46px; }
  .brand-mark__wordmark { height: 72px; }
  .recruit__inner { padding: 56px 24px; }
  .recruit__button { width: 100%; text-align: center; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
  .page-top { display: flex; }
}
