/**
 * Green Engineer コーポレートサイト カスタムCSS
 * Bootstrap 5で補えないスタイルを定義
 */

/* ===========================================
   CSS変数（カラーパレット・フォント）
   =========================================== */
:root {
  --color-base: #ffffff;
  --color-main: #4CAF50;
  --color-main-light: rgba(76, 175, 80, 0.1);
  --color-accent: #1A237E;
  --color-dark: #0d1117;
  --color-text: #333333;
  --color-text-light: #666666;
  --font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  --font-mincho: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', 'Hiragino Mincho ProN', serif;
}

/* ===========================================
   リセット・ベース
   =========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-base);
  line-height: 1.8;
  overflow-x: hidden;
  padding-bottom: 0;
  width: 100%;
  max-width: 100vw;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

/* ===========================================
   ヘッダー
   =========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.site-header .navbar {
  padding: 0.5rem 1rem;
}

.site-header .navbar-brand img {
  height: 50px;
  width: auto;
}

.site-header .nav-link {
  color: var(--color-text) !important;
  font-weight: 500;
  padding: 1rem 1.2rem !important;
  position: relative;
  transition: color 0.3s ease;
}

.site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-main);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.site-header .nav-link:hover {
  color: var(--color-main) !important;
}

.site-header .nav-link:hover::after {
  width: 80%;
}

/* ハンバーガーメニュー */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234CAF50' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 1024px以下でハンバーガーメニュー表示 */
@media (max-width: 1024px) {
  .site-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 1rem;
  }

  .site-header .navbar-nav {
    flex-direction: column;
  }

  .site-header .nav-link {
    padding: 0.8rem 1rem !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .site-header .nav-link::after {
    display: none;
  }

  .site-header .nav-link:hover::after {
    display: none;
    width: 0;
  }
}

/* スマホサイズでロゴを小さく */
@media (max-width: 576px) {
  .site-header .navbar-brand img {
    height: 36px;
  }

  .site-header .navbar {
    padding: 0.4rem 0.8rem;
  }
}

/* ===========================================
   メインビジュアル
   =========================================== */
.main-visual {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.main-visual-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.main-visual-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.main-visual-slide.active {
  opacity: 1;
}

.main-visual-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoomOut 6s ease-out forwards;
}

@keyframes zoomOut {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

.main-visual-slide.active img {
  animation: zoomOut 6s ease-out forwards;
}

/* 暗いオーバーレイ */
.main-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* テキストエリア（参考サイト風） */
.main-visual-text {
  position: absolute;
  bottom: 20%;
  left: 0;
  z-index: 2;
  background: rgba(255, 255, 255, 0.75);
  padding: 1.2rem 3rem 1.2rem 2rem;
  border-radius: 0 50px 50px 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.main-visual-text.active {
  opacity: 1;
}

.main-visual-text p {
  font-size: 1.8rem;
  font-weight: 500;
  color: #000;
  margin: 0;
  line-height: 1.4;
  font-family: var(--font-mincho);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .main-visual {
    min-height: 500px;
  }

  .main-visual-text {
    bottom: 15%;
    padding: 1rem 2rem 1rem 1.5rem;
  }

  .main-visual-text p {
    font-size: 1.3rem;
  }
}

/* ===========================================
   テキストアニメーションセクション
   =========================================== */
.text-animation-section {
  padding: 40px 20px 10px;
  text-align: center;
  background: #fff;
}

.text-animation-line {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.5rem;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
}

.text-animation-line.large {
  font-size: 54px;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.text-animation-line .char {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: pre;
}

.text-animation-line .char.visible {
  opacity: 1;
}

.tane-text {
  font-size: 32px;
  color: var(--color-main);
  font-weight: 700;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.tane-text .char {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tane-text .char.visible {
  opacity: 1;
}

.tane-text img {
  height: 1.2em;
  vertical-align: middle;
  margin: 0 0.1em;
  display: inline-block;
}

@media (max-width: 768px) {
  .text-animation-section {
    padding: 20px 15px 5px;
  }

  .text-animation-line {
    font-size: 16px;
    margin-bottom: 0.3rem;
  }

  .text-animation-line.large {
    font-size: 24px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .tane-text {
    font-size: 16px;
    margin-top: 0.3rem;
  }
}

/* ===========================================
   Bodyセクション（左右交互レイアウト）
   =========================================== */
.body-section {
  padding: 30px 0 80px;
  background: #fff;
}

.body-section>.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1400px) {
  .body-section>.container {
    max-width: 1100px;
  }
}

@media (max-width: 768px) {
  .body-section {
    padding: 40px 0 60px;
  }
}

.body-section>.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1400px) {
  .body-section>.container {
    max-width: 1100px;
  }
}

.body-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 80px;
}

.body-row:last-child {
  margin-bottom: 0;
}

/* 左右の列 */
.body-row>.col-md-6 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
}

@media (max-width: 767.98px) {
  .body-row>.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }

  .body-row>.col-md-6:last-child {
    margin-bottom: 0;
  }
}

.body-content {
  padding: 1rem 0;
}

.body-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.body-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--color-main);
  border-radius: 2px;
}

.body-content p {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.body-content p:last-child {
  margin-bottom: 0;
}

.body-image {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  aspect-ratio: 4 / 3;
}

.body-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.body-image:hover img {
  transform: scale(1.05);
}

/* スクロールアニメーション */
.fade-in-left,
.fade-in-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left {
  transform: translateX(-50px);
}

.fade-in-right {
  transform: translateX(50px);
}

.fade-in-left.visible,
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 767.98px) {
  .body-section {
    padding: 20px 0 60px;
  }

  .body-row {
    margin-bottom: 60px;
  }

  .body-content h2 {
    font-size: 1.5rem;
  }

  .body-image {
    aspect-ratio: 16 / 10;
  }
}

/* ===========================================
   サステナビリティセクション
   =========================================== */
.sustainability-section {
  position: relative;
  padding: 120px 20px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.sustainability-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
}

.sustainability-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.sustainability-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 2rem;
}

.sustainability-content p {
  font-size: 1rem;
  line-height: 2.2;
  color: var(--color-text);
  text-align: justify;
  margin-bottom: 1.5rem;
}

.sustainability-content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .sustainability-section {
    padding: 80px 15px;
    background-attachment: scroll;
  }

  .sustainability-content h2 {
    font-size: 1.6rem;
  }

  .sustainability-content p {
    font-size: 0.95rem;
    text-align: left;
  }
}

/* ===========================================
   パートナーシップお誘いセクション
   =========================================== */
.partnership-invite-section {
  background: var(--color-main-light);
  padding: 80px 20px;
  text-align: center;
}

.partnership-invite-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
}

.partnership-invite-section p {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 2;
}

.btn-partnership {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--color-main);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  border: none;
}

.btn-partnership:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(26, 35, 126, 0.3);
}

@media (max-width: 768px) {
  .partnership-invite-section {
    padding: 60px 15px;
  }

  .partnership-invite-section h2 {
    font-size: 1.6rem;
  }

  .btn-partnership {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

/* ===========================================
   パートナー新着セクション
   =========================================== */
.partner-section {
  padding: 80px 0;
  overflow: hidden;
  background: #fff;
}

.partner-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 3rem;
}

.partner-slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.partner-slider {
  display: flex;
  width: max-content;
}

.partner-slider.animate {
  animation: infiniteScroll 40s linear infinite;
}

.partner-slider:hover {
  animation-play-state: paused;
}

@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.partner-item {
  flex: 0 0 300px;
  width: 300px;
  margin: 0 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-decoration: none;
}

.partner-item:hover {
  transform: translateY(-10px);
}

.partner-item-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #f5f5f5;
}

.partner-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.partner-item-name {
  background: var(--color-accent);
  color: #fff;
  padding: 0.8rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0 0 12px 12px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .partner-section {
    padding: 60px 0;
  }

  .partner-section h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .partner-item {
    flex: 0 0 240px;
    width: 240px;
    margin: 0 10px;
  }

  .partner-item-image {
    /* height: 140px; */
    aspect-ratio: 16 / 9;
  }

  .partner-item-name {
    height: 45px;
    font-size: 0.8rem;
  }
}

.partner-item-name.small-text {
  font-size: 12px !important;
  line-height: 1.25;
  padding: 0 0.5rem;
  word-break: break-all;
}

@media (max-width: 768px) {
  .partner-item-name.small-text {
    font-size: 10px !important;
    line-height: 1.2;
    padding: 0 2px;
  }
}

/* small-textの場合も内部テキストで制限 */
.partner-item-name.small-text .name-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ===========================================
   ブログ新着セクション
   =========================================== */
.blog-section {
  padding: 80px 0;
  background: #f9f9f9;
}

.blog-section>.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

.blog-section .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.blog-section .col-md-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 15px;
  margin-bottom: 30px;
}

@media (max-width: 767.98px) {
  .blog-section .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.blog-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  vertical-align: bottom;
  /* 下部の隙間防止 */
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.8rem;
  line-height: 1.5;

  /* タイトルも2行制限 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0;

  /* 抜粋を3行制限 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.blog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

@media (max-width: 768px) {
  .blog-section {
    padding: 60px 0;
  }

  .blog-section h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .blog-card-image {
    /* height: 180px;  <-- これが原因でアスペクト比が効かなくなっていた可能性が高いので削除 */
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

.btn-blog-list {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: transparent;
  color: var(--color-main);
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--color-main);
  border-radius: 50px;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.btn-blog-list:hover {
  background: var(--color-main);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* ===========================================
   フッター
   =========================================== */
.site-footer {
  background: #333e4f;
  color: #fff;
  padding: 60px 0 30px;
}

.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-column {
  flex: 1;
  min-width: 180px;
}

.footer-column h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-column p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer-column a {
  color: #fff;
  display: block;
  padding: 0.3rem 0;
  transition: opacity 0.3s ease;
  font-size: 0.95rem;
}

.footer-column a:hover {
  opacity: 0.7;
  color: #fff;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}

.footer-copyright p {
  margin: 0;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 40px 0 20px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-column {
    margin-bottom: 0;
  }

  .footer-column h3 {
    font-size: 1.1rem;
  }
}

/* ===========================================
   ユーティリティ
   =========================================== */
.section-padding {
  padding: 80px 0;
}

.mb-section {
  margin-bottom: 80px;
}

/* Bootstrapのcontainerを上書きしない */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* ===========================================
   下層ページヘッダー
   =========================================== */
.page-header {
  position: relative;
  background-image: url('../img/header_band.webp');
  background-size: cover;
  background-position: center;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 76px;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
}

.page-header h1 {
  position: relative;
  z-index: 1;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
  text-align: center;
  font-family: var(--font-mincho);
  padding: 0 20px;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .page-header {
    height: 150px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .page-header {
    height: 120px;
    margin-top: 60px;
  }

  .page-header h1 {
    font-size: 1.2rem;
  }
}

/* ===========================================
   下層ページ コンテンツ
   =========================================== */
.page-lead {
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 2;
  margin-bottom: 3rem;
}

.page-section {
  padding: 60px 0;
}

.page-section p {
  text-align: justify;
  line-height: 2;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.page-content-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-main);
  font-family: var(--font-mincho);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .page-content-heading {
    font-size: 1.2rem;
  }
}

/* ===========================================
   会社概要ページ
   =========================================== */
.company-info-table {
  margin-top: 1rem;
}

.company-info-table .table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.company-info-table .table th,
.company-info-table .table td {
  padding: 1.5rem;
  vertical-align: top;
  border: 1px solid #e0e0e0;
}

.company-info-table .table th {
  background: #e8f5e9;
  color: var(--color-accent);
  font-weight: 700;
  width: 150px;
  text-align: center;
  font-size: 1rem;
}

.company-info-table .table td {
  background: #fff;
  line-height: 1.8;
  color: var(--color-text);
}

.company-business-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.company-business-list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.5rem;
}

.company-business-list li:last-child {
  margin-bottom: 0;
}

.company-business-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--color-main);
  font-weight: bold;
}

.qualification-group {
  margin-bottom: 1.2rem;
}

.qualification-group:last-child {
  margin-bottom: 0;
}

.qualification-group h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.3rem;
}

.qualification-group p {
  margin: 0;
  padding-left: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {

  .company-info-table .table th,
  .company-info-table .table td {
    display: block;
    width: 100%;
    padding: 1rem;
  }

  .company-info-table .table th {
    border-bottom: none;
  }

  .company-info-table .table td {
    border-top: none;
  }
}

/* ===========================================
   パートナーシップページ - 企業一覧
   =========================================== */
.partner-list-section {
  padding: 60px 0 80px;
  background: #f9f9f9;
}

.partner-list-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--color-main);
  font-family: var(--font-mincho);
}

.partner-list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.partner-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s ease;
}

.partner-list-item:last-child {
  border-bottom: none;
}

.partner-list-item:hover {
  background: #fafafa;
}

.partner-list-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  flex: 1;
}

.partner-list-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-right: 0.5rem;
}

.partner-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.partner-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: var(--color-main-light);
  color: var(--color-main);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--color-main);
}

.btn-detail {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: transparent;
  color: var(--color-main);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--color-main);
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-detail:hover {
  background: var(--color-main);
  color: #fff;
}

@media (max-width: 768px) {
  .partner-list-heading {
    font-size: 1.4rem;
  }

  .partner-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .partner-list-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .btn-detail {
    align-self: flex-end;
  }
}

/* ===========================================
   ページネーション
   =========================================== */
.pagination {
  margin-bottom: 0;
}

.page-link {
  color: var(--color-main);
  border: 1px solid #dee2e6;
  padding: 0.5rem 1rem;
}

.page-link:hover {
  color: var(--color-accent);
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--color-main);
  border-color: var(--color-main);
}

.page-item.disabled .page-link {
  color: #6c757d;
  pointer-events: none;
  background-color: #fff;
  border-color: #dee2e6;
}

/* ===========================================
   パートナー登録フォーム
   =========================================== */
.partner-regist-form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.partner-regist-form .form-label {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.partner-regist-form .form-control,
.partner-regist-form .form-select {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.partner-regist-form .form-control:focus,
.partner-regist-form .form-select:focus {
  border-color: var(--color-main);
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.partner-regist-form .form-control:disabled {
  background-color: #f5f5f5;
}

.partner-regist-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.partner-regist-form .form-text {
  font-size: 0.85rem;
}

.gyoumu-row {
  align-items: center;
}

.btn-submit {
  padding: 1rem 3rem;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .partner-regist-form {
    padding: 1.5rem;
  }

  .gyoumu-row .col-md-6 {
    margin-bottom: 0.5rem;
  }

  .gyoumu-row .col-md-6:last-child {
    margin-bottom: 0;
  }
}

/* ===========================================
   登録完了カード
   =========================================== */
.registration-complete-card {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.complete-icon {
  width: 80px;
  height: 80px;
  background: var(--color-main);
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 5px 20px rgba(76, 175, 80, 0.3);
}

.complete-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.complete-message {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .registration-complete-card {
    padding: 2rem 1.5rem;
  }

  .complete-icon {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }

  .complete-title {
    font-size: 1.3rem;
  }
}