/* ========================================
   BASE
   ======================================== */
:root {
  /* 共通カラー */
  --bg: #efefef;        /* 背景（全ページ共通） */
  --text: #111111;      /* 文字色（全ページ共通） */
  --highlight: #ccff00; /* Project の帯・ホバー用の黄緑 */
  --accent: #ccff00;    /* アクセント（リンクなど） */
  --muted: rgba(17, 17, 17, 0.6);
  --border: rgba(17, 17, 17, 0.18);
  --black: #000000;
  --project-bg: #efefef;
  --project-detail-bg: #efefef;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Kaku Gothic New", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  background-color: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========================================
   TOP BAR
   ======================================== */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  padding: 14px 40px;
  background-color: #EFEFEF;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}


.top-bar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar__studio {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-bar__label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: none;
  color: var(--muted);
}

.top-bar__name {
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: none;
}

.top-bar__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  display: inline-block;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: none;
  color: #111111;
  transform-origin: center;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.nav-link:hover {
  transform: rotateX(360deg);
  opacity: 0.85;
}

.top-bar__contact {
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ========================================
   HERO
   ======================================== */

.hero {
  position: relative;
  min-height: 70vh;
  padding: 96px 40px 80px;
  overflow: hidden;
  background-color: var(--bg);
}

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.15) 0, transparent 55%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 1;
}

.hero__title {
  margin: 0 0 32px;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(68px, 7vw, 90px);
  line-height: 1.04;
  letter-spacing: 0.08em;
}

.hero__text {
  max-width: 600px;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-weight: 600;
  font-size: 25px;
  line-height: 1.35;
  color: var(--text);
}

/* ========================================
   SECTION COMMON
   ======================================== */

.section {
  padding: 72px 40px;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;   /* ★これを追加 */
}

.section-heading-en {
  margin: 0 0 20px;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: 20px;
  letter-spacing: 0.18em;
  text-transform: none;
}

.section-lead-en {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--muted);
}

.section-body-ja {
  margin: 0;
  font-size: 15px;  /* Services と同じにする */
  line-height: 1.9;
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif; /* 日本語フォント統一 */
}
.section-body-ja {
  max-width: 640px;
  margin-left: 0;
}


/* ========================================
   ABOUT / STANCE
   ======================================== */

.section--about {
  background-color: var(--bg);
}

.section--stance {
  background-color: var(--bg);
}

.stance-body {
  max-width: 600px;
}

/* ========================================
   PROJECTS
   ======================================== */

/* セクション自体をフル幅に */
.section--projects {
  padding-top: 0;
  background-color: var(--bg);
  color: var(--text);
}

/* スクロールする帯 */
.projects-banner {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-color: #EFEFEF; /* 帯の色 */
  color: #111111;
}

.projects-banner__track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 24s linear infinite;
}

.projects-banner__text {
  display: inline-block;
  padding: 22px 48px;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: 40px;
  letter-spacing: 0.16em;
  text-transform: none;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

.section-header--projects {
  max-width: 100%;
  margin: 0;
  padding: 32px 40px 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
}

.section-title {
  margin: 0;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;     /* ★追加：太字にする */
  letter-spacing: 0.2em;
  text-transform: none;
}


.section-subtitle {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--muted);
}

/* ---------- テーブル本体（フル幅） ---------- */

.projects-table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-left: none;
  border-right: none;
  box-sizing: border-box;
}

/* ヘッダー行は黄緑帯の上にテキスト */
.projects-table__header {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 1fr) 40px;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0.14em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.35);
   background-color: var(--bg);
  color: #35281a;
}

.projects-table__cell {
  padding: 10px 32px;
  text-align: left; /* ← ヘッダーも左寄せ */
}

/* ---------- Row summary ---------- */

.project-row {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.55);
  background-color: var(--project-bg);
  color: var(--text);
  transition: background-color 0.3s ease;
}

.project-row__summary {
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 1fr) 40px;
  align-items: center;
}

.project-row__cell {
  padding: 18px 32px;
  font-size: 14px;
  line-height: 1.4;
  text-align: left; /* ← リスト左寄せ */
}

.project-row__cell--title {
  font-family: "Josefin Sans", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0.12em;
}

.project-row__cell--type {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.7);
}

.project-row__cell--year {
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: 12px;
  text-align: right; /* 年だけ右寄せ */
}

.project-row__cell--icon {
  text-align: center;
}

.project-row__chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--text);
  border-bottom: 1px solid var(--text);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

/* hover / open 状態 */
.project-row:hover {
  background-color: var(--highlight); /* マウスオン：黄緑 */
}

.project-row.is-open {
  background-color: var(--bg); /* 開いたとき：#EFEFEF */
}

.project-row.is-open .project-row__chevron {
  transform: rotate(-135deg);
}

/* ---------- Detail area ---------- */

.project-row__detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background-color: var(--project-detail-bg);
  color: #2b2418;
}

.project-row.is-open .project-row__detail {
  max-height: 1200px; /* 十分な高さ */
}

.project-row__detail-inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 32px;
  padding: 32px 40px 40px;
}

.project-row__text {
  font-size: 13px;
  line-height: 1.9;
}

.project-row__text--full {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.9;
}

/* ---------- Slider ---------- */

.project-row__media {
  position: relative;
  overflow: hidden;
  background-color: transparent; 
}

.project-row__media::before {
  content: "";
  display: block;
  padding-bottom: 66%;
}

.project-row__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.project-row__slide.is-visible {
  opacity: 1;
}

.project-row__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* スライドインジケーター ●●● */

.slider-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  background: #CCFF00;
  border-radius: 50%;
}

.slider-dot.is-active {
  background: rgba(255, 255, 255, 0.98);
}

/* ---------- Project text detail（Client / Overview / Team） ---------- */

.project-subtitle {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: none;
  margin: 16px 0 4px;
  color: rgba(43, 36, 24, 0.72);
  font-family: "Josefin Sans", system-ui, sans-serif;
}

.project-tags {
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: none;
}

.project-row__detail a {
  color: #1f5b52;
}

/* ========================================
   COMPANY SECTION
   ======================================== */

.section--company {
  background-color: #EFEFEF;
  color: #111111;
}

.section-inner--company {
  max-width: 1280px;
}

.company-table {
  margin-top: 24px;
  border-top: 1px solid #d7d2c4;
}

.company-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #e0dbcd;
  font-size: 13px;
}

.company-label {
  color: #777167;
}

.company-value {
  line-height: 1.9;
   color: #777167;
}

/* ---- Company history (沿革) ---- */

.company-row--history .company-value {
  padding-top: 4px;
}

.company-history {
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-history__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr); /* 左：日付 / 右：内容 */
  column-gap: 24px;
  row-gap: 4px;
  margin-bottom: 8px;
  font-size: 13px;
}

.company-history__date {
  white-space: nowrap;          /* 日付が途中で折れないように */
}

.company-history__text {
  line-height: 1.8;
}

/* スマホでは縦に積むレイアウト */
@media (max-width: 900px) {
  .company-history__item {
    grid-template-columns: minmax(0, 1fr);  /* 1カラムに */
  }

  .company-history__date {
    margin-bottom: 2px;
  }
}


/* ========================================
   CONTACT
   ======================================== */

.section--contact {
  padding: 80px 40px 40px;
  background-color: var(--black);
  color: #efefef;
}

/* ★ ここを新しく追加 ★ */
.section--contact p {
  font-size: 11px;
  line-height: 1.9;
  font-family: "Zen Kaku Gothic New", system-ui, sans-serif;
}

.contact-main {
  max-width: 1280px;
  margin: 0 auto 48px;
}


.contact-title {
  margin: 0;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: clamp(36px, 4.8vw, 56px);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: none;
}

.contact-grid {
  max-width: 1280px;       /* 中身はやや細めに中央寄せ */
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  font-size: 13px;
}

.contact-label {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.16em;
  color: ccff00  ;
}

.section--contact a {
  color: #efefef;
}
/* ==========================================
   Scroll indicator (About section)
   ========================================== */

.scroll-indicator {
  position: absolute;
  right: 40px;             /* 右端からの距離（必要なら調整） */
  top: 16px;              /* 見出しの少し下あたりに表示 */
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 50;
}

.scroll-text {
  font-family: "Josefin Sans", system-ui, sans-serif;
  writing-mode: vertical-rl;
  font-size: 16px;
  letter-spacing: 0.2em;
  color: #111111;
  margin-bottom: 12px;
}

.scroll-line {
  width: 2px;
  height: 120px;
  background: #ccff00;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111111;
  animation: scrollLine 2.2s cubic-bezier(1, 0, 0, 1) infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  30% {
    transform: scaleY(1);
    transform-origin: top;
  }
  70% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* スマホ用のスクロールインジケーター調整 */
@media (max-width: 900px) {
  .scroll-indicator {
    display: flex;          /* ← これで復活 */
    right: 12px;
    top: 250px;              /* Who We Are の上あたりに */
    opacity: 0.6;           /* 任意：少し控えめに */
    transform: scale(0.9);  /* 任意：少し小さく */
  }

  .scroll-text {
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .scroll-line {
    height: 64px;
  }
}


/* ==========================
   SERVICES BLOCK
   ========================== */

.section--services {
  background-color: #efefef;   /* 全体の背景（ライトグレー） */
  color: #111111;              /* 文字色 */
  padding: 72px 40px;
}

.services-inner {
  max-width: px;
  margin: 0 auto;
  position: relative;
  overflow: hidden; /* 円がはみ出す部分をカット */
}

.services-header {
  margin-bottom: 40px;
}

.services-title {
  margin: 0;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: 32px;
  letter-spacing: 0.14em;
  text-transform: none;
}

/* 本文エリア全体 */
.services-body {
  position: relative;
  padding-top: 0px;
  padding-bottom: 32px;
}



/* 各サービス行 */
.services-item {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  column-gap: 16px;
  align-items: flex-start;
  margin-bottom: 40px;
 
}

.services-index {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.18em;
}

.services-content {
  font-size: 15px;
}

.services-heading {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 500;
}

.services-list {
  margin: 0;
  padding-left: 1em;
  list-style: none;
}

.services-list li::before {
  content: "• ";
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Stance と同じくらいの上下余白に調整 */
  .section--services {
    padding: 56px 16px 40px;
  }

  .services-inner {
    max-width: 100%;
  }

  /* 見出し直下の余白をギュッと詰める */
  .services-body {
    padding-top: 8px;
    padding-bottom: 16px;
  }

  .services-item {
    grid-template-columns: 40px minmax(0, 1fr);
    margin-bottom: 24px;  /* 各項目の間も少し詰める */
  }

  .services-heading {
    font-size: 20px;
  }
}



/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  padding: 18px 40px 22px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #111111;
  display: flex;
  justify-content: space-between;
  background-color: #CCFF00 ;
}
/* ==========================
   LOGO IMAGE
   ========================== */

.top-bar__logo img {
  height: 23px;        /* ロゴの高さ（調整OK） */
  width: auto;
  display: block;
}

.top-bar__logo a {
  display: inline-flex;
  align-items: center;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  .top-bar__logo img {
    height: 16px;     /* ← スマホ用に小さくする（今より6px縮小） */
    width: auto;
  }

  .top-bar {
    padding: 10px 12px; /* 余白も少し削るとバランスが良い */

  }


  .top-bar__nav {
    gap: 16px; /* ナビの間隔は今のまま or 少し詰めてもOK */
  }

  .nav-link {
    font-size: 10px;      /* 文字サイズ少し小さく */
    letter-spacing: 0.08em; /* 文字間も詰める（重要） */
  }

  /* ここから下はそのまま残してOK */
  .hero {
    padding: 72px 16px 56px;
  }

  .section {
    padding: 56px 16px;
  }

  .section-header--projects {
    padding-inline: 16px;
  }

  .projects-table__header {
    display: none;
  }

  .project-row__summary {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr) 40px;
  }

  .project-row__cell--year {
    display: none;
  }

  .project-row__cell--type {
    display: block;
  }

  .project-row__cell {
    padding-inline: 16px;
  }

  .project-row__detail-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 16px;
  }

  .projects-banner__text {
  display: inline-block;
  padding: 22px 48px;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: 40px;
  font-weight: 600;          /* ★追加 */
  letter-spacing: 0.16em;
  text-transform: none;
}

  .section-inner,
  .section-inner--company,
  .contact-main,
  .contact-grid {
    max-width: 100%;
  }

  .company-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    flex-direction: column;
    gap: 6px;
    padding-inline: 16px;
  }
}


/* ==========================
   見出し：蛍光ペン風 下線（スクロールで強調）
   ========================== */

/* セクションタイトル（What we do / Stance / Services） */
.section-heading {
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-size: clamp(44px, 4vw, 48px);   /* スマホ32px、PCでは最大48pxへ */
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 24px;
}

.section-heading .marker-underline {
  font-size: inherit; /* h2 のサイズをそのまま使う */
}


.section-heading .marker-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.15em;
}

/* 初期状態：線はゼロ幅（見えない） */
.section-heading .marker-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 0.2em;
  width: 0;                      /* ← 初期状態：0 */
  background-color: #ccff00;
  opacity: 0.25;
  transform-origin: left;
  transition:
    width 1s ease-out,           /* ← ゆっくり横に伸びる */
    opacity 0.6s ease-out;
}

/* スクロールで可視範囲に入ったら発火 */
.section-heading .marker-underline.is-visible::after {
  width: 100%;                   /* ← 左→右に全体が伸びる */
  opacity: 1;
}


/* ==========================
   Typeface assignment
   ========================== */

/* 英語系・ロゴ・セクション見出しなど：Josefin Sans */
.top-bar__name,
.nav-link,
.hero__title,
.section-heading,
.section-heading-en,
.section-title,
.section-subtitle,
.projects-banner__text,
.project-row__cell--title,
.project-subtitle,
.services-title,
.services-index,
.services-heading,
.contact-title,
.contact-label,
.site-footer {
  font-family: "Josefin Sans", system-ui, sans-serif;
}


/* ==========================
   CONTACT セクション：左右配置 + ロゴ表示
   ========================== */

.contact-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  max-width: 1280px;
  margin: 0 auto;
}

.contact-left {
  flex: 1.4;
}

.contact-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-right img {
  width: 100%;
  max-width: 200px;
  height: auto;
  opacity: 0.9;
}

/* メール */
.contact-mail {
  margin-top: 24px;
  letter-spacing: 0.22em;
  font-size: 14px;
}

/* スマホ */
@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 40px;
  }

  .contact-right img {
    max-width: 260x;
    margin: 0 auto;
  }
}

/* ==========================
   CONTACT ロゴを右端に寄せる
   ========================== */

.contact-flex {
  display: flex;
  justify-content: space-between; /* 左右に配置 */
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  gap: 40px;
}

.contact-left {
  flex: 1;
}

.contact-right {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* ★右端に寄せる */
}

.contact-right img {
  width: auto;
  max-width: 200px; /* ロゴサイズ（調整OK） */
  height: auto;
  object-fit: contain;
}

/* スマホ（縦並び） */
@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-right {
    justify-content: flex-start; /* スマホでは左寄せに */
    width: 100%;
  }

  .contact-right img {
    max-width: 120px;
  }



