/* ---- Base / Typography ---- */
:root {
  --black: #000;
  --white: #fff;
  --gray: #f7f7f7;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--white); color: var(--black); }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.6;
  font-size: 17px; /* 全体を少し大きめに */
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", Times, serif; /* 見出し=セリフ体 */
  line-height: 1.25;
  margin: 0 0 18px;
}

h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
p  { margin: 0 0 18px; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header / Nav ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px; /* 高さをアップ */
}

.brand a {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 28px;   /* 大きめに調整 */
  font-weight: bold;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--black);
}

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px; /* ナビ間隔を広めに */
}

.nav a {
  color: var(--black);
  text-decoration: none;
  font-size: 18px;   /* ナビ文字も拡大 */
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  font-weight: 500;
}

.nav a:hover { border-color: var(--black); }

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 100px 0; /* Heroの余白も大きめに */
}

.display {
  font-size: 64px;
  letter-spacing: 0.05em;
  margin: 0 0 16px;  /* サブコピーとの余白 */
}

.subtitle {
  font-size: 22px;       /* 20px → 22px にして存在感UP */
  letter-spacing: 0.04em; /* 広めでおしゃれに */
  opacity: 0.9;
  margin: 0 0 24px;      /* ボタンとの余白を少し広げる */
}


.cta-row {
  margin-top: 28px;
  display: flex;
  gap: 16px;
}

.btn {
  appearance: none;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s ease;
  font-size: 16px;
}
.btn:hover {
  background: var(--white);
  color: var(--black);
}
.btn.ghost {
  background: transparent;
  color: var(--black);
}
.btn.ghost:hover {
  background: var(--black);
  color: var(--white);
}

.hero-image img {
  width: 60%;
  height: auto;
  display: block;
  filter: grayscale(100%);
}

.frame-square {
  display: inline-block;
  border: 2px solid #000;
  padding: 8px;   /* 枠と画像の隙間を一定に */
}

.frame-square img {
  display: block;
  width: 200px;   /* 任意のサイズ */
  height: auto;
}



    #cookie-banner{
      position: fixed;
      inset: 0;
      z-index: 2147483647;
      display: none; /* JSがflexにする */
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,.6);
      padding: 24px;
    }
    #cookie-banner .cookie-card{
      width: min(640px, 100%);
      background: #fff;
      color: #111;
      border-radius: 14px;
      padding: 20px;
      box-shadow: 0 12px 40px rgba(0,0,0,.25);
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    }
    #cookie-banner .cookie-actions{
      display: flex;
      gap: 12px;
      justify-content: flex-end;
      margin-top: 14px;
    }
    #cookie-banner button{
      padding: 10px 14px;
      border-radius: 10px;
      border: 1px solid #ddd;
      cursor: pointer;
    }
    #cookie-banner button:not(.secondary){
      background: #111;
      color: #fff;
    }
    #cookie-banner .secondary{
      background: #fff;
      color: #111;
    }
    body.cookie-locked{ overflow: hidden; }
    .cookie-settings-link{
      color:#000000;
      text-decoration:none;
      font-weight:600;
    }
    .cookie-settings-link:hover{
      text-decoration:underline;
    }

/* ---- Sections ---- */
.section {
  padding: 90px 0;
  /* border-top: 1px solid #696565; */
  background: var(--white);
}

.section:nth-child(even) {
  background: var(--gray); /* 交互で背景グレー → メリハリ */
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 24px;
}

.card {
  border: 1px solid var(--black);
  padding: 24px;
  background: var(--white);
  min-height: 200px;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
}

/* ---- Contact ---- */
.contact-form {
  display: grid;
  gap: 14px;
  max-width: 640px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--black);
  background: var(--white);
  padding: 12px;
  font: inherit;
  font-size: 16px;
}
.contact-form button {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 14px 22px;
  font-size: 16px;
  cursor: pointer;
}
.contact-form button:hover {
  background: #333;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--black);
  padding: 36px 0;
  margin-top: 80px;
  font-size: 15px;
  text-align: center;
  background: var(--white);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 60px 0;
  }
  .display { font-size: 46px; text-align: center; }
  .subtitle { text-align: center; font-size: 18px; }
  .cta-row { justify-content: center; }
  .grid-3 { grid-template-columns: 1fr; }
  .nav-wrap { flex-direction: column; height: auto; padding: 14px 0; }
  .nav ul { flex-wrap: wrap; justify-content: center; gap: 16px; }
}


.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  height: 44px;      /* ちょっと大きくしてTILSと高さを揃える */
  margin-right: 8px;
}

.brand-text {
  font-family: "Cormorant Upright", serif;
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-shadow: 0.6px 0.6px 0 #cfcfcf;
}



/* === Intro Video Overlay === */
#video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 9999;
  display: none; /* 初期状態で非表示 */
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-text {
  position: absolute;
  text-align: center;
  color: white;
  font-size: 2rem;
  bottom: 10%;
}

#skip-button {
  margin-top: 1rem;
  padding: 10px 25px;
  font-size: 1.2rem;
  color: white;
  background-color: rgba(0,0,0,0.5);
  border: 2px solid white;
  border-radius: 5px;
  cursor: pointer;
}

.bcc-logo {
  width: 80px;      /* 好きなサイズ */
  height: auto;
  display: block;
  margin: 0 auto 15px auto;  /* ← 横中央 + 下だけ余白 */
}
.tool-title {
  text-align: center;
  margin-top: 0;
}

.learn-more-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 14px;
  border: 1px solid #000;
  color: #000;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: 0.2s;
}

.learn-more-btn:hover {
  background: #000;
  color: #fff;
}


.amezist-hero {
  padding-top: 80px;
}

.amezist-title-wrap {
  display: flex;
  align-items: center;   /* ← ロゴと文字を縦中央揃え */
  gap: 18px;             /* ← 適度な距離 */
  margin-bottom: 20px;
}

.amezist-logo {
  width: 58px;
  height: auto;
  transform: translateY(-9px);  /* ← ロゴを少し上げる */
}




/* === AMEZIST Hero レイアウト調整 === */
.amezist-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); /* 左テキスト / 右画像 */
  grid-template-areas: "text image";
  column-gap: 48px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* 画像以外の直下要素は全部「text」側にまとめる */
.amezist-hero > :not(.hero-image) {
  grid-area: text;
}

/* 画像だけ右カラム */
.amezist-hero .hero-image {
  grid-area: image;
  justify-self: center;   /* 右カラム内で中央寄せ。右寄せなら flex-end に */
}

/* 画像サイズ調整 */
.amezist-hero .hero-image img {
  width: 100%;
  max-width: 550px;
  height: auto;
  display: block;
}

/* タイトル横にロゴ */
.amezist-title-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}

.amezist-logo {
  width: 64px;
  height: auto;
}

/* Hero 内テキストの横幅を少し抑える */
.amezist-hero p {
  max-width: 560px;
}

/* ボタンに少し余白 */
.amezist-hero .btn {
  margin-top: 12px;
}

/* スマホ対応：1カラムに戻す */
@media (max-width: 900px) {
  .amezist-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "image";
    row-gap: 32px;
    text-align: center;
  }

  .amezist-title-wrap {
    justify-content: center;
  }

  .amezist-hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .amezist-hero .hero-image {
    justify-self: center;
  }
}


/* 左側のテキストブロックまとめ */
.amezist-text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  gap: 14px;          /* ← 各要素の間隔 */
  max-width: 560px;   /* ← 読みやすい横幅 */
}

.amezist-hero .hero-image img {
  filter: none !important;
}

/* === Carousel Container === */
.carousel-container {
  position: relative;
  max-width: 900px;      /* 画像の最大幅と揃える */
  margin: 40px auto;     /* Sectionの中で中央に配置 */
  overflow: hidden;
  border: 1px solid #000;
}

/* === Track (横スライド) === */
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* === 画像 === */
.screenshot-image {
  width: 100%;
  height: auto;
  flex-shrink: 0;        /* スライドの要 */
}

/* === 前後ボタン === */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #000;
  padding: 8px 12px;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.2s;
  font-size: 18px;
}

.carousel-btn:hover {
  opacity: 1;
  background: #000;
  color: #fff;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* スマホ対応 */
@media (max-width: 900px) {
  .carousel-container {
    max-width: 100%;
  }
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;      /* ← 矢印を最前面に固定 */
  background: #fff;
  border: 1px solid #000;
  padding: 10px 14px;
  cursor: pointer;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}




/* ベースメッセージ */
.status-message {
  margin-top: 20px;
  font-size: 1.1rem;      /* ← 少し大きく */
  padding: 10px 14px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 500;
}
.status-message.sending{
  color: #0C3090;           
  background: #ffffff;    
  border: 1px solid #0C3090;
}
.status-message.success {
  color: #0C3090;           
  background: #ffffff;    
  border: 1px solid #0C3090;
}
.status-message.error {
  color: #CE201C;          
  background: #ffffff;   
  border: 1px solid #CE201C;
}





.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: white;
  padding: 15px;
  text-align: center;
  z-index: 9999;
  font-size: 14px;
}

.cookie-banner button {
  margin-left: 10px;
  padding: 5px 10px;
  cursor: pointer;
}
