/* ============================================================
  01. VARIABLES / RESET
============================================================ */
:root {
 --blue-royal: #4f9657;
 --blue-deep: #3f7e48;
 --blue-darker: #2f5c38;
 --blue-light: #7ab07f;
 --blue-bg: #edf6ec;
 --gray-bg: #f7f7f5;
 --ink: #1e2228;
 --ink-soft: #5b6168;
 --line: #e3e3e0;
 --white: #ffffff;
 --amber: #d98e3d;
 --sans: "Noto Sans JP", sans-serif;
 --serif: "Noto Serif JP", serif;
}

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

html {
 scroll-behavior: smooth;
}

body {
 margin: 0;
 color: var(--ink);
 background: var(--white);
 font-family: var(--sans);
 font-size: 16px;
 line-height: 1.85;
 -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
dl,
dd,
ul,
ol {
 margin: 0;
}

ul,
ol {
 padding: 0;
}

img,
svg {
 display: block;
 max-width: 100%;
}

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

a:focus-visible,
button:focus-visible {
 outline: 3px solid var(--blue-royal);
 outline-offset: 2px;
}

.wrap {
 width: min(100%, 1188px);
 margin-inline: auto;
 padding-inline: 24px;
}

/* ============================================================
  02. COMMON BUTTON
============================================================ */
.btn {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 gap: 8px;
 padding: 13px 26px;
 border-radius: 7px;
 font-size: 14.5px;
 font-weight: 700;
 letter-spacing: 0.02em;
 transition:
  background-color 0.2s ease,
  color 0.2s ease,
  border-color 0.2s ease;
}

.btn-primary {
 color: var(--white);
 background: var(--blue-royal);
}

.btn-primary:hover {
 background: var(--blue-deep);
}

.btn-outline {
 color: var(--white);
 border: 1.5px solid var(--white);
}

.btn-outline:hover {
 background: rgb(255 255 255 / 12%);
}

.btn-outline.dark {
 color: var(--blue-royal);
 border-color: var(--blue-royal);
}

.btn-outline.dark:hover {
 background: var(--blue-bg);
}

/* ============================================================
  03. HEADER
============================================================ */
.site-header {
 position: sticky;
 top: 0;
 z-index: 50;
 background: var(--white);
 border-bottom: 1px solid var(--line);
}

.admin-bar .site-header {
 top: 32px;
}

.header-inner {
 display: flex;
 align-items: center;
 justify-content: space-between;
 width: min(100%, 1140px);
 min-height: 84px;
 margin-inline: auto;
 padding-inline: 24px;
}

.brand {
 display: flex;
 align-items: center;
 gap: 12px;
 flex-shrink: 0;
}

.brand-logo {
 display: flex;
 align-items: center;
 justify-content: center;
 width: 46px;
 height: 46px;
 flex-shrink: 0;
 overflow: hidden;
 color: var(--white);

 border-radius: 8px;
 font-family: var(--serif);
 font-size: 20px;
 font-weight: 700;
}

.brand-logo img {
 width: 100%;
 height: 100%;
 object-fit: contain;
}

.brand-text {
 color: var(--ink);
 font-size: 17.5px;
 font-weight: 700;
 line-height: 1.5;
}

.brand-text small {
 display: block;
 margin-top: 2px;
 color: var(--ink-soft);
 font-size: 11px;
 font-weight: 400;
 letter-spacing: 0.02em;
}

.global-nav {
 display: flex;
 align-items: center;
 gap: 32px;
 flex-direction: row;
}

.nav-links {
 display: flex;
 gap: 30px;
 font-size: 14.5px;
}

.nav-links a {
 padding-block: 8px;
 border-bottom: 2px solid transparent;
 transition:
  color 0.2s ease,
  border-color 0.2s ease;
}

.nav-links a:hover {
 color: var(--blue-royal);
 border-color: var(--blue-royal);
}

.header-cta {
 display: flex;
 align-items: center;
 gap: 14px;
}

.header-tel {
 text-align: right;
 line-height: 1.45;
}

.header-tel .label {
 color: var(--ink-soft);
 font-size: 10.5px;
}

.header-tel .num {
 display: block;
 color: var(--blue-royal);
 font-size: 18px;
 font-weight: 700;
}

/* ============================================================
  04. FOOTER
============================================================ */
.site-footer {
 padding: 52px 0 26px;
 color: rgb(255 255 255 / 82%);
 background: var(--blue-darker);
}

.footer-grid {
 display: grid;
 grid-template-columns: 1.3fr 1fr 1fr;
 gap: 40px;
 padding-bottom: 32px;
 border-bottom: 1px solid rgb(255 255 255 / 16%);
}

.footer-brand .fb-name {
 margin-bottom: 14px;
 color: var(--white);
 font-size: 17.5px;
 font-weight: 700;
}

.footer-brand p {
 max-width: 350px;
 color: rgb(255 255 255 / 60%);
 font-size: 13.3px;
}

.footer-col h2 {
 margin-bottom: 14px;
 color: rgb(255 255 255 / 50%);
 font-size: 12px;
 letter-spacing: 0.08em;
}

.footer-col ul {
 display: flex;
 flex-direction: column;
 gap: 9px;
 font-size: 13.3px;
 list-style: none;
}

.footer-col a:hover {
 color: var(--white);
}

.footer-bottom {
 display: flex;
 justify-content: space-between;
 gap: 8px;
 flex-wrap: wrap;
 padding-top: 20px;
 color: rgb(255 255 255 / 45%);
 font-size: 11.5px;
}

/* ============================================================
  05. RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
 .nav-links {
  display: none;
 }
}

@media (max-width: 782px) {
 .admin-bar .site-header {
  top: 46px;
 }
}

@media (max-width: 640px) {
 .wrap {
  padding-inline: 18px;
 }

 .header-inner {
  min-height: 72px;
  padding: 14px 18px;
  flex-wrap: wrap;
  row-gap: 10px;
 }

 .brand-text {
  font-size: 14.5px;
 }

 .brand-text small {
  display: none;
 }

 .global-nav,
 .header-cta {
  width: 100%;
 }

 .header-cta {
  justify-content: space-between;
 }

 .header-tel .label {
  display: none;
 }

 .header-tel .num {
  font-size: 15px;
 }

 .header-cta .btn-primary {
  padding: 10px 18px;
  font-size: 13.5px;
 }
}

@media (prefers-reduced-motion: reduce) {
 html {
  scroll-behavior: auto;
 }

 *,
 *::before,
 *::after {
  scroll-behavior: auto !important;
  transition: none !important;
 }
}
/* ============================================================
  スマホメニュー
============================================================ */

.mobile-menu-button {
 display: none;
}

.mobile-menu-overlay {
 display: none;
}

/* ============================================================
  スマホ表示
============================================================ */

@media (max-width: 980px) {
 /* ------------------------------------------------------------
	  ヘッダー
	------------------------------------------------------------ */

 .site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
 }

 .site-header .header-inner {
  position: relative;
  height: 72px;
  min-height: 72px;
  padding: 0 18px;
  flex-wrap: nowrap;
 }

 .site-header .brand {
  position: relative;
  z-index: 1003;
  min-width: 0;
 }

 .site-header .brand-logo {
  width: 42px;
  height: 42px;
 }

 .site-header .brand-text {
  font-size: 14px;
  line-height: 1.5;
 }

 .site-header .brand-text small {
  display: none;
 }

 /* ------------------------------------------------------------
	  メニューボタン
	------------------------------------------------------------ */

 .mobile-menu-button {
  position: relative;
  z-index: 1003;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
 }

 .mobile-menu-button__line {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  transition:
   transform 0.25s ease,
   opacity 0.25s ease;
 }

 /* 開いたときの×印 */

 .mobile-menu-button.is-active .mobile-menu-button__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
 }

 .mobile-menu-button.is-active .mobile-menu-button__line:nth-child(2) {
  opacity: 0;
 }

 .mobile-menu-button.is-active .mobile-menu-button__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
 }

 /* ------------------------------------------------------------
	  ドロワーメニュー
	------------------------------------------------------------ */

 .site-header .global-nav.main {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 32px;
  width: min(86vw, 390px);
  height: 100vh;
  height: 100dvh;
  padding: 100px 24px 36px;
  overflow-y: auto;
  background: var(--white);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  visibility: hidden;
  transform: translateX(100%);
  transition:
   transform 0.3s ease,
   visibility 0.3s ease;
 }

 .site-header.is-menu-open .global-nav.main {
  visibility: visible;
  transform: translateX(0);
 }

 /* ------------------------------------------------------------
	  メニューリンク
	------------------------------------------------------------ */

 .site-header .global-nav.main .nav-links {
  display: flex !important;
  flex-direction: column;
  gap: 0;
  width: 100%;
  font-size: 15px;
 }

 .site-header .global-nav.main .nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
 }

 .site-header .global-nav.main .nav-links a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
 }

 .site-header .global-nav.main .nav-links a.current {
  color: var(--blue-royal);
  border-bottom-color: var(--blue-light);
 }

 /* ------------------------------------------------------------
	  電話・お問い合わせ
	------------------------------------------------------------ */

 .site-header .global-nav.main .header-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
 }

 .site-header .global-nav.main .header-tel {
  padding: 20px;
  text-align: center;
  background: var(--blue-bg);
  border-radius: 10px;
 }

 .site-header .global-nav.main .header-tel .label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
 }

 .site-header .global-nav.main .header-tel .num {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-royal);
 }

 .site-header .global-nav.main .header-cta .btn {
  width: 100%;
  padding: 15px 20px;
 }

 /* ------------------------------------------------------------
	  背景オーバーレイ
	------------------------------------------------------------ */

 .mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(17, 24, 20, 0.55);
  border: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
   opacity 0.3s ease,
   visibility 0.3s ease;
 }

 .site-header.is-menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
 }
}

/* メニュー表示中の背景スクロールを停止 */

body.is-mobile-menu-open {
 overflow: hidden;
}
/* ============================================================
  Footer / SP
============================================================ */

@media (max-width: 640px) {
 .site-footer,
 footer {
  padding: 48px 0 24px;
 }

 .site-footer .wrap,
 footer .wrap {
  padding-right: 22px;
  padding-left: 22px;
 }

 /* 3カラムを縦並びに変更 */
 .site-footer .footer-grid,
 footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-bottom: 32px;
 }

 /* 会社情報 */
 .site-footer .footer-brand,
 footer .footer-brand {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
 }

 .site-footer .footer-brand .fb-name,
 footer .footer-brand .fb-name {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.65;
 }

 .site-footer .footer-brand p,
 footer .footer-brand p {
  max-width: none;
  font-size: 13.5px;
  line-height: 1.9;
 }

 /* サイトマップ・連絡先 */
 .site-footer .footer-col,
 footer .footer-col {
  padding: 26px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
 }

 .site-footer .footer-col:last-child,
 footer .footer-col:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
 }

 .site-footer .footer-col h6,
 footer .footer-col h6 {
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.12em;
 }

 /* サイトマップは2列 */
 .site-footer .footer-col ul,
 footer .footer-col ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  font-size: 14px;
 }

 .site-footer .footer-col li,
 footer .footer-col li {
  min-width: 0;
  line-height: 1.7;
 }

 .site-footer .footer-col a,
 footer .footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
 }

 .site-footer .footer-col a::before,
 footer .footer-col a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex-shrink: 0;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.7;
 }

 /* CONTACTだけ1列 */
 .site-footer .footer-col:last-child ul,
 footer .footer-col:last-child ul {
  grid-template-columns: 1fr;
  gap: 10px;
 }

 /* 電話番号・FAXの変な改行を防止 */
 .site-footer .footer-col:last-child li:nth-child(1),
 .site-footer .footer-col:last-child li:nth-child(2),
 footer .footer-col:last-child li:nth-child(1),
 footer .footer-col:last-child li:nth-child(2) {
  white-space: nowrap;
 }

 /* コピーライト */
 .site-footer .footer-bottom,
 footer .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-top: 22px;
  font-size: 11px;
  line-height: 1.7;
 }
}
