/* ==========================================================================
   株式会社ダミーデザイン - style.css
   設計思想：BEM（Block Element Modifier）
   ブレイクポイント：750px（PC / SP の2分岐）
   構成：
     1. Variables
     2. Reset / Base
     3. Layout (l-*)
     4. Utility (u-*)
     5. Components (c-*)
     6. Page-specific (p-*)
   ========================================================================== */

/* ==========================================================================
   1. Variables
   ========================================================================== */
:root {
  /* Color palette */
  --color-white: #ffffff;
  --color-off-white: #faf9f7;
  --color-gray-100: #efeee9;
  --color-gray-300: #d8d6cf;
  --color-gray-500: #8f8d85;
  --color-gray-700: #4a4842;
  --color-gray-900: #2b2a27;
  --color-black: #141312;

  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-off-white);
  --color-text: var(--color-gray-900);
  --color-text-sub: var(--color-gray-700);
  --color-border: var(--color-gray-300);
  --color-accent: var(--color-black);

  /* Typography */
  --font-serif: "Shippori Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;

  /* Layout */
  --container-width: 1120px;
  --container-padding: 40px;
  --header-height: 88px;

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

@media (max-width: 750px) {
  :root {
    --container-padding: 24px;
    --header-height: 64px;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, dl, dd, p, ul {
  margin: 0;
}

ul {
  list-style: none;
  padding: 0;
}

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

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

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

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

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

/* ==========================================================================
   3. Layout
   ========================================================================== */
.l-container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.l-section {
  padding-block: 140px;
}

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

@media (max-width: 750px) {
  .l-section {
    padding-block: 88px;
  }
}

/* ==========================================================================
   4. Utility
   ========================================================================== */
.u-only-pc {
  display: inline;
}

@media (max-width: 750px) {
  .u-only-pc {
    display: none;
  }
}

.c-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 1000;
}

.c-skip:focus {
  left: 12px;
  top: 12px;
}

/* Scroll reveal (JS toggles is-visible) */
.js-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.u-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================================
   5. Components
   ========================================================================== */

/* ---- c-header ---- */
.c-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.c-header.is-scrolled {
  border-bottom-color: var(--color-border);
}

.c-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.c-header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.c-header__logo-en {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.c-header__logo-ja {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--color-text-sub);
  margin-top: 2px;
}

@media (max-width: 750px) {
  .c-header__logo-ja {
    display: none;
  }
}

/* ---- c-nav ---- */
.c-nav__list {
  display: flex;
  gap: 48px;
}

.c-nav__link {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.1em;
  padding-bottom: 4px;
}

.c-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.c-nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 750px) {
  .c-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-white);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .c-nav.is-open {
    transform: translateX(0);
  }

  .c-nav__list {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .c-nav__link {
    font-size: 16px;
  }
}

/* ---- c-burger ---- */
.c-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  z-index: 101;
}

.c-burger__line {
  width: 22px;
  height: 1px;
  background-color: var(--color-black);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.c-burger.is-active .c-burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.c-burger.is-active .c-burger__line:nth-child(2) {
  opacity: 0;
}

.c-burger.is-active .c-burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 750px) {
  .c-burger {
    display: flex;
  }
}

/* ---- c-btn ---- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding-inline: 40px;
  font-size: 13px;
  letter-spacing: 0.1em;
  border: 1px solid var(--color-black);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}

.c-btn--primary {
  background-color: var(--color-black);
  color: var(--color-white);
}

.c-btn--primary:hover {
  background-color: var(--color-white);
  color: var(--color-black);
}

.c-btn--outline {
  background-color: transparent;
  color: var(--color-black);
}

.c-btn--outline:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

.c-btn--lg {
  height: 64px;
  padding-inline: 56px;
}

/* ---- c-heading ---- */
.c-heading {
  margin-bottom: 72px;
  max-width: 800px;
}

.c-heading__eyebrow {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
  margin-bottom: 16px;
}

.c-heading__title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.c-heading__lead {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 2;
}

@media (max-width: 750px) {
  .c-heading {
    margin-bottom: 48px;
  }
  .c-heading__title {
    font-size: 26px;
  }
}

/* ---- c-card ---- */
.c-card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--color-border);
  border: 1px solid var(--color-border);
}

.c-card {
  background-color: var(--color-white);
  padding: 48px 24px;
  transition: background-color 0.3s var(--ease);
}

.c-card:hover {
  background-color: var(--color-bg-alt);
}

.c-card__mark {
  width: 28px;
  height: 1px;
  background-color: var(--color-black);
  margin-bottom: 28px;
}

.c-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.c-card__title-num{
  display: block;
}

.c-card__text {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 2;
}

@media (max-width: 750px) {
  .c-card-list {
    grid-template-columns: 1fr;
  }
  .c-card {
    padding: 36px 28px;
  }
}

/* ---- c-info-table ---- */
.c-info-table {
  border-top: 1px solid var(--color-border);
}

.c-info-table__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  padding-block: 24px;
  border-bottom: 1px solid var(--color-border);
}

.c-info-table__label {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--color-text-sub);
}

.c-info-table__value {
  font-size: 14px;
  margin: 0;
}

@media (max-width: 750px) {
  .c-info-table__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 18px;
  }
}

/* ---- c-footer ---- */
.c-footer {
  border-top: 1px solid var(--color-border);
  padding-block: 40px;
}

.c-footer__inner {  
  display: flex;
  align-items: center;
  /* justify-content: space-between; */
  justify-content: center;
}

.c-footer__logo {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.c-footer__copyright {
  font-size: 11px;
  color: var(--color-text-sub);
}

@media (max-width: 750px) {
  .c-footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   6. Page-specific
   ========================================================================== */

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

.p-hero__inner {
  position: relative;
  z-index: 1;
}

.p-hero__eyebrow {
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
  margin-bottom: 28px;
}

.p-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 40px;
}

.p-hero__title span {
  display: block;
}

.p-hero__lead {
  font-size: 15px;
  color: var(--color-text-sub);
  line-height: 2.1;
  margin-bottom: 48px;
  max-width: 520px;
}

.p-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.p-hero__vertical {
  position: absolute;
  top: 0;
  right: 64px;
  height: 100%;
  padding-top: 90px;
  display: flex;
  align-items: center;
  writing-mode: vertical-rl;
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--color-gray-300);
  white-space: nowrap;
}

.p-hero__scroll {
  position: absolute;
  bottom: 40px;
  left: var(--container-padding);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
}

.p-hero__scroll-line {
  width: 32px;
  height: 1px;
  background-color: var(--color-gray-500);
  position: relative;
  overflow: hidden;
}

.p-hero__scroll-line::after {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-black);
  animation: scrollLine 2.2s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

.p-hero__scroll-text {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-text-sub);
}

@media (max-width: 750px) {
  .p-hero__vertical {
    display: none;
  }
  .p-hero__actions {
    flex-direction: column;
  }
  .p-hero__actions .c-btn {
    width: 100%;
  }
}

/* ---- p-contact ---- */
.p-contact {
  padding-block: 140px;
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
}

.p-contact .c-heading__eyebrow {
  color: var(--color-gray-500);
}

.p-contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p-contact__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-top: 16px;
  margin-bottom: 24px;
}

.p-contact__lead {
  font-size: 14px;
  color: var(--color-gray-300);
  line-height: 2;
  margin-bottom: 44px;
}

.p-contact .c-btn--primary {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.p-contact .c-btn--primary:hover {
  background-color: transparent;
  color: var(--color-white);
}

@media (max-width: 750px) {
  .p-contact {
    padding-block: 88px;
  }
  .p-contact__title {
    font-size: 24px;
  }
}
