/* ============================================================
   common.css
   全ページ共通:リセット / 基本設定 / ヘッダー・フッター・ナビ
   ============================================================ */

/* --- Design tokens -------------------------------------------- */
:root {
  --c-navy: #111C3A;
  --c-navy-deep: #0e1a30;
  --c-green: #1A9759;
  --c-brown: #A46305;
  --c-orange: #F2B02C;
  --c-gray-bg: #f4f4f4;

  --font-en: "Oswald", sans-serif;
}

/* --- Reset --------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: "Yu Gothic", "游ゴシック", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--c-navy);
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* --- Layout ---------------------------------------------------
   ページ固有CSS側では .l-main 内のコンテンツだけを整えればよい
   ---------------------------------------------------------------*/
.l-inner {
  width: 100%;
}

.l-main {
  flex: 1;
}

/* --- Header ---------------------------------------------------*/
.l-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
}

.l-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  border-top: 8px solid var(--c-navy);
}

.l-header__logo {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-left: 16px;
}

.l-header__logo-en {
  width: 100px;
  aspect-ratio: 170 / 79;
}

.l-header__logo-ja {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 6px;
}

.l-header__panel {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 99;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  background-color: var(--c-green);
  padding: 24px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.l-header__toggle-input:checked~.l-header__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.l-header__tel {
  font-family: var(--font-en);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 85%;
  padding: 10px 10px;
  border-radius: 999px;
  background-color: var(--c-orange);
  font-size: 18px;
  letter-spacing: 3px;
  font-weight: bold;
  white-space: nowrap;
}

.l-header__tel--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("../img/tel.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  flex-shrink: 0;
}

.l-header__toggle-input {
  display: none;
}

.l-header__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 73px;
  background-color: var(--c-green);
  cursor: pointer;
}

.l-header__toggle-text {
  font-family: var(--font-en);
  font-size: clamp(18px, 14.73px + 0.872vw, 32px);
  font-weight: 700;
  color: #fff;
}

/* --- Nav --------------------------------------------------------*/
.l-nav {
  background-color: transparent;
  padding: 0;
}

.l-nav__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 16px;
}

.l-nav__link {
  position: relative;
  display: inline-block;
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  padding: 6px 4px;
  line-height: 1;
}

.l-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease;
}

.l-nav__link:hover::after {
  width: 100%;
}

.l-nav__link.is-current {
  border-bottom: 2px solid var(--c-yellow);
}

/* WordPressの固定ページメニューが現在地に付与するクラス対応 */
.l-nav__list li.current-menu-item .l-nav__link,
.l-nav__list li.current_page_item .l-nav__link {
  border-bottom: 2px solid var(--c-yellow);
}

/* --- Footer -----------------------------------------------------*/
.l-footer {
  background-color: var(--c-navy-deep);
  color: #fff;
  padding-block: 56px 24px;
}

.l-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 80px;
  padding: 0 140px;
}

.l-footer__brand {
  display: flex;
  align-items: center;
  gap: 24px;
  background-color: #fff;
  border-radius: 10px;
  padding: 30px 40px;
}

.l-footer__logo {
  width: 246px;
}

.l-footer__logo small {
  display: block;
  font-weight: normal;
  letter-spacing: 0.05em;
}

.l-footer__company {
  font-weight: bold;
  color: #fff;
}

.l-footer__address {
  color: var(--c-navy);
}

.l-footer__address span {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 6px;
}

.l-footer__tel {
  color: var(--c-navy);
  font-family: var(--font-en);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  width: 55%;
  padding: 10px 10px;
  border-radius: 999px;
  background-color: var(--c-orange);
  letter-spacing: 3px;
  font-weight: bold;
  white-space: nowrap;
  font-size: 30px;
}

.l-footer__tel--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("../img/tel.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px 30px;
  flex-shrink: 0;
}

.l-footer__menu-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0;
}

.l-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}

.l-footer__nav a {
  font-size: 16px;
  font-weight: 600;
}

.l-footer__nav a:hover {
  opacity: 0.7;
}

.l-footer__contact {
  display: flex;
  align-items: center;
  gap: 24px;
}

.l-footer__contact .l-header__tel {
  width: auto;
}

.l-footer__tmr-logo {
  width: 240px;
}

.l-footer__copyright {
  text-align: center;
  font-family: var(--font-en);
  font-size: 14px;
  color: #fff;
  border-top: 1px solid #fff;
  padding-top: 20px;
  margin: 0 140px;
  font-weight: normal;
}

/* --- Page top button ----------------------------------------------*/
.p-pagetop {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: var(--c-green);
  color: #fff;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.05em;
  text-align: center;
}

/* --- Common utility ----------------------------------------------*/
.c-section {
  padding-block: 80px;
}

.c-section__title {
  font-size: 2.8rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

/* --- Button -------------------------------------------------------*/
.c-btn {
  font-family: var(--font-en);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 274px;
  height: 57px;
  border-radius: 999px;
  font-weight: bold;
  letter-spacing: 0.1em;
  color: #fff;
}

.c-btn__icon {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-image: url(../img/view_arrow.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  transition: right 0.3s ease;
}

.c-btn:hover .c-btn__icon {
  right: 8px;
}

.c-btn--green {
  background-color: var(--c-green);
}

.c-btn--green .c-btn__icon {
  background-color: var(--c-navy);
}

.c-btn--navy {
  background-color: var(--c-navy);
}

.c-btn--navy .c-btn__icon {
  background-color: var(--c-orange);
}

.c-btn--orange {
  background-color: var(--c-orange);
}

.c-btn--orange .c-btn__icon {
  background-color: var(--c-navy);
}

/* --- Placeholder image ----------------------------------------------
   実素材が入るまでの仮画像枠。差し替え時はこのdivをimgタグに置き換える。
   ---------------------------------------------------------------------*/
.c-placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e6e6e6;
  border: 1px dashed #b3b3b3;
  color: #999;
  font-size: 1.2rem;
  text-align: center;
  overflow: hidden;
}

/* --- Responsive ----------------------------------------------------*/
@media (max-width: 1280px) {
  .l-header__logo-ja {
    font-size: 26px;
    letter-spacing: 4px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .l-header__toggle {
    width: 80px;
  }

  .l-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .l-footer__nav {
    justify-content: center;
  }

  .l-nav__link {
    font-size: 28px;
  }

  .l-header__logo-ja {
    font-size: 16px;
  }

  .l-header__logo-en {
    width: 84px;
    aspect-ratio: 170 / 79;
  }

  .c-section {
    padding-block: 48px;
  }

  .c-section__title {
    font-size: 2.2rem;
  }

  /* 
  .c-btn {
    width: 200px;
    height: 47px;
    font-size: 14px;
  } */

  .c-btn__icon {
    right: 18px;
    width: 30px;
    height: 30px;
    background-size: 10px 10px;
  }

  .p-pagetop {
    width: 90px;
    height: 90px;
    font-size: 14px;
  }
}

@media (max-width: 490px) {
  .l-header__logo {
    flex-direction: column;
    gap: 0;

  }
}