/* ======================
    カスタムプロパティ
======================= */
:root {
  --color-primary: #4ab034; /* カラー */
  --color-secondary: #004da0;
  --color-secondary-accent: #0a4687;
  --color-tertiary: #ff6469;
  --color-accent: #ffe990;
  --color-white: #fff;
  --color-navy: #192d5a;
  --color-background: #fffcee; /* 背景色 */
  --color-background-gray: #f9f9f9;
  --color-background-footer: #192d5a;
  --color-text: #192d5a; /* テキスト色 */
  --color-text-cr: #0f6ba5;
  --color-text-house: #195422;
  --color-text-od: #234c14;
  --color-text-etmoku: #777473;
  --color-border: #192d5a; /* ボーダー色 */
  --color-border-light: #dcdcdc;
  --color-label-info: #004da0; /* ラベル色 */
  --color-label-release: #ff6469;
  --color-label-event: #4ab034;
  --font-size-base: 16px;
  --font-size-slogan: 8rem;
  --font-size-h2: 5rem;
  --font-size-h3: 3rem;
  --font-size-subtitle: 1.2rem;
  --font-size-label: 0.8rem;
  --font-size-mobile-base: 14px;
  --font-size-mobile-slogan: 4rem;
  --font-size-mobile-h2: 3rem;
  --font-size-mobile-h3: 2rem;
  --font-size-mobile-subtitle: 0.8rem;
  --font-size-mobile-label: 0.8rem;
}

/* ======================
    リセット・初期化
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: var(--font-size-base);
}
body {
  font-family: 'Geologica', 'Noto Sans JP', sans-serif;
  color: var(--color-text);
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  html {
    font-size: var(--font-size-mobile-base);
  }
}

/* lang 属性が ja の場合は日本語用フォントに切替える */
:lang(ja) {
  font-family: 'Noto Sans JP', sans-serif;
}

/* ======================
    共通パーツ
======================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

.is-flex {
  display: flex;
  gap: 16px;
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-end {
  justify-content: end;
}

.align-items-start {
  align-items: start;
}

.align-items-baseline {
  align-items: baseline;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.block {
  display: block;
}

/* ======== 横並び(grid) ======== */
.is-grid {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.is-grid img {
  width: 100%;
}

.grid-col-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-col-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-col-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (max-width: 768px) {
  .grid-col-2, .grid-col-3 {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ======== 余白(margin/padding) ======== */
.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.mt-40 {
  margin-top: 40px;
}

.mt-50 {
  margin-top: 50px;
}

.mt-1rem {
  margin-top: 1rem;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mb-40 {
  margin-bottom: 40px;
}

.mb-50 {
  margin-bottom: 50px;
}

.ml-10 {
  margin-left: 10px;
}

.ml-20 {
  margin-left: 20px;
}

.ml-30 {
  margin-left: 30px;
}

.ml-40 {
  margin-left: 40px;
}

.py-10 {
  padding-top: 10px;
  padding-bottom: 10px;
}

.py-20 {
  padding-top: 20px;
  padding-bottom: 20px;
}

.py-30 {
  padding-top: 30px;
  padding-bottom: 30px;
}

.py-40 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.py-50 {
  padding-top: 50px;
  padding-bottom: 50px;
}

.pw-4 {
  padding: 0 4px;
}

.pw-30 {
  padding: 0 30px;
}

/* ======== フォント ======== */
.text-bold {
  font-weight: bold;
}

/* ======== 位置 ======== */
.text-align-center {
  text-align: center;
}

.text-align-right {
  text-align: right;
}

.text-align-left {
  text-align: left;
}

/* ======== PC/スマホ ======== */
.only-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .only-pc {
    display: none;
  }
  .only-mobile {
    display: block;
  }
}

/* ======== ボタン ======== */
.round-button {
  align-items: center;
  border: 1px solid var(--color-navy);
  border-radius: 2rem;
  color: var(--color-text);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.3rem;
  padding: 1rem 1.6rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.round-button:hover {
  background-color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  color: var(--color-white);
}

.round-button span {
  font-weight: 400;
  margin-left: 20px;
  transition: transform 0.3s;
}

.round-button:hover span {
  transform: translateX(4px);
}

/* 右上三角リンク */
/* グリッドレイアウト */
.card-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 表示中のページは反転 */
.card-list li a.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.card-list li a.active::before {
  /* 三角形も反転（背景が accent なので白に） */
  border-bottom-color: var(--color-secondary);
}

/* スマホ 2列に */
@media (max-width: 768px) {
  .card-list {
    grid-template-columns: repeat(2, 1fr);
    font-size: 0.8rem;
  }
}

/* カードリンク */
.card-list li a {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  display: block;
  font-weight: bold;
  overflow: hidden;
  padding: 1.5rem;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

/* 右上の三角形 */
.card-list li a::before {
  border-bottom: 1rem solid var(--color-primary);
  border-left: 1rem solid transparent;
  content: "";
  height: 0;
  position: absolute;
  right: 0;
  top: 0;
  transform: rotate(-90deg);
  width: 0;
}

/* hover で反転 */
.card-list li a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.card-list li a:hover::before {
  /* 三角形も反転（背景が accent なので白に） */
  border-bottom-color: var(--color-secondary);
}

/* ラベル */
.round--label {
  border-radius: 2rem;
  color: var(--color-white);
  font-size: var(--font-size-label);
  font-weight: 700;
  line-height: normal;
  padding: 0.2rem 1rem;
}
.round--label.info {
  background-color: var(--color-label-info);
}
.round--label.release {
  background-color: var(--color-label-release);
}
.round--label.event {
  background-color: var(--color-label-event);
}

/* 丸ボタン */
.circle-link {
  /* 四角を丸くしてアイコンを中央揃え */
  align-items: center;
  border: 1px solid var(--color-white);
  border-radius: 50%;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  text-decoration: none;
  transition: background-color 0.3s;
  width: 50px;
}

/* アイコン自体のスタイル */
.circle-link .material-symbols-outlined {
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s;
  color: var(--color-white);
}

/* ホバー時：背景少し明るく＆矢印を右へ */
.circle-link:hover {
  background-color: #fff;
}
.circle-link:hover .material-symbols-outlined {
  color: var(--color-text);
  transform: translateX(4px);
}

/* ======== 区切り線 ======== */
.hr-primary {
  border-top: 1px solid var(--color-border);
}

.hr-light {
  border-top: 1px solid var(--color-border-light);
}

/* ======== フェードイン ======== */
/* 初期状態：透明かつ少し下にオフセット */
section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
section.interstitial {
  transform: none;
}

/* fadein クラスをつけるとフェードイン＆上へ移動 */
section.fadein {
  opacity: 1;
  transform: translateY(0);
}

/* no-fade クラスがついた section は初期状態も変えたくない場合 */
/* （任意）こちらを使えば no-fade で完全にアニメをオフにもできます */
section.no-fade {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ======== タイトル ======== */
.headline {
  color: var(--color-secondary);
  font-size: var(--font-size-h2);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 24px;
}

.headline--subtitle {
  color: var(--color-primary);
  font-size: var(--font-size-subtitle);
  font-weight: 700;
}

.headline--secondary {
  font-size: var(--font-size-h3);
  font-weight: 700;
}

.headline--secondary--subtitle {
  color: var(--color-primary);
  font-size: 2rem;
  font-weight: 600;
}

@media screen and (max-width: 768px) {
  .headline {
    font-size: var(--font-size-mobile-h2);
  }
  .headline--secondary {
    font-size: var(--font-size-mobile-h3);
  }
  .headline--secondary--subtitle {
    font-size: 1.2rem;
  }
}

/* ======== テキスト ======== */
.text-algin-center {
  text-align: center;
}

/* ======================
    Header
======================= */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  /* 透明or半透明にすることでカバー画像が透ける */
  background-color: transparent;
  transition: background-color 0.3s, box-shadow 0.3s;
}

/* スクロールして固定された状態 */
.header.fixed {
  position: fixed;
}

.header.fixed .header-fixed-bg {
  background-color: var(--color-secondary);
  border-radius: 40px;
  bottom: 10px;
  display: block;
  left: 10px;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 6;
}
.header.fixed.submenu-active .header-fixed-bg {
  display: none;
}

.header-inner {
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 7;
}

.logo {
  margin-left: 16px;
}
.logo a {
  color: #fff;
  display: flex;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
}
.logo a img {
  width: 140px;
}

/* ナビゲーション */
/* nav のデフォルトスタイル例 */
.nav ul {
  align-items: center;
  display: flex;
  list-style: none;
}

/* その他のリンク (お問い合わせ 以外) */
.nav li:not(.contact) a {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  position: relative;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.submenu-active .nav li:not(.contact) a {
  color: #dcdcdc;
}

/* hover 時のアンダーライン */
.nav li:not(.contact).active a {
  color: var(--color-secondary);
  position: relative;
}

/* ナビメニューの下線 */
.nav li:not(.contact) a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(-1 * 6px);
  width: 100%;
  height: 5px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform 0.3s ease;
}
.nav li:not(.contact).active a::after {
  transform: scale(1, 1);
  transform-origin: left top;
}

/* 「お問い合わせ」リンクだけ丸みのある白抜きボタン風に */
.nav li.contact a {
  background-color: #fff;
  border: 2px solid #fff;
  border-radius: 2rem;
  color: var(--color-secondary);
  display: inline-block;
  padding: 8px 16px;
  margin: 8px 16px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* サブメニュー表示時は反転 */
.submenu-active .nav li.contact a {
  background-color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  color: var(--color-white);
}

/* 「お問い合わせ」をホバーしたとき */
.nav li.contact a:hover {
  background-color: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-white);
}

/* ハンバーガーメニュー（スマホ用） */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
}
.hamburger p {
  color: var(--color-white);
  font-size: 10px;
  margin-bottom: -4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.2px;
  background-color: var(--color-white);
}
.mobile-nav {
  display: none;
}

@media screen and (max-width: 768px) {
  .logo {
    margin-left: 0;
  }
  .logo a img {
    width: 100px;
  }
  .header.fixed .header-fixed-bg {
    display: none;
  }
  .header.fixed .hamburger p {
    color: var(--color-secondary);
  }
  .header.fixed .hamburger span {
    background-color: var(--color-secondary);
  }
  .header-inner {
    justify-content: space-between;
    padding: 0.5rem 0rem 0 1rem;
  }
  /* PC用ナビを隠す */
  .nav {
    display: none;
  }
  /* ハンバーガーを表示 */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2.6rem;
    height: 2.2rem;
    cursor: pointer;
  }

  /* スマホ用ナビ初期は隠す */
  .mobile-nav {
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: -4px 0 8px rgba(0,0,0,0.2);
    display: block;
    margin: 8px;
    max-width: 300px;
    opacity: 0;
    padding: 1.5rem;
    position: fixed;
    top: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    right: 0;
    width: 80%;
    visibility: hidden;
    z-index: 1000;
  }
  /* 開いた状態 */
  .mobile-nav.open {
    opacity: 1;
    visibility: visible;
  }
  .mobile-nav-close {
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.2rem;
    position: absolute;
    top: 1rem; right: 1rem;
    cursor: pointer;
  }

  /* メニューリスト */
  .mobile-menu {
    list-style: none;
    margin: 3rem 0 0;
    padding: 0;
  }

  /* 各項目共通 */
  .mobile-menu li {
    margin-bottom: 1rem;
  }

  /* お問い合わせ以外のリンク */
  .mobile-menu li:not(.has-submenu):not(.contact) a {
    color: var(--color-text);
    display: block;
    font-size: 1rem;
    padding: 0 0 0.5rem 0;
    text-decoration: none;
  }

  /* サブメニューを持つアイテム */
  .has-submenu .submenu-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
  }
  .has-submenu .submenu-header span {
    font-size: 1rem;
    color: var(--color-text);
  }
  .has-submenu .submenu-toggle {
    background-color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    font-size: 1rem;
    transition: transform 0.3s;
  }
  .has-submenu .submenu-toggle span {
    color: var(--color-white);
  }
  /* サブメニュー本体 */
  .submenu {
    list-style: none;
    margin: 0.5rem 0 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0;
  }
  /* サブメニュー内リンク */
  .submenu li a {
    color: #666;
    display: block;
    font-size: 0.9rem;
    padding: 0.3rem 0;
    text-decoration: none;
  }

  /* open 状態 */
  .has-submenu.open .submenu {
    max-height: 500px; /* 展開時に十分な高さ */
    margin: 1rem 0 0 1rem;
  }
  .has-submenu.open .submenu-toggle {
    transform: rotate(180deg);
  }

  /* お問い合わせボタンだけ特別 */
  .mobile-menu li.contact a {
    color: var(--color-white);
    background-color: var(--color-secondary);
    display: inline-block;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-secondary);
    border-radius: 2rem;
    text-decoration: none;
  }
}

/* ======================
    ナビサブメニュー
======================= */
.navi-sub-menu {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  font-size: 0.9rem;
  left: 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  position: fixed;
  right: 10px;
  top: 10px;
  transition: opacity 0.6s ease-out, max-height 0.6s ease-out;
  z-index: 6;
}

.navi-sub-menu.open {
  max-height: 100%;
  opacity: 1;
}

.navi-sub-menu .submenu-inner {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  padding: 100px 30px 60px 30px;
}

.navi-sub-menu .submenu-inner .submenu-inner--left p {
  color: var(--color-secondary);
  font-size: var(--font-size-h2);
  font-weight: lighter;
  line-height: 5rem;
  margin-bottom: 1rem;
  width: 400px;
}

.navi-sub-menu .submenu-inner .submenu-inner--left a {
  align-items: center;
  border: 2px solid var(--color-secondary);
  border-radius: 2rem;
  background-color: var(--color-secondary);
  color: var(--color-white);
  display: inline-flex;
  font-size: 1rem;
  gap: 0.3rem;
  padding: 1.0rem 2.0rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.navi-sub-menu .submenu-inner .submenu-inner--right a {
  color: var(--color-secondary);
  font-size: 0.8rem;
  text-decoration: none;
}

.navi-sub-menu .submenu-inner .submenu-inner--right span.material-symbols-outlined {
  font-size: 1rem;
  font-weight: 200;
  margin-top: 3px;
}

.navi-sub-menu .submenu-inner .submenu-inner--right ul {
  list-style: none;
}

.navi-sub-menu .submenu-inner .submenu-inner--right img {
  border-radius: 8px;
  width: 100%;
}

.navi-sub-menu .submenu-inner .submenu-inner--right ul.bullet {
  padding-left: 18px;
}

.navi-sub-menu .submenu-inner .submenu-inner--right ul.bullet li::before {
  content: "●";                 /* 前に置く文字 */
  display: inline-block;
  width: 1em;                   /* マーカー分の幅 */
  margin-left: -1em;            /* li のパディングと合わせる */
  margin-right: 0.2em;          /* テキストとの間隔 */
  color: var(--color-secondary);/* マーカーの色 */
  font-size: 0.8em;             /* マーカーのサイズ */
  vertical-align: middle;
}

/* ======================
    レイアウト
======================= */
.left-up-right-down--message {
  font-size: 2rem;
  font-weight: 700;
}
.left-up-right-down {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.left-up-right-down .left {
  font-size: 2rem;
  font-weight: bold;
}
.left-up-right-down .right {
  margin-top: 140px;
}

@media screen and (max-width: 768px) {
  .left-up-right-down {
    grid-template-columns: repeat(1, 1fr);
  }
  .left-up-right-down .right {
    margin-top: 20px;
  }
}

/* 技術、製品の説明ヘッダー部 */
.information-list {
  background-color: var(--color-background-gray);
}

/* Divider */
.information-list hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2rem 0;
}

/* Topic heading with green square */
.information-list .topic {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}
.information-list .topic-icon {
  background-color: var(--color-primary);
  display: inline-block;
  height: 0.75rem;
  margin-right: 0.5rem;
  padding-right: 0.75rem;
  width: 0.75rem;
}

/* 画像とPoint説明セット */
.business-block .business-block-card img {
  width: 100%;
}
.business-block .business-block-card--point {
  text-align: center;
}
.business-block .business-block-card--title {
  font-size: var(--font-size-subtitle);
  font-weight: bold;
  text-align: center;
}
.business-block .business-block-card--deescription {
  padding: 0 10px;
}

/* ======================
    お知らせブロック
======================= */
.pickup-card {
  background-color: #fff;
  box-sizing: border-box;
  color: var(--color-text);
  flex: 0 0 100%;
  margin-right: 0px;
  overflow: hidden;    /* カード自体もはみ出しを隠す */
  text-align: center;
  text-decoration: none;
  transition: box-shadow 0.3s;
}
/* 画像ラッパーはサイズ固定＆overflow:hidden */
.pickup-card-img {
  height: auto;
  overflow: hidden;   /* 画像がはみ出しても見切れる */
  width: 100%;
}
/* 画像自体にズーム用 transition を設定 */
.pickup-card-img img {
  display: block;
  height: auto;
  transition: transform 0.3s ease;
  width: 100%;
}
.pickup-card-text {
  padding: 10px;
}
/* hover 時に画像だけをズーム */
.pickup-card:hover .pickup-card-img img {
  transform: scale(1.05);
}
.pickup-card--label {
  border-radius: 2rem;
  color: #fff;
  font-size: var(--font-size-label);
  padding: 0.2rem 1rem;
}
.pickup-card--date {
  font-weight: 400;
  padding-left: 1rem;
}
.pickup-card p {
  font-weight: 500;
  padding: 0.4rem 0;
  text-align: left;
}

/* ======================
    企業情報 Company セクション
======================= */
/* セクション全体 */
.company-section {
  position: relative;
}

/* 背景画像エリア */
.company-bg {
  height: 600px;
  margin-top: 4rem;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.company-bg img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

/* 既存の .company-content の設定（gap を 0 にして隙間をなくす） */
.company-content {
  display: flex;
  gap: 0;
  justify-content: space-between;
  margin: 0 auto;
  margin-top: -120px;
  max-width: 1200px;
  padding: 32px 0;
  position: relative;
}

/* 各 .company-box の基本スタイル（変更なし） */
.company-box {
  background-color: var(--color-secondary);
  color: #fff;
  flex: 1;
  padding: 60px 32px;
  /* 下記は縦線を入れるために relative 指定 */
  position: relative;
  text-decoration: none;
  /* 必須 */
  position: relative;
  overflow: hidden;
  /* テキストなどを上に重ねる */
  z-index: 0;
}

/* 疑似要素で色のレイヤーを用意 */
.company-box::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  /* ホバー後の背景色 */
  background-color: var(--color-secondary-accent);
  /* アニメーション */
  transition: height 0.4s ease;
  /* 疑似要素を本文の背面に */
  z-index: -1;
}

/* ホバー時に疑似要素の高さを100%に */
.company-box:hover::before {
  height: 100%;
}

/* 左側の .company-box にのみ疑似要素 ::after で縦のラインを追加 */
/* 「:not(:last-child)」により、右側のボックスには適用されません */
.company-box:not(:last-child)::after {
  background-color: rgba(255, 255, 255, 0.6);  /* 線の色（半透明の白） */
  content: "";
  height: 76%;         /* ボックスの高さの76%（全体ではない）top+height+bottom = 100% */
  position: absolute;
  right: 0;            /* 右端に表示（ボックスの内側に配置） */
  top: 12%;            /* 上から12%の位置に表示 */
  width: 2px;          /* 線の太さ */
}

/* 英語見出し */
.company-en {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* 日本語見出し */
.company-jp {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* テキスト段落 */
.company-box p {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 24px;
}

.company-box .company-link-icon {
  text-align: right;
}

/* ホバー時：背景少し明るく＆矢印を右へ */
.company-box:hover .circle-link {
  background-color: #fff;
}
.company-box:hover .material-symbols-outlined {
  color: var(--color-text);
  transform: translateX(4px);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .company-bg {
    height: 300px;
  }
  .company-content {
    flex-direction: column;
    margin-top: -68px;
    padding: 0 1rem;
  }
  .company-box {
    border: 1px solid var(--color-secondary);
    padding: 24px;
  }
  .company-box:not(:last-child)::after {
    top: auto;
    bottom: 0;
    height: 2px;
    right: 50%;
    transform: translateX(50%);
    width: 90%;
  }
  .company-en {
    font-size: 1.3rem;
  }
  .company-jp {
    font-size: 2.0rem;
  }
}

/* ======================
    Links
======================= */
/* セクション全体 */
.links-section {
  background-color: #004da0; /* 紺色背景 */
  padding: 5rem 1rem 5rem 1rem; /* 適度な余白 */
}

/* 内側コンテナ：横並びに2カード */
.links-inner {
  display: flex;
  flex-wrap: wrap; /* 必要に応じてスマホで折り返し */
  gap: 16px;
  margin: 0 auto;
  max-width: 1200px;
  position: relative;
}

/* カード共通スタイル */
.links-card {
  background-color: #fff;
  border-radius: 1rem;
  display: flex;
  flex: 1 1 calc(50% - 2rem);
  min-height: 200px; /* カードの高さ目安 */
  overflow: hidden;
  text-decoration: none;
}

/* 左半分、右半分 */
.card-left,
.card-right {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 50%;
}

/* 左半分：画像などが中央に見えるように */
.card-left {
  position: relative;
}

/* 右半分：テキスト(タイトル・サブタイトル) */
.card-right {
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

/* アイコン・画像の基本スタイル */
.card-image {
  display: block;
  height: 100%;
  width: 100%;
}

.card-icon {
  height: 40%;
  position: absolute;
}

/* 文字部分：タイトル・サブタイトル */
.card-title {
  color: var(--color-secondary);
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
  text-align: center;
}

/* サブタイトル (例: '公式 SNS') */
.card-subtitle {
  color: var(--color-secondary);
  font-size: 1rem;
  margin: 0;
  text-align: center;
}

.primary-card .card-title {
  color: var(--color-primary);
  font-weight: 300;
}
.primary-card .card-subtitle {
  color: var(--color-primary);
  font-weight: 700;
}
.primary-card:hover .card-right {
  background-color: var(--color-primary);
}

.secondary-card .card-title {
  color: var(--color-secondary);
  font-weight: 300;
}
.secondary-card .card-subtitle {
  color: var(--color-secondary);
  font-weight: 700;
}
.secondary-card:hover .card-right {
  background-color: var(--color-secondary-accent);
}

.instagram-card .card-title {
  color: var(--color-tertiary);
  font-weight: 300;
}
.instagram-card .card-subtitle {
  color: var(--color-tertiary);
  font-weight: 700;
}
.instagram-card:hover .card-right {
  background-color: var(--color-tertiary);
}

.links-card:hover .card-title,
.links-card:hover .card-subtitle {
  color: var(--color-white);
}

.links-info:hover .card-right {
  background-color: var(--color-primary);
}

.links-info:hover .card-title,
.links-info:hover .card-subtitle {
  color: #fff;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .links-inner {
    flex-direction: column;
  }
  .links-card {
    flex: 1 1 auto;
    min-height: auto;
  }
  .card-left,
  .card-right {
    width: 100%;
  }
}

/* ──────────────────────────────────────────
   事業について
──────────────────────────────────────────*/
/* ===== ビジネスセクション共通 ===== */
.business-links-section {
  padding: 4rem 0rem;
}

/* サブタイトル */
.business-links-section .subtitle {
  color: #4ab034;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* セクションタイトル */
.business-links-section .section-title {
  color: #004da0;
  font-size: 2.5rem;
  margin: 0 0 2rem;
  font-weight: normal;
  line-height: 1.2;
}

/* ===== グリッドレイアウト ===== */
.business-links-section .business-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===== 各カード ===== */
.business-links-section .business-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  padding: 1.5rem;
}

.business-links-section .business-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* ロゴ画像 */
.business-links-section .business-item--image {
  padding: 0 30px;
}
.business-links-section .business-item img {
  max-width: 100%;
  height: auto;
  margin: 3rem 0;
}

/* カード見出し */
.business-links-section .business-item h3 {
  font-size: 1.25rem;
  color: var(--color-text);
  margin: 0 0 0.75rem;
  text-align: center;
}

/* カード本文 */
.business-links-section .business-item p {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  margin: 0 0 1.5rem;
  text-align: center;
}

/* リンク */
.business-links-section .business-link {
  align-items: center;
  color: #004da0;
  display: inline-flex;
  font-weight: 500;
  justify-content: end;
  margin-top: auto;
  text-decoration: none;
  transition: color 0.3s;
}
.business-links-section .business-link .material-symbols-outlined {
  font-size: 1.2rem;
  font-weight: 300;
  margin-left: 0.25rem;
  transition: transform 0.3s;
}

/* hover エフェクト */
.business-links-section .business-item:hover {
  border-color: var(--color-secondary);
}
.business-links-section .business-item:hover .business-link .material-symbols-outlined {
  transform: translateX(4px);
}

/* スマホでは2列 */
@media (max-width: 768px) {
  .business-links-section .business-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .business-links-section .business-item--image {
    padding: 0 8px;
  }
  .business-links-section .business-item img {
    margin: 2rem 0;
  }
}

/* ======================
    フッター
======================= */
/* Footer 全体 */
footer {
  background-color: var(--color-background-footer);
  color: var(--color-white);
  font-size: 0.9rem;
  line-height: 1.6;
}

footer a {
  color: var(--color-white);
  text-decoration: none;
}

/* 内側ラップ */
.footer_wrap {
  margin: 0 auto;
  max-width: 1200px;
  padding: 3rem 1rem;
}

/* 会社ロゴ */
.footer_logo {
  text-align: center;
}
.footer_logo .footer-company-name {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 20px 0 0 0;
  text-decoration: none;
}

/* 認定情報テキスト */
#topBtn_stop.qua {
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 400;
  padding: 3rem 0;
  text-align: center;
}

/* ナビゲーション全体 */
.footer_nav {
  border-top: 1px solid var(--color-white);
  display: grid;
  font-size: 0.8rem;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding-top: 2rem;
  padding-bottom: 6rem;
  width: 100%;
}

/* 各カラム見出しリンク */
.footer_nav-block > a {
  color: var(--color-white);
  display: inline-block;
  font-weight: 700;
  margin-bottom: 10px;
  text-decoration: none;
}

/* 各カラムの項目リスト */
.footer_list {
  font-weight: 400;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer_list li {
  margin-bottom: 6px;;
}
.footer_list li a {
  color: var(--color-white);
  text-decoration: none;
}
.footer_list li a:hover {
  text-decoration: underline;
}

/* SNS / その他リンク */
footer h2 img {
  width: 400px;
}
footer .info {
  display: flex;
  flex-wrap: wrap;
  font-weight: 400;
  gap: 1.5rem;
  justify-content: space-between;
  padding: 0.8rem 0;
}
footer .info .etc,
footer .info .sns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
footer .info .etc a,
footer .info .sns a {
  color: var(--color-white);
  text-decoration: none;
}
footer .info .etc a:hover,
footer .info .sns a:hover {
  text-decoration: underline;
}
footer .info .sns img {
  height: 24px;
  width: auto;
}

/* コピーライト */
footer .copy {
  border-top: 1px solid var(--color-white);
  font-weight: 700;
  padding-top: 1rem;
  text-align: center;
}
footer .copy .copyright a {
  color: var(--color-white);
  text-decoration: none;
}

/* レスポンシブMobile用（～768px） */
@media screen and (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  footer h2 img {
    width: 200px;
  }
}

/* ======================
    TOPへ戻るスクロールマーカー
======================= */
.back-to-top {
  align-items: center;
  background-color: var(--color-secondary);
  border-radius: 50%;
  bottom: 2rem;
  color: #fff;
  cursor: pointer;
  display: none;                /* 初期は非表示 */
  height: 60px;
  justify-content: center;
  left: 50%;
  position: fixed;              /* 画面下部中央に固定 */
  transform: translateX(-50%);
  width: 60px;
  z-index: 1000;
  text-decoration: none;
  transition: opacity 0.3s;
}
.back-to-top.visible {
  display: flex;
  opacity: 1;
}

/* ホバー時の色変化 */
.back-to-top:hover {
  background-color: rgba(0,0,0,0.8);
}

/* アイコン */
.back-to-top .material-symbols-outlined {
  font-size: 2.4rem;
  line-height: 1;
}

.back-to-top:hover .material-symbols-outlined {
  transform: translateY(-4%);
}

/* ======================
    パンくず
======================= */
.breadcrumb-section {
  width: auto;
  position: relative;
}

.breadcrumb {
  border-radius: 4px;
  display: inline-block;
  pointer-events: auto;     /* リンクを有効に */
}

.breadcrumb ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0.8rem 0.8rem;
  font-size: 0.75rem;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--color-text);
}

/* リンク */
.breadcrumb a {
  color: #2e2e2e;
  padding: 0 0.25rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #b4b4b4;
  text-decoration: underline;
}

/* 現在地項目 */
.breadcrumb li[aria-current="page"] span {
  color: var(--color-text);
}

/* セパレータを li の前に自動挿入 (最初の li は除外) */
.breadcrumb li + li::before {
  content: "›";
  color: var(--color-text);
  margin: 0 0.5rem;
  font-size: 1rem;
}
