@charset "UTF-8";

/*!
Theme Name: Cocoon Child
Description: Cocoon専用の子テーマ
Theme URI: https://wp-cocoon.com/
Author: わいひら
Author URI: https://nelog.jp/
Template:   cocoon-master
Version:    1.1.3
*/

/************************************
** 子テーマ用のスタイルを書く
************************************/
/* ヘッダー下の余白を削除 */
.page-id-788 #main,
.page-id-788 .content,
.page-id-788 .entry-content,
.page-id-788 .article {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.japan-guide-container {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
}

.jg-inner {
  max-width: 1000px !important;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.jg-hero {
  position: relative;
  color: #fff;
  text-align: center;
  min-height: 420px;
  height: clamp(420px, 46.875vw, 1200px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jg-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.jg-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.jg-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  transform: translateY(-2.0vh);
}

.jg-hero-title {
  font-size: clamp(32px, 3.2vw, 64px);
  font-weight: 700;
  margin-bottom: 25px;
  color: #fff;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.jg-hero-options p {
  font-size: clamp(16px, 2.0vw, 42px);
  font-weight: 600;
  margin: 8px 0;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.jg-hero-subtitle {
  font-size: clamp(14px, 1.5vw, 28px);
  margin-top: 30px;
  margin-bottom: 30px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

.jg-hero-divider {
  width: clamp(300px, 42vw, 900px);
  height: 1px;
  margin: 30px auto;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.8),
      rgba(255, 255, 255, 0));
}

/* Search Box */
.jg-search-box {
  width: clamp(350px, 42vw, 800px);
  height: clamp(18px, 24vh, 60px);
  margin: 0 auto;
}

.jg-search-box form {
  position: relative;
  display: flex;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  padding: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.jg-search-box input {
  height: clamp(40px, 2vw, 70px);
  flex-grow: 1;
  border: none;
  padding: 15px 25px;
  font-size: clamp(16px, 1.0vw, 20px);
  outline: none;
  color: #333;
  background: transparent;
  width: 100%;
}

.jg-search-box button {
  background: transparent;
  border: none;
  padding: 0 20px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
}

.jg-search-box button svg {
  width: 24px;
  height: 24px;
}

.jg-search-box button:hover {
  color: #333;
}

/* Chrome / Safari */
.search-field::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Edge */
.search-field::-ms-clear {
  display: none;
  width: 0;
  height: 0;
}

/* Intro Section */
.jg-intro {
  padding: 60px 100px;
  background: #fff;
  text-align: center;
}

.jg-intro-lead {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #333;
}

.jg-intro-list {
  list-style: disc;
  text-align: left;
  display: inline-block;
  margin: 0 auto 30px;
  padding-left: 20px;
  font-size: 1.1rem;
}

.jg-intro-list li {
  margin-bottom: 12px;
}

.jg-divider {
  border: 0;
  height: 1px;
  background: #f0f0f0;
  width: 100%;
  margin: 30px 0;
}

.jg-intro-conclusion {
  font-size: 1.1rem;
  color: #444;
}

/* Scenarios Section */
.jg-scenarios {
  background: #edf0fa;
  padding: 60px 20px;
}

.jg-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  background: #edf0fa !important;
  font-size: clamp(4px, 2vw, 26px);
  margin-bottom: 40px;
  color: #2c3e50;
  font-weight: 700;
}

.jg-section-title::before,
.jg-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #d0d8eb;
}

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

.jg-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.jg-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.jg-card-img {
  height: 130px;
  background-color: #e6edf2;
  background-size: cover;
  background-position: center;
}

.jg-card-divider {
  height: 1px;
  background-color: #e5e7eb;
  /* 薄いグレー */
  margin: 0 0 16px 0;
}

.jg-bg-getting-around {
  background: linear-gradient(to bottom, #dbe9f4, #fff);
  background-size: cover;
  background-position: center;
  background-image: url('https://japan-choice-guide.com/wp-content/uploads/2026/03/train.png');
}

.jg-bg-money {
  background: linear-gradient(to bottom, #d2e4ce, #fff);
  background-size: cover;
  background-position: center;
  background-image: url('https://japan-choice-guide.com/wp-content/uploads/2026/03/wallet.png');
}

.jg-bg-time {
  background: linear-gradient(to bottom, #fdeec9, #fff);
  background-size: cover;
  background-position: center;
  background-image: url('https://japan-choice-guide.com/wp-content/uploads/2026/03/calender.png');
}

.jg-bg-stay {
  background: linear-gradient(to bottom, #e1e4f2, #fff);
  background-size: cover;
  background-position: center;
  background-image: url('https://japan-choice-guide.com/wp-content/uploads/2026/03/bed.png');
}

.jg-card-body {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.jg-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #2c3e50;
  font-weight: 700;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.jg-card-body p {
  font-size: 0.9rem;
  color: #666;
  margin: auto 0 0 0;
  line-height: 1.4;
}

/* Guides Section */
.jg-guides {
  padding: 70px 20px 90px;
  background: #fff;
}

.jg-guides-title {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  text-align: center;
  background: #fff !important;
  font-size: clamp(4px, 2vw, 26px);
  margin-bottom: 40px;
  color: #2c3e50;
  font-weight: 700;
}

.jg-guides-title::before,
.jg-guides-title::after {
  content: "";
  flex: 1;
  height: 1px;
  border-top: 1px solid #ddd;
  z-index: 1;
}

.jg-guides-list {
  list-style: disc;
  max-width: 500px;
  margin: 0 auto;
  padding-left: 20px;
}

.jg-guides-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.jg-guides-list a {
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.jg-guides-list a:hover {
  color: #0056b3;
  border-bottom-color: #0056b3;
}

/************************************
** レスポンシブデザイン用のメディアクエリ
************************************/
/*1023px以下*/
@media screen and (max-width: 1023px) {
  .jg-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*834px以下*/
@media screen and (max-width: 834px) {
  .jg-intro {
    padding: 40px 20px;
  }

  .jg-hero-title {
    font-size: clamp(22px, 2.2vw, 36px);
    margin-bottom: 14px;
  }

  .jg-hero-bg {
    object-fit: cover;
  }

  .jg-hero-options p {
    font-size: clamp(16px, 2.0vw, 42px);
  }

  .jg-hero-subtitle {
    font-size: clamp(14px, 1.5vw, 28px);
    margin-top: 15px;
    margin-bottom: 15px;
    margin-right: 8px;
    margin-left: 8px
  }

  .jg-hero-divider {
    margin: 18px auto;
  }

  .jg-search-box {
    height: clamp(16px, 20vh, 40px);
  }

  .jg-search-box input {
    height: clamp(20px, 7vw, 36px);
    font-size: clamp(14px, 0.9vw, 20px);
    padding: 12px 18px;
  }

  .jg-search-box button {
    padding: 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  .jg-search-box button svg {
    width: 18px;
    height: 18px;
  }

  .search-submit {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .jg-intro {
    text-align: left !important;
  }

  .jg-scenarios {
    padding: 30px 10px;
  }

  .jg-section-title {
    font-size: 10px;
    margin-bottom: 20px;
    padding: 0 !important;
    text-align: left !important;
  }

  .jg-section-title::before,
  .jg-section-title::after {
    display: none;
  }

  .jg-cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .jg-guides-title {
    display: block;
    margin-bottom: 30px !important;
    padding: 0 !important;
    text-align: left !important;
  }

  .jg-guides-title::before,
  .jg-guides-title::after {
    display: none;
  }

  .jg-guides {
    padding: 50px 10px 70px;
  }
}

/*480px以下*/
@media screen and (max-width: 480px) {
  .jg-intro-list {
    padding-left: 0;
    list-style-position: inside;
    text-align: left;
  }
}