/*
Theme Name: theme-fhp
*/
@charset "utf-8";

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}
body {
  position: relative;
  color: #333;
  font-family:
    Arial, "Helvetica Neue", Helvetica, "Yu Gothic", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

img,
picture {
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

textarea:not([rows]) {
  min-height: 10em;
}

:target {
  scroll-margin-block: 5ex;
}

h1 {
  font-size: 18px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 18px;
}

h4 {
  font-size: 16px;
}

h5 {
  font-size: 16px;
}

h6 {
  font-size: 16px;
}

p {
  font-size: 16px;
  line-height: 1.6;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stack > * + * {
  margin-top: 16px;
}

.stack__small > * + * {
  margin-top: 8px;
}

.stack__large > * + * {
  margin-top: 32px;
}

.txt-large {
  font-size: 120%;
}

.txt-small {
  font-size: 80%;
}

.txt-center {
  text-align: center;
}

.txt-right {
  text-align: right !important;
}

.img-center {
  display: block;
  margin-inline: auto;
}

.weight-normal{
	font-weight:normal;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-32 {
  margin-bottom: 32px;
}

.mb-64 {
  margin-bottom: 64px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-64 {
  margin-top: 64px;
}

.movie {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%;
  /* 16:9 (9÷16=0.5625) */
}

.movie iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ベース */
body {
  position: relative;
  color: #333;
  height: 100%;
}

:root {
	--gray: #f2f2f2;
	--green: #7ac943;
	--green2: #6c9f45;
	--deepgreen: #002f1f;
	--blue: #377ec6;
}

.c-green{
	color:#7ac943;
}
.c-green2{
	color:#6c9f45;
}
.c-deepgreen{
	color:#002f1f;
}
.c-blue{
	color:#377ec6;
}

.wrapper {
  margin-inline: auto;
  padding-inline: 3vw;
  max-width: calc(1280px + 4vw);
}

.narrow__box {
  margin-inline: auto;
  max-width: 960px;
}

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

.tel a {
  color: var(--black);
  text-decoration: none;
}

/*
ヘッダー
*/
#header {
}
.site__header {
  position: absolute;
  width: 100%;
  padding-inline: 2vw;
  padding-block: 16px;
  margin-inline: auto;
  background-color: transparent;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}
.logo-area {
  width: clamp(80px, 10vw, 160px);
  height: auto;
}
/* =============================
   ハンバーガー
============================= */
.menu-btn {
  z-index: 3000;
}
.menu-toggle {
  position: fixed;
  top: 16px;
  right: 2vw;
  z-index: 1001;
  background: none;
  border: none;
  cursor: pointer;
  text-align: center;
}

.menu-toggle span {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--deepgreen);
  margin: 8px 0;
  transition: 0.3s;
}

/* テキスト */
.text-wrap {
  position: relative;
  height: 14px;
  margin-top: 5px;
}

.menu-text,
.close-text {
  font-size: 14px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
}

.menu-text {
  opacity: 1;
  color: var(--green2);
}
.close-text {
  opacity: 0;
  color: #fff;
}

.menu-toggle.active .menu-text {
  opacity: 0;
}
.menu-toggle.active .close-text {
  opacity: 1;
}

/* ✗ */
.menu-toggle.active span {
  background: #fff;
}
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* =============================
   メガメニュー
============================= */
.mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  transform: translateY(-100%);
  opacity: 0;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
  z-index: 999;
}

.mega-menu.active {
  transform: translateY(0);
  opacity: 1;
}

/* =============================
   レイアウト
============================= */
.mega-inner {
  display: flex;
  width: 100%;
  height: 100%;
}

.mega-left {
  width: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-img figure {
  display: grid;
  place-items: center;
}
.menu-img figure img {
  height: 100vh;
  display: block;
  padding: 32px;
  aspect-ratio: 1162/1367;
  object-fit: contain;
}

.mega-right {
	width: 50%;
	background: var(--green);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mega-menu-list {
  overflow-y: auto;
  max-height: 100vh;
  width: 100%;
  padding-block: 60px;
}

/* =============================
   メニュー
============================= */

.mega-menu-list {
  list-style: none;
  margin: 0;
}

.mega-menu-list li {
  margin: 20px 0;
  text-align: center;

  opacity: 0;
  transform: translateY(20px);
  transition: 0.3s;

  /* 自動delay */
  transition-delay: calc(var(--i) * 0.1s);
}

.mega-menu.active .mega-menu-list li {
  opacity: 1;
  transform: translateY(0);
}

.mega-menu-list a {
  color: #fff;
  text-decoration: none;
}

.mega-menu-list .menu-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.mega-menu-list .menu-desc {
    font-size: 24px;
    color: #fff;
    margin-bottom: 2px;
}

.mega-menu-list .menu-title {
    font-size: 14px;
    color: var(--deepgreen);
}

/* =============================
   スマホ
============================= */
@media (max-width: 768px) {
  .mega-left {
    display: none;
  }
  .mega-right {
    width: 100%;
  }
}

/* =============================
   スクロール禁止
============================= */
.no-scroll {
  overflow: hidden;
}

/*
フッター
*/
.site__footer {
  background: var(--gray);
  width: 100%;
  padding-block: 36px;
  padding-inline: 3vw;
  margin:36px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer__info {
  text-align: center;
}

.footer__info dt {
  font-weight: 600;
  color: var(--deepgreen);
  font-size: 24px;
}
.footer__catch {
  color: var(--green2);
  font-size: 20px;
  padding-block: 10px;
}

@media screen and (max-width: 781px) {
  .footer__info {
    flex-direction: column;
  }

  .footer__info dl {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #333;
    padding-top: 24px;
  }
}

.footer__menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 0;
}
.footer__menu li a {
  padding-inline: 16px;
}
.footer__menu li:not(:last-child) {
  border-right: 1px solid #333;
}

/*
ページ共通
*/
.site__main {
  padding-top: 60px;
}
body.page .site__main a{
  color:var(--blue);
}

section {
  padding-top: 40px;
  padding-bottom: 60px;
}

.hero__area {
  padding-bottom: 32px;
}

.font-size__l {
  font-size: clamp(26px, 3.3vw, 34px);
}
.font-size__m {
  font-size: clamp(20px, 2.8vw, 28px);
}

.site__main p,.site__main li {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.75;
}
.site__main strong{
	font-weight:700 !important;
}

.sec__hgroup {
  position: relative;
  margin-inline: calc(50% - 50vw);
  padding-inline: calc(50vw - 50%);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--green);
}
.sec__hgroup__inner {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
}

.sec__hgroup__inner:after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 20%;
  height: 1px;
  background: var(--deepgreen);
}
.page__hgroup {
	position: relative;
	text-align:center
}
.page__hgroup__inner {
	display: flex;
	flex-direction: column-reverse;
	gap:16px;
}
.page__hgroup:after {
	display:block;
	content: "";
	text-align:center;
	width: 160px;
	height: 1px;
	background: var(--green);
	margin: 24px auto 0;
}
.page__hgroup h1{
	font-size:clamp(18px, 2.2vw, 22px);
	color:#333;
	font-weight:normal;
}
.page__hgroup p{
	font-size:clamp(38px, 5.6vw, 56px);
	color:var(--green);
	line-height:1.1;
}

.sec__content {
  padding-block: 48px;
  padding-left: 20%;
}
p.sec__catch {
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--green2);
  padding-bottom: 40px;
}
@media screen and (max-width: 781px) {
  .sec__content {
    padding-left: 3%;
  }
  .sec__catch br {
    display: none;
  }
}
.double-border {
  position: relative;
  padding-left: 20px;
  color: var(--deepgreen);
  border-left: 6px solid var(--green);
  margin-bottom: 32px;
}

.double-border::before {
  content: "";
  position: absolute;
  left: 6px; /* 太い線との間隔 */
  top: 0;
  bottom: 0;
  width: 3px; /* 細い線 */
  background: var(--green);
}
.border-number {
  counter-reset: item;
  list-style: none;
  padding-left: 0;
}

.border-number li {
  counter-increment: item;
  display: flex;
  align-items: flex-start;
	margin-bottom:16px;
}

.border-number li::before {
	content: counter(item, decimal-leading-zero);
	border-left: 2px solid var(--green2);
	border-right: 2px solid var(--green2);
	padding: 0 10px;
	margin-right: 10px;
	color:var(--green2);
}
.anchor-img li{
	margin-bottom:8px;
}
.anchor-img li a{
	display:flex;
	align-items:flex-start;
	gap:16px;
}
.anchor-img li a:before{
	content:'';
	width:24px;
	flex: 0 0 24px;
	aspect-ratio:1/1;
	background:url('images/arrow.webp') center center/contain no-repeat;
}

td.justify{
	width:60px !important;
	vertical-align:middle !important;
    text-align: justify !important;
    text-align-last: justify !important;
    text-justify: inter-ideograph !important;
	margin-right:20px !important;
}
td.justify::after{
    content:"";
    display:inline-block !important;
    width:100px !important;
}

/* ブログ */
.blog__hero figure{
	max-width:640px;
	margin-inline:auto;
	padding-inline:5vw;
}

.searchform__wrapper{
	text-align:center;
}
.searchform__wrapper input{
  margin:0;
  padding:0;
  border:none;
  border-radius:0;
}
.searchform__wrapper .searchform__field{
  height:48px;
  padding:0.5em;
  border:1px solid #ddd;
  font-size:1em;
}
.searchform{
  margin:auto;
	margin-top:32px;
}
.searchform__field{
	height:48px;
	width:300px;
	max-width:60%;
	padding:0.5em;
	font-size:1em;
}
.searchform__btn{
  width:48px;
  height:48px;
  background-color:#cdcdcd;
	border:none;
	cursor:pointer;
	display:grid;
	place-items: center;
}
.searchform__btn img{
	width:30px;
}
.searchform__inner{
	display:flex;
	justify-content:center;
}

.blog-wrap{
  display:flex;
  gap:48px;
}
.blog-main{
  flex:1;
}
.blog-sub{
  width:280px;
}
.blog-sub h3{
  text-align: center;
  color:var(--deepblue);
}
@media all and (max-width: 959px) {
  .blog-wrap{
  flex-direction: column;
  }
  .blog-sub{
  width:100%;
  }
  .blog-sub h3{
  text-align: left;
  }
}

.single__main a{
	color:var(--blue);
}
.blog-list{
  margin-top:24px;
	border-bottom:1px solid var(--green);
}
.blog-list > li{
	padding-block:32px;
	border-top:1px solid var(--green);
}

.blog-list-header{
  border-left:6px solid var(--green2);
  padding-left:16px;
  margin-bottom:16px;
}
.category-disclosure .blog-list-header{
  border-left:6px solid #377643;
}
.blog-list-header h3{
	font-weight:normal;
	line-height:1.3;
}

.blog-list-cat li{
	display:inline-block;
}
.blog-list-cat-link {
  display:inline-block;
  color:#fff;
  background:var(--green2);
  padding:2px 16px;
  border-radius: 16px;
  line-height:1.2;
  font-size:15px;
}
.category-disclosure .blog-list-cat-link{
	background:#377643;
}
.blog-meta{
	display:flex;
	gap:16px;
}
.article-content p{
	margin-bottom:24px;
}
.article-content figure{
	margin-bottom:24px;
}
.article-content a{
	color:var(--blue);
}
.article__meta{
	margin-top:60px;
	display:flex;
	gap:16px;
}

.nav-links{
	margin-top:40px;
	display:flex;
	justify-content:center;
	align-items:center;
	gap:8px;
}

.nav-links .page-numbers,ul.page-numbers span{
	padding:8px;
	background:#fff;
	color:var(--green2);
}
.nav-links .page-numbers.current{
	background:var(--green2);
	color:#fff;
}
.single__nav{
	margin-top:40px;
}
.single__nav a{
	display:inline-block;
	color:#fff;
	background:var(--green2);
	padding:8px 16px;
}

.sidebar-widget li:first-child{
	border-top:1px solid #999;
}
.sidebar-widget li{
	margin:0;
	padding:10px 0 10px 10px;
	border-bottom:1px solid #999;
}