/* 赤強調用 */
.red-em {
  color: #e53935;
  font-weight: 700;
}
:root{
  --main:#67cef2;
  --sub:#67c8d6;
  --accent:#ff751f;
  --dark:#222;
  --white:#fff;
}
/*共通背景*/
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("img/sora-img.jpg") center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

.back-white {
  position: relative;
  z-index: 1;
}

.back-sora {
  position: relative;
  z-index: 1;
}

.back-white::before,
.back-sora::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
}

.back-white::before {
  background-color: #fff;
}

.back-sora::before {
  background: url("img/sora-img.jpg") center / cover no-repeat;
}

.bebas-neue-regular {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  font-style: normal;
}

/* ===== 基本 ===== */
*{box-sizing:border-box;}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  position: relative;
  isolation: isolate;
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN', 'Hiragino Sans', 'Meiryo', 'メイリオ', sans-serif;
  color: var(--dark);
  line-height: 1.7;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}
img{width:100%;display:block;}

@media (min-width: 1025px) {
  body {
    max-width: 70%;
  }
}



/* ===== ヘッダー ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  color: #fff;
  font-weight: 600;
  background: #5075c3;
  font-size: 1.5rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center; /* 全体を中央揃え基準に */
  align-items: center;
  padding: 0 20px; /* 左右の余白は小さく */
  z-index: 1000;
  transition: 0.3s;
}

/* ヘッダー縮小時 */
header.shrink {height: 30px;}

/* strong を中央に、ロゴと文字を横並び */
header strong {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;           /* 横並びにする */
  align-items: center;     /* 縦中央揃え */
  gap: 10px;               /* ロゴと文字の間隔 */
  font-size: 1.5rem;
  color: #fff;
}

/* ロゴ画像 */
header strong .logo {
  height: 30px;            /* ヘッダー高さに合わせる */
  width: auto;             /* アスペクト比維持 */
}

/* ナビゲーション右寄せ */
nav {
  margin-left: auto; /* flexの右寄せ */
  display: flex;
  gap: 15px; /* ボタン間の間隔 */
}

/* aタグをボタン風に */
nav a {
  min-width: 80px;       /* 幅を揃える */
  text-align: center;
  text-decoration: none;
  color: #000000;
  background: #ecede9;
  padding: 8px 20px;       /* 高さを少し増やす & 横幅も広め */
  transition: 0.2s;
  font-weight: 500;
  font-size: 1rem;          /* ヘッダー高さに合わせて調整 */
  line-height: 1.2;         /* 文字縦位置調整 */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ホバー時 */
nav a:hover {
  background: #8d9ee7;
}

nav a.info-btn {
  background: #ff8801;
  color: #fff;
  font-weight: 700;
  border: 2px solid #ff8801;
}

nav a.info-btn:hover {
  background: #fff;
  color: #ff8801;
  border: 2px solid #ff8801 ;
}

/* LINEボタンだけ特別スタイル */
nav a.line-btn {
  background: #00c300; 
  color: #fff;          
  font-weight: 600;       /* 少し強調 */
}

nav a.line-btn:hover {
  background: #fff;       
  color: #00c300;         
  border: 2px solid #00c300;
}

/*サブnav*/
.sub-nav{
  position: fixed;
  top: 50px; /* ヘッダーの下 */
  left: 0;
  width: 100%;
  height: 20px;
  display: flex;
  justify-content: center; /* 全体を中央揃え基準に */
  align-items: center;
  gap: 20px; /* ボタン間の間隔 */
  z-index: 999; /* ヘッダーより下に表示 */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.sub-nav.scrolled {
  background: rgba(102, 102, 102, 0.877);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sub-nav a {
  text-decoration: none;
  background: none;
  color: #fff;
  font-weight: 500;
  padding: 0px 15px;       /* 高さを少し増やす & 横幅も広め */
  border-radius: 30px;      /* 少し丸める */
  transition: 0.2s;
  font-weight: 500;
  font-size: 0.9rem;          /* ヘッダー高さに合わせて調整 */
  line-height: 1.2;         /* 文字縦位置調整 */
}

.sub-nav-toggle {
  display: none;
}

/* フォーム遷移ボタン */

a.info-form-btn {
  position: relative;
  display: block;
  width: clamp(220px, 40vw, 280px);
  margin:80px auto 80px;
  padding: 8px 8px 8px 0;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: #ff8801;
  border: none;
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  -webkit-box-shadow: 0 4px 0 #c65100, 0 8px 14px rgba(0, 0, 0, .28);
  box-shadow: 0 4px 0 #c65100, 0 8px 14px rgba(0, 0, 0, .28);
  transition: 0.2s;
}

.info-form-main {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.info-form-label {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.28);
}

.info-form-triangle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.info-form-triangle::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid #eb6100;
  margin-left: 2px;
}

.info-form-badge {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ff8801;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  z-index: 2;
}

.info-form-badge::before,
.info-form-badge::after {
  content: "";
  width: 26px;
  height: 2px;
  background: #ff8801;
  border-radius: 999px;
}

.info-form-badge::before {
  transform: rotate(36deg);
}

.info-form-badge::after {
  left: auto;
  transform: rotate(-36deg);
}

a.info-form-btn:hover {
  color: #fff;
  background: linear-gradient(180deg, #ffb347 0%, #f26a10 100%);
  transform: translateY(2px);
  -webkit-box-shadow: 0 2px 0 #c65100, 0 6px 10px rgba(0, 0, 0, .24);
  box-shadow: 0 2px 0 #c65100, 0 6px 10px rgba(0, 0, 0, .24);
}

a.info-form-btn:hover .info-form-triangle {
  background: #fff;
}

a.info-form-btn:hover .info-form-triangle::before {
  border-left-color: #f26a10;
}

/* ===== 共通セクション ===== */
section{padding:80px 10%;}
.section-title {
  position: relative;
  font-size: 50px;
  margin-bottom: 76px;
  color: var(--dark);
  z-index: 2;
  text-align: center;
  line-height: 1;
}
.section-subtitle {
  position: relative;
  font-size: 36px;
  margin-bottom: 60px;
  color: var(--dark);
  z-index: 2;
  text-align: center;
  line-height: 1;
}

.section-title::after {
  content: attr(data-en);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  color: transparent;               /* 塗りつぶしを透明に */
  -webkit-text-stroke: 2px rgba(0,0,0,0.1); /* 枠線だけ表示 */
  text-shadow: 2px rgba(0,0,0,0.1);         /* Firefox用 */
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
}

.section-detaile {
  text-align: center;      /* 文字を中央揃え */
  margin: 0 auto;          /* ブロック要素を中央に寄せる */
  max-width: 700px;        /* 好きな最大幅で読みやすく */
  line-height: 1.6;        /* 行間を少し広めに */
  font-size: 1.4rem;
}

/*タイトル白ver*/
.section-title-white {
  position: relative;
  font-size: 50px;
  margin-bottom: 60px;
  color: var(--dark);
  z-index: 2;
  text-align: center;
  line-height: 1;
}
.section-subtitle-white {
  position: relative;
  font-size: 36px;
  margin-bottom: 60px;
  color: var(--dark);
  z-index: 2;
  text-align: center;
  line-height: 1;
}

.section-title-white::after {
  content: attr(data-en);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px;
  color: transparent;               /* 塗りつぶしを透明に */
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.6); /* 枠線だけ表示 */
  text-shadow: 2px rgb(255, 255, 255, 0.4);         /* Firefox用 */
  z-index: -1;
  white-space: nowrap;
  pointer-events: none;
}

.section-detaile-white {
  text-align: center;      /* 文字を中央揃え */
  margin: 0 auto;          /* ブロック要素を中央に寄せる */
  max-width: 700px;        /* 好きな最大幅で読みやすく */
  line-height: 1.6;        /* 行間を少し広めに */
}

/**/
.jp-strong-e {
  font-size: 1.4em;        /* 大きくする */
  color: #ffcc00;          /* 好きな色に変更 */
  font-weight: bold;       /* 太字にする */
}
/**/
.jp-strong-r {
  font-size: 1.4em;        /* 大きくする */
  color: #ff0000;          /* 好きな色に変更 */
  font-weight: bold;       /* 太字にする */
}
/**/
.jp-strongr-b {
  font-size: 1.4em;        /* 大きくする */
  color: #0051ff;          /* 好きな色に変更 */
  font-weight: bold;       /* 太字にする */
}

/* ===== fade ===== */
.fade{
  opacity:0;
  transform:translateY(30px);
  transition: all 0.6s ease;
}
.fade.show{
  opacity:1;
  transform:translateY(0);
}

/* ===== ① TOP ===== */

#top {
  padding: 50px 0 0 0;
  width: auto;
  height: 100vh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}


@media (max-width: 768px) {
  /* 課題説明全体の文字を大きく・余白を狭く */
  .issue-description {
    font-size: 1.3em;
    width: 98%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4px;
    padding-right: 4px;
  }
  /* モバイル時のキャッチコピーを大きく太く */
  .issue-catch {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.25;
  }
  /* 課題説明文の文字を大きく */
  .issue-description-body p {
    font-size: 1em;
    line-height: 1;
  }

    /* トップ画像下のボタン余白を詰める */
    .top-images + .info-form-btn {
      margin-top: 16px !important;
      margin-bottom: 32px !important;
    }
  #top {
    height: auto;
    padding-top: 46px; /* ヘッダー高さ分だけ上に余白 */
    padding-bottom: 0;
  }
  .top-images {
    margin-bottom: 0;
  }
  .top-images picture source {
    /* 何も指定しない */
  }
  .top-images img.top-img {
    object-position: center top;
  }
  .top-images picture > source[media="(max-width: 768px)"] ~ img.top-img {
    /* 何も指定しない */
  }
  .top-images picture > img.top-img {
    /* モバイル時に上にずらす */
    position: relative;
    top: -60px;
  }
}


/* ===== ② Issue ===== */
#issue {
  position: relative;
  background: none;       /* セクション自体は背景なし */
  color: var(--white);
  z-index: 0;
}

#issue.back-white {
  background: #fff;
  color: var(--dark);
}

/* 青背景エリア */
.issue-back {
  /*background: #011fa3;*/
  background: linear-gradient(#001368,#2c53ff);
  position: relative;
  color: var(--white);
  padding: 20px 5px 20px;
  margin-left: auto;
  margin-right: auto;
  z-index: 1;
  width: 60vw;
  max-width: 100%;
  
}

/* セクションタイトル */
#issue .section-title {
  position: relative;       /* 重なりの調整用 */
  z-index: 2;
  margin-bottom: -30px;     /* 下方向に食い込ませる量 */
  padding: 8px;
  text-align: center;
  font-size: 2rem;
  color:  #545454;
  width: 60vw;
  max-width: 100%;
  background-color: #dadada;
  margin: 0 auto;
}

#issue-title::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -14px;
  width: clamp(72px, 10vw, 122px);
  aspect-ratio: 1 / 1;
  transform: translate(-80%, -32%);
  background: url("img/baseboll-boll.png") center/contain no-repeat;
  opacity: 0.72;
  pointer-events: none;
}


/* 課題リスト */
.issue-list {
  list-style: none;
  padding-left: 0;
  margin: 0 auto;
  max-width: 800px;
  text-align: left;
}

.issue-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8em;
  margin-bottom: 1em;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 30px; /* 左右の余白 */
}

/* アイコン */
.issue-icon {
  width: 30px;
  height: auto;
  margin-top: 0.25em;
  flex-shrink: 0;
}

/* 説明文 */
.issue-description {
  width: 80%;
  margin: 0 auto;
  text-align: left;
}

.issue-description h2 {
  margin-bottom: 10px;
  font-size: 2rem;
  color: #ffffff;
  margin: 30px auto 0 auto;
}


.issue-description p {
  line-height: 1.5;
}

.mobile-period-break {
  display: none;
}

.issue-description-body {
  position: relative;
  overflow: visible;
  font-size: 1.4rem;
  line-height: 1.5;
}

.issue-description-body p {
  margin: 0;
}

.issue-thinker-image {
  position: absolute;
  right: 0;
  bottom: -8px;
  width: clamp(165px, 24vw, 285px);
  transform: translateX(90%);
  height: auto;
  object-fit: contain;
  filter: brightness(0) grayscale(1) contrast(1.1);
  opacity: 0.92;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 900px) {
  .issue-thinker-image {
    right: 0;
    bottom: -26px;
    transform: translateX(78%);
    width: clamp(144px, 46vw, 218px);
  }
}

.sankaku {
  width: 0;
  height: 0;
  margin: 0 auto;

  border-left: 50px solid transparent;
  border-right: 50px solid transparent;
  border-top: 50px solid #2c53ff; /* ← 下向き三角形 */
}


/* 背景なしキャッチコピー */
.issue-catch {
  display: table;
  width: auto;
  max-width: 100%;
  font-size: 52px;
  font-weight: 900;
  color: #545454;
  background: #fff;      /* 白地 */
  text-align: center;
  margin: 74px auto 0;
  border-top: 15px solid #ff6430ce;
  border-bottom: 15px solid #ff6430ce;
  padding: 20px 24px; /* 文字幅ベース + 左右余白 */
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  line-height: 1.15;
  text-shadow:
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff,
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    1px -1px 0 #fff,
    -1px -1px 0 #fff;
}

.issue-catch::after {
  content: attr(data-en);
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 120px;
  color: #ff6430ce;
  text-shadow: 2px rgba(0,0,0,0.1);         /* Firefox用 */
  z-index: -1;
  white-space: nowrap;
  pointer-events: none;
}


/* ===== ③ Strength ===== */
/* タイトル全体の幅を統一して中央揃え */
.strength-title {
  text-align: center;
  width: -webkit-fit-content;
  width: fit-content;
  line-height: 1;
  margin: 0 auto 20px auto; /* 下の余白を少しだけ */
}

/* 上段 */
.strength-top {
  font-size: 2.5rem;
  color: #545454;
  margin: 0;               /* ← ここが重要：余白を消す */
  line-height: 1;
  padding: 0;              /* ← 余白を完全にゼロに */
}

/* 下段 */
.strength-bottom {
  font-size: 5.2rem;
  font-weight: 900;
  margin: -2px 0 0;        /* 上段との間隔を詰める */
  line-height: 1;
  color: #545454;
  text-decoration: underline;
  text-decoration-color: #ff6330;
  text-decoration-thickness: 12px;
  text-underline-offset: -5px;
  text-decoration-skip-ink: none;
}

.strength-card {
  margin-bottom: 20px;
}

.strength-mobile-title {
  display: none;
}

/* ===== ④ Team ===== */
/* ▼ もともとのロゴ背景（最前面） */
#team{
  position: relative;
  isolation: isolate;
  z-index: 0;
}

/* ▼ section先頭から YAMAGISHI まで白背景 */
#team::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 200px;
  transform: translateX(-50%);
  background: #fff;
  z-index: 0;
}

/* ▼ ロゴ背景は ::before より前面に配置 */
#team::after {
  content: "";
  position: absolute;
  top: 40px;
  right: -30px;
  width: 25%;
  height: 50%;
  background: url("img/logo-img.png") center top / contain no-repeat;
  z-index: 1;
  pointer-events: none;
}

/* ▼ 既存のレイアウトはそのまま */
.team-logo-area,
.team-bg,
.team-row {
  position: relative;
  z-index: 2;
}

.team-row{
  display: flex;
  gap: 40px;
  align-items: stretch;
  color: var(--dark);
}
.team-logo {margin-bottom: 60px;}
.team-logo-area{display: flex;}

.gradient-text {
  left: 30px;
  font-weight: 900;
  letter-spacing: 8px;
  margin: 0;
  background: linear-gradient(90deg, #9ae0ec, #0cc0df);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.top {
  font-size: 7rem;
  margin-left: -80px;
}

.bottom {
  font-size: 7rem;
  margin-top: -70px;
}

.team-row img {
  width: 50%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* ← 影 */
}

.team-row p {
  padding: 20px;
  width: 50%;
  min-height: 320px;
  line-height: 1.6;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* ← 影 */
  margin: 0;
}
/* ===== ⑤ Company ===== */
.company-back{
  background:url("img/back-yamagishi-img.png") center/contain no-repeat;
  margin-left: calc(30% - 30vw);
  margin-right: calc(30% - 30vw);
}

.company-area{
  position: relative;
  padding: 80px 15%;
  z-index: 1;
}
.company-photos,.company-links{display:flex;gap:20px;}
.company-links{
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  overflow: visible;
}
.company-link{
  position:relative;
  color:#fff;
  text-decoration:none;
  flex: 1 1 0;
  display: block;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
  transition: box-shadow .24s ease;
}

.company-link::after {
  content: "\2192";
  position: absolute;
  right: 14px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #244ba0;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
}

.company-link:hover,
.company-link:focus-visible {
  box-shadow: 0 10px 22px rgba(22, 40, 88, 0.3);
}

.company-link:hover::after,
.company-link:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.section-subtitle-commany {
  font-size: 3rem;
  margin: 0 0 30px 0;
  text-align: center;
  line-height: 1;
  position: relative;
  display: table;
  margin-left: auto;
  margin-right: auto;

  /* 文字グラデーション */
  background: linear-gradient(90deg, #3f3f3f, #ffda6a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.company-yamagishi-logo{
  display: block;
  width: auto;
  height: 100px;
  margin: 32px auto 44px;
}

.company-crown-char {
  position: relative;
  display: inline-block;
  padding-left: 0.1em;
}

.company-crown-icon {
  position: absolute;
  top: -1.8em;
  left: -0.8em;
  width: 1.7em;
  height: 1.5em;
  transform: rotate(-25deg);
  z-index: -1;
  pointer-events: none;
}

.company-link span{
  position:absolute;bottom:10px;left:10px;
  background:rgba(0,0,0,.6);padding:6px 10px;
  transition: background-color .22s ease, transform .22s ease;
}

.company-link img{
  width: 100%;
  height: 220px;
  object-fit: fill;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.company-link:hover img,
.company-link:focus-visible img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.company-link:hover span,
.company-link:focus-visible span {
  background: rgba(36, 75, 160, 0.82);
  transform: translateY(-2px);
}

.company-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.company-carousel {
  position: relative;
}

.company-carousel-btn {
  display: none;
}

.flow-carousel {
  position: relative;
  margin-top: 40px;
}

.flow-carousel-btn {
  display: none;
}

.company-photos img{
  width: 100%;
  height: 200px;             /* 横切れを抑えるため少し小さく */
  object-fit: cover;        /* 画像を潰さずカバー */
  background: #fff;
}

.company-photo-tight {
  height: 200px !important;
}

.company-cm-image {
  object-fit: contain !important;
}

.company-description{
  position: relative;
  font-size:1.4rem;
  background: linear-gradient(135deg, #ffda6a, #fff7de);
  padding:40px 40px 40px 120px; /* 上に余白を増やす */
  margin:80px 8%;
  font-weight:600;
  box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

/* 画像を左上にかませる */
.company-description img{
  position:absolute;
  top:-10px;     /* 上にはみ出す */
  left:-40px;    /* 左にはみ出す */
  width:150px;
  height:150px;
  object-fit:cover;
  border-radius:50%;
  box-shadow:0 8px 20px rgba(0,0,0,0.15);
}


/* ===== ⑥ Daily Flow ===== */
.flow-header{
    border-radius: 18px 18px 0 0;

}
.time-line {
  background: #fff;
  padding: 12px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.flow-list{list-style:none;padding:0;color:var(--dark);}
.flow-list li{margin-bottom:10px;}
.job-line{display:flex;align-items:center;gap:10px;margin-bottom:10px;}
.job-line .line{flex:1;height:2px;background:var(--main);}
.time-line p{
  text-align: center;      /* 文字を中央揃え */
  margin: 24px auto 32px;  /* 前後に余白を持たせる */
  max-width: 700px;        /* 好きな最大幅で読みやすく */
  line-height: 1.6;        /* 行間を少し広めに */
  font-size: 1.4rem;
}
.flow-photos{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:20px;
  margin-top:0;
  background:none;
}

.flow-photo-card {
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: transform .24s ease, box-shadow .24s ease;
}

.flow-photo-card::after {
  content: "\2192";
  position: absolute;
  right: 10px;
  top: 10px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.94);
  color: #244ba0;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
  z-index: 4;
}

.flow-photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(22, 40, 88, 0.24);
}

.flow-photo-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.flow-youtube-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
  z-index: 3;
  transition: transform .22s ease, box-shadow .22s ease;
}

.flow-youtube-badge i {
  color: #ff2d2d;
  font-size: 26px;
  line-height: 1;
}

.flow-photo-card img{
  width: 100%;
  height: auto;
  display: block;
  transition: transform .35s ease, filter .35s ease;
}

.flow-photo-card:hover img {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.flow-photo-card:hover .flow-youtube-badge {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.2);
}
.title-area {
  background: url("img/flow-topimg.png") no-repeat center center;
  background-size: cover;   /* 要素に合わせて拡大・トリミング */
}

/* ===== ⑦ Career ===== */
.career-block {
  display: flex;
  max-width: 950px;       
  height: 180px;           /* ブロック高さ固定 */
  margin: 0 auto 20px auto;
  align-items: stretch;     /* 高さを画像とテキストで揃える */
  gap: 20px;               
  padding: 0;
}

.career-block.fade{
  background-color: #0cc0df;
}

.career-block.reverse.fade{
  background-color: #5075c3;
}

.career-text{
    margin: 0px 5px;
}
.career-text h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  width: 100%;
}
.career-text p {
  color: #fff;
  margin: 0;
  width: 100%;
}

.career-example {
  position: relative;
  display: inline-block;
  margin-left: 18px;
  padding: 2px 5px;
  border-radius: 8px;
  background: #fff;
  color: #1f4fbf;
  text-decoration: none;
  font-size: 0.85rem;
}

.career-example::before {
  content: "\f0a1";
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%) rotate(-12deg);
  color: #ff2d2d;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9em;
}

.career-example.career-example-multi {
  display: inline-flex;
  align-items: flex-start;
  gap: 0;
}

.career-example-label {
  flex: 0 0 auto;
}

.career-example-lines {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.career-block img {
  width: 40%;               /* 幅40% */
  height: 100%;             /* ブロックの高さに合わせる */
  object-fit: cover;        /* 画像を潰さずカバー */
  border-radius: 8px;

  -webkit-clip-path: polygon(
    0 0,        /* 左上 */
    85% 0,      /* 右上 */
    100% 50%,   /* 右中央の尖り */
    85% 100%,   /* 右下 */
    0 100%      /* 左下 */
  );
  clip-path: polygon(
    0 0,        /* 左上 */
    85% 0,      /* 右上 */
    100% 50%,   /* 右中央の尖り */
    85% 100%,   /* 右下 */
    0 100%      /* 左下 */
  );
}

.career-text {
  padding: 10px;
  width: 60%;              
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  height: 100%;            /* ブロックに合わせる */
  overflow: hidden;        /* 高さオーバーは隠す */
}

/* reverse の場合 */
.career-block.reverse {
  flex-direction: row-reverse; 
}

.career-block.reverse img {
  -webkit-clip-path: polygon(
    15% 0,
    100% 0,
    100% 100%,
    15% 100%,
    0 50%
  );
  clip-path: polygon(
    15% 0,       
    100% 0,      
    100% 100%,   
    15% 100%,    
    0 50%        
  );
  height: 100%;           /* ブロック高さに合わせる */
}


/* ===== ⑧ Member ===== */
.member-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;color:var(--dark);align-items:stretch;}
.member-card{
  background:#c2e9ff;padding:0 5px 5px 5px;
  box-shadow:0 10px 20px rgba(0,0,0,.1);
  transition:.3s;
  height: 100%;
  display:flex;
  flex-direction:column;
}
.member-card:hover{transform:translateY(-5px);}
.member-card-sub{
  background-color: #ffff;
  padding: 10px;
  margin: 0 auto 20px auto; /* ← 中央寄せに変更 */
  color: #000000;
  width: 55%;
  text-align: center; 
  font-size: 1.4rem;

}
.member-card p {
  font-weight: 500;
  background-color: #ffff;
  margin: 0;
  flex: 1;
}
.member-head{
  position: relative;
  display:flex;
  gap:15px;
  margin-bottom:0;
  padding-top: 0;
  height: 136px;
  font-size: 1.4rem;
  font-weight: 600;
  align-items: flex-end;
}

.member-head::before {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #ffff;
}

.member-head img {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  margin: 0 0 0 6px;
  object-fit: contain;
  border-radius: 0;
  flex-shrink: 0;     /* flexで潰れないように */
  background-color: transparent;
}

.member-head .name{
  width: 100%;
  height: 100%;
  font-size: 1rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.member-head .name-item {
  position: relative;
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  justify-content: center;
  align-items: center;
  padding: 0 0 0 26px;
  box-sizing: border-box;
  font-size: clamp(0.82rem, 1.15vw, 1rem);
  line-height: 1.25;
  text-align: center;
  border-top: 1.5px dashed #7a3ff2;
}

.member-head .name .name-item {
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: nowrap;
}

.member-head .name-item:first-child {
  border-top: none;
}

.member-head .name-item:last-child {
  border-bottom: 1.5px dashed #7a3ff2;
  margin-bottom: 5px;
}

.member-head .name-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18%;
  bottom: 18%;
  width: 4px;
  background: #7a3ff2;
}

.member-head .name-item::after {
  content: attr(data-label);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.08em;
  font-size: 0.58rem;
  font-weight: 700;
  color: #7a3ff2;
  line-height: 1;
}

.member-head .name .name-item::after {
  writing-mode: vertical-rl;
  text-orientation: upright;
}

/* ルビ（フリガナ）スタイル */
.name-item ruby {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
  line-height: 1.2;
}

.name-item rt {
  font-size: 0.6em;
  color: inherit;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.member-back {
  position: relative;
  padding: 50px 0px;   /* 横paddingは消す */
  color: #fff;
}

/* ===== ⑨ trackrecord ===== */
.trackrecord-back {
  background:url("img/achievement-back.png") center/cover;
  margin-left: calc(40% - 40vw);
  margin-right: calc(40% - 40vw);
  padding: 40px 0 80px 0;
}

.trackrecord-box{
  background:rgba(255,255,255,.95);
  max-width: 60%;
  padding:30px;
  margin: auto;
  margin-bottom:20px;
}
.trackrecord-list {
  margin: 0;
}

.trackrecord-row {
  display: flex;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 12px;
}

.trackrecord-row dt {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: #4070e7;
  padding: 6px 0;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 500;
  text-align: center;
}

.trackrecord-row dd {
  margin: 0;         /* dlのデフォルト余白を消す */
  flex: 1;
  padding: 5px 0 5px;
  border-bottom: 2px solid rgba(64, 112, 231, 0.28);
  font-weight: 700;
  font-size: 1.3rem;
  text-align: center;
}

.trackrecord-row-detail dd {
  text-align: left;
  padding-left: clamp(18px, 4vw, 64px);
}

.trackrecord-accent {
  color: #ff7a1a;
  font-weight: 800;
}

/* ===== ⑩ Facility ===== */

.facility-island {
  width: min(1120px, calc(100% - 32px));
  margin: 30px auto 0;
  padding: 28px 22px 34px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15, 36, 78, 0.12);
}

/* カードを均等割り */
.facility-area {
  display: flex;
  gap: 0px;
  flex-wrap: wrap; /* スマホ対応で折り返し */
  position: relative;
  color: var(--dark);
}
.facility-area::before {
  content: none;
  position: absolute;
  inset: 0;
  font-weight: bold;
  text-align: center;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #ffff;
  z-index: -1;  /* ← ここ重要（0ではなく-1） */
}

.facility-card {
  flex: 1;                 /* 均等割り */
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* タイトル */
.facility-title {
  margin-bottom: 12px;
  font-weight: bold;
  text-align: center;
  color: var(--dark);

}

/* 画像枠 */
.facility-photo {
  width: 100%;
  aspect-ratio: 4 / 3;     /* 高さを統一 */
  overflow: hidden;
}

.facility-photo + .facility-photo {
  margin-top: 12px;
}

/* 画像自体 */
.facility-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.facility-card p {
  position: relative;
  z-index: 2;
  width: -webkit-fit-content;
  width: fit-content;
  margin: 0px auto 0;
  text-align: center;
  font-weight: 700;
}

.facility-card p + p {
  margin-top: 0px;
}

.facility-note-top {
  position: relative;
}

.facility-point-stamp {
  position: absolute;
  top: 50%;
  right: -10px;
  width: 54px;
  height: 54px;
  transform: translate(65%, -62%) rotate(12deg);
  pointer-events: none;
}

.facility-point-stamp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.facility-bus {
  position: relative;
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 22px;
  text-align: center;
}

.facility-bus::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: rgba(26, 51, 103, 0.18);
  transform: translateX(-50%);
}

.facility-bus .section-detaile {
  width: min(100%, 520px);
  max-width: 520px;
}

.facility-bus img {
  width: 100%;
  max-width: 520px;
  height: auto;
  margin: 20px auto;
}

/* スマホ対応 */
@media (max-width: 800px) {
  .facility-title {
    width: 200px;
    margin-bottom: 12px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    background:#ffa000;
    margin: 10px auto ;
  }
  .facility-island {
    width: calc(100% - 24px);
    padding: 22px 14px 26px;
  }

  .facility-card {
    flex: 1 1 calc(50% - 20px);
  }
  .facility-card::after {
    content: "";
    position: absolute;
    bottom: -8px; /* ←要素の最後（下）に配置 */
    left: 50%;
    width: 100%;
    height: 1px;
    background: rgba(26, 51, 103, 0.18);
    transform: translateX(-50%);
  }
  .facility-bus::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    width: 100%;
    height: 1px;
    background: #ffffff;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  .facility-title {
    width: 150px;
    margin-bottom: 12px;
    font-weight: bold;
    text-align: center;
    color: #ffffff;
    background:#ffa000;
    margin: 10px auto ;
  }
  .facility-card {
    flex: 1 1 100%;
  }
  .facility-card::after {
    content: "";
    position: absolute;
    bottom: -8px; /* ←要素の最後（下）に配置 */
    left: 50%;
    width: 100%;
    height: 1px;
    background: rgba(26, 51, 103, 0.18);
    transform: translateX(-50%);
  }
}





/* ===== ⑪ Message ===== */
#message{
  max-width: 800px;
  margin: 0 auto;
  color:var(--dark);
  padding: 80px 0;
}



.message-tittle{
  position: relative;
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto auto;
  column-gap: 0;
  row-gap: 10px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 0 -88px;
  z-index: 5;
}

.message-header img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 100%; /* 丸くしたいなら */
  flex-shrink: 0;     /* flexで潰れないように */
  background-color:none;
}

.message-meta{
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  justify-self: center;
  align-self: end;
  transform: translateY(-25px);
}

.message-meta-logo{
  width: auto;
  height: 38px;
}

.message-meta p{
  margin: 0;
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 700;
  color: #5f4328;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.message-ribbon{
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  margin: 0;
  transform: translateY(-23px);
  padding: 12px 32px;
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: 0.08em;
  background:#ffa000;
  box-shadow: 0 10px 18px rgba(112, 54, 15, 0.2);
  align-self: start;

}

.message-header{
  display: flex;
  justify-content: flex-start;
  grid-column: 1;
  grid-row: 1 / span 2;
  position: absolute;
  top: -82px;
  left: -50%;
}

.message-body{
  position: relative;
  z-index: 1;
  padding: 64px 58px 58px;
  border: 0.1px solid #e4dbc9;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 72% 30%, rgba(92,54,25,0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 36% 74%, rgba(255,255,255,0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 76%, rgba(92,54,25,0.14) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 42%),
    linear-gradient(180deg, #f3f3f3);
  box-shadow: 0 22px 40px rgba(48,28,10,0.22);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 2;
  text-align: left;
  overflow: hidden;
}

.message-body::before,
.message-body::after{
  content: "";
  position: absolute;
  width: 110px;
  height: 34px;
  background:
    linear-gradient(180deg, rgba(165,126,82,0.78), rgba(122,84,48,0.62)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.08) 0 8px, rgba(92,62,34,0.12) 8px 16px);
  border: 1px solid rgba(108, 73, 40, 0.6);
  border-radius: 3px;
  box-shadow: 0 5px 10px rgba(60,40,16,0.12);
  opacity: 0.95;
  z-index: 2;
}

.message-body::before{
  top: 48px;
  right: 36px;
  transform: rotate(18deg);
}

.message-body::after{
  bottom: 42px;
  left: 34px;
  transform: rotate(18deg);
  -webkit-clip-path: polygon(
    0 0,
    100% 0,
    100% 18%, 92% 24%, 100% 30%, 92% 36%, 100% 42%, 92% 48%,
    100% 54%, 92% 60%, 100% 66%, 92% 72%, 100% 78%, 92% 84%,
    100% 100%,
    0 100%
  );
  clip-path: polygon(
    0 0,
    100% 0,
    100% 18%, 92% 24%, 100% 30%, 92% 36%, 100% 42%, 92% 48%,
    100% 54%, 92% 60%, 100% 66%, 92% 72%, 100% 78%, 92% 84%,
    100% 100%,
    0 100%
  );
}

.message-body-inner{
  position: relative;
  padding: 15px 44px 64px;
  background:#ffffff;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  #message{
    padding: 60px 0;
  }

  .message-header{
    width: auto;
    min-width: 0;
  }

  .message-tittle{
    grid-template-columns: auto;
    column-gap: 10px;
    row-gap: 8px;
    justify-content: center;
    margin: 0 0 -18px;
  }

  .message-header img {
    width: 84px;
    height: 84px;
  }

  .message-header{
    top: -10px;
    transform: translateX(calc(-50% - 130px));
  }

  .message-body{
    transform: none;
    padding: 24px 18px 18px;
    border-width: 10px;
  }

  .message-meta{
    gap: 10px;
    transform: translateY(-6px);
  }

  .message-meta-logo{
    height: 26px;
  }

  .message-meta p{
    font-size: 1rem;
  }

  .message-ribbon{
    transform: translateY(-4px);
    padding: 10px 18px;
    font-size: 1.2rem;
  }

  .message-body::before,
  .message-body::after{
    width: 82px;
    height: 28px;
  }

  .message-body::before{
    top: 20px;
    right: 12px;
  }

  .message-body::after{
    bottom: 20px;
    left: 10px;
    transform: rotate(18deg);
  }

  .message-body-inner{
    padding: 48px 24px 44px;
  }
}


/* ===== ⑪ footer ===== */
#footer{
  padding: 5% 0;   /* 上下の余白で高さ調整 */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.footer-area {
  display: flex;
  align-items: center;      /* 縦中央 */
  justify-content: center;  /* 横中央 */
  gap: 50px;                /* 要素の間隔 */
}
.footer-team img {
  height: 3em;
  width: auto;     /* 縦横比維持 */
}

.footer-image img {
  height: 50vh;     /* 文字と同じ高さ */
  width: auto;     /* 縦横比維持 */
}

.footer-text-area {
  display: flex;
  flex-direction: column;     /* 縦並び */
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.footer-team {
  display: flex;              /* 横並び */
  align-items: center;
  gap: 14px;
  margin: 0;
}

.footer-team h2 {
  margin: 0;
  font-size: 2.3rem;
  line-height: 1.1;
}

address{
  margin: 0;
  font-style: normal;
}

address p {
  margin: 0;
  line-height: 1.5;
}

address p:first-child,
address p:last-child {
  font-size: 0.95rem;
  font-weight: 500;
}

address p:nth-child(2) {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
}

.footer-sns ul {
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-sns a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
}

.footer-sns .fa-instagram,
.footer-sns .fa-youtube {
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2em;
  height: 1.2em;
  line-height: 1;
}

.footer-sns .fa-instagram {
  color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  border-radius: 0.28em;
}

.footer-sns .fa-youtube {
  color: #ff0000;
}

.footer img {
  max-width: 100%;
}

@media (max-width: 1024px) {
  /* 共通レイアウト */
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  img,
  svg,
  video,
  canvas,
  iframe {
    max-width: 100%;
    height: auto;
  }

  body {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    position: relative;
    margin-right: 0;
  }

  section {
    padding: 64px 5%;
  }

  #top,
  .wide-brand-title,
  #footer,
  .issue-back,
  .company-back,
  .trackrecord-back {
    width: 100%;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .wide-brand-title {
    margin: -56px 0 6px;
    padding: 0 4vw;
    white-space: nowrap;
  }

  .top-title {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  /* ヘッダー */
  header {
    padding: 0 8px;
    height: 46px;
  }

  header strong {
    position: static;
    left: auto;
    transform: none;
    margin-right: auto;
    font-size: 1rem;
    gap: 8px;
  }

  header strong .logo {
    height: 24px;
  }

  nav {
    gap: 6px;
  }

  nav a {
    min-width: 58px;
    padding: 6px 10px;
    font-size: 0.78rem;
  }

  .sub-nav-toggle {
    position: fixed;
    top: 52px;
    right: 10px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    z-index: 1002;
    cursor: pointer;
    padding: 0;
  }

  .sub-nav-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #4a5568;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .sub-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .sub-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .sub-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .sub-nav {
    top: 55px;
    left: auto;
    right: 10px;
    width: min(260px, calc(100vw - 20px));
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 5px;
    border-radius: 12px;
    background: rgba(246, 248, 251, 0.95);
    box-shadow: 0 12px 24px rgba(16, 27, 58, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(20px);
    transform-origin: right top;
    z-index: 1001;
  }

  .sub-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .sub-nav a {
    width: 80%;
    padding: 5px 6px;
    font-size: 0.86rem;
    color: #2f3c52;
    text-align: left;
  }

  /* 共通タイトル・本文 */
  .section-title,
  .section-title-white {
    font-size: clamp(1.8rem, 5.8vw, 2.4rem);
    margin-bottom: 34px;
    line-height: 1.2;
  }

  .section-title::after,
  .section-title-white::after {
    font-size: clamp(2.6rem, 10vw, 4.8rem);
    -webkit-text-stroke-width: 1px;
  }

  .section-detaile {
    font-size: 1rem;
    max-width: 100%;
  }

  .time-line p {
    font-size: 0.75rem;
  }

  /* Issueセクション */
  .issue-back {
    width: calc(100% - 16px);
    margin-left: auto;
    margin-right: auto;
    padding: 18px 12px;
    transform: translateX(8px);
  }

  #issue .section-title {
    width: calc(100% - 16px);
    margin-left: auto;
    margin-right: auto;
    font-size: 1.5rem;
  }
  #issue .section-title {
    font-size: 1.1rem;
    text-align: left;

  }

  .issue-list li {
    margin: 0 6px;
    font-size: 1.05rem;
  }

  .issue-description {
    width: 100%;
  }

  .issue-description h2 {
    max-width: 100%;
    font-size: 1.2rem;
    line-height: 1.2;
  }

  .issue-catch {
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    margin-top: 50px;
    border-top-width: 10px;
    border-bottom-width: 10px;
  }

  .issue-catch::after {
    font-size: clamp(2.2rem, 12vw, 4.2rem);
  }

  /* Strengthセクション */
  .strength-top {
    font-size: 1.6rem;
    margin-bottom: 6px;
    line-height: 1.15;
  }

  .strength-bottom {
    font-size: clamp(2.3rem, 9vw, 3.2rem);
    text-decoration-thickness: 8px;
    margin-top: 0;
    line-height: 1.1;
  }

  /* Teamセクション */
  .top {
    font-size: clamp(2.6rem, 10vw, 4rem);
    margin-top: 0;
    margin-left: 0;
  }

  .bottom {
    font-size: clamp(2.6rem, 10vw, 4rem);
    margin-top: -16px;
  }

  #team::after {
    width: 30%;
    top: 28px;
    right: 0;
  }

  .team-row {
    flex-direction: column;
    gap: 18px;
  }

  .team-row img,
  .team-row p {
    width: 100%;
    min-height: 0;
  }

  /* Companyセクション */
  .company-back {
    margin-left: 0;
    margin-right: 0;
    background-size: cover;
  }

  .company-area {
    padding: 48px 5%;
  }

  .company-photos {
    grid-template-columns: 1fr;
  }

  .company-links {
    height: 140px;
  }

  .company-link {
    min-width: 0;
  }

  .company-link img {
    width: 100%;
    height: 140px;
    object-fit: cover;
  }

  .company-link span {
    left: 6px;
    bottom: 6px;
    padding: 4px 8px;
    font-size: 0.85rem;
  }

  .company-description {
    margin: 46px 0 24px;
    padding: 44px 16px 22px;
    font-size: 1rem;
  }

  .company-description img {
    position: absolute;
    top: 0;
    left: 0;
    width: 68px;
    height: 68px;
    margin: 0;
    display: block;
    transform: translate(-28%, -28%);
  }

  /* Daily Flowセクション */
  .flow-photos {
    grid-template-columns: 1fr;
  }

  /* Careerセクション */
  .career-block,
  .career-block.reverse {
    flex-direction: column;
    height: auto;
    gap: 0;
  }

  .career-block img,
  .career-block.reverse img {
    width: 100%;
    height: 220px;
    clip-path: none;
    border-radius: 0;
  }

  .career-text {
    width: 100%;
    margin: 0;
    padding: 14px;
  }

  .career-text h3 {
    font-size: 1.05rem;
  }

  .career-text p {
    font-size: 0.95rem;
  }

  .career-example {
    margin-left: 0;
    background: transparent;
    border-radius: 0;
    padding: 0 0 1.15em;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: #fff;
    text-underline-offset: 0.12em;
  }

  .career-example::before {
    top: auto;
    bottom: 0;
    left: 0;
    transform: rotate(-12deg);
  }

  .career-example.career-example-multi .career-example-label {
    display: none;
  }

  .career-text h3.career-h3-mobile-small {
    font-size: 0.87rem;
    line-height: 1.3;
  }

  /* Memberセクション */
  .member-grid {
    grid-template-columns: 1fr;
  }

  .member-card-sub {
    width: 100%;
    max-width: 300px;
    font-size: 0.9rem;
  }

  /* Trackrecordセクション */
  .trackrecord-back {
    margin-left: 0;
    margin-right: 0;
    padding: 30px 10px 52px;
  }

  .trackrecord-box {
    max-width: 100%;
    padding: 18px 12px;
  }

  .trackrecord-row {
    flex-direction: column;
    gap: 8px;
  }

  .trackrecord-row dt {
    width: 100%;
    font-size: 1rem;
  }

  .trackrecord-row dd {
    text-align: left;
    font-size: 0.98rem;
  }

  .trackrecord-row-detail dd {
    padding-left: 6px;
  }

  /* Facilityセクション */
  .facility-island {
    width: calc(100% - 20px);
    padding: 20px 12px 24px;
  }

  .facility-area {
    gap: 12px;
  }

  .facility-card {
    flex: 1 1 calc(50% - 12px);
  }

  .facility-point-stamp {
    width: 44px;
    height: 44px;
    transform: translate(58%, -62%) rotate(12deg);
  }

  .facility-bus {
    margin-top: 40px;
  }

  /* Messageセクション */
  #message {
    padding: 64px 0;
  }

  .message-tittle {
    margin-left: 4px;
  }

  /* Footerセクション */
  .footer-area {
    flex-direction: column;
    gap: 20px;
  }

  .footer-team h2 {
    font-size: 1.7rem;
  }

  .footer-image img {
    height: auto;
    max-width: 240px;
  }
}

@media (max-width: 768px) {
  a.info-form-btn {
    margin-top: 56px;
  }
  
  /* TOPセクション */


  .section-subtitle-commany {
    font-size: 1.35rem;
  }

  .company-back {
    background-size: 100% auto;
  }

  .company-links {
    display: block;
    height: 220px;
    overflow: hidden;
  }

  .company-link {
    pointer-events: none;
    transition: transform .55s linear, box-shadow .24s ease;
  }

  .company-links .company-link {
    position: absolute;
    inset: 0;
    transform: translateX(100%);
  }

  .company-links .company-link.is-active {
    pointer-events: auto;
    transform: translateX(0);
    z-index: 2;
  }

  .company-links .company-link.is-prev {
    transform: translateX(-100%);
    z-index: 1;
  }

  .company-links .company-link.is-resetting {
    transition: none;
  }

  .company-photos {
    display: flex;
    gap: 12px;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 0 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .company-carousel {
    padding: 0;
  }

  .company-carousel-btn {
    display: grid;
    place-items: center;
    position: absolute;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1f3f8f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    cursor: pointer;
    padding: 0;
  }

  .company-carousel-btn span {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-1px);
  }

  .company-carousel-btn.prev {
    left: 8px;
  }

  .company-carousel-btn.next {
    right: 8px;
  }

  .company-photos img {
    flex: 0 0 82%;
    width: auto;
    max-width: none;
    height: 190px;
    scroll-snap-align: center;
  }

  .company-photos img:last-child {
    margin-right: 4%;
  }

  .flow-photos {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 0;
    padding: 4px 0 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
  }

  .flow-carousel {
    margin-top: 24px;
    padding: 0;
  }

  .flow-carousel-btn {
    display: grid;
    place-items: center;
    position: absolute;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #12367e;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.24);
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    cursor: pointer;
    padding: 0;
  }

  .flow-carousel-btn span {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-1px);
  }

  .flow-carousel-btn.prev {
    left: 8px;
  }

  .flow-carousel-btn.next {
    right: 8px;
  }

  .flow-photo-card {
    flex: 0 0 90%;
    scroll-snap-align: center;
  }

  .flow-photo-card:last-child {
    margin-right: 4%;
  }

  .section-subtitle-commany {
    position: relative;
    padding-top: 0.95em;
  }

  .company-crown-char {
    position: absolute;
    left: 0.35em;
    top: 0;
    transform: translateX(0);
    padding-left: 0;
    line-height: 0;
  }

  .company-crown-icon {
    position: static;
    width: 1.2em;
    height: auto;
    transform: rotate(-16deg);
    z-index: var(--accent);
    opacity: 0.95;
  }

  #team::before {
    height: 120px;
  }
  #team::after {
    content: "";
    position: absolute;
    top: 40px;
    right: -30px;
    width: 25%;
    height: 50%;
    background: url("img/logo-img.png") center top / contain no-repeat;
    z-index: 1;
    pointer-events: none;
  }

  .strength-mobile-title {
    display: block;
    margin: 0 0 8px;
    padding: 8px 10px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ff6330;
    background: #ffffff;
  }

  .wide-brand-title {
      margin: -120px auto 12px 2vw;
      width: 92vw;
      max-width: 420px;
      font-size: clamp(1.7rem, 7vw, 2.2rem);
      border-radius: 12px;
      text-align: center;
      display: block;
    }
  /* --- .wide-brand-title モバイル横幅調整 --- */
  .wide-brand-title {
      margin: -56px auto 6px 1vw;
      width: 90vw;
      max-width: 320px;
      font-size: clamp(1.2rem, 8vw, 1.7rem);
      border-radius: 10px;
      text-align: center;
      display: block;
    }

  .issue-description-body p br {
    display: none;
  }

  .issue-description-body p br.mobile-period-break {
    display: initial;
  }

  .company-description br {
    display: none;
  }

  .company-description br.mobile-period-break {
    display: initial;
  }

  #career br {
    display: initial;
  }

  #career br.pc-only-break {
    display: none;
  }

  /* Issueセクション */
  .issue-description-body {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }

  .issue-description-body p {
    position: relative;
    z-index: 2;
    padding: 12px;
  }

  .issue-thinker-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(62vw, 240px);
    transform: translate(-50%, -50%);
    margin: 0;
    opacity: 0.18;
    z-index: 1;
  }

  /* Facilityセクション */
  .facility-card {
    flex: 1 1 100%;
  }

  /* Memberセクション */
  .member-card {
    width: min(86vw, 500px);
    margin-left: auto;
    margin-right: auto;
  }

  .member-card.fade,
  .member-card.fade.show {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Messageセクション */
  .message-body-inner {
    padding: 42px 16px 30px;
  }

  .member-head .name-item {
    padding-left: 30px;
  }

  .member-head .name .name-item {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    white-space: nowrap;
  }

  .member-head .name-item::after {
    writing-mode: vertical-rl !important;
    text-orientation: upright !important;
    display: inline-block;
  }
}

@media (max-width: 480px) {
  /* 共通レイアウト */
  section {
    padding: 54px 4%;
  }

  /* ヘッダー */
  nav a {
    min-width: 52px;
    padding: 5px 8px;
    font-size: 0.72rem;
  }

  /* 共通CTA */
  .info-form-main {
    gap: 12px;
  }

  .info-form-label {
    font-size: 1.1rem;
  }

  /* Issueセクション */
  .issue-list li .issue-description-body{
    font-size: 1.05rem;

  }

  .issue-icon {
    width: 12px;
    height: 12px;
  }

  .issue-description-body{
    font-size: 1rem;
  }

  .issue-catch {
    font-size: 1.5rem;
    padding: 10px 14px;
  }
  /* Memberセクション */
  .member-head {
    font-size: 1.2rem;
    height: 108px;
  }

  .member-head::before,
  .member-head img {
    width: 96px;
    height: 96px;
  }

  .member-head .name-item {
    padding-left: 22px;
    font-size: clamp(0.74rem, 3.2vw, 0.9rem);
  }

  .member-head .name-item::before {
    left: 12px;
  }

  .member-head .name-item::after {
    left: 0;
    font-size: 0.52rem;
  }

  .member-head .name-item {
    padding-left: 28px;
  }

  .member-head .name .name-item {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    white-space: nowrap;
  }

  .member-head .name-item::after {
    writing-mode: vertical-rl !important;
    text-orientation: upright !important;
    display: inline-block;
  }

  .member-card {
    width: min(84vw, 300px);
  }

  /* Footerセクション */
  .footer-team {
    gap: 8px;
  }

  .footer-team h2 {
    font-size: 1.35rem;
  }

  address p:nth-child(2) {
    font-size: 1.6rem;
  }
}

