/* =========================================================
   buzzbait corporate site
   -----------------------
   1. Design tokens (CSS variables)
   2. Reset / Base
   3. Typography
   4. Layout utilities
   ========================================================= */


/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  /* -------- Colors -------- */
  --color-bg:        #FAF7F2;  /* ベース背景 */
  --color-text:      #2B2B2B;  /* メイン文字 */
  --color-text-sub:  #6B6B6B;  /* サブ文字 */
  --color-accent:    #C97B5A;  /* アクセント（テラコッタ） */
  --color-accent-2:  #8B7355;  /* アクセント補助（セピア） */
  --color-border:    #E5DFD5;  /* 罫線 */
  --color-white:     #FFFFFF;

  /* -------- Typography -------- */
  --font-sans:  'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, system-ui, sans-serif;
  --font-serif: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

  --fs-hero:    clamp(2.5rem, 4vw + 1rem, 4rem);      /* 40–64px */
  --fs-h2:      clamp(2rem, 2vw + 1rem, 2.5rem);      /* 32–40px */
  --fs-h3:      clamp(1.125rem, 0.5vw + 1rem, 1.375rem); /* 18–22px */
  --fs-body:    1rem;                                  /* 16px */
  --fs-small:   0.875rem;                              /* 14px */

  --lh-body:    1.9;
  --lh-heading: 1.4;

  /* -------- Spacing -------- */
  --space-section:        120px;
  --space-section-mobile: 64px;
  --space-block:          32px;
  --space-gap:            24px;

  /* -------- Layout -------- */
  --content-max:   1080px;
  --content-pad:   24px;
  --header-height: 72px;

  /* -------- Shape -------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* -------- Shadow -------- */
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.10);

  /* -------- Motion -------- */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --duration:    0.25s;

  /* -------- Z-index -------- */
  --z-header: 100;
  --z-overlay: 50;
}


/* =========================================================
   2. Reset / Base
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

h1, h2, h3, h4, h5 {
  margin: 0;
  line-height: var(--lh-heading);
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}


/* =========================================================
   3. Typography
   ========================================================= */
.section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: var(--fs-h2);
  margin: 0 0 var(--space-block);
  letter-spacing: 0.04em;
}

.section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  background: var(--color-accent);
  margin-top: 16px;
}


/* =========================================================
   4. Layout utilities
   ========================================================= */
.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

.section {
  padding-block: var(--space-section);
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--space-section-mobile);
  }
}


/* =========================================================
   5. Header / Global nav
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: var(--z-header);
  background: transparent;
  transition: background-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              backdrop-filter var(--duration) var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(1.1) blur(12px);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}

.site-header__inner {
  max-width: var(--content-max);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--content-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__logo img {
  height: 28px;
  width: auto;
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav__list a {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  position: relative;
  padding-block: 4px;
}

.global-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--duration) var(--ease);
}

.global-nav__list a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}

.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 13px; }

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


/* =========================================================
   6. Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  padding-inline: var(--content-pad);
}

.hero__ripple {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* ripples.js はこの要素の background-image にエフェクトを適用する */
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-color: var(--color-accent-2);
}

.hero__ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(43, 43, 43, 0.15) 0%,
    rgba(43, 43, 43, 0.35) 60%,
    rgba(43, 43, 43, 0.55) 100%
  );
  pointer-events: none;
}

.hero__inner {
  text-align: center;
  color: var(--color-white);
  max-width: 960px;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
}

.hero__title-main {
  display: block;
  font-size: var(--fs-hero);
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
}

.hero__title-sub {
  display: block;
  margin-top: 24px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.25rem);
  letter-spacing: 0.12em;
  opacity: 0.92;
}


/* =========================================================
   7. Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}


/* =========================================================
   8. Strengths
   ========================================================= */
.strengths__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-gap);
}

.strengths__card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.strengths__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.strengths__figure {
  margin: 0 0 20px;
}

.strengths__figure img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.strengths__heading {
  font-family: var(--font-sans);
  font-size: var(--fs-h3);
  font-weight: 700;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.strengths__card--nigate .strengths__heading {
  color: var(--color-accent-2);
}

.strengths__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.strengths__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--color-accent);
}


/* =========================================================
   9. Declaration
   ========================================================= */
.declaration {
  background: var(--color-white);
}

.declaration__body {
  max-width: 820px;
}

.declaration__body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.375rem;
  margin: 48px 0 16px;
  color: var(--color-text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.declaration__body h3:first-of-type {
  margin-top: 0;
}

.declaration__body h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.0625rem;
  margin: 28px 0 8px;
  color: var(--color-accent-2);
  letter-spacing: 0.02em;
}

.declaration__body p {
  color: var(--color-text);
}


/* =========================================================
   10. Business
   ========================================================= */
.business__item {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 96px;
}

.business__item:last-child {
  margin-bottom: 0;
}

.business__item--reverse {
  grid-template-columns: 1fr 380px;
}

.business__item--reverse .business__figure {
  order: 2;
}

.business__figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  background: var(--color-border);
  aspect-ratio: 4 / 3;
}

.business__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business__heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.625rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

.business__lead {
  color: var(--color-text-sub);
  margin-bottom: 24px;
}

.business__sub {
  font-size: var(--fs-h3);
  font-weight: 700;
  margin: 32px 0 16px;
  letter-spacing: 0.04em;
}

.business__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.business__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 10px;
  height: 1px;
  background: var(--color-accent);
}


/* -------- Media group / cards -------- */
.media-group + .media-group {
  margin-top: 40px;
}

.media-group__label {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-accent-2);
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--color-accent);
}

.media-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.media-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.media-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.media-card a {
  display: block;
  height: 100%;
}

.media-card__figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--color-border);
  overflow: hidden;
}

.media-card__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.media-card:hover .media-card__figure img {
  transform: scale(1.03);
}

.media-card__body {
  padding: 16px 20px 20px;
}

.media-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.5;
}

.media-card__url {
  font-size: var(--fs-small);
  color: var(--color-accent-2);
  letter-spacing: 0.02em;
}


/* =========================================================
   11. Company table
   ========================================================= */
.company {
  background: var(--color-white);
}

.company__table {
  margin: 0;
  max-width: 820px;
}

.company__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.company__row:first-child {
  border-top: 1px solid var(--color-border);
}

.company__row dt {
  font-weight: 700;
  color: var(--color-accent-2);
  letter-spacing: 0.04em;
}

.company__row dd {
  margin: 0;
}


/* =========================================================
   11.5. Contact / Form
   ========================================================= */
.contact__lead {
  color: var(--color-text-sub);
  margin-bottom: 40px;
  max-width: 640px;
}

.contact__form {
  max-width: 720px;
  display: grid;
  gap: 24px;
}

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

.form-row label {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.form-row .required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 3px;
  vertical-align: middle;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

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

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: #B8B0A3;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(201, 123, 90, 0.15);
}

.form-actions {
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 16px 32px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--duration) var(--ease),
              background-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(201, 123, 90, 0.24);
}

.btn--primary:hover {
  background: #B86A4A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 123, 90, 0.32);
  color: var(--color-white);
}

.btn--primary:active {
  transform: translateY(0);
}


/* =========================================================
   11.7. Privacy policy page
   ========================================================= */
.policy-page {
  padding-top: var(--header-height);
}

.policy {
  max-width: 820px;
}

.policy__lead {
  color: var(--color-text-sub);
  margin-bottom: 32px;
}

.policy h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.375rem;
  margin: 48px 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text);
}

.policy p {
  margin-bottom: 1em;
}

.policy ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0 0 1em;
}

.policy ul li {
  margin-bottom: 4px;
}

.policy a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy__meta {
  margin-top: 48px;
  color: var(--color-text-sub);
  font-size: var(--fs-small);
}

.policy__back {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.policy__back-link {
  color: var(--color-accent-2);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.policy__back-link:hover {
  color: var(--color-accent);
}


/* =========================================================
   12. Footer
   ========================================================= */
.site-footer {
  background: #1F1F1F;
  color: rgba(255, 255, 255, 0.86);
  padding-block: 56px;
  margin-top: 80px;
}

.site-footer__inner {
  display: grid;
  gap: 24px;
  justify-items: center;
  text-align: center;
}

.site-footer__logo img {
  height: 32px;
  width: auto;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  justify-content: center;
}

.site-footer__nav a {
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__nav a:hover {
  color: var(--color-accent);
}

.site-footer__copy {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}


/* =========================================================
   13. Mobile nav
   ========================================================= */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
  }

  .global-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .global-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0;
  }

  .global-nav__list a {
    display: block;
    padding: 14px var(--content-pad);
    font-size: var(--fs-body);
  }

  .global-nav__list a::after {
    display: none;
  }
}


/* =========================================================
   14. Responsive adjustments
   ========================================================= */

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

  .hero {
    min-height: 80vh;
    min-height: 80svh;
  }

  .strengths__grid {
    grid-template-columns: 1fr;
  }

  .business__item,
  .business__item--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 64px;
  }

  .business__item--reverse .business__figure {
    order: 0;
  }

  .business__figure {
    aspect-ratio: 16 / 9;
  }

  .business__heading {
    font-size: 1.375rem;
  }

  .media-cards {
    grid-template-columns: 1fr;
  }

  .company__row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
  }

  .company__row dt {
    font-size: var(--fs-small);
  }

  .strengths__card {
    padding: 32px 24px;
  }

  .declaration__body h3 {
    font-size: 1.125rem;
    margin-top: 32px;
  }

  .site-footer {
    padding-block: 40px;
    margin-top: 64px;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ---------- <= 480px ---------- */
@media (max-width: 480px) {
  :root {
    --content-pad: 16px;
    --header-height: 60px;
  }

  .site-header__logo img {
    height: 22px;
  }

  .hero__title-main {
    letter-spacing: 0.04em;
  }

  .hero__title-sub {
    margin-top: 16px;
    letter-spacing: 0.08em;
  }

  .strengths__card {
    padding: 28px 20px;
  }

  .strengths__figure img {
    width: 56px;
    height: 56px;
  }

  .business__heading {
    font-size: 1.25rem;
  }

  .site-footer__nav ul {
    gap: 12px 20px;
  }
}
