/* =========================================
   基本設定
   ========================================= */
:root {
  --primary-color: #ff7b93;
  --primary-hover: #ff5c7a;
  --secondary-color: #fce7eb;
  --text-main: #333333;
  --text-light: #666666;
  --bg-color: #fafafa;
  --white: #ffffff;
  --border-color: #eeeeee;
}

/* 追加: ページ内リンクのスムーズスクロールと固定ヘッダーの被り防止 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* ヘッダーの高さに合わせて着地位置を調整 */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  padding-bottom: 80px; /* CTAボタン用の余白 */
}

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}
.mt-4 {
  margin-top: 2rem;
}

/* =========================================
   ヘッダー
   ========================================= */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-nav a:not(.btn-primary-small) {
  color: var(--text-main);
  font-weight: bold;
  font-size: 0.85rem; 
}

.btn-primary-small {
  background: var(--primary-color);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: bold;
  transition: 0.3s;
}

.btn-primary-small:hover {
  background: var(--primary-hover);
}

/* =========================================
   ヒーローセクション
   ========================================= */
.hero {
  background-image: url('https://niwadani.co.jp/work_so/index_files/mv-back4.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  max-width: 800px;
  width: 100%;
}

.hero-main-img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================================
   セクション共通
   ========================================= */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.en-title {
  display: block;
  font-size: 1rem;
  color: var(--primary-color);
  letter-spacing: 2px;
  font-weight: bold;
}

.ja-title {
  font-size: 2rem;
  font-weight: bold;
  margin-top: 5px;
}

/* =========================================
   開催概要 (OUTLINE)
   ========================================= */
.outline {
  background: var(--white);
}

.outline-intro {
  position: relative;
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 40px 80px;
  text-align: left;
}

.outline-intro-text p {
  margin-bottom: 0;
  line-height: 1.8;
}

.outline-intro-text strong {
  color: var(--primary-color);
}

.outline-intro .deco-lt,
.outline-intro .deco-rb {
  position: absolute;
  width: 80px;
  height: auto;
}

/**元はtopもleftも0(ゼロ)**/
.outline-intro .deco-lt {
  top: -5px;
  left: 30px;
}

/**元はtopもleftも0(ゼロ)**/
.outline-intro .deco-rb {
  bottom: 10px;
  right: 25px;
}

.outline-table {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--white);
}

.outline-table th, .outline-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
}

.outline-table th {
  white-space: nowrap;
  text-align: left;
  background: var(--secondary-color);
  font-weight: bold;
}

.outline-table td ul {
  list-style-position: inside;
  padding-left: 0;
}

.tag {
  display: inline-block;
  background: #eef2f5;
  color: #555;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* =========================================
   見どころ (PICK UP)
   ========================================= */
.pickup {
  background: var(--secondary-color);
}

.pickup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.pickup-card {
  background: var(--white);
  border-radius: 15px;
  padding: 60px 20px 20px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pickup-title-img {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: auto;
}

.pickup-text {
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.6;
  font-size: 1.2rem;
  flex-grow: 1;
}

.pickup-br {
display: none;
}

.pickup-bottom-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.pickup-target-list {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.target-card {
  background: var(--white);
  border-radius: 15px;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.target-icon {
  flex-shrink: 0;
  width: 140px;
}

.target-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.target-text {
  flex-grow: 1;
  font-weight: bold;
  line-height: 1.6;
  font-size: 0.95rem;
}

.target-text p {
  margin: 0;
}

.target-image {
  flex-shrink: 0;
  width: 220px;
}

.target-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* =========================================
   当日の歩き方 (FLOW)
   ========================================= */
.flow {
  background: var(--bg-color); 
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flow-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.flow-card:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 35%; 
  right: -25px; 
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/%3E%3C/svg%3E");
  background-size: 20px;
  background-position: center;
  background-repeat: no-repeat;
}

.flow-img-wrapper {
  width: 100%;
  margin-bottom: 15px;
}

.flow-img-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.flow-title {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.flow-text {
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.6;
}

/* =========================================
   参加者の声 (REVIEWS)
   ========================================= */
.reviews {
  background: var(--white);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.review-card {
  background: var(--bg-color);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.review-title {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* =========================================
   参加企業一覧 (COMPANIES)
   ========================================= */
.companies {
  background: var(--bg-color);
}

/* 追加: テーブルの下に表示する注意書きテキストの設定 */
.table-hint {
  display: block;
  /*text-align: right;*/
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 5px;
}

/* PCでは非表示にしておくスクロールヒント */
.scroll-hint {
  display: none;
}

.company-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  background: var(--white);
}

.company-table-wrapper::-webkit-scrollbar {
  height: 8px;
}
.company-table-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.company-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: left;
}

.company-table th, .company-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.company-table th {
  background: var(--secondary-color);
  color: var(--text-main);
  font-weight: bold;
  white-space: nowrap;
}

.company-table tbody tr:nth-child(even) {
  background-color: #fcfcfc;
}

.company-table tbody tr:hover {
  background-color: #fdf5f7;
}

.company-table .col-corp {
  width: 35%;
}

.company-table .col-nursery {
  width: 45%;
}

.company-table .col-link {
  width: 10%;
  text-align: center;
}

.link-icon {
  width: 35px;
  height: auto;
  transition: 0.3s;
  display: inline-block;
  vertical-align: middle;
}

.link-icon:hover {
  opacity: 0.7;
  transform: translateY(-2px);
}

.company-table td.text-center {
  text-align: center;
}

/* =========================================
   アクセス (ACCESS)
   ========================================= */
.access {
  background: var(--white);
}

.access-info {
  background: var(--secondary-color);
  padding: 40px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  text-align: left;
}

.access-text {
  flex: 1;
}

.access-map {
  flex: 1;
  text-align: center;
}

.access-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.access-map a {
  display: inline-block;
  margin-top: 10px;
  font-weight: bold;
  text-decoration: underline;
}

/* =========================================
   FAQ
   ========================================= */
.faq {
  background: var(--bg-color);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-q {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px 50px 20px 60px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  position: relative;
  list-style: none;
  outline: none;
}

.faq-q::-webkit-details-marker {
  display: none; 
}

/* 変更: Qをアイコン風デザイン（完全な円）に変更 */
.faq-q::before {
  content: 'Q';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%; /* 角丸から完全な円に変更 */
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

.faq-q::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-q::after {
  content: '−';
}

.faq-item[open] .faq-q {
  /* border-bottom: 1px dashed var(--border-color); */
}

.faq-a {
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 10px; 
  margin-left: 40px; 
  padding: 20px 20px 20px 60px;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
  line-height: 1.8;
}

/* 変更: Aをアイコン風デザイン（完全な円）に変更し、上下中央に配置 */
.faq-a::before {
  content: 'A';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--text-light);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%; /* 角丸から完全な円に変更 */
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================================
   来場特典 (BENEFITS)
   ========================================= */
.benefits {
  background: var(--secondary-color);
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.benefit-card {
  background: var(--white);
  border-radius: 15px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px; 
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.benefit-card.reverse {
  flex-direction: row-reverse;
}

.benefit-img {
  flex-shrink: 0;
  width: 200px;
  text-align: center;
}

.benefit-img img {
  width: 100%;
  height: auto;
}

.benefit-content {
  flex: 0 1 auto; 
}

.benefit-badge {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 20px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 15px;
}

.benefit-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.5;
}

.benefit-title .highlight-large {
  display: inline-block;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 10px;
}

.benefit-text {
  font-size: 1rem;
  line-height: 1.6;
}

.benefit-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 10px;
}

/* =========================================
   フッター
   ========================================= */
.site-footer {
  background: #333;
  color: #fff;
  padding: 40px 0;
  text-align: center;
  margin-bottom: 38px;
}

.site-footer p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.copyright {
  color: #888;
  margin-top: 20px;
  font-size: 0.8rem;
}

/* =========================================
   追従CTAボタン
   ========================================= */
.fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.7); /* 背景の透明度を0.95から0.7に変更 */
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  text-align: center;
  z-index: 1000;
}

.btn-primary-large {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(255, 123, 147, 0.4);
  transition: 0.3s;
}

.btn-primary-large:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-primary-large .small-text {
  display: block;
  font-size: 0.8rem;
  font-weight: normal;
  margin-bottom: 2px;
}

.btn-primary-large .main-text {
  display: block;
  font-size: 1.3rem;
  font-weight: bold;
}

/* =========================================
   ↓↓↓ スマホ用調整 (max-width: 768px) ↓↓↓
   ========================================= */
@media (max-width: 768px) {
  /* スマホではテキストリンクを非表示にし、ボタンのみ表示 */
  .header-nav a:not(.btn-primary-small) {
    display: none;
  }

  /* 追加: ヘッダーの文字とボタンのサイズを調整して折り返しを防ぐ */
  .logo {
    font-size: 0.9rem;
  }
  .header-nav .btn-primary-small {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
  
  .hero {
    background-image: url('https://niwadani.co.jp/work_so/index_files/mv-back5.jpg');
    padding: 60px 15px;
  }

  .outline-intro {
    padding: 30px 40px;
  }
  
  .outline-intro .deco-lt,
  .outline-intro .deco-rb {
    /*width: 50px;*/
  }
  
  /**左上のみPC用と分ける**/
  .outline-intro .deco-lt {
  top: 0;
  left: 0;
  }

  .outline-table th, .outline-table td {
    display: block;
    width: 100%;
  }
  .outline-table th {
    border-bottom: none;
  }

  .pickup-text {
	font-size: 1rem;
  }

  .pickup-br {
    display: block;
  }

  .pickup-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .pickup-target-list {
    margin-top: 60px;
  }
  
  .target-card {
    flex-direction: column; 
    padding: 30px 20px;
    gap: 20px;
  }
  
  .target-icon {
    width: 120px;
  }
  
  .target-text {
    text-align: left;
  }
  
  .target-image {
    width: 100%;
    max-width: 300px;
  }
  
  .flow-title-br {
	display: none;
  }

  .flow-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .flow-card:not(:last-child)::after {
    top: auto;
    bottom: -35px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) rotate(90deg);
  }

  /* 追加: テーブルの上に表示するスクロール案内テキストの設定 */
  .scroll-hint {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
  }

  .access-info {
    flex-direction: column; 
    text-align: center; 
  }
  
  /* 追加: スマホ時のアクセステキストを左寄せに */
  .access-text p {
    text-align: left;
  }

  .access-map {
    width: 100%;
  }
  
  /* FAQスマホ用調整 */
  .faq-q {
    font-size: 1rem;
    padding: 15px 40px 15px 50px;
  }
  /* 変更: スマホ時のQアイコンのサイズ微調整 */
  .faq-q::before {
    left: 15px;
    font-size: 1.1rem;
    width: 26px;
    height: 26px;
  }
  .faq-q::after {
    right: 15px;
  }
  .faq-a {
    margin-top: 10px;
    margin-left: 20px; 
    padding: 15px 15px 15px 50px;
    font-size: 0.9rem;
  }
  /* 変更: スマホ時のAアイコンのサイズ微調整 */
  .faq-a::before {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    width: 26px;
    height: 26px;
  }

  .benefit-card, 
  .benefit-card.reverse {
    flex-direction: column; 
    padding: 30px 20px;
    gap: 20px;
    text-align: center; 
  }

  .benefit-img {
    width: 160px; 
  }

  /* 追加: スマホ時の特典テキストを左寄せに */
  .benefit-text,
  .benefit-note {
    text-align: left;
  }

  .benefit-title .highlight-large {
    font-size: 1.5rem;
  }
  
  .btn-primary-large {
    width: calc(100% - 40px);
    display: block;
    margin-left: 0;
    margin-right: auto;
  }

/* スマホ時のCTAボタンの表示を隠す */
 .cta-ng {
   display: none;
 }

}

/* =========================================
   TOPへ戻るボタン追加用スタイル
   ========================================= */
.page-top {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border-radius: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1001;
}

.page-top.show {
  opacity: 1;
  visibility: visible;
}

.page-top img {
  width: 50%;
  height: auto;
}

@media (max-width: 768px) {
  .page-top {
    width: 40px;
    height: 40px;
    right: 10px;
  }
}