/* ==========================================================================
   CSS変数（デザインデータより抽出）
   ========================================================================== */
:root {
  --color-text:        #51433d;
  --color-green:       #009740;
  --color-green-light: #80cb9f;
  --color-yellow:      #e9b800;
  --color-orange:      #f08300;
  --color-blue:        #008cd6;
  --color-bg:          #edede1;
  --color-white:       #ffffff;

  --header-height-sp:  19.47vw; /* 73px / 375px */
  --header-height-pc:  100px;

  --inner-width:       1200px;
  --inner-padding-sp:  20px;
  --inner-padding-pc:  40px;
}

/* ==========================================================================
   リセット
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 4.27vw;
  line-height: 1.875; /* 30px / 16px */
  color: var(--color-text);
  background-color: var(--color-bg);
  text-align: justify;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   レイアウト共通
   ========================================================================== */
.l-bg-block {
  background-image: url('../img/bg_block_sp.webp');
  background-repeat: repeat-y;
  background-position: top center;
  background-size: 100% auto;
}

@media (min-width: 769px) {
  .l-bg-block {
    background-image: url('../img/bg_block.webp');
  }
}

.l-inner {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 var(--inner-padding-sp);
}

@media (min-width: 769px) {
  .l-inner {
    padding: 0 var(--inner-padding-pc);
  }
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.l-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-bg);
}

/* 点線：ヘッダー最上部に全幅で表示 */
.l-header::before {
  content: '';
  display: block;
  position: absolute;
  top: 4vw;
  left: 0;
  right: 0;
  height: 4px;
  background-image: radial-gradient(circle, var(--color-text) 2px, transparent 2px);
  background-size: 10px 4px;
  background-repeat: repeat-x;
}

.l-header__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: var(--header-height-sp);
  padding: 9.07vw var(--inner-padding-sp) 0;
}

/* ロゴ */
.l-header__logo img {
  display: block;
  width: 72vw;
  height: auto;
}

/* ハンバーガーボタン */
.l-header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 6.13vw;  /* 23px / 375px */
  height: 4.27vw; /* 16px / 375px */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: 0.8vw;
}

.l-header__hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.l-header__hamburger.is-open span:nth-child(1) {
  transform: translateY(2vw) rotate(45deg);
}
.l-header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.l-header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-2vw) rotate(-45deg);
}

/* PC ナビ */
.l-header__nav {
  display: none;
}

/* SP ドロワー（オーバーレイ） */
.l-header__drawer {
  position: fixed;
  top: var(--header-height-sp);
  left: 0;
  width: 100%;
  height: calc(100% - var(--header-height-sp));
  z-index: 90;
  overflow: hidden;
  background-color: transparent;
  pointer-events: none;
  transition: background-color 0.3s;
}

.l-header__drawer.is-open {
  background-color: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.l-header__drawer-list {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-text);
  padding: 8px var(--inner-padding-sp) 16px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.l-header__drawer-list::after {
  content: '';
  display: block;
  height: 4px;
  margin-top: 8px;
  margin-left: calc(-1 * var(--inner-padding-sp));
  margin-right: calc(-1 * var(--inner-padding-sp));
  background-image: radial-gradient(circle, var(--color-text) 2px, transparent 2px);
  background-size: 10px 4px;
  background-repeat: repeat-x;
}

.l-header__drawer.is-open .l-header__drawer-list {
  transform: translateY(0);
}

.l-header__drawer-list li + li {
  border-top: 1px solid var(--color-bg);
}

.l-header__drawer-list a,
.l-header__drawer-list span {
  display: block;
  padding: 14px 0;
}

.l-header__drawer-sub {
  padding-left: 16px;
  border-top: 1px solid var(--color-bg);
}

.l-header__drawer-sub li + li {
  border-top: 1px solid var(--color-bg);
}

.l-header__drawer-sub a {
  padding: 12px 0;
  font-size: 0.9em;
  color: var(--color-text);
}

/* ==========================================================================
   PC レイアウト（769px以上）
   ========================================================================== */
@media (min-width: 769px) {

  body {
    font-size: 16px;
  }

  .l-header::before {
    top: 20px;
  }

  .l-header__inner {
    height: var(--header-height-pc);
    max-width: calc(var(--inner-width) + var(--inner-padding-pc) * 2);
    margin: 0 auto;
    padding: 55px var(--inner-padding-pc) 0;
    align-items: flex-start;
  }

  .l-header__logo img {
    width: 305px;
  }

  .l-header__hamburger {
    margin-top: 0;
  }

  .l-header__nav {
    display: block;
  }

  .l-header__nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .l-header__nav-list a,
  .l-header__nav-list span {
    position: relative;
    transition: color 0.2s;
    cursor: pointer;
  }

  .l-header__nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
  }

  .l-header__nav-list a:hover,
  .l-header__nav-list span:hover {
    color: var(--color-green);
  }

  .l-header__nav-list a:hover::after {
    transform: scaleX(1);
  }

  .l-header__nav-list a.is-current {
    color: var(--color-green);
    font-weight: 700;
  }

  .l-header__nav-list a.is-current::after {
    transform: scaleX(1);
  }

  /* プルダウン */
  .has-dropdown {
    position: relative;
  }

  .l-header__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-bg);
    min-width: 120px;
    border: 1px solid var(--color-text);
  }

  .l-header__dropdown li + li {
    border-top: 1px solid var(--color-text);
  }

  .l-header__dropdown a {
    display: block;
    padding: 12px 16px;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
  }

  .l-header__dropdown a::after {
    display: none;
  }

  .l-header__dropdown a:hover {
    background-color: var(--color-green);
    color: var(--color-white);
  }

  .has-dropdown:hover .l-header__dropdown {
    display: block;
  }

  .l-header__hamburger {
    display: none;
  }

  .l-header__drawer {
    display: none !important;
  }

}

@media (max-width: 768px) {
  .c-text-btn {
    width: 48vw;
    padding: 2.67vw 4.27vw;
    font-size: 3.73vw;
  }

  .c-text-btn::after {
    width: 1.87vw;
    height: 1.87vw;
    right: 4.27vw;
    margin-top: -1.07vw;
  }
}

/* ==========================================================================
   共通コンポーネント
   ========================================================================== */

/* 装飾ドット */
.c-dots {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.c-dots__item {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.c-dots__item + .c-dots__item {
  margin-left: -3px;
}

@media (max-width: 768px) {
  .c-dots__item {
    width: 3.73vw; /* 14px / 375px */
    height: 3.73vw;
  }

  .c-dots__item + .c-dots__item {
    margin-left: -0.8vw; /* -3px / 375px */
  }
}

.c-dots__item--orange       { background-color: var(--color-orange); }
.c-dots__item--orange-light { background-color: #f7c180; }
.c-dots__item--green        { background-color: var(--color-green); }
.c-dots__item--green-light  { background-color: var(--color-green-light); }
.c-dots__item--yellow       { background-color: var(--color-yellow); }
.c-dots__item--blue         { background-color: var(--color-blue); }
.c-dots__item--blue-light   { background-color: #80c6eb; }

/* 改行制御 */
.u-block    { display: block; }
.u-block-sp { display: block; }
@media (min-width: 769px) {
  .u-block-sp { display: inline; }
}

/* 括弧の余白調整 */
.u-bracket {
  letter-spacing: -0.4em;
}

/* 丸矢印ボタン */
.c-arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #74b820;
  color: var(--color-white);
  flex-shrink: 0;
}

.c-arrow-btn::after {
  content: '';
  display: block;
  width: 13px;
  height: 13px;
  border-top: 2px solid var(--color-white);
  border-right: 2px solid var(--color-white);
  transform: rotate(45deg) translate(-8px, -4px);
}

/* テキストリンクボタン */
.c-text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  position: relative;
  width: 180px;
  padding: 10px 16px;
  border: 1px solid var(--color-text);
  border-radius: 9999px;
  font-size: 14px;
}

.c-text-btn::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--color-text);
  border-right: 1px solid var(--color-text);
  transform: rotate(45deg);
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -4px;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.l-footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 5.33vw var(--inner-padding-sp);
}

.l-footer__inner {
  max-width: var(--inner-width);
  margin: 0 auto;
}

/* タイトル */
.l-footer__title {
  font-size: 4.27vw; /* 16px */
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6.4vw; /* 24px */
  padding-bottom: 3.2vw; /* 12px */
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

/* TEL・MAILエリア */
.l-footer__buttons {
  display: flex;
  flex-direction: column;
  gap: 4vw; /* 15px */
  margin-bottom: 6.4vw; /* 24px */
}

/* TEL */
.l-footer__tel-btn {
  display: flex;
  align-items: center;
  gap: 2.67vw; /* 10px */
  color: var(--color-white);
}

.l-footer__tel-icon {
  flex-shrink: 0;
  width: 5.33vw; /* 20px */
  height: 5.33vw;
  opacity: 0.75;
}

.l-footer__tel-body {
  display: flex;
  flex-direction: column;
  gap: 0.27vw;
}

.l-footer__tel-label {
  display: none;
}

.l-footer__tel-number {
  font-size: 5.87vw; /* 22px */
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* MAIL */
.l-footer__mail-btn {
  display: flex;
  align-items: center;
  gap: 2.67vw;
  color: var(--color-white);
}

.l-footer__mail-icon {
  flex-shrink: 0;
  width: 5.33vw;
  height: 5.33vw;
  opacity: 0.75;
}

.l-footer__mail-address {
  font-size: 3.73vw; /* 14px */
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 補足テキスト */
.l-footer__note {
  display: flex;
  flex-direction: column;
  gap: 1.6vw; /* 6px */
}

.l-footer__note p {
  font-size: 3.2vw; /* 12px */
  opacity: 0.75;
  line-height: 1.6;
}

.l-footer__note strong {
  font-weight: 700;
  opacity: 1;
}

/* org名 */
.l-footer__org {
  font-size: 3.2vw;
  opacity: 0.75;
}

@media (min-width: 769px) {
  .l-footer {
    padding: 30px var(--inner-padding-pc);
  }

  .l-footer__title {
    font-size: 16px;
    margin-bottom: 28px;
    padding-bottom: 16px;
  }

  .l-footer__buttons {
    flex-direction: row;
    gap: 16px;
    margin-bottom: 24px;
  }

  .l-footer__tel-btn {
    gap: 12px;
    pointer-events: none;
    cursor: default;
  }

  .l-footer__tel-icon {
    width: 20px;
    height: 20px;
  }

  .l-footer__tel-number {
    font-size: 26px;
  }

  .l-footer__mail-btn {
    gap: 12px;
  }

  .l-footer__mail-icon {
    width: 20px;
    height: 20px;
  }

  .l-footer__mail-address {
    font-size: 15px;
  }

  .l-footer__note {
    flex-direction: row;
    gap: 0 32px;
  }

  .l-footer__note p {
    font-size: 13px;
  }

  .l-footer__org {
    font-size: 13px;
  }
}
