/*
Theme Name: Asahi
Author: Your Name
Description: A custom theme for WordPress
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: AsahiTheme
Template: xeory_extension
*/
:root {
  --font: "Arial", sans-serif;
  --deep_green: #54a632;
  --mid_green: #6cc049;
  --pale_green: #f0f5f0;
  --grey: #e7e7e7;
  --text: #5a5a5a;
  --dark: #2e3635;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin: 0;
  padding: 0;
  color: var(--text);
  /* color: #333; */
  background-color: #f5f5f5;
  opacity: 0;
  transition: opacity 1s ease-in;
  /* フェードインのアニメーション */
}

/* 表示状態 */
body.visible {
  opacity: 1;
  /* フェードイン後は完全に表示 */
}

p {
  line-height: 180%;
}

h2 {
  text-align: center;
  font-size: 42px;
  margin-top: 0;
}

h4 {
  font-size: 28px;
  margin: 0;
}

p {
  margin: 0;
  padding: 0;
}

.logo {
  width: 180px;
}

.hero {
  background-color: hsla(102, 53%, 42%, 1);
  background-image: radial-gradient(
      at 38% 65%,
      hsla(102, 48%, 51%, 1) 0px,
      transparent 50%
    ),
    radial-gradient(at 68% 87%, hsla(103, 100%, 87%, 1) 0px, transparent 50%),
    url("img/top_pictgram.png");
  background-repeat: no-repeat;
  background-size: cover, cover, 50%;
  background-position: center, center, -50px center;
  height: 100vh;
  color: white;
  display: flex;
  justify-content: center;
  /* 水平方向で中央に配置 */
  align-items: center;
  /* 画面の高さに応じて中央に配置 */
  text-align: left;
  /* テキストを左揃えに */
}

@media (min-width: 769px) {
  .hero {
    /* 垂直方向で中央に配置 */
    height: calc(100vh - 30vw);
  }
}

@media (min-width: 1024px) {
  .hero {
    /* 垂直方向で中央に配置 */
    height: calc(100vh - 20vw);
  }
}

.hero .large-text {
  font-size: calc(16vw * 2 / 3);
  /* 「光」の文字サイズを2/3に縮小 */
  font-weight: bold;
}

.hero h1 {
  font-size: calc(4vw);
  /* 通常の文字サイズを2/3に縮小 */
  line-height: 1.2;
  margin: 0;
  transform: translateX(50%);
}

/* Features */

.features {
  background-color: #fff;
  padding: 80px 40px 60px;
  text-align: center;
}

.features_content {
  margin: 0 auto;
  width: 1000px;
  background-color: var(--pale_green);
  position: relative;
}

.features h2 {
  font-size: 32px;
  margin-bottom: 20px;
  position: absolute;
  left: 100px;
  top: -60px;
  letter-spacing: 1em;
}

.features h3 {
  display: inline-block;
  padding-top: 36px;
  padding-bottom: 10px;
  font-size: 32px;
  border-bottom: 6px solid #59a64b;
}

.features h2 .large-text {
  font-size: 64px;
}

.features p {
  width: 600px;
  font-size: 16px;
  margin: 0 auto;
}

.features p:last-child {
  padding-bottom: 30px;
}

.icons {
  width: 600px;
  margin: 0 auto;
  display: grid;
  padding: 40px 0 20px;
  grid-gap: 40px 20px 20px;
  grid-template-columns: repeat(4, 1fr);
  /* 4列に分割 */
  grid-template-rows: 2fr;
}

.icon_wrapper {
  display: flex;
  flex-direction: column;
}

.icon {
  color: white;
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.icon img {
  width: 80px;
  padding-bottom: 12px;
}

.icon_wrapper p {
  width: initial;
  display: inline-block;
  text-align: center;
}

/* Products */
.products {
  padding: 60px 20px;
  background-color: white;
  background-color: var(--grey);
}

.product {
  margin: 0 auto;
  width: 868px;
  display: flex;
  flex-direction: column;
  margin-bottom: 36px;
}

.product_title {
  background-color: var(--deep_green);
  width: 548px;
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
  padding: 18px;
  color: #fff;
  padding-left: 18px;
  font-size: 18px;
  font-weight: 600;
}

.product_content {
  display: flex;
  background-color: #fff;
  padding: 24px;
}

.product img {
  width: 218px;
  height: 178px;
  object-fit: cover;
  margin-right: 20px;
}

.product-info {
  flex: 1;
  margin-left: 50px;
}

.product-info a {
  color: #999;
  text-decoration: none;
}

.product-info h3 {
  margin: 0;
  font-size: 36px;
  color: var(--deep_green);
}

.product_content .product-info p .bg_green {
  background-color: var(--deep_green);
  display: block;
  color: #fff;
  padding: 4px 6px 4px;
}

.info_img {
  height: 80px !important;
  width: 100% !important;
  margin-top: 20px;
  object-fit: contain;
}

.product_content.info_extension {
  flex-direction: column;
}

.info_ag_1,
.info_ag_2 {
  display: flex;
  flex-direction: row;
}

.info_ag_2 {
  margin-top: 20px;
}

.info_ag_2 p {
  display: block;
  width: 60%;
}

.info_ag_2 img {
  margin-left: 20px;
  margin-right: 0;
  width: 40% !important;
  height: 100%;
}

/* 続きをみるボタン ここから*/
.hidden {
  display: none;
}

.show-more {
  text-align: center;
  margin-top: 20px;
}

/* ボタンの基本スタイル */
button {
  background-color: var(--deep_green);
  /* ボタンの背景色 */
  color: white;
  /* ボタンの文字色 */
  padding: 10px 20px;
  /* ボタンのパディング */
  text-decoration: none;
  /* テキストの下線を削除 */
  border: none;
}

/* ホバー時のスタイル */
button:hover {
  background-color: var(--mid_green);
  /* ホバー時の背景色 */
}

/* 続きをみるボタン ここまで*/

/* Technology */
.technology {
  background-color: var(--mid_green);
  padding: 40px 20px;
}

.technology h2 {
  color: #fff;
}

.technology_content {
  margin: 0 auto;
  display: flex;
  width: 800px;
}

.technology_content img {
  width: 400px;
  margin-left: 60px;
}

.technology p {
  font-size: 16px;
  margin-bottom: 20px;
  color: #fff;
}

/* Effects */
.effects {
  padding: 40px 20px;
}

.effects h2 {
  color: var(--deep_green);
}

.effect_content {
  display: flex;
  justify-content: center;
}

.effect {
  width: 246px;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  padding: 24px;
  margin-right: 20px;
}

.effect:last-child {
  margin-right: 0;
}

.effect p {
  display: block;
  border-top: 1px var(--deep_green) solid;
  padding-top: 20px;
}

.effect img {
  padding: 0 20px 20px;
}

/* Challenges */
.challenges {
  padding: 60px 20px;
  background-color: white;
  text-align: center;
}

.challenges h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--mid_green);
  position: relative;
  display: inline-block;
}

.challenges h2:before {
  content: "旭の光";
  font-size: 18px;
  font-weight: 400;
  top: -24px;
  left: 5px;
  position: absolute;
}

.challenge {
  width: 800px;
  margin: 0 auto;
  margin-bottom: 48px;
}

.challenge .bubble {
  border: 2px solid var(--mid_green);
  border-radius: 36px;
  padding: 28px;
}

.challenge_content {
  padding: 24px;
  display: flex;
}

.challenge_content p {
  width: 50%;
  text-align: left;
}

.challenge_content img {
  margin-right: 48px;
  height: 100%;
}

.challenge:nth-child(4) .challenge_content img,
.challenge:nth-child(8) .challenge_content img {
  margin-left: 48px;
  margin-right: 0;
}

/* Possibility */

.possibility {
  background-color: var(--mid_green);
  padding: 64px 20px;
}

.possibility h2 {
  color: #fff;
}

.possibility_content {
  margin: 0 auto;
  width: 600px;
  padding: 54px 48px;
  box-sizing: border-box;
  background-color: #fff;
}

/* Light */
.light {
  text-align: center;
  background: #fff;
  color: var(--deep_green);
  padding: 180px 20px;
  background-image: url(img/flare.png);
  background-repeat: no-repeat;
  background-size: 800px;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.light h2 {
  font-size: 62px;
  margin: 0;
  margin-top: 28px;
}

.light h3 {
  font-weight: 400;
}

/* Contact */

.contact {
  background: #fff;
  padding: 0px 20px 60px;
}

.contact-info {
  display: flex;
  justify-content: center;
  font-size: 18px;
}

.contact-info .info {
  width: 500px;
  padding: 20px 0;
  text-align: center;
}

.contact-info .info1 {
  background-color: var(--mid_green);
  color: #fff;
}

.contact-info .info2 {
  background-color: #fff;
  border: var(--deep_green) 1px solid;
  color: var(--deep_green);
  box-sizing: border-box;
}

.contact-info .info2 .tel {
  color: var(--text);
  font-size: 36px;
  font-weight: 600;
}

/* Footer */

.footer {
  background-color: var(--dark);
  color: white;
  padding: 10px;
}

.footer_content_wrapper {
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.footer_content {
  border-right: #fff solid 1px;
  padding: 0 36px;
}

.footer_content:last-child {
  border: none;
}

.footer_content ul {
  padding-left: 20px;
}

.footer_content ul:nth-child(2),
.footer_content ul:last-child {
  margin-top: 0;
}

.footer_content li {
  list-style: none;
}

.footer_content li a {
  list-style: none;
  color: #fff;
  text-decoration: none;
}

.copylight {
  font-size: 11px;
  text-transform: uppercase;
  text-align: center;
}

/* タブレット用スタイル */
@media (max-width: 1024px) {
  .features_content {
    width: 100%;
    box-sizing: border-box;
  }

  .product {
    width: 100%;
  }
}

/* モバイル用スタイル */
@media (max-width: 768px) {
  .header {
    background-position: center, center, calc(20% - 20px) 20%;
    background-size: 100%;
  }

  .hero {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: calc(100vh - 40vw);
    text-align: left;
    background-position: center, center, calc(20% - 20px) 10%;
    background-size: 100%;
    padding: 0 20px 20px;
  }

  .hero h1 {
    font-size: 10vw;
    transform: translateY(-25%);
  }

  .hero h1 .large-text {
    font-size: 18vw;
  }

  .features {
    padding: 60px 18px 18px;
  }

  .features_content {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
  }

  .features_content h2 {
    font-size: 5vw;
    letter-spacing: 0.5em;
    top: -50px;
    left: 20px;
  }

  .features_content h2 .large-text {
    font-size: 12vw;
  }

  .features h3 {
    font-size: 5vw;
    padding-top: 18px;
  }

  .features p {
    width: initial;
  }

  .icons {
    width: 100%;
    padding: 20px 0px 10px;
  }

  .icon img {
    width: 60px;
  }

  .features p:last-child {
    padding: 0;
  }

  .products {
    padding: 18px;
  }

  .product {
    width: 100%;
    margin-bottom: 18px;
  }

  .product_title {
    width: 90%;
  }

  .product_content {
    flex-direction: column;
  }

  .product-info {
    margin-left: 0;
  }

  .product img {
    margin: 0 auto;
  }

  .product-info h3 {
    font-size: 5vw;
    text-align: center;
    margin-top: 18px;
  }

  .info_ag_1,
  .info_ag_2 {
    flex-direction: column;
  }

  .info_ag_2 p {
    width: 100%;
  }

  .product img {
    margin-top: 20px;
  }

  .technology {
    padding: 18px 24px;
  }

  .technology_content {
    flex-direction: column;
    width: 100%;
  }

  .technology_content img {
    width: 100%;
    margin: 0;
  }

  .effects {
    padding: 18px;
  }

  .effects h2 {
    font-size: 5vw;
  }

  .effect_content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .effect {
    margin: 0;
    margin-bottom: 20px;
  }

  .challenges h2 {
    font-size: 5vw;
  }

  .challenge {
    width: 100%;
  }

  .challenge_content {
    flex-direction: column;
  }

  .challenge_content p {
    width: 100%;
  }

  .possibility h2 {
    font-size: 6vw;
  }

  .possibility_content {
    width: 100%;
  }

  .light {
    padding: 100px 20px;
    background-size: 130%;
  }

  .light h2 {
    font-size: 10vw;
  }

  .contact {
    padding: 20px;
  }

  .contact-info {
    flex-direction: column;
  }

  .contact-info .info {
    width: 100%;
  }

  .footer_content_wrapper {
    flex-direction: column;
    border-right: none;
    padding: 18px;
  }

  .footer_content {
    border-right: none;
    border-bottom: 1px solid;
    margin-bottom: 18px;
    padding: 0;
  }

  .footer_content:last-child {
    border: none;
  }

  .footer_content ul {
    padding: 0;
  }

  .challenge:nth-child(2) .challenge_content,
  .challenge:nth-child(4) .challenge_content {
    flex-direction: column-reverse;
  }
}

/* ヘッダ */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  /* background-color: var(--deep_green); */
  background-color: var(--mid_green);
  color: #fff;
}

@media screen and (min-width: 769px) {
  .main-navigation {
    display: flex;
    gap: 20px;
  }

  .main-navigation .menu {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-navigation .menu > .menu-item {
    margin-left: 15px;
    position: relative;
  }

  .main-navigation .menu > .menu-item > a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
  }

  .main-navigation .menu > .menu-item > a:hover {
    color: #ccc; /* ホバー時の色変更 */
  }

  .sub-menu {
    display: none; /* サブメニューを最初は非表示に */
    position: absolute; /* 必要に応じて位置を調整 */
    background-color: #fff; /* 背景色を設定 */
    padding: 0;
    margin: 0;
    top: 30px;
    left: 0;
    list-style: none;
    min-width: 100px;
    width: 250px;
    z-index: 1000;
  }

  .sub-menu li {
    padding: 10px 15px;
    border-bottom: 1px solid #ccc;
  }

  .sub-menu li:last-child {
    border-bottom: none;
  }

  .sub-menu li a {
    color: var(--deep_green);
    text-decoration: none;
    display: block;
    width: 100%;
    margin: 0 auto;
  }

  .menu-item.active .sub-menu {
    display: block; /* アクティブなメニューのサブメニューを表示 */
  }

  /* ハンバーガーメニュースタイル */
  .hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    cursor: pointer;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
  }
}

/* スマホ用スタイル */
@media screen and (max-width: 768px) {
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100%;
    width: 100%;
    background-color: #fff; /* 背景を白に設定 */
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-top: 60px; /* ヘッダーの下に配置するためのパディング */
    z-index: 9999;
  }

  .main-navigation .menu {
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%; /* ウィンドウ幅に合わせる */
    overflow-y: auto; /* スクロールを有効にする */
  }

  .main-navigation .menu > .menu-item {
    margin: 0;
    width: 100%;
    border-bottom: 2px solid #00a000;
  }

  .main-navigation .menu > .menu-item:last-child {
    border-bottom: none;
  }

  .main-navigation .menu > .menu-item a {
    color: var(--deep_green);
    text-decoration: none;
    display: block;
    padding: 15px 0;
    text-align: center;
    width: 100%; /* リンクもウィンドウ幅に合わせる */
  }

  .main-navigation.active {
    right: 0;
  }

  .main-navigation .sub-menu {
    display: none;
    background-color: var(--deep_green);
    margin: 0;
    padding: 0;
    color: #fff;
  }

  .main-navigation .sub-menu li {
    border-bottom: 2px solid #00a000;
  }

  .main-navigation .sub-menu .menu-item a {
    color: #fff;
  }

  .main-navigation .menu-item.active .sub-menu {
    display: block;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 10000;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .hamburger-menu.active span {
    background-color: #00a000;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* 必須フィールドの赤いアスタリスク */
.wpcf7 form .required {
  color: red;
  margin-left: 5px; /* ラベルとアスタリスクの間に余白を追加 */
  font-size: 16px;
}

/* フォーム全体をflexで配置 */
.wpcf7 form {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 各フィールドの間隔を調整 */
  max-width: 600px; /* フォーム全体の幅を指定（任意） */
  margin: 0 auto; /* フォームを中央揃えにする */
}

/* 各入力フィールドを含む要素をflexにする */
.wpcf7 form .form-group {
  display: flex;
  flex-direction: column; /* ラベルとフィールドを縦に並べる */
}

/* ラベルのスタイルを調整 */
.wpcf7 form .form-group label {
  margin-bottom: 5px;
  font-weight: bold;
}

/* テキストボックス、セレクトボックスの幅を揃える */
.wpcf7 form .wpcf7-form-control {
  padding: 10px;
  width: 100%;
  box-sizing: border-box; /* パディングを含めた幅指定 */
}

/* 送信ボタンのスタイル */
.wpcf7 form .wpcf7-submit {
  padding: 10px 20px;
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* 送信ボタンを中央に配置 */
.wpcf7 form .wpcf7-submit {
  align-self: flex-start; /* 左揃えの場合はleft、右揃えの場合はrightに変更可能 */
}

/* ========================================= */
/* xeroy_extensionのスタイル改良部分 */
/* ========================================= */
.post-header .cat-name span {
  color: var(--deep_green) !important;
}

.post-header .cat-name span {
  border: 1px solid var(--deep_green);
  color: var(--deep_green);
}

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

form input[type="submit"],
form button {
  background: var(--dark);
  color: #fff;
}

.post-title a {
  color: var(--dark);
}

.post-content h2 {
  background: var(--dark);
}

.post-content h3 {
  border-bottom: 2px solid var(--dark);
}
.post-cta .btn {
  background: var(--dark);
}
.post-author a {
  color: var(--dark);
}
.post-loop-wrap .post-footer a.morelink {
  background: var(--dark);
}

 /* 追加css */
#comments {
	display: none;
}

.post-author {
	display:none;
}

.post-meta-comment {
	display: none;
}

body {
	    background-image: none !important;
}

.news-section {
    padding: 40px 24px;
    color: var(--text);
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-width: 800px;
    margin: 60px auto;
}

.news-section__title {
    font-size: 1.8em;
    text-align: center;
    color: var(--text);
    margin-bottom: 20px;
}

.news-list {
    list-style: none;
    padding: 0;
}

.news-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item__link {
    text-decoration: none;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.news-item__link:hover {
    color: #007BFF;
}

.news-item__date {
    font-size: 0.9em;
    color: #888;
}

.news-item__title {
    font-size: 1.2em;
}
