@charset "UTF-8";

/* =========================================================
   KOKETSU A.D.
   Base CSS Ver.1.1

   全ページ共通の土台。

   読み込み順
   1. base.css
   2. reading.css または navigation.css
   3. 各ページの style.css

   ページ固有の表現は各ページのstyle.cssへ記述する。
========================================================= */


/* =========================================================
   Design Tokens
========================================================= */

:root {
  /* Colors */
  --color-bg: #f3f0ea;
  --color-bg-white: #ffffff;
  --color-bg-muted: #eee9e1;

  --color-text: #1f2f31;
  --color-text-soft: #3f4a4c;
  --color-text-light: #6f7778;

  --color-sub: #8a7a67;
  --color-dark: #263231;
  --color-accent: #6d929f;

  --color-border: #e3ded6;
  --color-border-dark: #c9c0b5;

  --color-white: #ffffff;
  --color-black: #111111;

  /* Typography */
  --font-base:
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    sans-serif;

  --font-en:
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;

  --font-size-body: 15px;
  --font-size-body-sp: 14px;
  --font-size-small: 13px;
  --font-size-label: 12px;

  --line-height-body: 2.2;
  --line-height-body-sp: 2.05;
  --line-height-heading: 1.75;

  --letter-spacing-body: 0.05em;
  --letter-spacing-heading: 0.08em;
  --letter-spacing-label: 0.28em;

  /* Hero Typography */
  --hero-label-size: 13px;
  --hero-title-size: clamp(42px, 5vw, 70px);
  --hero-title-weight: 300;
  --hero-title-line-height: 1.45;
  --hero-title-letter-spacing: 0.06em;

  --hero-lead-size: clamp(15px, 1.3vw, 18px);
  --hero-lead-line-height: 2.1;

  /* Layout */
  --content-width: 1120px;
  --content-width-narrow: 760px;

  --side-space-pc: 28px;
  --side-space-sp: 16px;

  /* Section spacing */
  --section-space-pc: 120px;
  --section-space-tablet: 90px;
  --section-space-sp: 76px;

  /* UI */
  --transition-fast: 0.25s ease;
  --transition-base: 0.4s ease;
  --transition-slow: 0.7s ease;

  --shadow-card: 0 20px 50px rgba(31, 47, 49, 0.12);

  /* Layer */
  --z-header: 100;
  --z-modal: 1000;
}


/* =========================================================
   Reset
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-wrap: anywhere;
  font-family: var(--font-base);
  font-size: var(--font-size-body);
  font-weight: 400;
  line-height: var(--line-height-body);
  letter-spacing: var(--letter-spacing-body);
  color: var(--color-text);
  background: var(--color-bg);
}

main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
picture,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

img {
  width: auto;
  height: auto;
}

button,
input,
select,
textarea {
  margin: 0;
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}


/* =========================================================
   Accessibility
========================================================= */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

::selection {
  color: var(--color-white);
  background: var(--color-dark);
}

[hidden] {
  display: none !important;
}


/* =========================================================
   Base Layout
========================================================= */

.page {
  width: 100%;
  overflow: hidden;
}

.section {
  padding: var(--section-space-pc) 0;
}

.section-inner,
.container {
  width: min(
    var(--content-width),
    calc(100% - (var(--side-space-pc) * 2))
  );
  margin-inline: auto;
}

.section-inner--narrow,
.container--narrow {
  width: min(
    var(--content-width-narrow),
    calc(100% - (var(--side-space-pc) * 2))
  );
  margin-inline: auto;
}

.section--white {
  background: var(--color-bg-white);
}

.section--muted {
  background: var(--color-bg-muted);
}

.section--dark {
  color: var(--color-white);
  background: var(--color-dark);
}


/* =========================================================
   Page Hero Typography

   FVの文字サイズ・太さ・行間は全ページ共通で管理する。
   背景画像・高さ・文字位置・オーバーレイは型別CSSまたは
   各ページのstyle.cssで調整する。
========================================================= */

.page-hero__label,
.reading-hero__label {
  margin-bottom: 28px;
  font-family: var(--font-en);
  font-size: var(--hero-label-size);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: var(--letter-spacing-label);
  text-transform: uppercase;
}

.page-hero__title,
.reading-hero__title {
  max-width: 900px;
  font-size: var(--hero-title-size);
  font-weight: var(--hero-title-weight);
  line-height: var(--hero-title-line-height);
  letter-spacing: var(--hero-title-letter-spacing);
}

.page-hero__lead,
.reading-hero__lead {
  max-width: 680px;
  margin-top: 34px;
  font-size: var(--hero-lead-size);
  font-weight: 400;
  line-height: var(--hero-lead-line-height);
}


/* =========================================================
   Section Heading
========================================================= */

.section-header {
  margin-bottom: 56px;
}

.section-header--center {
  text-align: center;
}

.section-label {
  margin-bottom: 26px;
  font-family: var(--font-en);
  font-size: var(--font-size-label);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: var(--letter-spacing-label);
  color: var(--color-sub);
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 500;
  line-height: var(--line-height-heading);
  letter-spacing: var(--letter-spacing-heading);
}

.section-lead {
  margin-top: 30px;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 500;
  line-height: 2;
}

.section-text {
  margin-top: 34px;
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text-soft);
}

.section-text + .section-text {
  margin-top: 24px;
}

.section-note {
  margin-top: 24px;
  font-size: var(--font-size-small);
  line-height: 1.9;
  color: var(--color-text-light);
}


/* =========================================================
   Text Elements
========================================================= */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-small {
  font-size: var(--font-size-small);
}

.text-soft {
  color: var(--color-text-soft);
}

.text-sub {
  color: var(--color-sub);
}

.en {
  font-family: var(--font-en);
  letter-spacing: 0.12em;
}

.prose p + p {
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  margin-top: 1.5em;
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.7em;
}

.prose blockquote {
  margin: 2.5em 0;
  padding: 1.5em 0 1.5em 1.5em;
  border-left: 1px solid var(--color-sub);
  font-size: 1.1em;
  line-height: 2;
}


/* =========================================================
   Common Image
========================================================= */

.media {
  overflow: hidden;
  background: var(--color-border);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* =========================================================
   Buttons / Links
========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 30px;
  border: 1px solid var(--color-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.06em;
  text-align: center;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.button:hover {
  color: var(--color-white);
  background: var(--color-dark);
}

.button--primary {
  color: var(--color-white);
  background: var(--color-dark);
}

.button--primary:hover {
  color: var(--color-dark);
  background: transparent;
}

.button--secondary {
  color: var(--color-dark);
  background: transparent;
}

.button--secondary:hover {
  color: var(--color-white);
  background: var(--color-dark);
}

.button--accent {
  color: var(--color-white);
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.button--accent:hover {
  color: var(--color-accent);
  background: transparent;
}

.button--light {
  color: var(--color-dark);
  border-color: var(--color-white);
  background: var(--color-white);
}

.button--light:hover {
  color: var(--color-white);
  background: transparent;
}

.text-link {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-accent);
  transition: opacity var(--transition-fast);
}

.text-link:hover {
  opacity: 0.65;
}


/* =========================================================
   Common Header Base
========================================================= */

.site-header {
  position: relative;
  z-index: var(--z-header);
  width: 100%;
}

.site-header__inner {
  width: min(
    var(--content-width),
    calc(100% - (var(--side-space-pc) * 2))
  );
  margin-inline: auto;
}

.site-header__logo {
  display: inline-block;
  line-height: 1;
}

.site-header__logo img {
  width: 220px;
  height: auto;
}


/* =========================================================
   Common Footer Base
========================================================= */

.site-footer {
  padding: 110px 24px 90px;
  text-align: center;
  background: var(--color-bg);
}

.site-footer__inner {
  width: min(
    var(--content-width),
    calc(100% - (var(--side-space-pc) * 2))
  );
  margin-inline: auto;
}

.site-footer__text {
  margin-bottom: 34px;
  font-size: 14px;
  line-height: 2;
  color: #4c4034;
}

.site-footer__logo {
  display: inline-block;
}

.site-footer__logo img {
  width: 240px;
  margin-inline: auto;
}

.site-footer__copyright {
  margin-top: 34px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-text-light);
}


/* =========================================================
   Utility
========================================================= */

.pc-only {
  display: inline;
}

.sp-only {
  display: none;
}

.visually-hidden {
  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;
}


/* =========================================================
   Common Animation
========================================================= */

.fade-in,
.fade-up {
  opacity: 0;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.fade-up {
  transform: translateY(24px);
}

.fade-in.is-visible,
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   Page Top
========================================================= */

.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-dark);
  color: var(--color-white);
  background: var(--color-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--transition-fast),
    visibility var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast),
    background-color var(--transition-fast);
}

.page-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top:hover {
  color: var(--color-dark);
  background: var(--color-bg-white);
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 900px) {
  .section {
    padding: var(--section-space-tablet) 0;
  }

  .section-header {
    margin-bottom: 48px;
  }
}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 768px) {
  :root {
    --hero-label-size: 11px;
    --hero-title-size: 36px;
    --hero-title-line-height: 1.55;
    --hero-lead-size: 14px;
    --hero-lead-line-height: 2;
  }

  body {
    font-size: var(--font-size-body-sp);
    line-height: var(--line-height-body-sp);
  }

  .section {
    padding: var(--section-space-sp) 0;
  }

  .section-inner,
  .container,
  .section-inner--narrow,
  .container--narrow {
    width: min(
      560px,
      calc(100% - (var(--side-space-sp) * 2))
    );
  }

  .page-hero__label,
  .reading-hero__label {
    margin-bottom: 22px;
  }

  .page-hero__lead,
  .reading-hero__lead {
    margin-top: 26px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-label {
    margin-bottom: 20px;
    font-size: 11px;
  }

  .section-title {
    font-size: 27px;
    line-height: 1.75;
  }

  .section-lead {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.95;
  }

  .section-text {
    margin-top: 28px;
    font-size: var(--font-size-body-sp);
    line-height: var(--line-height-body-sp);
  }

  .button {
    width: 100%;
    max-width: 360px;
    min-height: 54px;
    padding-inline: 22px;
  }

  .site-header__inner {
    width: calc(100% - 40px);
  }

  .site-header__logo img {
    width: 180px;
  }

  .site-footer {
    padding: 84px 24px 72px;
  }

  .site-footer__inner {
    width: 100%;
  }

  .site-footer__logo img {
    width: 210px;
  }

  .page-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }
}


/* =========================================================
   Reduced Motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in,
  .fade-up,
  .page-top {
    transition: none;
  }

  .fade-in,
  .fade-up {
    opacity: 1;
    transform: none;
  }
}