/* 共通にできるCSS */

/* ルート変数・共通設定 */
:root {
  --color-primary: #e60021;
  --color-accent: #ffb300;
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-border: #e0e0e0;
  /* --color-text: #222222; */
  --color-text: #4c535b;
  /* --color-text-muted: #666666; */
  --color-text-muted: #66707b;

  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;

  --radius-sm: 6px;
  --radius-md: 10px;

  --max-width: 1120px;
}

/* リセット簡略版 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: #ffffff;
  line-height: 1.7;
}

/* レイアウトユーティリティ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

/* ヘッダー／ナビゲーション */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--spacing-sm);
  padding-bottom: var(--spacing-sm);
  gap: var(--spacing-md);
}

.site-logo span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-text);
  padding: 0.4rem 0;
  border-bottom: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-primary);
}


.site-nav a.active {
  color: var(--color-primary);
}

/* ヘッダーナビ：角丸の下線 */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.1rem;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  border-radius: 999px;
  background-color: transparent;
  transition:
    width 0.2s ease-out,
    background-color 0.2s ease-out;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  width: 100%;
  background-color: var(--color-primary);
}


/* セクション共通 */
.section-header {
  margin-bottom: var(--spacing-lg);
}

.section-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  /* color: var(--color-text-muted); */
  color: var(--color-primary);
  margin: 0 0 var(--spacing-xs);
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 var(--spacing-sm);
}
.section-title span {
  color: var(--color-primary);
}
.section-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

/* 画像プレースホルダー（汎用） */
.image-placeholder {
  /* border-radius: var(--radius-md); */
  /* border: 1.5px dashed #c4c4cc; */
  /* background: repeating-linear-gradient(
    45deg,
    #fafafa,
    #fafafa 6px,
    #f0f0f5 6px,
    #f0f0f5 12px
  ); */
  /* color: #999999; */
  /* font-size: 0.85rem; */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-md);
}

.image-placeholder.pn{
  padding: 0;
}

.image-placeholder img{
  width: 100%;
}

/* お問い合わせセクション */
.section-contact {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  background-image: url(../img/contact_bg.png);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-contact .section-title {
  font-size: 1.4rem;
  color: #fff;
  text-align: center;
}

.contact-embed {
  /* margin-top: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px dashed var(--color-border);
  background-color: #ffffff;
  min-height: 260px; */

  max-width: 800px;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  padding: 16px;
  margin: 0 auto;
}

.contact-embed iframe{
  width: 100%;
  height: 800px;
}

/* 画像モーダル */
.image-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-out, visibility 0.25s ease-out;
}

.image-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.image-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.image-modal__content {
  position: relative;
  max-width: min(1000px, 100vw);
  max-height: 90vh;
}

/* 画像本体のサイズ＆アニメーション */
.image-modal__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);

  transform: scale(0.9);
  opacity: 0;
  transition:
    transform 0.25s ease-out,
    opacity 0.25s ease-out;
}

.image-modal.is-active .image-modal__img {
  transform: scale(1);
  opacity: 1;
}

.image-modal__close {
  position: absolute;
  top: -2rem;
  right: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* 拡大可能な画像ラッパー（共通） */
.image-zoom {
  position: relative;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
}

/* 常時表示する拡大アイコン（右下） */
.image-zoom::after {
  content: "+";
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 2.2rem;
  text-align: center;
  pointer-events: none;
  opacity: 1;
  transform: scale(1);
  transition:
    background 0.2s ease-out,
    transform 0.2s ease-out;
}

/* ホバー時に少しだけ強調 */
.image-zoom:hover::after {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.05);
}

/* 拡大対象画像の演出（共通） */
.image-zoom img.js-modal-image {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: filter 0.2s ease-out, transform 0.2s ease-out;
}

.image-zoom:hover img.js-modal-image {
  filter: brightness(0.92);
  transform: scale(1.01);
}

.br-pc{
  display: block;
}
.br-sp{
  display: none;
}

/* レスポンシブ対応 */
/* タブレット以下 */
@media (max-width: 960px) {
  .site-logo span {
    font-size: 0.9rem;
  }
}

/* スマートフォン */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 0.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .contact-embed iframe{
  height: 900px;
  }

  .br-pc{
  display: none;
  }
  .br-sp{
  display: block;
  }

  .image-modal__content {
    max-width: 100vw;
    padding: 0 var(--spacing-sm);
  }

}