/* ==========================================================================
   NEST ブランドサイト — 共通スタイル
   このファイルを編集すると、全ページの見た目が変わります。
   色や余白は下の「:root」の中の変数を変えるだけで調整できます。
   ========================================================================== */

:root {
  /* ---- カラーパレット ---- */
  --color-bg: #fbf7ee;            /* ページ全体の背景(クリーム) */
  --color-bg-alt: #f2ecdd;        /* セクションの背景(少し濃いベージュ) */
  --color-surface: #ffffff;       /* カードなどの背景 */
  --color-ink: #33302a;           /* 本文の文字色 */
  --color-ink-soft: #6b6459;      /* 補足文字色 */
  --color-label: #a08a5f;         /* 小さいラベル文字(EYEBROW) */
  --color-orange: #d97b3d;        /* アクセント: 夕焼け/鳥 */
  --color-orange-dark: #b8602a;
  --color-blue: #3f7ca6;          /* アクセント: 空/鳥 */
  --color-green: #6f8f5b;         /* アクセント: 葉 */
  --color-dark: #2c3b2f;          /* 濃色セクション(フッターなど) */
  --color-border: #e6dcc4;

  /* ---- タイポグラフィ ---- */
  --font-base: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;   /* ゴシック体: ボタン・ナビ・ラベルなどUI部分 */
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; /* 明朝体: 見出し・本文などブランド部分 */

  /* ---- レイアウト ---- */
  --max-width: 1140px;
  --radius: 10px;
  --shadow-soft: 0 12px 32px rgba(60, 50, 30, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* ナビ・ボタン・タグ・フォームなどのUI部分はゴシック体のまま(可読性のため) */
.nav,
.btn,
.card__tag,
.card__duration,
.eyebrow,
input,
textarea,
select,
.form-field label,
.site-footer h4,
.site-footer ul,
.site-footer__bottom,
.view-all-card small {
  font-family: var(--font-base);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease;
}

a:hover {
  opacity: 0.7;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

p {
  margin: 0;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-label);
  margin-bottom: 16px;
}

.section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

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

.section--dark {
  background-color: var(--color-dark);
  color: #f4efe2;
}

.section--dark .eyebrow {
  color: #cfd9c4;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.section-lead {
  margin-top: 20px;
  color: var(--color-ink-soft);
  font-size: 16px;
}

.section--dark .section-lead {
  color: #d9d3c2;
}

/* ---------------- ボタン ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-orange);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--color-orange-dark);
  opacity: 1;
}

.btn--outline {
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn--outline.btn--white {
  background: #fff;
  border-color: #fff;
}

.btn--outline.btn--white:hover {
  background: var(--color-bg-alt);
}

.section--dark .btn--outline {
  border-color: #f4efe2;
  color: #f4efe2;
}

.btn--ghost {
  color: var(--color-blue);
  padding-left: 0;
  padding-right: 0;
}

/* ---------------- ヘッダー ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(60, 50, 30, 0.1);
}

/* body needs top padding equal to the fixed header height */
body {
  padding-top: 73px;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-ink);
}

.logo small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.05em;
  font-weight: 400;
  color: var(--color-ink-soft);
}

.logo svg,
.logo img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

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

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  letter-spacing: 0.05em;
}

.nav__links a.is-current {
  color: var(--color-orange-dark);
  font-weight: 700;
}

.nav__cta-item {
  margin-left: 4px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
}

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 24px 28px;
    gap: 16px;
    display: none;
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__toggle {
    display: block;
  }

  .nav__cta-item {
    margin-left: 0;
    width: 100%;
  }

  .nav__cta {
    width: 100%;
    justify-content: center;
  }
}

/* ---------------- ヒーロー ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  background-color: #fdfaf3;
  max-width: var(--max-width);
  margin: 24px auto 0;
}

.hero__bg {
  display: block;
  width: 100%;
  height: auto;
}

.hero__bg--mobile {
  display: none;
}

.hero__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 1;
  padding-left: clamp(24px, 6vw, 96px);
  padding-right: 24px;
}

.hero__inner > div {
  max-width: 37%;
}

.hero h1 {
  font-size: clamp(15px, 2vw, 27px);
  line-height: 1.5;
}

.hero p {
  margin-top: 20px;
  color: var(--color-ink-soft);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.8;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .hero {
    display: flex;
    flex-direction: column;
    padding: 0 0 32px;
  }

  .hero__bg {
    display: none;
  }

  .hero__bg--mobile {
    display: block;
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    order: 1;
  }

  .hero__inner {
    position: static;
    display: block;
    padding: 24px 24px 0;
    order: 2;
  }

  .hero__inner > div {
    max-width: none;
  }
}

/* ---------------- ページ両サイドの装飾(広い画面のみ表示) ---------------- */

.page-side-decor {
  position: absolute;
  top: 0;
  width: 150px;
  z-index: 5;
  pointer-events: none;
  display: none;
  background-repeat: repeat-y;
  background-size: 150px auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 120px, black calc(100% - 160px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 120px, black calc(100% - 160px), transparent 100%);
}

.page-side-decor--left {
  left: 0;
  background-position: top left;
}

.page-side-decor--right {
  right: 0;
  background-position: top right;
}

@media (min-width: 1500px) {
  .page-side-decor {
    display: block;
  }
}

.values-figure--desktop {
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.values-figure--desktop img {
  display: block;
  width: 100%;
  height: auto;
}

.values-figure--mobile {
  display: none;
}

.values-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.values-list li {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px 20px;
}

.values-list strong {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
}

.values-list p {
  font-size: 14px;
  color: var(--color-ink-soft);
}

@media (max-width: 640px) {
  .values-figure--desktop {
    display: none;
  }

  .values-figure--mobile {
    display: block;
  }

  .values-figure__item + .values-figure__item {
    margin-top: 10px;
  }

  .values-figure--mobile img {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* ---------------- カード類 ---------------- */

.grid {
  display: grid;
  gap: 32px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.hero__art {
  display: flex;
  justify-content: center;
}

.hero__art img {
  width: 100%;
  max-width: 380px;
  height: auto;
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 960px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eadfc2, #d9c9a0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b5c3a;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 16px;
  position: relative;
}

.card--text-only .card__body {
  padding: 28px 24px;
}

.learning-etc {
  margin-top: 16px;
  text-align: right;
  font-family: var(--font-base);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--color-ink-soft);
}

.view-all-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 640px;
  margin: 48px auto 0;
  padding: 24px 32px;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  color: var(--color-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.view-all-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(60, 50, 30, 0.14);
  opacity: 1;
}

.view-all-card strong {
  display: block;
  font-size: 16px;
}

.view-all-card small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-ink-soft);
}

.view-all-card__arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

@media (max-width: 560px) {
  .view-all-card {
    flex-direction: column;
    text-align: center;
  }
}

.card__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media--play::after {
  content: "▶";
  position: absolute;
  bottom: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-orange-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.card__duration {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
}

.card__body {
  padding: 20px 22px 24px;
}

.card__body h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.card__body p {
  font-size: 14px;
  color: var(--color-ink-soft);
}

.card__tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-blue);
  border: 1px solid var(--color-blue);
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* ---------------- 理念3本柱 / アイコンリスト ---------------- */

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

@media (max-width: 860px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.pillars .pillar:nth-child(1) h3 { color: var(--color-blue); }
.pillars .pillar:nth-child(2) h3 { color: var(--color-orange-dark); }
.pillars .pillar:nth-child(3) h3 { color: var(--color-green); }

.pillar__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.pillar p {
  font-size: 14px;
  color: var(--color-ink-soft);
}

/* ---------------- フロー図 ---------------- */

.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 130px;
  text-align: center;
}

.flow__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.flow__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.flow__step span {
  font-size: 13px;
  letter-spacing: 0.05em;
}

.flow__arrow {
  color: var(--color-label);
  font-size: 18px;
}

@media (max-width: 720px) {
  .flow {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 4px 12px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .flow__step {
    flex: none;
  }

  .flow__arrow {
    flex: none;
  }

  .flow-scroller {
    position: relative;
  }

  .flow-scroller__btn {
    display: flex;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-ink);
  }

  .flow-scroller__btn--prev {
    left: -6px;
  }

  .flow-scroller__btn--next {
    right: -6px;
  }
}

@media (min-width: 721px) {
  .flow-scroller__btn {
    display: none;
  }
}

/* ---------------- 学び動画一覧の検索・絞り込み ---------------- */

.video-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.video-filters__search,
.video-filters__select {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: #fff;
}

.video-filters__search {
  flex: 1;
  min-width: 220px;
}

.video-filters__select {
  min-width: 200px;
}

/* ---------------- 学び記事(note) ---------------- */

.note-scroller {
  position: relative;
}

.note-scroller__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  scrollbar-width: none;
}

.note-scroller__track::-webkit-scrollbar {
  display: none;
}

.note-card {
  flex: none;
  width: 240px;
  scroll-snap-align: start;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  color: var(--color-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 記事一覧ページ(/articles.html)ではグリッド表示にするため、固定幅を解除する */
.note-grid.grid {
  align-items: stretch;
}

.note-grid .note-card {
  width: auto;
}

.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(60, 50, 30, 0.14);
  opacity: 1;
}

.note-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eadfc2, #d9c9a0);
  position: relative;
  overflow: hidden;
}

.note-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.note-card__media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #6b5c3a;
  letter-spacing: 0.05em;
}

.note-card__body {
  padding: 16px 18px;
}

.note-card__body h3 {
  font-size: 14px;
  line-height: 1.6;
}

.note-card__date {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
}

.note-scroller__btn {
  display: flex;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--color-ink);
}

.note-scroller__btn--prev {
  left: -14px;
}

.note-scroller__btn--next {
  right: -14px;
}

@media (max-width: 640px) {
  .note-scroller__btn {
    display: none;
  }
}

/* ---------------- お知らせ一覧 ---------------- */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: grid;
  grid-template-columns: 140px 110px 1fr;
  gap: 20px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
}

.news-item time {
  color: var(--color-ink-soft);
  font-size: 13px;
}

.news-item .card__tag {
  justify-self: start;
}

.news-item h3 {
  font-size: 16px;
}

@media (max-width: 640px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------------- フッター ---------------- */

.site-footer {
  background-color: var(--color-dark);
  color: #ece6d6;
  padding: 72px 0 32px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  color: #cfd9c4;
}

.site-footer ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.site-footer .logo {
  color: #fff;
}

.site-footer .logo small {
  color: #b9b0a0;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: #b9b0a0;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- ページヘッダー(下層ページ用) ---------------- */

.page-hero {
  padding: 64px 0 56px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
}

.page-hero p {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--color-ink-soft);
}

/* ---------------- フォーム ---------------- */

.form-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.form-field input,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: #fff;
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form-note {
  font-size: 13px;
  color: var(--color-ink-soft);
  margin-top: 8px;
}

/* ---------------- 汎用フェードイン ---------------- */

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
