/* ========================================
   KINOAN - kinoan.net 忠実再現
   font-size: 62.5% (1rem=10px) 環境対応
   ======================================== */

/* --- Reset font-size for KINOAN page --- */
main,
.kn-loading {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

body {
  background-color: #f1f7ec;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/iStock-11.jpg") center top / cover no-repeat;
  z-index: -2;
  pointer-events: none;
}

/* --- Utility: PC / SP toggle --- */
@media (min-width:901px) {
  .sp-only {
    display: none !important;
  }
}

@media (max-width:900px) {
  .pc-only {
    display: none !important;
  }
}

/* ========================================
   Loading Screen
   ======================================== */
.kn-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #d6663e;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#splash_logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.8s ease;
}

.kn-splash-img {
  width: 260px;
  display: block;
}

.fadeUp {
  animation: fadeUpAnime 1s forwards;
  opacity: 0;
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Header override
   ======================================== */
.kn-header {
  background: rgba(255, 255, 255, 0.97) !important;
}

/* ========================================
   Hero Slider
   ======================================== */
.kn-slider {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
}

.kn-slider__wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.kn-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center !important;
  opacity: 0;
  transition: opacity 2s ease;
}

.kn-slider__slide--active {
  opacity: 1;
}

/* Global Slider Images (from PC) */
#slide-0 {
  background-image: url(https://web.archive.org/web/20230424020003im_/https://www.kinoan.net/wp-content/uploads/2023/03/KINOAN-18.png);
}

#slide-1 {
  background-image: url(https://web.archive.org/web/20230424020003im_/https://www.kinoan.net/wp-content/uploads/2023/03/KINOAN-13.png);
}

#slide-2 {
  background-image: url(https://web.archive.org/web/20230424020003im_/https://www.kinoan.net/wp-content/uploads/2023/03/KINOAN-14.png);
}

#slide-3 {
  background-image: url(https://web.archive.org/web/20230424020003im_/https://www.kinoan.net/wp-content/uploads/2023/03/KINOAN-15.png);
}

#slide-4 {
  background-image: url(https://web.archive.org/web/20230424020003im_/https://www.kinoan.net/wp-content/uploads/2023/03/KINOAN-16.png);
}

#slide-5 {
  background-image: url(https://web.archive.org/web/20230424020003im_/https://www.kinoan.net/wp-content/uploads/2023/03/KINOAN-17.png);
}

/* PC */
@media (min-width:992px) {

  .kn-slider,
  .kn-slider__slide {
    height: 48vw !important;
  }
}

/* Tablet */
@media (min-width:576px) and (max-width:991px) {

  .kn-slider,
  .kn-slider__slide {
    height: 95vw !important;
  }
}

/* Mobile */
@media (max-width:575px) {

  .kn-slider,
  .kn-slider__slide {
    height: 147vw !important;
  }
}

/* ========================================
   Concept Section (Tategaki)
   ======================================== */
.kn-concept {
  padding: 120px 0 60px;
  background: transparent;
  min-height: 402px;
}

.kn-concept__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
}

.kn-concept__tategaki {
  writing-mode: vertical-rl;
  font-family: "Noto Serif JP", serif;
  text-align: left;
  line-height: 2.4;
  letter-spacing: 0.12em;
  min-height: 300px;
}

.kn-concept__heading {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 24px;
  color: #333;
}

.kn-concept__tategaki p {
  font-size: 16px;
  color: #333;
  margin: 0;
}

/* ========================================
   Tategaki headings & pair
   ======================================== */
.kn-tategaki-title {
  writing-mode: vertical-rl;
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.1em;
  margin: 0;
  text-align: left;
}

.kn-tategaki-sub {
  writing-mode: vertical-rl;
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.1em;
  margin: 0;
}

.kn-tategaki-pair {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin: 0;
}

/* ========================================
   Family Section (地球は大きな家族 / 元気と笑顔で)
   Archive-faithful: [Title] [Green Box] [Logo]
   ======================================== */
.kn-family-section {
  background: transparent;
  padding: 40px 0 60px;
}

.kn-family-row {
  display: flex;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

.kn-family-row--reverse {
  flex-direction: row-reverse;
}

.kn-family-row__title {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-top: -100px; /* Further move up to match the "more up" request */
}

.kn-family-row__title:first-child {
  margin-right: -60px;
}

.kn-family-row__title:last-child {
  margin-left: -60px;
}

.kn-family-row__box {
  flex: 1;
  position: relative;
  z-index: 1;
}

.kn-family-row__logo {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Logo on the left (first child) → overlap right */
.kn-family-row__logo:first-child {
  margin-right: -60px;
}

/* Logo on the right (last of type) → overlap left */
.kn-family-row>.kn-family-row__logo:last-of-type:not(:first-child) {
  margin-left: -60px;
  margin-right: 0;
}

/* Logo figure */
.kn-logo-fig {
  text-align: center;
}

.kn-logo-fig img {
  max-width: 197px;
  height: auto;
}

.kn-logo-fig--sp {
  margin: 30px auto;
  text-align: center;
}

/* Cover boxes */
.kn-cover {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.kn-cover--green::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #074f2d;
  opacity: 0.2;
}

.kn-cover--gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #d3c783;
  opacity: 0.2;
}

.kn-cover__content {
  position: relative;
  z-index: 1;
  padding: 80px;
  font-size: 16px;
  line-height: 1.8;
  color: #000;
}

.kn-cover__content p {
  margin: 0;
}

/* ========================================
   SP Concept Wrap (縦書き + カード)
   ======================================== */
.kinoan-concept-wrap {
  display: flex;
  align-items: flex-start;
  position: relative;
  padding: 40px 16px 80px 30px;
}

.kinoan-catchcopy {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: "Noto Serif JP", serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 0.12em;
  flex-shrink: 0;
  margin: 0;
  position: relative;
  z-index: 2;
  margin-right: -1.2em;
  margin-top: 10px;
  max-height: 320px;
}

.kinoan-card {
  padding: 40px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  min-height: 380px;
}

.kinoan-card--green {
  background-color: #dce8d4;
}

.kinoan-card--gold {
  background-color: #dce8d4;
}

.kinoan-card p {
  text-align: left;
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.kinoan-card img {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: auto;
  margin: 0;
  z-index: 3;
}

/* ========================================
   Decorative Line
   ======================================== */
.kn-deco-line {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  display: block;
  line-height: 0;
}

.kn-deco-line img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Product Cover Sections (full-width green)
   ======================================== */
.kn-product-cover__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
  z-index: 0;
  box-shadow: inset 0 10px 20px -10px rgba(0,0,0,0.1), inset 0 -10px 20px -10px rgba(0,0,0,0.1);
}

.kn-product-cover {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.kn-product-cover__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  max-width: 100%;
  min-height: 500px;
}

.kn-product-cover--reverse .kn-product-cover__inner {
  flex-direction: row-reverse;
}

.kn-product-cover__text {
  flex: 1;
  padding: 100px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #333;
  font-size: 13.5px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.kn-product-cover__text p {
  margin-bottom: 16px;
}

.kn-product-cover__img {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.kn-product-cover__img figure {
  margin: 0;
}

.kn-product-cover__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product title with icon */
.kn-product-title {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 20px;
  font-family: "Noto Serif JP", serif;
  line-height: 1.4;
}

.kn-product-title::before {
  content: "";
  background: url(https://web.archive.org/web/20230424020003im_/https://www.kinoan.net/wp-content/uploads/2023/03/kinoann-icon.png) center/contain no-repeat;
  min-width: 40px;
  min-height: 40px;
  display: inline-block;
  margin-right: 16px;
  flex-shrink: 0;
}

.kn-product-sub {
  margin-bottom: 8px;
  font-size: 16px;
}

/* ========================================
   Buttons
   ======================================== */
.kn-btn-wrap {
  text-align: center;
  margin-top: 20px;
}

.kn-btn-outline {
  display: inline-block;
  padding: 10px 40px;
  border: 1px solid #000;
  border-radius: 30px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #000;
  text-decoration: none;
  background: transparent;
  transition: all 0.3s ease;
}

.kn-btn-outline:hover {
  background: #000;
  color: #fff;
}

/* ========================================
   Spacer
   ======================================== */
.kn-spacer {
  height: 130px;
  background: transparent;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ========================================
   News Section
   ======================================== */
.kn-news {
  padding: 100px 0 120px;
  background: transparent;
}

.kn-news__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.kn-news__heading {
  text-align: center;
  font-size: 32px;
  font-weight: 400;
  font-family: "Noto Serif JP", serif;
  margin-bottom: 60px;
  color: #333;
}

.kn-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 80px;
}

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

.kn-news__thumb {
  width: 200px;
  height: 200px;
  max-width: 100%;
  margin: 0 auto 12px;
  overflow: hidden;
}

.kn-news__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.kn-news__item:hover .kn-news__thumb img {
  transform: scale(1.05);
}

.kn-news__link {
  display: block;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.kn-news__link:hover {
  color: #074f2d;
}

.kn-news__date {
  font-size: 14px;
  color: #888;
}

/* ========================================
   Scroll Animations
   ======================================== */
.kn-anim {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.kn-anim[data-anim="slide-up"] {
  transform: translateY(60px);
}

.kn-anim[data-anim="slide-left"] {
  transform: translateX(-60px);
}

.kn-anim[data-anim="slide-right"] {
  transform: translateX(60px);
}

.kn-anim--visible {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* ========================================
   PC (≥901px)
   ======================================== */
@media (min-width:901px) {
  .kn-section__inner {
    padding: 60px 40px 80px;
  }

  /* Product sections: exact 50/50 split with image padding */
  .kn-product-cover__inner {
    min-height: 500px;
  }

  .kn-product-cover__text {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 80px 60px;
  }

  .kn-product-cover__img {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .kn-product-cover__img figure {
    width: 100%;
  }

  .kn-product-cover__img img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
  }
}

/* ========================================
   Tablet (≤991px)
   ======================================== */
@media (max-width:991px) {
  .kn-concept {
    padding: 80px 0 40px;
  }

  .kn-cover__content {
    padding: 50px 30px;
  }

  .kn-product-cover__text {
    padding: 50px 30px;
  }

  .kn-product-cover__inner {
    min-height: 400px;
  }
}

/* ========================================
   Mobile (≤900px)
   ======================================== */
@media (max-width:900px) {
  .kn-concept {
    padding: 60px 0 30px;
  }

  .kn-concept__tategaki {
    min-height: 220px;
  }

  .kn-family-section {
    padding: 20px 0 30px;
  }

  .kn-family-row,
  .kn-family-row--reverse {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 20px;
    align-items: stretch;
  }

  .kn-family-row--sp-reverse {}

  .kn-family-row__title {
    display: flex;
    flex: 0 0 auto;
    padding: 0 10px;
  }

  .kn-family-row__box {
    flex: 1;
    width: auto;
  }

  .kn-family-row__logo {
    display: flex;
    order: 3;
    flex: 0 0 100%;
    margin-top: -50px;
    z-index: 2;
  }

  .kn-family-row__logo:last-of-type {
    justify-content: flex-start;
    padding-left: 20%;
  }

  .kn-family-row__logo:first-child {
    justify-content: flex-end;
    padding-right: 20%;
  }

  .kn-logo-fig--sp {
    display: none;
  }

  .kn-logo-fig--sp img {
    max-width: 150px;
  }

  .kn-tategaki-title {
    margin: 0 auto 30px;
    min-height: 160px;
  }

  .kn-tategaki-sub {
    min-height: 140px;
  }

  .kn-tategaki-pair {
    min-height: 160px;
    margin-bottom: 20px;
  }

  .kn-cover {
    min-height: auto;
  }

  .kn-cover__content {
    padding: 30px 20px;
  }

  .kn-product-cover__bg {
    display: block;
    opacity: 0.25;
  }

  .kn-product-cover__inner,
  .kn-product-cover--reverse .kn-product-cover__inner {
    flex-direction: column;
    min-height: auto;
  }

  .kn-product-cover__text {
    padding: 30px 20px 0;
    order: 1;
  }

  .kn-product-cover__img {
    width: 100%;
    order: 2;
  }

  .kn-product-cover__img img {
    min-height: 250px;
    max-width: 100%;
  }

  .kn-spacer {
    height: 60px;
  }

  .kn-news__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 300px;
    margin: 0 auto 50px;
  }

  .kn-news {
    padding: 60px 0 80px;
  }

  .kn-news__heading {
    margin-bottom: 30px;
    font-size: 28px;
  }

  .kn-news__thumb {
    width: 150px;
    height: 150px;
  }
}