:root {
  --ice: #eef5f8; 
  --beige: #f3e9df;
  --blue: #7c9ab0;
  --deep: #4f6d83;
  --text: #333;
  --white: #ffffff;
  --line: #eaeaea;
}

/* =====================
  BASE
===================== */
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: var(--ice);
  color: var(--text);
  line-height: 1.9;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

h3 {
  font-size: 1rem;
}

/* ルビ調整 */
rt {
  font-size: 0.6rem;
  color: var(--text);
  letter-spacing: 0.1em;
}

/* リンク */
a {
  color: #4a6fa5;
  text-decoration: none;
  position: relative;
}

a:hover::after {
  width: 100%;
}

/* =====================
  HEADER
===================== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;

  /* ←これが重要 */
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  max-width: 1000px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Playfair Display", serif;
  line-height: 1.2;
}

.logo-en {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--blue);
}

.logo a {
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  align-items: center;
  z-index: 1000;
}

.nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  transition: 0.2s;
}

.nav a:hover {
  color: var(--blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;

  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =====================
   BREADCRUMB
===================== */

.breadcrumb {
  max-width: 1000px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  font-size: 0.75rem;
  color: #888;
}

.breadcrumb a {
  color: #888;
  text-decoration: none;
  transition: 0.2s;
}

.breadcrumb a:hover {
  color: var(--blue);
}

.breadcrumb span {
  margin: 0 0.4rem;
  opacity: 0.6;
}

/* =====================
  HERO
===================== */
.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  font-size: clamp(1.2rem, 4vw, 2rem);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  max-width: 20em;
  word-break: keep-all;
}

.catch {
  white-space: nowrap;
}

/* 黒の薄いフィルター */
.dark .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* ←ここで暗さ調整 */
}


/* =====================
  BUTTON
===================== */
.btn-main {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-main:hover {
  background: var(--deep);
  transform: translateY(-2px);
}

/* =====================
  SECTION
===================== */
.section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 1rem;
}

/* =====================
  DIVIDER（上品かわいい線）
===================== */
.divider {
  width: 60px;
  height: 2px;
  background: var(--blue);
  margin: 2.5rem auto;
  opacity: 0.3;
  border-radius: 2px;
}

/* =====================
  NEWS
===================== */
.news-box {
  background: var(--white);
  padding: 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}

#rss-feed a {
  color: var(--blue);
  text-decoration: none;
}

#rss-feed a:hover {
  color: var(--deep);
}

#rss-feed p {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}

/* =====================
  MANIFESTATION
===================== */
.manifest-box {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.btn-sub {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2.5rem;
  border: 1px solid var(--blue);
  color: var(--blue);
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.btn-sub:hover {
  background: var(--blue);
  color: white;
  transform: translateY(-2px);
}

/* =====================
  GRID（カード）
===================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.card-link {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  transition: 0.3s;
}

.card-link:hover {
  transform: translateY(-3px);
}

.card-link img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.card-link h3 {
  padding: 1rem;
}

/* =====================
  QA
===================== */
.qa-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.qa-item {
  background: var(--white);
  padding: 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.qa-item h3 {
  margin-bottom: 0.5rem;
}

.qa-q,
.qa-a {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.qa-q {
  margin-bottom: 0.6rem;
}

.qa-item .label {
  flex-shrink: 0;
  font-weight: bold;
  color: #888;
  min-width: 1.5em;
}

.qa-item .text {
  flex: 1;
}


/* =====================
  SNS
===================== */
.links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-btn {
  background: var(--blue);
  color: var(--white);
  padding: 1rem;
  text-align: center;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.link-btn:hover {
  background: var(--deep);
  transform: translateY(-2px);
}

/* =====================
  SNS（INDEX）
===================== */
.sns-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* 丸ボタン */
.sns-icon {
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  text-decoration: none;

  color: white;
  transition: 0.3s;

  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.sns-icon:active {
  transform: scale(0.95);
}

/* アイコンサイズ */
.icon {
  width: 24px;
  height: 24px;
}

/* ブランドカラー */
.sns-icon.x {
  background: #000;
}

.sns-icon.note {
  background: #41c9b4;
}

.sns-icon.youtube {
  background: #ff0000;
}

/* hover */
.sns-icon:hover {
  transform: translateY(-4px);
  opacity: 0.9;
}


/* =====================
  FOOTER
===================== */
.footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: #777;
}

.footer a {
  margin: 0 0.5rem;
  color: #777;
  text-decoration: none;
}

/* =====================
  BACK TO TOP
===================== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;

  width: 44px;
  height: 44px;

  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: none;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.3s;
}

#backToTop.show {
  opacity: 0.8;
  visibility: visible;
  pointer-events: auto;
}

#backToTop::before {
  content: "";
  width: 10px;
  height: 10px;

  border-top: 2px solid #fff;
  border-right: 2px solid #fff;

  transform: rotate(-45deg) translateY(1px);
}


/* =====================
  PC対応
===================== */
@media (min-width: 768px) {

  .grid {
    grid-template-columns: repeat(3, 1fr);
  }

}

/* =====================
  具現化についてページ
===================== */
.reference {
  margin-top: 20px;
  padding-top: 20px;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
}

.reference-title {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: #999;
}

.reference-item {
  margin: 0;
}

.reference em {
  font-style: italic;
}

/* =====================
  自己紹介ページ
===================== */
.profile-hero {
  margin: 2rem 0 3rem;
}

.profile-hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 14px;
}

.profile-hero img {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* =====================
  セッションページ
===================== */
.coming {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

/* セクション内の見出し */
#policy h2 {
  margin-bottom: 2rem;
}

/* h3（各項目タイトル） */
#policy h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-left: 3px solid var(--blue);
  padding-left: 0.6rem;
}

/* 最初のh3だけ上余白を減らす */
#policy h3:first-of-type {
  margin-top: 1.5rem;
}

/* 本文 */
#policy p {
  margin-bottom: 1.2rem;
}

/* h3直後のpだけ少し詰める */
#policy h3 + p {
  margin-top: 0;
}

.video {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  border-radius: 12px; /* おしゃれ用（任意） */
}

.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================
  TABLE
===================== */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.95rem;
  /*background-color: #fdfbf8; /* ほんのりベージュ */
  border-radius: 12px;
  overflow: hidden;
}

/* 行の区切り */
.legal-table tr {
  border-bottom: 1px solid #e3e8ee; /* くすみブルー寄りの薄グレー */
}

/* 左側（項目） */
.legal-table th {
  width: 35%;
  text-align: left;
  padding: 1rem;
  font-weight: 500;
  color: #4a5a6a; /* くすみブルー濃いめ */
  background-color: #f3f6f9; /* ほんのりブルー */
  vertical-align: top;
}

/* 右側（内容） */
.legal-table td {
  padding: 1rem;
  color: #333;
  line-height: 1.8;
  background-color: #fdfbf8; /* ほんのりベージュ */
}

/* 最後の行の線を消す */
.legal-table tr:last-child {
  border-bottom: none;
}

/* リンクが入ったとき用 */
.legal-table a {
  color: #6b8aa6;
  text-decoration: underline;
}

.legal-table a:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table th,
  .legal-table td {
    box-sizing: border-box;
  }

  .legal-table tr {
    margin-bottom: 1.2rem;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .legal-table th {
    background-color: #f3f6f9;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
  }

  .legal-table td {
    padding: 0.9rem 1rem;
    font-size: 0.9rem;
  }
}

/* =====================
  スマホ対応
===================== */
@media (max-width: 768px) {
  .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100dvh;
    background: var(--white);
    padding: 5rem 2rem;
    transition: 0.3s;
  }

  .nav a {
    width: 100%;
    padding: 0.9rem 1rem;
    margin: 0.3rem 0;
    font-size: 1rem;

    /* タップしやすく */
    min-height: 48px;
  }

  .nav.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-text {
    top: 45%;
  }

  .catch {
    white-space: nowrap;
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
  }
}

