@charset "utf-8";

.first-view {
  /* height: calc(100vh - 200px); */
  height: 420px;
  background-image: url(../images/index/bg-main.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.first-view-text {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 50px;
  padding-left: 40px;
  /* padding-bottom: 80px; */
  color: #ffffff;
  font-weight: bold;
  text-shadow: 1px 1px 10px #4b2c14;
}

.first-view-text h1 {
  font-family: sans-serif;
  font-size: 42px;
  line-height: 60px;
}

.first-view-text p {
  font-size: 18px;
  margin-top: 20px;
  line-height: 32px;
}

.feature {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  padding-bottom: 30px;
  padding-left: 40px;
}

.feature div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: #ffffff;
  margin-left: 20px;
  /* border: 3px solid;
  border-color: #aa193e;*/
}

.feature img {
  width: 40px;
  height: 40px;
  display: block;
}

.info {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 30px 40px;
  background-color: #f8f8f8;
}

.info h2 {
  font-size: 22px;
  color: #aa193e;
  font-weight: bold;
  margin-bottom: 20px;
}

.info h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  line-height: 32px;
}

.info h3:first-child {
  margin-top: 0px;
}

.info p {
  font-size: 15px;
  line-height: 24px;
}

.news {
  width: 100%;
  padding-right: 20px;
}

.news-inner {
  height: 300px;
  overflow-y: auto;
}

.news span {
  color: #0000ff;
}

.news a {
  background: #aa193e1a;
  color: #aa193e;
}

.news a:hover {
  color: #e05c7d;
}

.tweet {
  width: 100%;
  padding-left: 20px;
}

.tweet-inner {
  height: 300px;
  overflow-y: auto;
}

.blog {
  background-color: #f8f8f8;
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 30px 40px;
}

.blog h2 {
  font-size: 22px;
  color: #aa193e;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.blog-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.blog-inner img {
  display: block;
  height: 200px;
  margin-left: auto;
  margin-right: auto;
}

.blog h3 {
  font-size: 16px;
  font-weight: bold;
  line-height: 32px;
}

.blog li,
.blog dd {
  font-size: 15px;
  line-height: 28px;
}

.blog dt {
  margin-top: 5px;
}

.blog dd {
  margin-bottom: 0px; /* スタッフ記事を4件載せるにあたり、10px→0pxにする。 */
}

.blog .date {
  margin-right: 10px;
}

.blog a {
  font-weight: bold;
  color: #ed8059;
}

.blog a:hover {
  color: #e05c7d;
}

.slider {
  width: 320px;
}

.attitude {
  max-width: 1200px;
  margin: 60px auto 0;
  background-color: #f8f8f8;
  padding: 30px 40px;
}

.attitude h2 {
  font-size: 22px;
  color: #aa193e;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

.item-list {
  display: flex;
  overflow-x: scroll;
  padding-bottom: 10px;
}

.item-list li {
  flex-shrink: 0;
  width: 300px;
  margin-left: 30px;
}

.item-list li:first-child {
  margin-left: 0;
}

video {
  height: 220px;
}

.item-list li:first-child {
  margin-left: 0;
}

.item-list dl {
  margin-top: 20px;
}

.item-list dt {
  font-weight: bold;
}

.item-list dd {
  font-size: 13px;
  line-height: 20px;
  margin-top: 10px;
}

@media (max-width: 800px) {
  .first-view {
    height: calc(var(--vh) * 100 - 50px);
    background-image: url(../images/index/bg-main-sp.jpg);
  }

  .first-view-text {
    padding-top: 40px;
    padding-left: 0px;
    width: 90%;
    margin: 0 auto;
  }

  .first-view-text h1 {
    font-size: 32px;
    line-height: 44px;
  }

  .first-view-text p {
    font-size: 15px;
    margin-top: 15px;
    line-height: 28px;
  }

  .feature {
    width: 90%;
    margin: 0 auto;
    padding-left: 0px;
    padding-bottom: 25px;
  }

  .feature div {
    margin-left: 15px;
  }

  .feature div:first-child {
    margin-left: 0;
  }

  .info {
    display: block;
    margin-top: 45px;
  }

  .news {
    padding-left: 0px;
    padding-right: 0px;
  }

  .tweet {
    margin-top: 30px;
    padding-left: 0px;
    padding-right: 0px;
  }

  .blog-inner {
    display: block;
  }

  .blog h3 {
    margin-top: 10px;
  }

  .slider {
    width: 100%;
    margin-top: 20px;
  }
}

/* =========================================
   ▼ ここから：Kokokara Note（トップページ専用）
========================================= */
#kokokara-note {
  scroll-margin-top: 80px;
}

.kk-kokokara {
  margin: 60px auto 0;
  max-width: 1200px;
  padding: 30px 40px;
  background: #fafafa;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.kk-kokokara__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  position: relative;
}

/* タイトル＆アイコン */
.kk-kokokara__title {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 700;
  margin: 0 0 16px;
  color: #c81e1e;
  line-height: 1.35; /* 折り返し時に余裕を持たせる */
}

/* 説明＆DLボタン */
.kk-kokokara--center .kk-kokokara__body {
  text-align: center;
}

.kk-kokokara__lead {
  line-height: 1.9;
  margin: 0 0 16px;
}
.kk-kokokara--center .kk-kokokara__lead {
  max-width: 900px;
  margin: 0 auto 16px;
  text-align: left; /* 読みやすさ優先 */
}

.kk-kokokara__dl {
  margin: 8px 0 20px;
  font-size: 0.95rem;
}
.kk-kokokara--center .kk-kokokara__dl {
  text-align: center;
  margin: 24px 0;
}

/* サムネイルグリッド（デフォルトは2列→タブレット以上で4列） */
.kk-kokokara__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 12px 0 8px;
}
@media (min-width: 768px) {
  .kk-kokokara__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

/* サムネイル見た目 */
.kk-thumb {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.kk-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kk-thumb:hover,
.kk-thumb:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  outline: none;
}

/* おすすめ設定パネル */
.kk-kokokara__side {
  margin-top: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 14px 16px;
}
.kk-side__title {
  font-weight: 700;
  margin: 0 0 8px;
}
.kk-side__list {
  margin: 0 0 8px 1.2em;
  padding: 0;
}
.kk-side__note {
  font-size: 0.9rem;
  color: #666;
}

/* ▼ サムネイル群とおすすめ設定を同じ行に並べる */
@media (min-width: 992px) {
  .kk-kokokara__content {
    display: grid;
    grid-template-columns: 1fr 280px; /* 左: サムネイル群 / 右: おすすめ設定 */
    gap: 24px;
    align-items: start;
    margin-top: 24px;
  }

  /* PCでは本文は左寄せに戻す（見出しとDLだけ中央） */
  .kk-kokokara--center .kk-kokokara__body {
    text-align: left;
  }
  .kk-kokokara--center .kk-kokokara__title,
  .kk-kokokara--center .kk-kokokara__dl {
    text-align: center;
  }

  .kk-kokokara__side {
    text-align: left;
    position: sticky;
    top: 24px;
  }
}

/* モバイル微調整 */
@media (max-width: 800px) {
  .kk-kokokara {
    margin-top: 45px;
  }
  .kk-kokokara__title {
    font-size: 22px; /* clamp の最小18pxより大きく固定 */
    line-height: 1.45; /* 2行になっても読みやすく */
    letter-spacing: 0.02em; /* わずかにゆとり */
  }
  .kk-kokokara--center .kk-kokokara__lead {
    max-width: 92%;
  }
}

/* ダウンロードボタン */
.kk-download-btn {
  display: inline-block;
  background: linear-gradient(135deg, #c81e1e, #e53e3e);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem; /* ← 大きく（1rem → 1.25rem） */
  padding: 16px 36px; /* ← ボリューム感アップ */
  border-radius: 50px; /* ← 丸み強調（ pill 型ボタンに） */
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

  line-height: 1.2; /* 2行時の行間を確保 */
  padding-block: 12px; /* 上下余白を少し増やす（16→18）*/
  text-align: center; /* 2行目も中央に */
}
.kk-download-btn:hover {
  background: #e53e3e;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.kk-download-btn:active {
  transform: translateY(0) scale(1);
}

/* モーダル（変更なし） */
.kk-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.kk-modal[aria-hidden="false"] {
  display: flex;
}
.kk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  border: 0;
}
.kk-modal__content {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  margin: 16px;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.kk-modal__content img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  background: #111;
}
.kk-modal__caption {
  color: #fff;
  font-size: 0.9rem;
  padding: 8px 12px 12px;
  background: #111;
}
.kk-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.kk-modal__close:hover {
  background: #fff;
}
/* 矢印ナビ */
.kk-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.kk-modal__nav:hover {
  background: #fff;
}
.kk-modal__prev {
  left: 8px;
}
.kk-modal__next {
  right: 8px;
}
