@charset "UTF-8";

/* =========================================================
   index.css
   フランキンセンス トップページ用
   オリバナム公式サイトと思想を合わせたカード調デザイン
========================================================= */

/* ==============================
   Base
============================== */

:root {
  --color-bg: #fffdf5;
  --color-bg-soft: #f8f4e8;
  --color-main: #24356f;
  --color-main-dark: #171d3e;
  --color-accent: #c9b23f;
  --color-text: #242424;
  --color-muted: #666666;
  --color-border: #e2dfcf;
  --color-white: #ffffff;
  --shadow-card: 0 12px 28px rgba(36, 53, 111, 0.08);
  --shadow-soft: 0 8px 20px rgba(36, 53, 111, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
}

/* =========================================================
   Top Hero
========================================================= */

.top-hero {
  position: relative;
  min-height: 620px;
  padding: 24px 20px 64px;
  margin: 0;
  background: url("../img/index/hero.jpg") center center / cover no-repeat;
  overflow: hidden;
}

.top-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.70) 0%,
      rgba(255, 255, 255, 0.52) 46%,
      rgba(255, 255, 255, 0.26) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.36) 0%,
      rgba(255, 255, 255, 0.18) 100%
    );
}

.top-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.top-hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 64px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px rgba(36, 53, 111, 0.08);
}

.top-hero__brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
}

.top-hero__brand-name {
  color: #182437;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.top-hero__content {
  max-width: 780px;
  color: #1f2a38;
}

.top-hero__content h1 {
  margin: 0 0 24px;
  font-size: clamp(2.15rem, 5vw, 4.15rem);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #162234;
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.55);
}

.top-hero__content .lead {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 2;
  color: #25364d;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.45);
}

.top-hero__content .lead strong {
  color: #233c8d;
  font-weight: 800;
}

/* ==============================
   Main wrapper
============================== */

.main {
  padding: 20px 20px 76px;
  background:
    radial-gradient(circle at top left, rgba(201, 178, 63, 0.14), transparent 34%),
    linear-gradient(180deg, #fffdf5 0%, #fffaf0 50%, #fffdf5 100%);
}

.text {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.9;
  color: var(--color-text);
}

.text p,
.text li {
  color: var(--color-text);
}

.text a {
  color: var(--color-main);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent);
}

.text a:hover {
  color: var(--color-accent);
}

/* 旧構成で h1 が残った場合の保険。
   新構成では top-hero 内の h1 を使うため、通常は表示されません。 */
.text > h1 {
  margin: 0 0 24px;
  padding: 28px 32px;
  max-width: 980px;
  border-radius: 22px;
  background: linear-gradient(135deg, #eceafd 0%, #dcd8f4 100%);
  color: var(--color-main);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.35;
  letter-spacing: 0.02em;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(36, 53, 111, 0.08);
  border: 1px solid #d8d2ef;
}

.lead {
  max-width: 900px;
  margin: 0 0 24px;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
  line-height: 2;
  color: #3f3f3f;
}

.lead strong {
  color: var(--color-main);
  font-weight: 800;
}

/* ==============================
   Common card
============================== */

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 34px 36px;
}

/* ==============================
   CTA
============================== */

.top-action {
  margin: 38px 0;
  padding: 34px 28px;
  border-radius: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.top-action p {
  margin: 0 0 16px;
}

.top-action p:last-child {
  margin-bottom: 0;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--color-main);
  color: var(--color-white) !important;
  text-decoration: none;
  border-bottom: none !important;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 24px rgba(36, 53, 111, 0.18);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.cta-button:hover {
  background: var(--color-main-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(36, 53, 111, 0.22);
}

/* ==============================
   Intro box
============================== */

.top-intro-box {
  margin: 34px 0;
  padding: 30px 32px;
  border-radius: 24px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.top-intro-box p {
  margin: 0 0 1.2em;
  line-height: 2;
}

.top-intro-box p:last-child {
  margin-bottom: 0;
}

/* ==============================
   Entry cards
============================== */

.top-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 44px 0 48px;
}

.top-entry-card {
  display: block;
  min-height: 100%;
  padding: 28px;
  border-radius: 22px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: none !important;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.top-entry-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 178, 63, 0.72);
  box-shadow: 0 16px 34px rgba(36, 53, 111, 0.12);
}

.top-entry-card h2 {
  margin: 0 0 14px;
  color: var(--color-main);
  font-size: 1.28rem;
  line-height: 1.45;
  font-weight: 800;
}

.top-entry-card h2::before {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: var(--color-accent);
}

.top-entry-card p {
  margin: 0;
  color: #424242;
  font-size: 0.98rem;
  line-height: 1.9;
}

/* ==============================
   Top Summary
============================== */

.top-summary {
  margin: 42px 0;
  padding: 34px 36px;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(248, 244, 232, 0.96)
    );
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.top-summary h2 {
  margin: 0 0 20px;
  padding-left: 16px;
  border-left: 5px solid var(--color-accent);
  color: var(--color-main);
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  line-height: 1.45;
  font-weight: 800;
}

.top-summary__body {
  font-size: 1rem;
  line-height: 1.95;
  color: var(--color-text);
}

.top-summary__body p {
  margin: 0 0 16px;
}

.top-summary__image {
  float: right;
  width: 220px;
  max-width: 34%;
  height: auto;
  margin: 0 0 18px 26px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: none;
}

.top-summary__list {
  margin: 18px 0 0;
  padding-left: 1.4em;
}

.top-summary__list li {
  margin: 0 0 0.75em;
  line-height: 1.9;
}

.top-summary__list li:last-child {
  margin-bottom: 0;
}

.top-summary__body::after {
  content: "";
  display: block;
  clear: both;
}

/* ==============================
   Text sections
============================== */

.top-section {
  margin: 42px 0;
  padding: 36px 38px;
  border-radius: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.top-section h2 {
  margin: 0 0 20px;
  padding-left: 16px;
  border-left: 5px solid var(--color-accent);
  color: var(--color-main);
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  line-height: 1.45;
  font-weight: 800;
}

.top-section p {
  margin: 0 0 1.35em;
  line-height: 2;
}

.top-section p:last-child {
  margin-bottom: 0;
}

/* ==============================
   General heading support
============================== */

.text h2 {
  color: var(--color-main);
}

.text h4 {
  color: var(--color-main);
}

/* テキスト内に旧画像が残っている場合の保険 */
.text img {
  max-width: 100%;
  height: auto;
}

/* introducing.png だけは個別指定を優先 */
.text .top-summary__image {
  max-width: 34%;
}

/* ==============================
   Responsive
============================== */

@media screen and (max-width: 1100px) {
  .top-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 900px) {
  .top-hero {
    min-height: 540px;
    padding: 38px 20px 48px;
  }

  .top-hero__brand {
    margin-bottom: 42px;
  }

  .top-hero__brand-logo {
    width: 50px;
    height: 50px;
  }

  .top-hero__brand-name {
    font-size: 1.65rem;
  }

  .top-hero__content h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
  }

  .top-hero__content .lead {
    font-size: 1rem;
    line-height: 1.9;
  }
}

@media screen and (max-width: 768px) {
  .top-hero {
    min-height: auto;
    padding: 28px 16px 36px;
    background-position: center center;
  }

  .top-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.74) 0%,
        rgba(255, 255, 255, 0.68) 100%
      );
  }

  .top-hero__brand {
    gap: 10px;
    margin-bottom: 28px;
    padding: 8px 12px;
  }

  .top-hero__brand-logo {
    width: 42px;
    height: 42px;
  }

  .top-hero__brand-name {
    font-size: 1.32rem;
  }

  .top-hero__content h1 {
    margin-bottom: 18px;
    font-size: clamp(1.85rem, 8vw, 2.5rem);
    line-height: 1.35;
  }

  .top-hero__content .lead {
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .main {
    padding: 34px 16px 58px;
  }

  .text {
    font-size: 15.8px;
    line-height: 1.9;
  }

  .text > h1 {
    margin-bottom: 22px;
    padding: 24px 20px;
    border-radius: 18px;
    font-size: clamp(1.7rem, 7vw, 2.35rem);
    line-height: 1.4;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.95;
  }

  .top-action {
    margin: 30px 0;
    padding: 26px 20px;
  }

  .cta-button {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    text-align: center;
  }

  .top-intro-box {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .top-entry-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 34px 0 38px;
  }

  .top-entry-card {
    padding: 24px 22px;
    border-radius: 20px;
  }

  .top-entry-card h2 {
    font-size: 1.18rem;
  }

  .top-summary {
    padding: 26px 22px;
    border-radius: 20px;
  }

  .top-summary h2 {
    font-size: 1.45rem;
  }

  .top-summary__image,
  .text .top-summary__image {
    display: none;
  }

  .top-section {
    margin: 34px 0;
    padding: 28px 22px;
    border-radius: 20px;
  }

  .top-section h2 {
    font-size: 1.32rem;
  }
}

@media screen and (max-width: 480px) {
  .top-hero__brand-name {
    font-size: 1.12rem;
  }

  .top-hero__content h1 {
    font-size: 1.72rem;
  }

  .top-hero__content .lead {
    font-size: 0.93rem;
  }

  .main {
    padding: 26px 12px 48px;
  }

  .text {
    font-size: 15.5px;
  }

  .text > h1 {
    padding: 22px 18px;
    font-size: clamp(1.55rem, 7.4vw, 2.05rem);
  }

  .top-entry-card,
  .top-intro-box,
  .top-summary,
  .top-section,
  .top-action {
    border-radius: 18px;
  }
}

/* ==============================
   Reduced motion
============================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cta-button,
  .top-entry-card {
    transition: none;
  }

  .cta-button:hover,
  .top-entry-card:hover {
    transform: none;
  }
}