
/* -------------------- 基本セットアップ -------------------- */
*, *::before, *::after { box-sizing: border-box; }
:root{
  --bg: #f5f6f8;
  --panel: #ffffff;
  --ink: #1f2937; /* クールグレー */
  --ink: #ffffff; /* クールグレー */
  --muted: #6b7280;
  --line: rgba(17,24,39,.08);
  --radius: 16px;
  --space: clamp(12px, 2.4vw, 28px);
  --space-sm: clamp(8px, 1.4vw, 16px);
  --shadow: 0 8px 24px rgba(15,23,42,.04), 0 2px 6px rgba(15,23,42,.03);
  --left-bg: #f2f4f7; /* 左ペインのフォールバック背景 */
}
html { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  /* デスクトップではページ全体は固定、高さはビューポート基準 */
  height: 100vh;          /* フォールバック */
  overflow: hidden;       /* ← 右ペインだけスクロール */
  padding-bottom: 100px; /* バーの高さ + α の余白を確保 */
}
@supports (height: 100dvh) {
  body { height: 100dvh; }
}

/* -------------------- 2カラム：左固定／右スクロール -------------------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* ≥1200px で 50/50 */
  height: 100%;
  min-height: 0; /* ← grid子（左右ペイン）の内側スクロールを許可 */
  min-width: 0;  /* ← 横方向のはみ出しを防ぐ */
}
/* 中画面では左40%:右60%に寄せて読みやすく */
@media (max-width: 1200px) {
  .layout { grid-template-columns: 0.85fr 1.15fr; }
}

.left {
  position: relative;           /* 背景動画の基準 */
  isolation: isolate;           /* z-indexの独立化 */
  overflow: hidden;             /* 左ペイン外へ動画がはみ出さない */
  display: grid;
  grid-template-rows: auto 1fr auto; /* ヘッダ／メイン／フッタ */
  gap: var(--space);
  padding: var(--space);
  background: var(--left-bg);   /* 白〜グレー基調に */
  border-right: 1px solid var(--line);
  min-height: 0;                /* ← 高さのはみ出し防止 */
  min-width: 0;                 /* ← 横方向のはみ出し防止 */
}

/* 背景レイヤー：縦動画を“全体表示”しつつ左右はぼかしで埋める */
.bg-stack { position: absolute; inset: 0; z-index: 0; }
.bg-video { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bg-video.bg-fill { display: none; }
.bg-video.bg-main { object-fit: cover; object-position: center; }

/* 読みやすさ向上のため薄いオーバーレイ */
.left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0));
  z-index: 1;
}

/* 左ペイン内の通常コンテンツは前面に */
.left > :not(.bg-stack):not(.logo-center) { position: relative; z-index: 2; }

.right {
  height: 100%;
  min-height: 0;                     /* ← 重要：はみ出し防止 */
  min-width: 0;                      /* ← コンテンツ幅に引っ張られない */
  overflow-y: auto;                  /* ← 右だけスクロール */
  overflow-x: hidden;                /* ← 横スクロールを抑止 */
  -webkit-overflow-scrolling: touch; /* iOS慣性スクロール */
  overscroll-behavior: contain;      /* バウンスで親に伝播しない */
  scrollbar-gutter: stable both-edges; /* スクロールバー幅でのズレ防止 */
  padding: var(--space);
  display: grid;
  align-content: start;
  gap: var(--space);
}

/* カード風の見た目 */
.card {
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: var(--space);
  display: grid;           /* CTAの左/右寄せに使う */
  gap: var(--space-sm);
  min-width: 0;            /* ← Grid子要素のはみ出し対策 */
  overflow-wrap: anywhere; /* ← 長いURL等での横はみ出し対策 */
  word-break: break-word;
}

/* メディアとCTA */
.media { margin-block: var(--space-sm); margin-inline: 0; }
.media img { 
  width: 100%; 
  /*aspect-ratio: 16 / 9; */
  object-fit: cover; 
  border-radius: 14px; 
  border: 5px solid var(--line); 
  display: block; 
}

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-sm); }
.gallery img { 
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 5px solid var(--line);
  /*border: 5px solid var(--muted);*/
  display: block; }

.btn { 
  display: inline-flex; 
  align-items: center; 
  gap: .4em; padding: 
  .6em 1em; 
  border-radius: 999px; 
  /*background: #fff;*/
  background: #1079be; 
  color: var(--ink); 
  border: 1px solid var(--line); 
  text-decoration: none; 
  font-weight: 600; 
  box-shadow: 0 1px 2px rgba(15,23,42,.06); 
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; 
}
.btn:hover { 
  background: #f3f4f6;
  color: black;
  transform: translateY(-1px); 
  box-shadow: 0 6px 16px rgba(15,23,42,.06); 
}
.btn:focus-visible { outline: 2px solid #e5e7eb; outline-offset: 2px; }
.read-more { margin-top: var(--space-sm); justify-self: end; }

/* ヘッダとナビ */
.headerbar { 
  display: flex;
  flex-direction: column; 
  gap: var(--space-sm);
}

.brand { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.brand h1 { margin: 0; color: var(--ink); }


#globalNav{
  position: fixed;
  bottom: 50px;
  left: 50px;
}
.nav { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.nav a { 
  color: var(--ink); 
  text-decoration: none; 
  background: #1079be;
  border: 1px solid var(--line); 
  padding: .45em .9em; 
  border-radius: 999px; 
}
.nav a:hover { 
  background: #f3f4f6;
  color: black;
}

/* 左カラム中央ロゴ */
.logo-center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.logo { 
  width: clamp(120px, 24vw, 200px); 
  height: auto; 
  opacity: .96; 
  filter: drop-shadow(0 8px 24px rgba(15,23,42,.06)); 
}

/* メディア要素のデフォルト（背景動画は除外） */
img, canvas, svg, video:not(.bg-video) { max-width: 100%; height: auto; display: block; }

/* -------------------- モバイルでは縦積み -------------------- */
@media (max-width: 900px) {
  body { height: auto; overflow: auto; }
  .layout { grid-template-columns: 1fr; height: auto; }
  /* ← 1カラム時は左ペインをビューポートの縦幅いっぱいに */
  .left { min-height: 100vh; }
  .right { overflow: visible; }
  .hamburger { display: inline-flex; }
  .nav { display: none; }
  .nav.open { display: flex; }
}

/* アクセシビリティ：動きの少ない環境では動画を停止 */
@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  .left { background: #111; }
}


/* -------------------- 固定SNSボタン -------------------- */
.social-fixed {
  position: fixed;
  bottom: 50%;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.social-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

/* Instagramカラー */
.social-btn.instagram {
  background: #1079be; 
}

.social-btn.instagram:hover {
  background: black;
}

/* LINEカラー */
.social-btn.line {
  background: #1079be; 
}

.social-btn.line:hover {
   background: black;
}

/* LINEカラー */
.social-btn.location {
  background: #1079be; 
}

.social-btn.location.line:hover {
   background: black;
}

.fa-instagram,
.fa-phone,
.fa-envelope,
.fa-clock,
.fa-location-dot,
.fa-phone {
  font-size: 1.562rem;/* 25px */
  color: white;
}


.box28 {
    position: relative;
    margin: 2em 0;
    padding: 25px 10px 7px;
    border: solid 2px #FFC107;
}
.box28 .box-title {
    position: absolute;
    display: inline-block;
    top: -2px;
    left: -2px;
    padding: 0 9px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: #FFC107;
    color: #ffffff;
    font-weight: bold;
}
.box28 p {
    margin: 0; 
    padding: 0;
}


.box27 {
    position: relative;
    margin: 2em 0;
    padding: 1em 1em;
    border: solid 3px white;
    border-radius: 5px 5px 5px 5px;
}
.box27 .box-title {
    position: absolute;
    display: inline-block;
    top: -50px;
    left: 30px;
    padding: 10px 15px;
    height: 25px;
    line-height: 25px;
    font-size: 17px;
    background: white;
    background: black;
    color: #ffffff;
    font-weight: bold;
    border-radius: 5px 5px 0 0;
    border-top: solid 3px white;
    border-left: solid 3px white;
    border-right: solid 3px white;
    border-bottom: solid 6px black;
    height: 50px;
}


.box27 p {
    margin: 0; 
    padding: 0;
}




.container > .row:first-of-type {
  border-top: 1px solid #ccc;
}

.row {
  display: flex;
  border-bottom: 1px solid #ccc;
  padding: 10px;
}

.label {
  width: 100px; /* 左列の幅 */
  font-weight: bold;
  /*background: #f5f5f5;*/
  padding: 8px 15px;
  color: yellowgreen;
}
.value {
  flex: 1;
  padding: 8px 12px;
}


/*全て共通：hideエリアをはじめは非表示*/
.hide-area {
  display: none;
}

/*全て共通：モーダルのボタンの色を変更したい場合*/



.modaal-container {
    position: relative;
    display: inline-block;
    width: 60%;
    margin: auto;
    text-align: left;
    color: #000;
    max-width: 1000px;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
    cursor: auto;
}

.modaal-close:after,
.modaal-close:before {
  background: #ccc;
}

.modaal-close:focus:after,
.modaal-close:focus:before,
.modaal-close:hover:after,
.modaal-close:hover:before {
  background: #666;
}

/*確認を促すモーダル：タイトルの色を変更したい場合*/
#modaal-title {
  font-size: 1.2rem;
  text-align: center;
  margin: 0 0 20px 0;
}

/*動画表示のモーダル：余白を変更したい場合*/
.modaal-video .modaal-inner-wrapper {
  padding: 0;
}

/*tabの形状*/
.tab {
  display: flex;
  flex-wrap: wrap;
}
.tab li a {
  display: block;
  background: #ddd;
  margin: 0 2px 0 0;
  padding: 10px 8px;
  background: lightgray;
  color: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
/*liにactiveクラスがついた時の形状*/
.tab li.active a {
  background: #1079be; 
  border: solid 1px white;
  color: white;
  border-bottom: solid 0px black;
}

/*エリアの表示非表示と形状*/
.area {
  display: none; /*はじめは非表示*/
  opacity: 0; /*透過0*/
  background: white;
  padding: 50px 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: black;
}

/*areaにis-activeというクラスがついた時の形状*/
.area.is-active {
  display: block; /*表示*/
  animation-name: displayAnime; /*ふわっと表示させるためのアニメーション*/
  animation-duration: 2s;
  animation-fill-mode: forwards;
}

@keyframes displayAnime {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

ul {
  list-style: none;
}

a {
  color: #333;
  text-decoration: none;
}

.wrapper {
  width: 100%;
  max-width: 960px;
  margin: 30px auto;
  background: #fefefe;
}

.area h2 {
  font-size: 1.3rem;
  margin: 0 0 20px 10px;
}

.area li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  color: black;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}





/*========= ナビゲーションのためのCSS ===============*/

#g-nav{
    /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
    position:fixed;
    z-index: 999;
    /*ナビのスタート位置と形状*/
	top:0;
    left: -120%;
	width:50%;
    height: 100vh;/*ナビの高さ*/
	background:#999;
    /*動き*/
	transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
#g-nav.panelactive{
    left: 0;
}


/*ナビゲーションの縦スクロール*/
#g-nav.panelactive #g-nav-list{
    /*ナビの数が増えた場合縦スクロール*/
    position: fixed;
    z-index: 999; 
    width:50%;
    height: 100vh;/*表示する高さ*/
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/*ナビゲーション*/
#g-nav ul {
    /*ナビゲーション天地中央揃え*/
    position: absolute;
    z-index: 999;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

/*リストのレイアウト設定*/

#g-nav li{
	list-style: none;
    text-align: center; 
}

#g-nav li a{
	color: #333;
	text-decoration: none;
  padding-bottom: 10px;
  padding-left: 2px;
  padding-right: 2px;
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: bold;
}

/*========= ボタンのためのCSS ===============*/
/* デフォルト（PCサイズ）では非表示にしつつ、固定位置のスタイルを定義 */
.openbtn {
  display: none; /* ← デフォルトでは非表示 */
  
  /* ↓ 表示された際の固定位置を指定 */
  position: fixed;
  z-index: 9999;
  top: 10px;
  right: 10px;
  cursor: pointer;
  width: 50px;
  height: 50px;
  background: #1079be; 
}
	
/*×に変化*/	
.openbtn span{
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
	background-color: white;
  	width: 45%;
  }

.openbtn span:nth-of-type(1) {
	top:15px;	
}

.openbtn span:nth-of-type(2) {
	top:23px;
}

.openbtn span:nth-of-type(3) {
	top:31px;
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
	opacity: 0;
}

.openbtn.active span:nth-of-type(3){
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

/* -------------------- モバイル -------------------- */
@media (max-width: 900px) {
  body { height: auto; overflow: auto; }
  .layout { grid-template-columns: 1fr; height: auto; }
  .left { min-height: 100vh; }
  .right { overflow: visible; }
  
  .openbtn {
    display: block; /* 900px以下になったら表示する */
  }

  .nav { display: none; }
  .nav.open { display: flex; }

.brand h1 { 
  margin: 0; 
  color: var(--ink);
  display:block;
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px
}

}


/* スマートフォンで横並びを維持するための調整 */
@media (max-width: 768px) {
  .card {
    margin: 15px; /* カード全体の左右の余白を少し減らす */
  }

  .list {
    gap: 15px; /* リスト間の隙間を狭くする */
  }

  .list ul {
    flex: 1; /* ★重要：ボックスが画面幅に合わせて伸縮するようになる */
    padding: 15px;
    text-align: center; /* 文字を中央揃えにしてバランスを良くする */
  }

  .modaal-container {
      width: 80%;
  }
}





h1 {
    font-size: 2em;
    margin: .67em 0;
    color: #000;
}

h2,p{
  color: #000;
}




@media (min-width: 768px) {
    .page-heading span {
        padding: 10px 30px;
        width: auto;
        /*min-width: 370px;*/
    }
}
.page-heading span {
    display: inline-block;
    padding: 2vw 7vw;
    /*width: 85vw;*/
    background: #fff;
    border: 1px solid #000;
    border-radius: 100px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .page-heading {
        font-size: 1.5625em;
    }
}
.page-heading {
    line-height: 1;
    letter-spacing: .2em;
    font-feature-settings: "palt" 1;
    font-size: 1.25em;
    position: relative;
    z-index: 1;
    padding-top: 15px;
    margin-bottom: 30px;
}


/* ==================== ページトップへ戻るボタン ==================== */
.to-top{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000; /* social-fixed(9999)より前に */
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: #1079be;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

.to-top:hover{
  background: #000;
}

.to-top.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.to-top:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 3px;
}


/* ギャラリー内の1アイテム */
.gallery-item {
  margin: 0;
  text-align: center;
}

/* キャプション文字 */
.gallery-item figcaption {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #000;
  line-height: 1.4;
}


/* ホバー時だけ画像を半透明に */
.gallery img{
  transition: opacity .2s ease;
}

@media (hover: hover) and (pointer: fine){
  .gallery img:hover{
    opacity: .6;
  }
}


.btn.read-more span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* アイコンと文字の間隔をピクセル指定 */
}


/* 固定バーのスタイル */
.fixed-bottom-bar {
    position: fixed;   /* 画面に固定する設定 */
    bottom: 0;         /* 下から0pxの位置 */
    left: 0;           /* 左から0pxの位置 */
    width: 100%;       /* 横幅を画面いっぱいに */
    background: rgba(0,0,0,0.0); /* 背景色（白）。サイトに合わせて変更してください */
    padding: 15px 20%;   /* 上下の余白 */
    text-align: center;/* ボタンを中央に配置 */
    z-index: 9999;     /* 他の要素より上に表示させる */
    box-shadow: 0 -2px 10px rgba(0,0,0,0.0); /* 上側に少し影をつけて浮き上がらせる */
}

/* スマホで見やすくするための調整（任意） */
@media (max-width: 768px) {
    .fixed-bottom-bar .btn {
        width: 90%; /* スマホではボタンの幅を広げる */
        display: inline-block; /* 幅を効かせるために必要なら */
    }
}






/* =========================================================
   History Timeline（#history の中だけに効かせる）
   - デザイン維持（白/黒/青）
   - checkbox + label（JSなしでも開閉OK）
========================================================= */

#history h2{
  margin: 0 0 10px;
  color: #000;
}

#history li {
    padding: 10px;
    border-bottom: 0px solid #ddd;
}

#history > p{
  margin: 0 0 18px;
  color: #000;
  opacity: .85;
  font-size: .95rem;
}

/* 全体 */
#history #timeline{
  position: relative;
  margin: 0;
  padding: 10px 0 0;
}

/* 左の縦ライン */
#history #timeline::before{
  content: "";
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: rgba(0,0,0,0.15);
}

/* 1項目 */
#history #timeline .work{
  position: relative;
  padding: 0 0 18px 56px;
  margin: 0;
  cursor: pointer; /* liを押せることを示す */
}

/* checkboxは見せない */
#history #timeline .work .toggle{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* タイトル＋日付＋丸の行 */
#history #timeline .work .relative{
  position: relative;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* 丸（ライン上のポイント） */
#history #timeline .work .circle{
  position: absolute;
  left: -47px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #1079be;
}

/* タイトル */
#history #timeline .work label{
  display: block;
  cursor: pointer; /* labelでも切替 */
  font-weight: 700;
  color: #000;
  letter-spacing: .02em;
  padding-right: 110px;
}

/* 日付 */
#history #timeline .work .date{
  position: absolute;
  right: 12px;
  top: 10px;
  font-size: .85rem;
  color: rgba(0,0,0,0.65);
  white-space: nowrap;
}

/* 本文（最初は閉じる） */
#history #timeline .work .content{
  margin-top: 10px;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(16,121,190,0.06);
  display: none;
}
#history #timeline .work .content p{
  margin: 0;
  color: #000;
  line-height: 1.8;
}

/* checkedの時だけ本文を表示 */
#history #timeline .work .toggle:checked ~ .content{
  display: block;
  animation: timelineFade .25s ease;
}

/* checkedの時は丸を強調 */
#history #timeline .work .toggle:checked + .relative .circle{
  background: #1079be;
  border-color: #1079be;
}

/* checkedの時は枠を少し強調 */
#history #timeline .work .toggle:checked + .relative{
  border-color: rgba(16,121,190,0.55);
  box-shadow: 0 6px 18px rgba(16,121,190,0.18);
}

/* hover（PCのみ） */
@media (hover: hover) and (pointer: fine) {
  #history #timeline .work .relative:hover{
    border-color: rgba(16,121,190,0.35);
    transform: translateY(-1px);
    transition: transform .12s ease, border-color .12s ease;
  }
}

/* スマホ調整 */
@media (max-width: 768px){
  #history #timeline::before{ left: 14px; }
  #history #timeline .work{ padding-left: 46px; }
  #history #timeline .work .circle{ left: -39px; }
  #history #timeline .work label{ padding-right: 0; }
  #history #timeline .work .date{
    position: static;
    display: inline-block;
    margin-top: 6px;
  }
}

@keyframes timelineFade{
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 末尾（元ファイル末尾にあったルールを保持） */
@media (max-width: 600px){
  .right{
    width: 100%;
    display: inline-block;
  }
}


/* ===== 使い方事例タグ ===== */
.case-card{
  position: relative;
  overflow: hidden; /* カード内に収めて確実に見せる */
}

.case-tag{
  position: absolute;
  top: 18px;
  right: -42px;              /* 右からはみ出させて斜めに */
  width: 160px;
  text-align: center;
  padding: 6px 0;
  background: #1079be;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  transform: rotate(45deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 3;
  pointer-events: none;      /* クリック邪魔しない */
}

/* 端っこの三角（影っぽく見せる） */
.case-tag::before,
.case-tag::after{
  content:"";
  position:absolute;
  bottom:-6px;
  border-top:6px solid #0b5f93;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
}

.case-tag::before{ left:0; }
.case-tag::after{ right:0; }





@media (min-width: 1024px) {
  .case-card {
    position: relative;
    /*overflow: hidden; /* リボンのはみ出しを隠す */
    overflow: visible;
  }
}


.tab-1 {
    display: flex;
    flex-wrap: wrap;
    max-width: 800px;
}

.tab-1 li{
  color: #000;
}

.tab-1 > label {
    flex: 1 1;
    order: -1;
    position: relative;
    min-width: 70px;
    padding: .7em 0.5em;
    background-color: #f2f2f2;
    color: #999;
            font-weight: 600;
    font-size: .9em;
    text-align: center;
    cursor: pointer;
}

.tab-1 > label:hover,
.tab-1 label:has(:checked) {
    background-color: #2589d0;
    color: #fff;
}

.tab-1 label:has(:checked)::before {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 9px;
    background-color: #2589d0;
    content: '';
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.tab-1 input {
    display: none;
}

.tab-1 > div {
    display: none;
    width: 100%;
    padding: 1.5em 0em;
}

.tab-1 label:has(:checked) + div {
    display: block;
}




/* 各項目 */
.tab-1 ul li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  color: black;
}



/* =========================
   スマホ調整
========================= */
@media (max-width: 768px) {
  .tab-1 {
    padding: 24px 0px;
  }

  .tab-1 ul {
    grid-template-columns: 1fr; /* 1列 */
    gap: 10px;
  }

  .tab-1 h2 {
    font-size: 1.15rem;
  }
}



.tab-2 {
    display: flex;
    flex-wrap: wrap;
    max-width: 800px;
}

.tab-2 li{
  color: #000;
}

.tab-2 > label {
    flex: 1 1;
    order: -1;
    position: relative;
    min-width: 70px;
    padding: .7em 0.5em;
    background-color: #f2f2f2;
    color: #999;
            font-weight: 600;
    font-size: .9em;
    text-align: center;
    cursor: pointer;
}

.tab-2 > label:hover,
.tab-2 label:has(:checked) {
    background-color: #2589d0;
    color: #fff;
}

.tab-2 label:has(:checked)::before {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 9px;
    background-color: #2589d0;
    content: '';
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.tab-2 input {
    display: none;
}

.tab-2 > div {
    display: none;
    width: 100%;
    padding: 1.5em 0em;
}

.tab-2 label:has(:checked) + div {
    display: block;
}




/* 各項目 */
.tab-2 ul li {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  color: black;
}



/* =========================
   スマホ調整
========================= */
@media (max-width: 768px) {
  .tab-2 {
    padding: 24px 0px;
  }

  .tab-2 ul {
    grid-template-columns: 1fr; /* 1列 */
    gap: 10px;
  }

  .tab-2 h2 {
    font-size: 1.15rem;
  }
}






/* =========================
   .card：スクロールでふわっと出現
========================= */
.card {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 2.7s ease, transform 2.7s ease;
  will-change: opacity, transform;
}

/* 表示状態 */
.card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 動きを減らす設定の人は即表示 */
@media (prefers-reduced-motion: reduce) {
  .card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


main.right .card:first-of-type{
  opacity: 1;
  transform: none;
}



/* =========================
   ギャラリー画像用リボン
========================= */

.gallery-item {
  position: relative;
  overflow: hidden; /* リボンを画像内に収める */
}

/* リボン本体 */
.img-ribbon {
  position: absolute;
  top: 10px;
  left: -36px;
  width: 140px;
  text-align: center;
  padding: 6px 0;
  background: rgba(16,121,190,0.95);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .05em;
  transform: rotate(-45deg);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 2;
  pointer-events: none; /* クリックを邪魔しない */
}

/* 画像の角を丸めている場合も自然に */
.gallery-item img {
  display: block;
}

/* スマホ微調整 */
@media (max-width: 768px) {
  .img-ribbon {
    width: 120px;
    font-size: 0.7rem;
    left: -32px;
    top: 8px;
  }
}



