/* ===== brand-intro 帯 ===== */
:root{
  --brand-ribbon-color: #1572c8;
  --brand-ribbon-w: 490px;   /* いただいた数値 */
  --brand-ribbon-h: 95px;    /* いただいた数値 */
  --brand-ribbon-gap: 14px;
  --brand-logo-w: 220px;     /* 右上ロゴ幅 初期 */
  --brand-pad-y: clamp(28px, 5vw, 56px);
  --brand-pad-x: clamp(20px, 4vw, 48px);
  --brand-copy-max: 420px;   /* 右本文の最大幅 */
  /* Azure palette */
  --azure-light:  #74BBFB; /* ライトアジュール */
  --azure-pastel: #9ACEEB; /* パステルアジュール */
  --azure-mid:    #74BBFB; /* 見出し等のライトブルー */
}

.brand-intro{
  position: relative;
  isolation: isolate;   /* 内部レイヤー分離 */
  padding: calc(var(--brand-pad-y) * 2) 0;   /* 上下に余白を多めに */
}

/* 斜めのライトアジュール帯（背面） */
/* removed azure diagonal band to unify white background */

/* 大きな背景文字（パステルアジュール） */
/* old absolute position for background heading removed in favor of variable-managed version below */

@media (max-width: 768px){
  /* removed responsive adjustments for diagonal band */
  .brand-intro::after{
    top: 64px;
    left: 16px;
    font-size: clamp(22px, 10vw, 48px);
  }
}

.brand-intro__inner{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 左：リボン / 右：本文 */
  align-items: start;
  gap: clamp(16px, 4vw, 40px);
}

.brand-intro__left{
  min-height: calc(var(--brand-ribbon-h) * 2 + var(--brand-ribbon-gap) + 8px);
}

.ribbons{ position: relative; }

.ribbon{
  width: var(--brand-ribbon-w);
  height: var(--brand-ribbon-h);
  line-height: var(--brand-ribbon-h);
  background: var(--brand-ribbon-color);
  color: #fff;
  font-weight: 800;
  font-size: clamp(20px, 2.8vw, 32px);
  text-align: center;
  border-radius: 6px;
  /* 右端を少し食い込ませてアクセント（好みで） */
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
  box-shadow: 0 6px 18px rgba(21,114,200,.18);
}

.ribbon + .ribbon{ margin-top: var(--brand-ribbon-gap); }

.brand-intro__right{
  display: flex; justify-content: flex-start;
}

.intro-copy{
  max-width: var(--brand-copy-max);
  color: var(--dark-gray);
  line-height: 1.9;
  font-size: clamp(14px, 1.6vw, 16px);
  background: rgba(255,255,255,.78);
  padding: 12px 14px;
  border-radius: 8px;
}

.brand-intro__logo{
  position: absolute;
  right: min(5vw, 48px);
  top: min(3.5vw, 32px);
  width: var(--brand-logo-w);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

/* ===== OUR SERVICE 見出し ===== */
.service-lead{
  padding: 32px 0 12px;
}
.service-lead-en{
  text-align: center;
  color: #1572c8;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: .06em;
  font-weight: 700;
  margin: 0;
}
.service-lead-ja{
  text-align: center;
  color: #1572c8;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  margin: 6px 0 0;
}

/* ===== さんケア 本文帯 ===== */
.service-explain{
  padding: 10px 0 24px;
}
.service-explain-title{
  color: #1572c8;
  font-weight: 800;
  font-size: clamp(20px, 2.6vw, 26px);
  /* 若干左寄せ（中央ではない） */
  margin: 6px 0 16px;
}
.service-explain-body{
  color: var(--dark-gray);
  line-height: 1.9;
}
.service-explain-body p{ margin: 8px 0; }

/* 会社概要より上だけを変更しているため、既存セクションとの余白段差を軽く吸収 */
.brand-intro + .service-lead{ margin-top: 8px; }
.service-explain + #service{ margin-top: 8px; }
/* ===== 全体背景：ページ幅にフィット。縦は自動 ===== */
body{
  background: var(--ivory);
}

/* 以前のヒーロー非表示指定は削除済み */
/* カラーパレット */
:root {
    --primary-green: #4CAF50;
    --light-green: #81C784;
    --beige: #F5F5DC;
    --ivory: #FFFFF0;
    --orange: #FF9800;
    --coral-pink: #FF7F7F;
    --white: #FFFFFF;
    --gray: #666666;
    --dark-gray: #333333;
    --light-gray: #F8F8F8;
}

/* ==== 2段階ヘッダー上書きは廃止（常時fixedへ移行） ==== */
/* .header { position:absolute ... } / .header.is-sticky { ... } / .header.is-overlay { ... } は無効化 */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--ivory);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 2段階ヘッダー（初期はヒーロー上に重ねる→スクロールで白固定） ===== */
/* 無効化：is-sticky系は廃止（fixed + is-solidへ統合） */
/* .header{ position:absolute; ... } と .header.is-sticky{ ... } は削除 */

/* ヘッダー内の色は親色を継承させる */
.logo-text{ color:inherit; }             /* ← ここ重要：固定の緑指定をやめる */
.nav-list a{ color:inherit; }            /* 初期は白、sticky後は黒に自動切替 */
/* .header.is-overlay .nav-list a:hover{ opacity:.85; } は廃止 */

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
/* ヘッダー位置基準（SPでハンバーガーを左端固定） */
.header-content { position: relative; }

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    color: var(--dark-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--primary-green);
}

/* メインコンテンツ（削除済み - JSで動的padding制御） */

/* セクション共通 */
section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-green);
    font-weight: bold;
}

/* ===== ヒーローを"画面高いっぱい"の背景に（見切れ対策） ===== */
.hero{
  position: relative; padding:0; /* overflowは不要。切り欠きの原因になるため外す */
}
/* ヒーロー下端から左下方向(≈210°)に広がる塗りつぶし（白背景の一つ前のレイヤー） */
.hero::before{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;                 /* 伸ばす長さは適宜調整可 */
  background: #cbe6ff;
  z-index: 2;                    /* 帯(z=3)の直下=下端に頂点を一致させる */
  /* 頂点を左から500px・帯の位置(=top)に取り、そこから左側を塗る三角形 */
  clip-path: polygon(0 100%, 0 0, 500px 0);
  pointer-events: none;
}
/* ヒーロー画像はヘッダー高を足した分だけ背を高くし、セクション内で上にずらす */
.hero-image{
  position: relative; z-index: 1; width: 100%;
  height: calc(100svh + var(--header-h));
  margin-top: calc(-1 * var(--header-h));
}
@supports (height: 100dvh){
  .hero-image{ height: calc(100dvh + var(--header-h)); }
}
.hero-image::before{           /* ヘッダー可読性のための薄いグラデ */
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.15) 40%, rgba(0,0,0,0) 70%);
  pointer-events:none; z-index:1;
}
.hero-image::after{            /* ヒーロー下端のライトアジュール帯（高さ約30px） */
  content:""; position:absolute; left:0; right:0; bottom:0; height:30px;
  background: #cbe6ff; /* requested Powder-like Azure */
  pointer-events:none; z-index:3;   /* 帯を最前（ヒーロー内）に */
}
.hero-main-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

.hero-text-section {
    background: transparent;           /* 背景なし */
    color: var(--dark-gray);           /* 文字色＝黒系 */
    text-align: center;
    padding: 4rem 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #E68900;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

/* キャッチコピーセクション */
.catchphrase {
    background-color: var(--ivory);
    padding: 3rem 0;
    text-align: center;
}

.catchphrase-text {
    font-size: 2.5rem;
    color: var(--dark-gray);
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
    font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
}

.catchphrase-description {
    font-size: 1.3rem;
    color: var(--dark-gray);
    line-height: 1.8;
    margin: 24px auto 0;
    max-width: 600px;
}

/* 会社概要セクション */
.about {
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
}

.info-table th,
.info-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

.info-table th {
    background-color: var(--beige);
    font-weight: bold;
    width: 30%;
    color: var(--dark-gray);
}

.info-table td {
    background-color: var(--white);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

.company-message {
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: 10px;
    border-left: 5px solid var(--primary-green);
}

.company-message h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* サービスセクション */
.service { background-color: #fff !important; }

.service-content {
    max-width: 800px;
    margin: 0 auto;
}

.service .section-title,
.service .service-title,
.service .service-subtitle,
.service .feature h4{ color: var(--azure-mid) !important; }

.service-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 3rem;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature{
  background-color: var(--white);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
  transition: transform 0.3s ease;
  border: 2px solid var(--azure-light) !important;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-target {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--coral-pink);
}

.service-target h4 {
    color: var(--coral-pink);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-target ul {
    list-style: disc;
    margin-left: 2rem;
}

.service-target li {
    margin-bottom: 0.5rem;
}

/* チームセクション */
.team {
    padding: 4rem 0;
    background-color: var(--white);
}

.team-content {
    margin-top: 3rem;
}

.team-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.member-card {
    background-color: var(--light-gray);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-green);
}

.member-photo {
    margin-bottom: 1.5rem;
}

.photo-placeholder {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--beige) 0%, var(--ivory) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary-green);
    position: relative;
    overflow: hidden;
}

.photo-text {
    color: var(--gray);
    font-size: 0.9rem;
    font-weight: 500;
}

.member-info h3 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.member-title {
    color: var(--orange);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.member-role {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* お問い合わせセクション */
.contact {
    background-color: var(--white);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background-color: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid var(--primary-green);
}

.contact-item h4 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--orange);
    font-weight: bold;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-message {
    background-color: var(--beige);
    padding: 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
}

/* フッター */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--light-green);
    margin-left: 2rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* プライバシーポリシーページ */
.privacy-page {
    background-color: var(--white);
    padding: 2rem 0 4rem;
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-green);
    text-align: center;
    margin-bottom: 3rem;
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-section {
    margin-bottom: 3rem;
}

.privacy-section h2 {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--beige);
    padding-bottom: 0.5rem;
}

.privacy-section ul {
    list-style: disc;
    margin-left: 2rem;
    margin-top: 1rem;
}

.privacy-section li {
    margin-bottom: 0.5rem;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.contact-info a {
    color: var(--orange);
    font-weight: bold;
}

.policy-date {
    text-align: right;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--beige);
    color: var(--gray);
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ヒーロー画像の初期状態 */
.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-main-img.loaded {
    opacity: 1;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-list {
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .catchphrase {
        padding: 2rem 0;
    }
    
    .catchphrase-text {
        font-size: 2rem;
    }
    
    .catchphrase-description {
        font-size: 1.1rem;
        margin: 20px auto 0;
        max-width: 90%;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .info-table th {
        width: 35%;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .team-members {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .member-card {
        padding: 1.5rem;
    }
    
    .photo-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links a {
        margin: 0 1rem;
    }
}

@media (max-width: 480px) {
    /* main margin-top削除済み */
    
    .hero {
        padding: 0;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .catchphrase {
        padding: 1.5rem 0;
    }
    
    .catchphrase-text {
        font-size: 1.7rem;
    }
    
    .catchphrase-description {
        font-size: 1rem;
        margin: 16px auto 0;
        max-width: 95%;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .info-table th,
    .info-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .feature,
    .contact-item,
    .company-message {
        padding: 1.5rem;
    }
    
    .photo-placeholder {
        width: 100px;
        height: 100px;
    }
    
    .member-info h3 {
        font-size: 1.3rem;
    }
    
    .member-title {
        font-size: 0.9rem;
    }
    
    .member-role {
        font-size: 0.85rem;
    }
}

/* ==== 常時 fixed ヘッダー。色だけ切り替え方式 ==== */
:root { --header-h: 70px; }
/* removed duplicate SP header height to keep single source of truth */

body{ padding-top: var(--header-h); }

.header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 70px;
  z-index: 1000;
  background: transparent;
  color: #fff; /* 初期：白文字 */
  box-shadow: none;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.header.is-solid{
  background: var(--white);
  color: var(--dark-gray);
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

/* ロゴ・ナビは親色を継承（初期=白／切替後=黒） */
.logo-text{ color: inherit !important; }
.nav-list a{ color: inherit !important; }
.header:not(.is-solid) .nav-list a:hover{ opacity: .9; }
.header.is-solid .nav-list a:hover{ color: var(--primary-green) !important; }

/* ヒーローを“ヘッダーの下に潜らせる” — 後半の重複定義は削除 */

/* === Catchphrase を背景画像帯に === */
.catchphrase{
  padding: clamp(32px, 6vw, 80px) 0;
  text-align: center;
}

/* 見出し：モード明朝 / ダークブラウン */
.catchphrase-text{
  font-family: "Mode Mincho","モード明朝","Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif !important;
  color: #48392e !important;
  font-weight: 700;
}

/* 説明文：UD明朝 / ダークブラウン */
.catchphrase-description{
  font-family: "UD Mincho","UD明朝","Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif !important;
  color: #48392e !important;
  background: rgba(255,255,255,.75);
  display: inline-block;
  padding: .75rem 1rem;
  border-radius: 6px;
}

/* ロゴは親色に追従し、サイズは既存を踏襲 */
.logo-img{ height: 50px; width: auto; }

/* DX帯の見出し・本文の色を明示（継承上書き用） */
.hero-text-section .hero-title,
.hero-text-section .hero-subtitle {
  color: var(--dark-gray);
}

/* DX帯の中だけセカンダリボタンを緑系に */
.hero-text-section .btn-secondary{
  color: var(--primary-green);
  border-color: var(--primary-green);
}
.hero-text-section .btn-secondary:hover{
  background: var(--primary-green);
  color: #fff;
}

/* ===== 透かしロゴの縦位置オフセット（必要に応じて調整） ===== */
:root{
  /* ヒーロー1枚目の画像高さが 100svh 前提。微調整したければ 95svh / calc(100svh - 40px) 等に変更 */
  --hero-logo-offset: 100svh;
}

/* ヒーローの透かし：トップ画像の下から表示するように位置を下げる */
.hero::after{
  top: var(--hero-logo-offset);
  right: 0;
  bottom: 0;
  left: 0;
  background-position: center top;
}

/* === 使っていた歌出背景.pngは撤回（背景なしに戻す） === */
.catchphrase{
  background: none !important;
}

/* === ヒーロー全体にロゴの透かしを敷く（30%） === */
/* レイヤー設計：背景写真(.hero-image,z=1) ＜ 透かし(.hero::after,z=2) ＜ テキスト群(z=3) */
.hero{
  position: relative;
}

/* テキスト群（hero-image以外の直下要素）は前面へ */
.hero > :not(.hero-image){
  position: relative;
  z-index: 3;
}

/* 背景写真は最背面 */
.hero .hero-image{
  position: relative;
  z-index: 1;
}

/* 透かしロゴ（中央配置・サイズは後で調整可） */
.hero::after{
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; top: var(--hero-logo-offset);
  pointer-events: none;
  opacity: 0.3;   /* 30% に戻す */
  z-index: 2;
}

/* ヒーローを見せる（過去の非表示ルールの打ち消し） */
.hero{ visibility: visible !important; pointer-events: auto !important; }
.hero .hero-image,
.hero .hero-image::before,
.hero .hero-main-img{ display: block !important; }
.hero::after{ display: block !important; }

/* （任意）色ベタにするなら以下を有効化
.brand-intro { background-color: transparent; }
*/

/* === Hero: show explicitly (競合解消後の最終指定) === */
.hero{ visibility: visible; pointer-events: auto; }
.hero .hero-image,
.hero .hero-image::before,
.hero .hero-main-img{ display: block; }

/* ==== brand-intro 調整 ==== */
.brand-intro .ribbons{
  display: inline-flex !important;
  flex-direction: column;
  gap: 10px;
}

/* リボン：テキスト幅＋左右合計30px（左右15pxずつ） */
.brand-intro .ribbon{
  display: inline-block !important;
  width: auto !important;
  min-width: unset !important;
  height: auto !important;
  padding: 10px 15px !important;     /* ← 左右に15pxずつ余白（合計30px） */
  background: #1572c8 !important;
  color: #fff !important;
  border-radius: 6px;
  line-height: 1.25 !important;
  white-space: nowrap;               /* 折返し避けたい場合。折返し可なら削除 */
}

/* 本文ブロックを200px下げる */
.brand-intro__right{
  margin-top: 200px !important;
}
.brand-intro__right .intro-copy{
  max-width: 420px;                  /* 指定通り維持 */
  color: #333;
}

/* 念のため：もし削除漏れがあった場合の非表示フォールバック */
.brand-intro__logo{ display: none !important; }

/* ===== Hamburger (base) ===== */
.hamburger { display: none; }

.hamburger {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 1100;           /* ロゴより前面 */
  color: inherit;          /* ヘッダーの文字色（白/黒）に追従 */
}
.hamburger span{
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform .25s ease, opacity .25s ease;
}
/* 開いた時は「×」にアニメ変形 */
.hamburger.active span:nth-child(1){ transform: translateY(10px) rotate(45deg); }
.hamburger.active span:nth-child(2){ opacity: 0; }
.hamburger.active span:nth-child(3){ transform: translateY(-10px) rotate(-45deg); }

/* ===== Drawer / Backdrop 初期状態 ===== */
.mobile-nav{
  position: fixed;
  top: 0; bottom: 0;
  left: -82vw;              /* 非表示 */
  width: 35vw;              /* 指定どおり */
  max-width: 320px;
  background: #fff;
  color: var(--dark-gray);  /* 常にダーク */
  z-index: 1050;
  padding: clamp(16px, 4vw, 24px);
  box-shadow: 8px 0 24px rgba(0,0,0,.15);
  transition: left .30s ease;
}
.mobile-nav.open{ left: 0; }
.mobile-nav a{ color: var(--dark-gray) !important; }

.backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity .20s ease;
}
.backdrop.show{
  opacity: 1;
  pointer-events: auto;
}

/* ===== Mobile: 768px以下でドロワーに切替 ===== */
@media (max-width: 768px){
  .hamburger{ display: inline-flex; }
  .nav{ display: none; }
  .header .logo{ margin: 0 auto; }
  .logo-text{ font-size: 1.1rem; }
  .header-content{ gap: .5rem; }
}

/* メニュー展開中は白で固定＆影、見栄えを安定 */
.header.menu-open{
  background: #fff !important;
  color: var(--dark-gray) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

/* ===== Azure theming for sections ===== */
.service { background-color: #fff !important; }
.service .section-title,
.service .service-title,
.service .service-subtitle,
.service .feature h4{ color: var(--azure-mid) !important; }
.feature{ border: 2px solid var(--azure-light) !important; box-shadow: 0 4px 10px rgba(0,0,0,.05); }

.about .section-title,
.about .company-message h3{ color: var(--azure-mid) !important; }

.team .section-title,
.team .member-info h3{ color: var(--azure-mid) !important; }
.photo-placeholder{ border-color: var(--azure-mid) !important; background: linear-gradient(135deg, #F8FBFF 0%, #FFFFFF 100%); }

.contact-item{ border-top-color: var(--azure-mid) !important; }
.contact-item h4{ color: var(--azure-mid) !important; }
.contact-message{ background: var(--azure-pastel) !important; }

/* === PC幅ではハンバーガーを隠し、グローバルナビを表示 === */
@media (min-width: 769px){
  .hamburger { display: none !important; }
  .nav { display: flex !important; }
}

/* ===== モバイルもオーバーレイ方式（ヘッダー固定高） ===== */
@media (max-width: 768px){
  :root { --header-h: 56px; }          /* 固定値。必要あれば 52/60 に調整 */

  /* ヘッダー自体の固定高さ＆縮尺 */
  .header{
    height: var(--header-h) !important;
    padding: 0 12px;
  }
  .logo-img{ height: 28px !important; width: auto; }
  .logo-text{ font-size: 1.05rem !important; }
  .hamburger{ transform: scale(.9); margin-top: -10px; }

  /* ヒーローはヘッダーと重ねる（＝上に潜らせる） */
  .hero-image{
    margin-top: calc(-1 * var(--header-h)) !important;
    height: 100svh !important;        /* 非対応端末用 */
  }
  @supports (height: 100dvh){
    .hero-image{ height: 100dvh !important; }  /* iOS/AndroidのUI領域差を吸収 */
  }

  /* 画像の見せ位置は変更しない（object-position の指定は入れない） */
}

/* ===== SP: リボンの位置調整（中央寄せ・ロゴ下20px） ===== */
@media (max-width: 768px){
  .ribbons{
    margin: 20px auto 0 auto !important;
    text-align: center !important;
    display: inline-block !important; /* 幅を保持しつつ中央寄せ */
  }
  /* ロゴを使う場合に中央寄せ＋下余白 */
  .brand-intro__logo{
    display: block !important;
    margin: 0 auto 20px auto !important;
  }
}

/* ===== SP: リボンをロゴ下・本文寄りに絶対配置 ===== */
@media (max-width: 768px){
  .brand-intro{ position: relative !important; }
  .ribbons{
    position: absolute !important;
    top: 150px !important;      /* 見た目に応じて微調整可 */
    left: 55% !important;        /* 本文寄り */
    transform: translateX(-50%) !important;
    width: auto !important;
    text-align: center !important;
  }
}

/* ===== SP: リボンを .brand-intro__inner を基準に右寄せ配置（変数で微調整） ===== */
@media (max-width: 768px){
  :root{
    --ribbon-top-sp: 84px;   /* 上下位置調整用 */
    --ribbon-right-sp: 12px; /* 右端からの距離 */
    --ribbon-gap-sp: 20px;   /* 2本の間隔 */
  }

  .brand-intro__inner{ position: relative !important; min-height: 220px; }
  .brand-intro__left{ height: 0 !important; }

  .ribbons{
    position: absolute !important;
    top: var(--ribbon-top-sp) !important;
    right: var(--ribbon-right-sp) !important;
    left: auto !important;
    transform: none !important;
    display: inline-flex !important;
    flex-direction: column !important;
    gap: var(--ribbon-gap-sp) !important;
    z-index: 3;
    margin: 0 !important;
  }
  .ribbons .ribbon{ margin: 0 !important; }
}

/***********************
 * Ansery 最終調整パッチ
 * 2025-09-09
 ***********************/

/* ---- 0) 色定義（確認） ---- */
/* remove duplicate azure var block (kept canonical vars at top) */

/* ---- 1) 全面白背景 + ヒーローは画像のみ ---- */
html, body { background:#fff !important; }
section, .service, .about, .team, .contact { background:#fff !important; }

/* ヒーローの見出し/説明/ボタンは消す → 画像だけ残す */
.hero-text-section{ display:none !important; }
.hero .hero-image, .hero .hero-main-img{
  display:block !important;
  opacity:1 !important;
}

/* ---- 2) brand-intro 背景の斜め帯は使わない ---- */
.brand-intro::before{ content:none !important; }

/* ---- 3) About / COMPANY / ONCERY の巨大背景文字 ---- */
/* 位置は「画面の左端と中央の中間くらいのX座標」に 3行で配置。
   縦位置はヒーロー画像直下の青帯より「少し下」に見える高さに設定。 */
:root{
  --about-bg-left-pc: 28vw;                 /* 横位置（PC） 25〜32vwで微調整可 */
  --about-bg-top-pc:  clamp(40px, 6vw, 72px); /* 縦位置（PC） ← “少し下” 目安 */
  --about-bg-left-sp: 32vw;                 /* 横位置（SP） */
  --about-bg-top-sp:  clamp(28px, 8vw, 48px); /* 縦位置（SP） */
}

.brand-intro{ position:relative; isolation:isolate; }
.brand-intro::after{
  content:"About\A COMPANY\A ONCERY";  /* CSSの改行コードは \A を使用 */
  white-space:pre;                       /* 改行を有効化 */
  text-align:center;                     /* 各行を中央揃え */
  position:absolute;
  z-index:-1;                         /* 背景として背面 */
  color: var(--azure-light);           /* ライトアジュールに変更 */
  font-family:"Source Han Sans JP","Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;
  font-weight:800;
  line-height: calc(1em + 36px);        /* 行間を広めに */
  letter-spacing:.02em;
  font-size:clamp(46px, 9.5vw, 102px);  /* およそ+10px拡大（PC） */

  left:var(--about-bg-left-pc);
  top: var(--about-bg-top-pc);
  transform:translateX(-50%);        /* 行の中心を座標に合わせる */
  pointer-events:none;
}

@media (max-width:768px){
  .brand-intro::after{
    font-size:clamp(36px, 13vw, 62px); /* およそ+10px拡大（SP） */
    /* モバイルはやや控えめの行間 */
    line-height: calc(1em + 24px);
    left:var(--about-bg-left-sp);
    top: var(--about-bg-top-sp);
  }
}

/* ---- 4) リボンを右、本文はその直下に並べる ---- */
.brand-intro .brand-intro__inner{
  display:grid;
  grid-template-columns:1.1fr 0.9fr;  /* 左=背景文字の余白 / 右=実コンテンツ */
  align-items:start;
  gap:clamp(12px, 3vw, 24px);
}
.brand-intro__left{  grid-column:2; }         /* リボン */
.brand-intro__right{ grid-column:2; margin-top:clamp(10px,2.2vw,16px); } /* 本文=リボンの下 */

.brand-intro .ribbons{ display:inline-flex; flex-direction:column; gap:10px; }
.brand-intro .ribbon{
  display:inline-block; padding:12px 16px;
  background:#1572c8; color:#fff; border-radius:6px;
  font-weight:800; line-height:1.25; white-space:nowrap;
}

@media (max-width:768px){
  .brand-intro .brand-intro__inner{ grid-template-columns:1fr; }
  .brand-intro__left, .brand-intro__right{ grid-column:1; }
}

/* ---- 5) 会社概要「私たちの使命」左罫線をライトアジュールへ ---- */
.company-message{ border-left:5px solid var(--azure-light) !important; }

/* ---- 6) チームカードの hover 枠：ライトアジュールに統一 ---- */
.member-card{
  border:2px solid transparent;
  transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.member-card:hover{
  border-color:var(--azure-light) !important;   /* #74BBFB */
  box-shadow:0 12px 30px rgba(116,187,251,.15);
}

/* ---- 7) お問い合わせ 見出しカラーをライトアジュール ---- */
.contact .section-title{ color:var(--azure-light) !important; }
