/* =========================
   HERO
========================= */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background: transparent; /* bodyの固定グラデーションをそのまま表示 */
}

/* テキスト：左側に配置 */
.hero__inner {
    position: relative;
    height: 100%;
    /* キャラは absolute で外れるのでテキスト用1カラム */
    display: flex;
    align-items: center;
    padding: 0 80px;
    box-sizing: border-box;
    max-width: 1920px;
    margin: 0 auto;
}

/* キャッチコピー（左）*/
.hero__copy {
    position: relative;
    z-index: 2;               /* キャラより前面 */
    padding-top: 140px;       /* 固定ヘッダー帯分 */
    max-width: 50%;           /* 右半分はキャラ用に空ける */
}

.hero__tagline {
    font-family: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    font-size: clamp(36px, 4.5vw, 68px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.06em;
    color: #fff;
    margin: 0 0 24px;
    /* 落ち影：オレンジ系（2026-06） */
    text-shadow: 0 2px 18px rgba(232, 93, 26, 0.55), 0 1px 4px rgba(176, 72, 28, 0.45);
}

.hero__brand {
    font-family: 'Cinzel', 'Noto Serif JP', serif;
    font-size: clamp(16px, 2vw, 26px);
    font-weight: 600;
    letter-spacing: 0.18em;
    /* 白だと視認できないためオレンジに（2026-06） */
    color: #ff7a2e;
    text-shadow: 0 2px 12px rgba(90, 36, 10, 0.5), 0 1px 3px rgba(58, 28, 14, 0.45);
    margin: 0;
}

/* ヒーロー画像：TOP上部を画面いっぱいに覆う（2026-06）
   hero__chara を 100vw 全面に展開し object-fit:cover でフルブリード。
   hero 自身の overflow:hidden が viewport 端でクリップする。 */
.hero__chara {
    position: fixed;           /* 1枚で固定背景化：スクロールしても残る */
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;               /* 本文より背面・白背景の前面 */
    will-change: opacity;
}

.hero__chara img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;         /* 全面を覆う */
    object-position: center 28%;
    display: block;
}

/* 暗幕オーバーレイは廃止（2026-06）：ヒーロー画像をそのまま表示 */

/* =========================
   HERO Scroll サイン
========================= */

.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    text-align: center;

    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);

    font-family: 'Montserrat', 'Zen Kaku Gothic New', sans-serif;
    letter-spacing: 0.12em;

    transition: opacity .25s ease;
    z-index: 2;
}

.hero-scroll:hover {
    opacity: 1;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: none;
}

.hero-scroll__text {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 2px 10px rgba(176, 72, 28, 0.5), 0 1px 3px rgba(58, 28, 14, 0.4);
}

.hero-scroll__arrow {
    display: block;
    font-size: 14px;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(176, 72, 28, 0.5), 0 1px 3px rgba(58, 28, 14, 0.4);
    animation: scrollFloat 2s ease-in-out infinite;
}

@keyframes scrollFloat {
    0%   { transform: translateY(0);   opacity: .9; }
    50%  { transform: translateY(6px); opacity: .6; }
    100% { transform: translateY(0);   opacity: .9; }
}

/* =========================
   トップメインコンテンツ
========================= */

.top-main {
    position: relative;
    background: transparent; /* bodyの固定グラデーションをそのまま表示 */
}

/* =========================
   ニュース（お知らせ）
========================= */

.top-news-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 10px;
    color: #333;
    text-decoration: none;
    margin: 0 30px;
    transition: color 0.2s ease;
}

.top-news-row:hover {
    color: var(--color-brand-primary);
    text-shadow: none;
}

/* 破線の区切り線 */
.top-news-row::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.15) 0px,
            rgba(0, 0, 0, 0.15) 1px,
            transparent 18px,
            transparent 20px);
    -webkit-mask-image: linear-gradient(90deg,
            transparent 0%,
            #000 15%,
            #000 85%,
            transparent 100%);
    mask-image: linear-gradient(90deg,
            transparent 0%,
            #000 15%,
            #000 85%,
            transparent 100%);
}

.top-news-date {
    flex: 0 0 110px;
    font-size: 12px;
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: #999;
}

.top-news-title {
    flex: 0 1 auto;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    color: #333;
}

.top-news-subtitle {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 10px;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #777;
}

.top-news-row:hover .top-news-date,
.top-news-row:hover .top-news-subtitle {
    color: var(--color-brand-primary);
}

/* =========================
   Vision
========================= */

#vision .vision {
    display: grid;
    position: relative;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 24px;
    min-height: 500px;
}

#vision .vision__content p {
    margin: 0 0 20px;
    line-height: 2;
    letter-spacing: 0.04em;
    color: #444;
}

/* リード文（最初の一文）を大きく */
#vision .vision__lead {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-brand-primary);
    line-height: 1.8;
    margin-bottom: 28px;
}

#vision .vision__sign {
    margin-top: 20px;
    text-align: right;
    padding-right: 50px;
    opacity: 0.75;
    color: #666;
}

#vision .vision__illust {
    position: absolute;
    pointer-events: none;
    right: 0;
}

#vision .vision__illust img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

/* Vision パネル内のお問い合わせ導線（2026-06：独立Contactを統合） */
#vision .vision-contact {
    grid-column: 1 / -1;
    position: relative;
    z-index: 1;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(200, 100, 130, 0.18);
    text-align: center;
}

#vision .vision-contact__lead {
    color: #555;
    line-height: 1.9;
    margin: 0 0 16px;
}

#vision .vision-contact__lead .contact-em {
    color: var(--color-brand-primary);
    font-weight: 700;
}

#vision .vision-contact__btn {
    display: inline-block;
    background: var(--color-brand-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 32px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 20px rgba(232, 93, 26, 0.28);
    transition: background 0.2s ease, transform 0.15s ease;
}

#vision .vision-contact__btn:hover {
    background: #b0481c;
    transform: translateY(-2px);
}

/* =========================
   Service
========================= */

/* カードグリッド：3列基本、小さい画面は2列 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) { /* bp-tablet */
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* カード本体 */
.service-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;

    /* 画像が未設定のときのフォールバック背景 */
    background: linear-gradient(135deg, #ffb070 0%, #f0824a 100%);

    /* 全体を70%不透明に */
    opacity: 0.72;

    box-shadow: 0 6px 24px rgba(160, 40, 80, 0.18);
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    aspect-ratio: 4 / 3;
}

.service-card:hover {
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(160, 40, 80, 0.28);
}

/* 準備中カード：クリック不可・ホバー無効 */
.service-card--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* サービス画像 */
.service-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 下部ラベル（半透明オーバーレイ） */
.service-card__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: rgba(150, 30, 65, 0.62);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
}

/* =========================
   Contact フォーム — 白カード用上書き
   .top-main スコープで specificity を上げる
========================= */

.top-main #contact .contact-box {
    background: rgba(220, 120, 150, 0.07);
    border: 1px solid rgba(200, 100, 130, 0.18);
    border-radius: 16px;
    padding: 20px 24px 24px;
    margin-top: 18px;
}

.top-main #contact .contact-lead {
    color: #555;
    line-height: 1.9;
    margin: 0 0 4px;
    opacity: 1;
}

.top-main #contact .contact-em {
    color: var(--color-brand-primary);
    font-weight: 700;
}

.top-main #contact .contact-label {
    color: #444;
    opacity: 1;
}

.top-main #contact .req {
    color: var(--color-brand-primary);
    opacity: 1;
    border-bottom: none;
    font-size: 11px;
    margin-left: 6px;
}

.top-main #contact .contact-input {
    background: #fff;
    color: #333;
    border: 1px solid rgba(200, 100, 130, 0.3);
    border-radius: 10px;
    padding: 10px 12px;
    width: 97%;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

.top-main #contact .contact-input:focus {
    border-color: var(--color-brand-primary);
}

.top-main #contact select.contact-input option {
    background: #fff;
    color: #333;
}

.top-main #contact select.contact-input:focus {
    background: #fff;
}

.top-main #contact .contact-consent {
    color: #444;
    opacity: 1;
}

.top-main #contact .contact-submit {
    background: var(--color-brand-primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 12px 32px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.top-main #contact .contact-submit:hover {
    background: #b0481c;
    transform: translateY(-2px);
}

.top-main #contact .contact-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.top-main #contact .contact-status {
    color: var(--color-brand-primary);
    font-size: 13px;
    opacity: 1;
}

.top-main #contact .contact-done {
    background: rgba(192, 80, 112, 0.06);
    border: 1px solid rgba(192, 80, 112, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
}

.top-main #contact .contact-done__title {
    color: var(--color-brand-primary);
    font-weight: 800;
    margin: 0 0 6px;
}

.top-main #contact .contact-done__text {
    color: #555;
    margin: 0;
    opacity: 1;
}

/* =========================
   SNS バナー
========================= */

.sns-banner {
    padding: 72px 20px 80px;
    text-align: center;
}

.sns-banner__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sns-banner__logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.18));
}

.sns-banner__name {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 12px rgba(90, 36, 10, 0.85), 0 2px 5px rgba(40, 18, 8, 0.7), 0 1px 2px rgba(30, 14, 6, 0.6);
    margin: 0;
    letter-spacing: 0.08em;
}

.sns-banner__catch {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(90, 36, 10, 0.8), 0 1px 4px rgba(40, 18, 8, 0.7), 0 1px 2px rgba(30, 14, 6, 0.6);
    margin: 0;
    letter-spacing: 0.05em;
}

.sns-banner__links {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.sns-banner__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.sns-banner__link:hover {
    background: rgba(255, 255, 255, 0.38);
    transform: translateY(-3px);
}

.sns-banner__link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* =========================
   RESPONSIVE
   bp-tablet-landscape: 1024px
   bp-tablet          :  900px
   bp-phone-lg        :  680px
   bp-phone           :  520px
   bp-phone-sm        :  480px
========================= */

/* ── Hero Responsive ── */

/* ── 1024px: ヘッダー高さ = 110px ── */
@media (max-width: 1024px) { /* bp-tablet-landscape */
    .hero {
        min-height: 600px;
    }
    .hero__inner {
        padding: 0 48px;
    }
    .hero__copy {
        padding-top: 110px;
    }
    .hero__chara img {
        height: 100%;
    }
}

/* ────────────────────────────────────────────────
   900px: 1カラム化・キャラを絶対配置で右に重ねる
   ヘッダー高さ = 90px
   ※ 900px以下は差し替え画像を使用予定
     → top で上端位置だけ制御、width/height はそのまま
   テキストエリア考慮で top に余裕を持たせる
──────────────────────────────────────────────── */
@media (max-width: 900px) { /* bp-tablet */
    .hero {
        min-height: 600px;
    }
    .hero__inner {
        padding: 0 40px;
        align-items: flex-start;
        padding-top: 110px;
    }
    .hero__copy {
        padding-top: 0;
        max-width: 65%;
    }
    /* キャラ: inset: 0 から top だけ上書きしてヘッダー+テキスト分の余白を確保 */
    .hero__chara {
        top: 0; /* 全面表示：画像はヘッダー背面まで覆う */
    }
    .hero__chara img {
        /* 差し替え画像想定: topからbottomまで残り領域いっぱい */
        height: 100%;
    }
    .hero__tagline {
        font-size: clamp(26px, 4.5vw, 44px);
    }
}

/* ────────────────────────────────────────────────
   680px: ヘッダー高さ = 68px
   top = 68px(ヘッダー) + 60px(テキスト余白) = 128px
──────────────────────────────────────────────── */
@media (max-width: 680px) { /* bp-phone-lg */
    .hero {
        min-height: 540px;
    }
    .hero__inner {
        padding: 0 20px;
        padding-top: 90px;
    }
    .hero__copy {
        padding-top: 110px;
        max-width: 70%;
    }
    .hero__chara {
        top: 0;
    }
    .hero__tagline {
        font-size: clamp(20px, 5.5vw, 32px);
        margin-bottom: 14px;
    }
    .hero__brand {
        font-size: clamp(12px, 3vw, 17px);
    }
}

/* ────────────────────────────────────────────────
   520px: ヘッダー高さ = 60px
   top = 60px(ヘッダー) + 50px(テキスト余白) = 110px
──────────────────────────────────────────────── */
@media (max-width: 520px) { /* bp-phone */
    .hero {
        min-height: 480px;
    }
    .hero__inner {
        padding: 0 16px;
        padding-top: 76px;
    }
    .hero__copy {
        padding-top: 76px;
        max-width: 80%;
    }
    .hero__chara {
        top: 0;
    }
    .hero__tagline {
        font-size: clamp(18px, 5vw, 26px);
        line-height: 1.4;
        margin-bottom: 10px;
    }
    .hero__brand {
        font-size: clamp(11px, 2.8vw, 14px);
    }
}

/* ── Service Grid ── */
@media (max-width: 520px) { /* bp-phone */
    /* SERVICE: 画像非表示、ラベルのみ縦並び */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .service-card {
        aspect-ratio: auto;
        opacity: 0.9;
        border-radius: 10px;
    }
    .service-card__img {
        display: none;
    }
    .service-card__label {
        position: static;
        display: block;
        padding: 14px 20px;
        border-radius: 10px;
        font-size: 14px;
        background: rgba(140, 28, 60, 0.82);
        text-align: left;
    }
    .service-card:hover {
        transform: none;
    }
}

/* ── News Row ── */
@media (max-width: 680px) { /* bp-phone-lg */
    .top-news-row {
        flex-wrap: wrap;
        margin: 0 16px;
        padding: 14px 8px;
    }
    .top-news-date {
        flex: 0 0 auto;
    }
    .top-news-subtitle {
        flex: 1 1 100%;
        margin-left: 0;
        margin-top: 2px;
    }
}

/* ── Vision ── */
@media (max-width: 680px) { /* bp-phone-lg */
    #vision .vision {
        grid-template-columns: 1fr;
    }
    #vision .vision__illust {
        display: none;
    }
    #vision .vision__sign {
        padding-right: 0;
        text-align: left;
    }
}

/* ── SNS Banner ── */
@media (max-width: 480px) { /* bp-phone-sm */
    .sns-banner {
        padding: 48px 16px 56px;
    }
    .sns-banner__name {
        font-size: 18px;
    }
}

/* ───────────────────────────────────────────
   3本柱ナビカード（トップ / 2026-06 刷新）
   ─────────────────────────────────────────── */
.pillar-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1.25rem;
}
.pillar-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:.6rem;
  padding:1.5rem 1.25rem;
  border-radius:18px;
  background:var(--color-cream,#fdf3e6);
  border:1px solid var(--color-brand-pale,#ffd6ad);
  box-shadow:0 6px 20px rgba(58,28,14,.08);
  text-decoration:none;
  color:var(--color-night-deep,#3a1c0e);
  transition:transform .25s ease, box-shadow .25s ease;
}
.pillar-card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(58,28,14,.16);
}
.pillar-card__img{
  width:100%;
  max-width:180px;
  aspect-ratio:4/3;
  object-fit:cover;
  border-radius:12px;
}
.pillar-card__label{
  font-weight:700;
  font-size:1.05rem;
  color:var(--color-brand-primary,#e85d1a);
}
.pillar-card__desc{
  font-size:.86rem;
  line-height:1.6;
  color:var(--color-night-deep,#3a1c0e);
  opacity:.85;
}
@media (max-width:760px){
  .pillar-grid{grid-template-columns:1fr;}
}

/* 入口を2つにした場合（チームは配信配下・2026-06） */
.pillar-grid--2{
  grid-template-columns:repeat(2,1fr);
  max-width:760px;
  margin-inline:auto;
}
@media (max-width:760px){
  .pillar-grid--2{grid-template-columns:1fr;}
}

/* =========================================================
   TOP 背景（2026-06）
   ・背景色は白。世界観の夕暮れグラデは TOP では使わない。
   ・hero 画像は 1 枚だけ（.hero__chara＝固定レイヤー）。
     最上部は不透明、スクロールで JS が opacity を下げ、
     薄れた 1 枚が TOP 全体の背景として残る。
   ※ top.css は index のみ読み込み＝TOP 専用
   ========================================================= */
body { background: #fff !important; }
.hero__chara { transition: opacity .25s linear; }
