/* 株式会社Narat コーポレートサイト
   C案（紙の質感・蛍光ペン）をベースに、英字の大見出し＋日本語ラベル、
   重なり合うブロック、サイトマップ付きフッターで構成を整えたもの */

:root {
  --paper: #EEF0EA;       /* 地の色 */
  --paper-light: #FBFBF8; /* 白い紙・カード */
  --sage: #DCE3D6;        /* 背景のブロック */
  --ink: #22302A;         /* 文字・フッター */
  --ink-soft: #46544C;    /* 本文の補助 */
  --muted: #5E6B63;       /* ラベル */
  --line: #CBD2C8;        /* 罫線 */
  --line-dash: #A9B3A6;   /* 点線 */
  --accent: #E8C55A;      /* 蛍光ペン・テープ */
  --on-ink: #EEF0EA;      /* 濃い地の上の文字 */
  --on-ink-muted: #A9B5AD;

  --font-en: "Jost", "Futura", "Avenir Next", sans-serif;
  --font-hand: "Klee One", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 18px 48px rgba(34, 48, 42, 0.10);
  --header-height: 56px; /* ヘッダーの高さ（約50px）＋少しの余白 */
}

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

html {
  scroll-behavior: smooth;
  /* 固定ヘッダーの下に見出しが隠れないよう、ページ内リンクの移動先をずらす */
  scroll-padding-top: var(--header-height);
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 120px;
}

/* 蛍光ペンの線 */
.mark {
  background: linear-gradient(transparent 62%, var(--accent) 62%);
  padding: 0 4px;
}

/* 見出し：英字の大見出し＋日本語ラベル */
.heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: inherit;
}

.heading--center {
  align-items: center;
  text-align: center;
}

.heading__en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.heading__ja {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ボタン */
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  background: #33463C;
  transform: translateY(-2px);
}

/* ヘッダー */
/* ヘッダー：スクロールしても画面上部に固定する */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(34, 48, 42, 0.06);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 40px;
  padding-block: 5px;
}

.logo {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 28px;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 32px;
  font-size: 14px;
}

.site-header .logo {
  font-size: 26px;
  line-height: 1.4;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--muted);
}

/* ヒーロー */
.hero {
  position: relative;
  padding-block: 56px 160px;
}

.hero__side {
  position: absolute;
  top: 72px;
  left: clamp(8px, 1.6vw, 24px);
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--muted);
  border-left: 1px solid var(--line-dash);
  padding-left: 10px;
}

.hero__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 48%;
  background: var(--sage);
  border-bottom-left-radius: 48px;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}

.hero__text {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero__en {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.hero__title {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.5;
}

.hero__lead {
  max-width: 32em;
  color: var(--ink-soft);
}

.hero__visual {
  flex: 1 1 360px;
  min-width: 0;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

/* 写真をセージ色の背景になじませる */
.hero-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
  background: var(--sage);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 84%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 84%, transparent);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right, var(--sage), transparent 14%, transparent 86%, var(--sage));
}

/* 写真に貼った小さな紙（第1章） */
.note {
  position: absolute;
  left: 0;
  bottom: 4%;
  z-index: 1;
  width: 190px;
  padding: 28px 22px 20px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.note__chapter {
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.note__title {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.4;
}

.note__date {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.note__tape,
.paper__tape {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 28px;
  margin-left: -60px;
  background: var(--accent);
  opacity: 0.8;
  transform: rotate(-4deg);
}

/* お知らせ（ヒーローに重ねる） */
.news {
  position: relative;
  margin-top: -88px;
  display: flex;
  justify-content: flex-end;
}

.news__card {
  width: min(100%, 620px);
  background: var(--paper-light);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news__title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.1em;
}

.news__title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  align-self: center;
}

.news__title-ja {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.news__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.news__list li:last-child {
  border-bottom: 0;
}

.news__list time {
  font-family: var(--font-en);
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  min-width: 6em;
}

.tag {
  padding: 0 10px;
  border: 1px solid var(--line-dash);
  border-radius: 999px;
  font-size: 11px;
  line-height: 22px;
  color: var(--muted);
}

/* 私たちについて */
.about {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 64px 80px;
}

.about__visual {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.about-photo {
  width: 82%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}

.about__text {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__text .heading {
  margin-bottom: 20px;
}

.about__lead {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.6;
}

.about__text p:not(.about__lead) {
  color: var(--ink-soft);
}

/* 代表者の署名 */
.about__signature {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.about__signature span {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.about__signature strong {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
}

/* 辞書の1項目のような紙 */
/* 写真に重ねる、辞書の1項目のような紙 */
.paper {
  position: relative;
  align-self: flex-end;
  width: min(72%, 330px);
  margin-top: -140px;
  background: var(--paper-light);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  padding: 44px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.paper__word {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 44px);
  line-height: 1.1;
}

.paper__phon {
  font-size: 14px;
  color: var(--muted);
}

.paper__def {
  margin-top: 8px;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.7;
}

.paper__caption {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-dash);
  font-size: 13px;
  color: var(--muted);
}

/* 大切にしていること（浮いた白いカード） */
.values-section {
  background: linear-gradient(to bottom, var(--paper) 0, var(--paper) 50%, var(--sage) 50%, var(--sage) 100%);
}

.values-card {
  background: var(--paper-light);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.values-photo {
  aspect-ratio: 16 / 7;
  max-width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.values-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.value {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px clamp(20px, 3vw, 40px) 16px;
  border-left: 1px solid var(--line);
}

.value:first-child {
  border-left: 0;
}

.value__label {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.value h3 {
  font-size: 21px;
  font-weight: 700;
}

.value p {
  color: var(--ink-soft);
}

/* 会社概要 */
.company {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.profile {
  width: min(100%, 820px);
  margin: 0 auto;
  border-top: 1px solid var(--ink);
}

.profile > div {
  display: grid;
  grid-template-columns: minmax(88px, 180px) minmax(0, 1fr);
  gap: 16px;
  padding: 22px 8px;
  border-bottom: 1px dashed var(--line-dash);
}

.profile dt {
  font-weight: 700;
  color: var(--muted);
}

.profile dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* お問い合わせ */
.contact {
  padding-bottom: 120px;
}

.contact__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-right: clamp(16px, 5vw, 64px);
  background: var(--sage);
  border-top-right-radius: 48px;
  border-bottom-right-radius: 48px;
  padding-block: 104px;
}

/* 背景に薄く敷く写真 */
.contact__bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 46%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(to right, #000 40%, transparent);
  mask-image: linear-gradient(to right, #000 40%, transparent);
}

.contact__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.contact__inner .heading {
  margin-bottom: 16px;
}

.contact__inner p {
  color: var(--ink-soft);
}

/* メールアドレス（リンクにはせず、テキストで表示する） */
.contact__inner .contact__email {
  font-family: var(--font-en);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  user-select: all; /* クリック1回でアドレス全体を選択できるようにする */
}

/* フッター */
.site-footer {
  background: var(--ink);
  color: var(--on-ink);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px 64px;
  padding-block: 72px 48px;
}

.site-footer__company {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo--footer {
  font-size: 32px;
}

.site-footer__company p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--on-ink-muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 8px 56px;
  font-size: 14px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}

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

.site-footer__bottom {
  padding-block: 20px;
  border-top: 1px solid rgba(238, 240, 234, 0.15);
  font-size: 12px;
  color: var(--on-ink-muted);
  text-align: center;
}

/* 404ページ */
.page-not-found {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.not-found {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}

/* タブレット以下 */
@media (max-width: 900px) {
  .hero {
    padding-block: 32px 120px;
  }

  .hero__side {
    display: none;
  }

  .hero__visual {
    flex-basis: 100%;
    justify-content: center;
  }

  .hero__panel {
    top: auto;
    width: 100%;
    height: 52%;
    border-bottom-left-radius: 0;
    border-top-left-radius: 48px;
    left: 24px;
  }

  .section {
    padding-block: 88px;
  }
}

/* スマホ */
@media (max-width: 600px) {
  :root {
    --header-height: 72px;
  }

  /* 固定ヘッダーが画面を覆いすぎないよう、ロゴとメニュー1行に詰める */
  .site-header__inner {
    gap: 0;
    padding-block: 4px;
  }

  .site-header .logo {
    font-size: 20px;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 0 12px;
    font-size: 12px;
    white-space: nowrap;
    overflow-x: auto;
  }

  .nav a {
    min-height: 32px;
  }

  .hero__lead br,
  .contact__inner p br {
    display: none;
  }

  .note {
    width: 150px;
    padding: 22px 16px 14px;
  }

  .note__title {
    font-size: 22px;
  }

  .about-photo {
    width: 88%;
  }

  .paper {
    width: 80%;
    margin-top: -96px;
    padding: 36px 24px 22px;
  }

  .values-photo {
    aspect-ratio: 4 / 3;
  }

  .contact__bg {
    width: 100%;
    opacity: 0.18;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
    mask-image: linear-gradient(to bottom, #000 30%, transparent);
  }

  .news {
    margin-top: -64px;
  }

  .news__card {
    padding: 20px;
  }

  .value {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0;
  }

  .value:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .profile > div {
    grid-template-columns: 80px minmax(0, 1fr);
    padding-inline: 0;
  }

  .contact {
    padding-bottom: 88px;
  }

  .contact__panel {
    padding-block: 72px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}
