body {
  margin: 0;
}

p {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-weight: 500;
}

h1 {
  margin: 0.5rem auto;
  font-size: 1.8rem;
  text-align: center;
  color: #b69e91;
  letter-spacing: 0.1rem;
}

h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.4rem;
}

section {
  margin: 40px auto;
  padding: 40px 0;
}

/* 全体ヘッダー */
.site-header {
  background: #00943f;
  color: #fff;
  width: 100%;
  height: 120px;
  position: relative;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  gap: 15px;
}

.header-top {
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-tel a {
  color: #fff;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-tel a:hover {
  opacity: 0.9;
  color: #fff;
}
.header-tel a:before {
  content: "\f095";
  font-family: FontAwesome;
  font-size: 1.5rem;
}

.header-logo img {
  height: 46px;
}

/*────────────────────────
  PC ナビ（横並び）
────────────────────────*/
.header-nav {
  display: block;
}

.header-nav ul {
  display: flex;
  /* gap: 40px; */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* li の間に縦線を入れる */
.header-nav ul li {
  position: relative;
  padding: 0 30px; /* 縦線との距離調整 */
}

.header-nav ul li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px; /* 縦線の長さ */
  background: rgba(255, 255, 255, 0.6); /* 白の半透明 */
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

.header-nav a:hover {
  color: #ffffffc4;
}

/*────────────────────────
  ハンバーガー（スマホのみ）
────────────────────────*/
.hamburger {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1100; /* メニューより上 */
}

.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: 0.4s;
}

/* X 形状 */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/*────────────────────────
  フルスクリーンメニュー（SP）
────────────────────────*/
.fullscreen-nav {
  position: fixed;
  inset: 0;
  background: rgba(0, 50, 20, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 1000;
}

.fullscreen-nav.open {
  opacity: 1;
  visibility: visible;
}

.fullscreen-nav ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.fullscreen-nav li {
  margin-bottom: 20px;
}

.fullscreen-nav a {
  color: #fff;
  font-size: 22px;
  text-decoration: none;
}

.mv {
  width: 100%;
  /* height: calc(100vh - 120px); */
  position: relative;
}

.mv img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.mv_img_area  {
  height: 100%;
}

.mv_txt_area {
  position: absolute;
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
}
.mv_txt_area p span {
  font-size: 3.5rem;
  position: relative;
  top: -52px;
}
.mv_txt_area p {
  font-size: 3rem;
  writing-mode: vertical-rl;
  text-shadow: 2px 2px 5px #00000070;
  font-family: "Zen Old Mincho", serif;
}

.inner_area {
  max-width: 90%;
  width: 1000px;
  margin: auto;
}

#concept p {
  display: flex;
  justify-content: center;
  line-height: 2rem;
  font-size: 1.1rem;
}

p.en_title {
  text-align: center;
  font-size: 0.8rem;
}

#type, #commit {
  background: #eeeeee;
}

.flex_area4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 50px auto;
}


.flex_area4 .cnt {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
}

.flex_area4 .cnt .img_area img {
  width: 100%;
}

.flex_area4 .cnt .txt_area h2 {
  font-size: 1.1rem;
  text-align: center;
}

.flex_area4 .cnt .txt_area h2 span {
  color: #009933;
}

.flex_area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 80px auto 50px;
}

.flex_area .cnt {
  background: #fff;
  padding: 10px;
  border-radius: 10px;
}

.flex_area .cnt .img_area img {
  position: relative;
  top: -50px;
  width: 100%;
  border-radius: 10px;
  margin-bottom: -30px;
}

.flex_area .cnt .txt_area .top_cnt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.flex_area .cnt .txt_area .top_cnt span {
  font-size: 1.3rem;
  padding: 5px;
  background: #009933;
  color: #fff;
  border-radius: 5px;
}

.flex_area .cnt .txt_area p {
  font-size: 1rem;
  line-height: 1.6rem;
}

#area {
  padding-top: 0;
}

#area .buy_area {
  position: relative;
  height: 400px;
  padding: 20px;
}
h3.tab_area {
  text-align: center;
  font-size: 1.3rem;
  padding: 15px 0;
}
#tab2 .flex,
#tab4 .flex {
  display: flex;
  gap: 20px;
  margin: 20px auto;
}
#tab2 .flex .img_area,
#tab4 .flex .img_area{
  width: 50%;
}
#tab2 .flex .img_area img,
#tab4 .flex .img_area img {
  width: 100%;
}
#tab2 .flex .txt_area,
#tab3 .flex .txt_area,
#tab4 .flex .txt_area {
  width: 50%;
}
#tab2 .flex .txt_area p,
#tab4 .flex .txt_area p {
  line-height: 1.4rem;
  margin: auto;
  display: flex;
  justify-content: center;
}
#tab3 .txt_area p {
  line-height: 1.6rem;
  margin: auto;
  text-align: center;
  position: relative;
}
#tab3 .txt_area p span {
  font-weight: 600;
  color: #00993b;
  font-size: 1.4rem;
}
#tab3 .txt_area p:before {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  background: #fbec2a61;
  top: -20px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
}
#tab2 .flex .txt_area ul,
#tab4 .flex .txt_area ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px auto;
}
#tab2 .flex .txt_area ul li,
#tab4 .flex .txt_area ul li {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  background: #fff6a2;
  font-size: 1rem;
  font-weight: 500;
  max-width: 350px;
}
#tab2 .flex .txt_area ul li:before,
#tab4 .flex .txt_area ul li:before {
  content: "\f015";
  font-family: 'FontAwesome';
}
#tab3 .img_area {
  width: 300px;
  margin: auto;
}
#area .buy_area img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 90%;
  object-fit: contain;
}

#area .buy_area a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1rem;
  padding: 15px 30px;
  display: block;
}
#area .buy_area .okaya {
  position: absolute;
  top: 41px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: -207px;
}
#area .buy_area .okaya a {
  background: #a3d5e7;
  border-radius: 5px;
}
#area .buy_area .okaya a:hover {
  background: #c6e2ec;
}
#area .buy_area .okaya.arrow-right .arrow {
  border-left: 8px solid #a3d5e7;
}
#area .buy_area .okaya.arrow-right:hover .arrow {
  border-left: 8px solid #c6e2ec;
}
#area .buy_area .suwa {
  position: absolute;
  top: 198px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: -201px;
}
#area .buy_area .suwa a {
  background: #43a3d0;
  border-radius: 5px;
}
#area .buy_area .suwa a:hover {
  background: #8acceb;
}
#area .buy_area .suwa.arrow-right .arrow {
  border-left: 8px solid #43a3d0;
}
#area .buy_area .suwa.arrow-right:hover .arrow {
  border-left: 8px solid #8acceb;
}
#area .buy_area .shimosuwa {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 64px;
}
#area .buy_area .shimosuwa a {
  background: #f4c863;
  border-radius: 5px;
}
#area .buy_area .shimosuwa a:hover {
  background: #f9e4b4;
}
#area .buy_area .shimosuwa.arrow-left .arrow {
  border-right: 8px solid #f4c863;
}
#area .buy_area .shimosuwa.arrow-left:hover .arrow {
  border-right: 8px solid #f9e4b4;
}
#area .buy_area .chino {
  position: absolute;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 228px;
}
#area .buy_area .chino a {
  background: #d7abca;
  border-radius: 5px;
}
#area .buy_area .chino a:hover {
  background: #f8e2f2;
}
#area .buy_area .chino.arrow-left .arrow {
  border-right: 8px solid #d7abca;
}
#area .buy_area .chino.arrow-left:hover .arrow {
  border-right: 8px solid #f8e2f2;
}
#area .buy_area .haramura {
  position: absolute;
  top: 210px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 228px;
}
#area .buy_area .haramura a {
  background: #f37e97;
  border-radius: 5px;
}
#area .buy_area .haramura a:hover {
  background: #f0b5c2;
}
#area .buy_area .haramura.arrow-left .arrow {
  border-right: 8px solid #f37e97;
}
#area .buy_area .haramura.arrow-left:hover .arrow {
  border-right: 8px solid #f0b5c2;
}
#area .buy_area .fujimi {
  position: absolute;
  top: 302px;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 200px;
}
#area .buy_area .fujimi a {
  background: #20b478;
  border-radius: 5px;
}
#area .buy_area .fujimi a:hover {
  background: #6edbaf;
}
#area .buy_area .fujimi.arrow-left .arrow {
  border-right: 8px solid #20b478;
}
#area .buy_area .fujimi.arrow-left:hover .arrow {
  border-right: 8px solid #6edbaf;
}
.arrow-right,
.arrow-left {
  display: flex;
  align-items: center;
  gap: 8px; /* 三角と文字の間隔 */
  white-space: nowrap;
}

/* 三角の共通スタイル */
.arrow {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* タブボタン */
.tab_buttons {
  display: flex;
  gap: 3px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: 90%;
  justify-content: center;
  position: relative;
}

/* ===== タブ共通 ===== */
.tab_buttons {
  display: flex;
}

.tab_buttons li {
  padding: 10px 0;           /* 横は触らない */
  background: #bebebe;
  color: #fff;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    font-size 0.2s ease,
    padding 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 100;
}

/* 角丸 */
.tab_buttons li:first-child {
  border-top-left-radius: 5px;
}
.tab_buttons li:last-child {
  border-top-right-radius: 5px;
}

/* ===== active（現在表示中） ===== */
.tab_buttons li.active {
  background: #009933;       /* 色は変える（指定どおり） */
  font-size: 1.1rem;         /* 少し大きく */
  padding: 15px 0;           /* 上下だけ余白増加 */
  transform: scaleY(1.05);   /* 縦方向のみ拡大 */
  cursor: default;
  font-weight: 600;
}

/* ===== hover（次に選べるタブ） ===== */
.tab_buttons li:not(.active):hover {
  background: #a5a5a5;       /* 色は控えめ */
  font-size: 1.05rem;
  padding: 12px 0;
  transform: scaleY(1.03);
}


/* タブ内容 */
.tab_content {
  display: none;
}

.tab_content.active {
  display: block;
}
.tab_contents {
  border: 2px solid #009933;
  border-radius: 8px;
  padding: 20px;
}
#area .links {
  display: flex;
  gap: 10px;
  flex-direction: column;
  align-items: center;
  margin: 20px auto;
}
#area .links a.border {
  background: none;
  color: #333;
  border-bottom: 1px solid #333;
  border-radius: 0;
}
.links {
  display: flex;
  justify-content: center;
}
.links a {
  padding: 10px 20px;
  background: #009933;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  border-radius: 50px;
  font-size: 0.9rem;
  transition:
  transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s ease;
  box-shadow: 1px 1px 3px rgba(0,0,0,.36);
}
.links a:hover {
  transform: translateY(-5px);
  box-shadow: 6px 6px 16px rgba(0,0,0,.25);
}

.links a:hover {
  color: #fff;
}
.links.white a {
  position: relative;
  padding-right: 40px;
  background: #fff;
  border: 1px solid #333;
  display: inline-block;
  box-shadow: 2px 2px 3px 0 #00000038;
}

.links.white a:hover {
  background: #fff !important;
  animation: swayX 3s ease-in-out infinite;
}

@keyframes swayX {
  0%   { transform: translateX(0); }
  20%  { transform: translateX(4px); }
  40%  { transform: translateX(0); }
  60%  { transform: translateX(4px); }
  80%  { transform: translateX(0); }
  100% { transform: translateX(0); }
}
.links.white a:after {
  content: "";
  position: absolute;
  right: 10px;   /* 位置 */
  top: 50%;
  transform: translateY(-50%);
  
  width: 0;
  height: 0;
  border-left: 8px solid #009933;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

/* 全体 */
.diagnosis {
  /* max-width: 500px; */
  margin: 20px auto 0;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  border: 2px solid #009933;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  background: #fff;
}
.diagnosis img.faq {
  position: absolute;
  z-index: -1;
  top: -137px;
  left: 0;
  width: 180px;
}
.diagnosis__title {
  font-size: 1.6rem;
  color: #6AB547;
  margin-bottom: 1.5rem;
}

/* 質問 */
.question {
  display: none;
  animation: fadeIn 0.5s ease;
}
.question.active {
  display: block;
}
.question__text {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.question__buttons,
.answer__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 500px;
  margin: auto;
}
.question__buttons .btn,
.answer__buttons a,
.result .btn {
  background-color: #00993b;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}
.question__buttons .btn:hover,
.answer__buttons a:hover {
  opacity: 0.8;
}

/* 結果 */
.result {
  display: none;
  animation: fadeIn 0.5s ease;
}
.result.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: auto;
}
.result__text {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.result__link {
  background-color: #00993b;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
  line-height: normal;
  box-sizing: border-box;
}
.result__link:hover {
  opacity: 0.8;
  color: #fff;
}

/* ナビボタン */
.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.nav-btn {
  background: #eaeaea;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}
.nav-btn:hover {
  background: #ddd;
}
.nav-btn:disabled {
  background: #f4f4f4;
  color: #aaa;
  cursor: not-allowed;
}

/* アニメーション */
@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

#topics a,
#commit a {
  color: #333;
  text-decoration: none;
  font-size: 0.8rem;
  display: block;
}
#topics a:hover {
  background: #5d5d5d12;
}

#topics .item {
  margin: 10px auto;
}

#topics .date {
  font-size: 0.9rem;
  padding: 5px;
}
#topics .title {
  font-size: 0.8rem;
  line-height: 1.2rem;
}
#topics .txt {
  font-size: 0.9rem;
  line-height: 1.1rem;
}

#topics .event_area .item,
#topics .blog_area .item {
  display: flex;
  gap: 10px;
}

#topics .event_area .item .thumb,
#topics .blog_area .item .thumb {
  width: 120px;
}
#topics .event_area .item .thumb img,
#topics .blog_area .item .thumb img {
  width: 120px;
  height: 100px;
  object-fit: cover;
}

.topics_area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 50px auto;
}
.topics_area .title_area {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  position: relative;
}
.topics_area .title_area:before {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background: #009942;
  top: 0;
}
.topics_area .title_area:after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  background: #009942;
  bottom: 0;
}
.topics_area .title_area img {
  width: 100%;
  max-width: 70px;
}
.topics_area .title_area h4 {
  font-size: 1.4rem;
  margin: 0;
}
.topics_area .title_area p {
  font-size: 0.8rem;
  line-height: 1.2rem;
}
.news,
.event,
.blog {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
/* ページ上部へ戻るボタン */
#return_top { display:none; position:fixed; bottom:20px; right:20px; z-index:990; }
#return_top a { display:block; width:55px; height:55px; text-decoration:none; background:#b69e84; border-radius:50%; opacity:0.8; }
#return_top a:before {
  font-family:'design_plus'; color:#fff; font-size:16px; line-height:1; display:block; position:absolute; top:50%; left:50%; margin:-0.5em 0 0 -0.5em;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
#return_top a:before { content:'\e911'; }
#return_top a:hover { opacity:1; }
#return_top a span { display:none; }

.ifPc {
  display: block;
}

.ifSp {
  display: none;
}

@media (max-width: 768px) {
  .ifPc {
    display: none;
  }
  .ifSp {
    display: block;
  }

  .site-header {
    height: 80px;
  }
  .header-nav {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .header-tel {
    display: none;
  }

  .header-inner {
    flex-direction: row;
    gap: 0;
  }
  .mv {
    /* height: calc(100vh - 80px); */
  }
  .tab_buttons {
    flex-wrap: wrap;
  }
  .tab_buttons li {
    width: 48%;
    transform: scaleY(1) !important;
    font-size: 1rem !important;
    padding: 10px 0 !important;
  }
  .diagnosis {
    margin: 60px auto 0;
  }
  .diagnosis img.faq {
    width: 100px;
    top: -73px;
  }
  #area .buy_area {
    height: 250px
  }
  #area .buy_area a {
    padding: 5px 15px;
  }
  #area .buy_area .okaya {
    top: 39px;
    margin-left: -110px;
  }
  #area .buy_area .suwa {
    top: 125px;
    margin-left: -90px;
  }
  #area .buy_area .shimosuwa {
    top: 0;
    margin-left: 41px;
  }
  #area .buy_area .haramura {
    top: 140px;
    margin-left: 131px;
  }
  #area .buy_area .chino {
    top: 89px;
    margin-left: 51px;
  }
  #area .buy_area .fujimi {
    top: 203px;
    margin-left: 31px;
  }
  .tab_buttons li:nth-child(2) {
    border-top-right-radius: 5px;
  }
  .tab_buttons li:last-child {
    border-top-right-radius: 0;
  }
  .flex_area {
    grid-template-columns: repeat(1, 1fr);
    gap: 80px;
  }
  .topics_area {
    grid-template-columns: repeat(1, 1fr);
  }
  #area .buy_area .arrow {
    display: none;
  }
  #area .buy_area img {
    opacity: 0.6;
  }
  #tab2 .flex,
  #tab4 .flex {
    flex-direction: column-reverse;
  }
  #tab2 .flex .img_area,
  #tab2 .flex .txt_area,
  #tab4 .flex .img_area,
  #tab4 .flex .txt_area{
    width: 100%;
  }
  #tab2 .flex .txt_area ul,
  #tab4 .flex .txt_area ul {
    display: inline-flex;
    width: 100%;
  }
  #tab2 .flex .txt_area ul li,
  #tab4 .flex .txt_area ul li {
    margin: auto;
    width: 100%;
    max-width: 100%;
    max-width: 95%;
    padding: 20px 10px;
  }
}
