* {
  box-sizing: border-box;
}

:root {
  --color-bg: #ecebe6;
  --color-text-primary: #333333;
  --color-text-secondary: #333333;
  --color-accent: #bca47a;
  --color-accent-light: #f5f4ef;
  --color-border: #d1d0ca;
  --font-sans: 'Noto Sans JP', -apple-system, sans-serif;
  --space-xl: 32px;
  --space-5xl: 160px;
  --radius-sm: 0px;
  --transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1170px;
  --container-padding: 15px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background: var(--color-bg);
  line-height: 2.0;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0L103.9 25V75L60 100L16.1 75V25L60 0Z' fill='none' stroke='%23d1d0ca' stroke-width='0.5' stroke-opacity='0.15'/%3E%3C/svg%3E");
}

h1,
h2,
h3 {
  font-family: 'Shippori Mincho', serif;
}

/* スマホ専用改行 */
.sp-br {
  display: none;
}

.img-wrap {
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero */
.hero {
  height: 80vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 0 40px;
}

.hero-pre {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 500;
  line-height: 1.4;
  font-family: 'Shippori Mincho', serif;
  letter-spacing: 0.1em;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Concept Section */
.concept-section {
  padding: 120px 0;
  background: #fff;
}

.concept-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  text-align: center;
}

.concept-title {
  font-size: 28px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  margin-bottom: 40px;
  line-height: 1.8;
  color: var(--color-text-primary);
}

.family-box {
  position: relative;
  padding: 32px 60px;
  margin: 80px auto 0;
  max-width: 840px;
  background: #f9f9f9;
  border: none;
}

.family-header {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 24px;
  text-align: left;
}

.family-tag {
  font-size: 24px;
  color: #333333;
  font-weight: 500;
  margin-bottom: 0;
  display: block;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.family-header-line {
  flex-grow: 1;
  height: 1px;
  background: #333333;
}

.family-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  text-align: left;
}

.family-silhouette {
  flex: 0 0 180px;
}

.family-silhouette img {
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.2);
}

.family-text {
  flex: 1;
}

.family-name {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 24px;
  display: block;
}

.family-tag {
  font-size: 16px;
  color: #888;
  letter-spacing: 0.1em;
}

/* Sections */
.section {
  padding: 120px 0;
  position: relative;
}

.section-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Heading Box */
.heading-box {
  font-family: 'Shippori Mincho', serif;
  font-size: 24px;
  font-weight: 700;
  color: #333333;
  padding: 8px 16px;
  margin-bottom: 40px;
  display: block;
  line-height: 1.4;
  letter-spacing: 0.05em;
  border-left: 4px solid var(--color-accent);
  background: #f9f9f7;
}

/* Concept Block */
.concept-block {
  max-width: 100%;
  margin: 0 auto 120px;
  text-align: center;
}

.concept-image {
  width: 100%;
  margin-bottom: 0;
}

.concept-image img {
  width: 100%;
  height: auto;
  display: block;
}

.concept-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--space-xl);
}

.concept-line {
  width: 1px;
  height: 100px;
  background: #333333;
  margin-bottom: 40px;
}

.concept-label {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: #333333;
  font-family: var(--font-sans);
}

.concept-headline {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 48px;
  font-family: 'Shippori Mincho', serif;
  color: #333333;
  letter-spacing: 0.05em;
}

.concept-text {
  max-width: 720px;
  font-size: 16px;
  line-height: 2.2;
  color: #333;
  text-align: left;
  margin: 0 auto;
}

/* Grid */
.grid-2 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.grid-2 div:first-child {
  order: 1;
}

.grid-2 div:last-child {
  order: 2;
}

.grid-2.reverse {
  display: flex;
  flex-direction: column;
}

.grid-2.reverse div:first-child {
  order: 1;
}

.grid-2.reverse div:last-child {
  order: 2;
}

/* Loading Overlay */
#loading {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

#loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
/* SP Menu Button */


.menu-btn.is-active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* SP Nav Overlay */


.family-header {
  justify-content: center;
  gap: 16px;
}

/* Concept Block */
.concept-block {
  margin-bottom: 60px;
}

.concept-label {
  font-size: 18px;
  letter-spacing: 0.3em;
  margin-bottom: 24px;
}

.concept-headline {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.concept-line {
  height: 80px;
  margin-bottom: 32px;
}

.concept-text {
  text-align: left;
}

/* Mobile: Ensure Image comes first */
.grid-2 {
  display: flex !important;
  flex-direction: column !important;
}

.grid-2 div:first-child {
  order: 1 !important;
}

.grid-2 div:last-child {
  order: 2 !important;
}

.grid-2.reverse div:first-child,
.grid-2.reverse div:last-child {
  order: unset;
  /* Reset PC order */
}

.grid-2.reverse {
  display: flex !important;
  flex-direction: column !important;
}

.grid-2.reverse div:first-child {
  order: 1 !important;
}

.grid-2.reverse div:last-child {
  order: 2 !important;
}

.grid-2.grid-2>div:last-child {
  text-align: left;
  padding-left: 0;
  /* 画像左端に合わせる */
}

.heading-box {
  font-size: 18px;
  margin-bottom: 32px;
  padding: 8px 16px;
  /* remove left padding to align border */
  border-left: 4px solid var(--color-accent);
  background: #f9f9f7;
}

.grid-2>div:last-child {
  text-align: left;
}
}

/* Extracted CSS */


/* Extracted CSS */

/* --- Extracted Common Header/Footer/Nav from index.css --- */


/* Site-wide Button Hover Enhancements */
.btn-primary,
.btn-secondary {
  position: relative;
}

.btn-primary::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: var(--transition);
  transform-origin: right;
}

.btn-primary:hover::after,
.btn-secondary:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-primary:hover,
.btn-secondary:hover {
  background: transparent !important;
  color: #333333 !important;
  border-color: #333333 !important;
}

/* Specific overrides for color themes */
.btn-primary:hover {
  color: #333333 !important;
  border-color: #333333 !important;
}

.btn-secondary:hover {
  color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
}


/* footer styles removed and moved to common.css */


@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 60vh;
    order: -1;
  }

  .hero-content {
    padding: 100px 40px;
    text-align: center;
  }

  .banner-dark {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding: 100px 40px;
  }

  .banner-dark .section-title {
    text-align: center;
  }

  .grid-2,
  .grid-4,
  .grid-3,
  .design-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .design-row.reverse {
    direction: ltr;
  }

  .slide-row {
    flex-direction: column;
    height: auto;
  }
}

@media (max-width: 768px) {
  body,
  .concept-section p,
  .concept-block p,
  .grid-2 p {
    font-size: 14px !important;
  }

  .concept-title {
    font-size: 18px !important;
    text-align: left !important;
  }

  .concept-inner > p {
    text-align: left !important;
  }

  .concept-section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .section {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .grid-2 {
    margin-bottom: 60px !important;
  }

  .grid-2:last-child {
    margin-bottom: 0 !important;
  }

  .family-content {
    flex-direction: column-reverse;
    gap: 24px;
    align-items: center;
  }

  .family-silhouette {
    flex: 0 0 auto;
    width: 140px;
    margin: 0 auto;
  }

  .family-box {
    padding: 32px 20px;
    margin-top: 40px;
  }

  .family-header {
    justify-content: center;
    text-align: center;
    margin-bottom: 20px;
  }

  .family-tag {
    font-size: 18px;
    white-space: normal;
    text-align: center;
    width: 100%;
  }

  .family-header-line {
    display: none;
  }

  .sp-br {
    display: block;
  }

  .hero-content h1 {
    font-size: 28px !important;
  }

  .hero {
    margin-top: 64px;
  }
}

/* ============================================
   iPad: concept-section / family-box をPC表示に戻す
   (768px〜1024px: iPad縦置き〜横置き)
============================================ */
@media (min-width: 768px) and (max-width: 1024px) {

  /* テキストサイズをPC相当に戻す */
  .concept-section p,
  .concept-block p {
    font-size: 17px !important;
  }

  /* コンセプトタイトル */
  .concept-title {
    font-size: 28px !important;
    text-align: center !important;
  }

  /* コンセプト内リード文 */
  .concept-inner > p {
    text-align: center !important;
  }

  /* コンセプトセクション パディング */
  .concept-section {
    padding-top: 120px !important;
    padding-bottom: 120px !important;
  }

  /* ファミリーコンテンツ: 横並び */
  .family-content {
    flex-direction: row !important;
    gap: 60px !important;
    align-items: flex-start !important;
  }

  /* シルエット画像 */
  .family-silhouette {
    flex: 0 0 180px !important;
    width: auto !important;
    margin: 0 !important;
  }

  /* ファミリーボックス */
  .family-box {
    padding: 32px 60px !important;
    margin-top: 80px !important;
  }

  /* ファミリーヘッダー */
  .family-header {
    justify-content: flex-start !important;
    text-align: left !important;
    margin-bottom: 24px !important;
  }

  /* ファミリータグ */
  .family-tag {
    font-size: 24px !important;
    white-space: nowrap !important;
    text-align: left !important;
    width: auto !important;
  }

  /* 区切り線を表示 */
  .family-header-line {
    display: flex !important;
  }
}