/* ==========================================================================
   Meito Kogyo common.css
   ※ reset.css を読み込んだ後に読み込む前提のスタイルシートです。
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --c-navy: #0e3677;
  --c-navy-dark: #142942;
  --c-teal: #2aa393;
  --c-teal-deep: #00a98f;
  --c-teal-bg: #ebffff;
  --c-green: #1f6b4f;
  --c-green-dark: #17513c;
  --c-olive: #6d6b34;
  --c-olive-dark: #55532a;
  --c-gray-bg: #eeeeee;
  --c-text: #333333;
  --c-text-sub: #666666;
  --c-text-light: #888888;
  --c-border: #e2e2e2;
  --c-white: #ffffff;


  /* Layout */
  --inner-width: 1280px;
  --header-height: 120px;
  --header-height-sp: 64px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--c-text);
  background-color: var(--c-white);
  -webkit-font-smoothing: antialiased;
  word-break: break-word;
  font-family: -apple-system, blinkMacSystemFont, /* Macの欧文はSan Francisco (OS X 10.11以降) */
  'Helvetica Neue',  /* Macの欧文 (OS X 10.10以前) */
  'Segoe UI',  /* Windowsの欧文 */
  'Noto Sans JP', /* Macのヒラギノ */
  Meiryo,  /* Windowsのメイリオ */
  sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  font-optical-sizing: auto;
  font-style: normal;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

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

.l-wrapper {
  overflow: hidden;
}

main {
  display: block;
}

/* --------------------------------------------------------------------------
   Common Parts
   -------------------------------------------------------------------------- */
.c-label {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--c-teal-deep);
  margin-bottom: 12px;
}

.c-label--center {
  display: block;
  text-align: center;
}

.c-heading {
  font-size: 3rem;
  font-weight: 700;
  color: var(--c-navy);
  text-align: center;
  margin-bottom: 16px;
}

.c-lead {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 56px;
}

.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--c-navy);
  color: var(--c-white);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 4px;
}

.c-btn--white {
  background-color: var(--c-white);
  color: var(--c-navy);
  border: 1px solid var(--c-navy);
}

.c-btn__arrow {
  transition: transform 0.3s ease;
}

.c-btn:hover .c-btn__arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.l-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--c-white);
  z-index: 1000;
}

.l-header .header-spacer {
  display: block;
  width: 100%;
  height: 8px;
  background-image: linear-gradient(90deg, #40dac8, #0043c8);
}

.l-header__inner {
  width: 100%;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-family: "LINE Seed JP", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.l-header__logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.l-header__logo-icon {
  width: auto;
  height: 35px;
}

.l-header__logo-text {
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--c-navy);
  letter-spacing: 0.02em;
}
.l-header__logo-text span {
  margin-right: 5px;
  font-size: 1.6rem;
  
}
.l-header__nav-list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.l-header__nav-list a {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-navy);
}

.l-header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
}

.l-header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--c-navy);
  transition: all 0.3s ease;
}

.l-header__menu-btn.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.l-header__menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}
.l-header__menu-btn.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.p-hero {
  padding: 20px 0 0;
}

.p-hero__images {
  display: flex;

}

.p-hero__img {
  overflow: hidden;
}

.p-hero__img--01 {
  width: 25%;
}

.p-hero__img--02 {
  padding-left: 5px;
  width: 75%;
}

.p-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-hero__copy {
  display: none;
  font-size: 3.6rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--c-navy);
  padding-top: 40px;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.p-about {
  padding: 100px 0;
}

.p-about__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.p-about__img {
  flex: 0 0 50%;
  border-radius: 4px;
  overflow: hidden;
}

.p-about__body {
  flex: 1;
}

.p-about__title {
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.3;
  margin-bottom: 24px;
}

.p-about__text {
  color: var(--c-text-sub);
  font-size: 1.6rem;
  line-height: 1.65;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */
.p-stats {
  background-color: var(--c-teal-bg);
  padding: 56px 0;
}

.p-stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.p-stats__item {
  text-align: center;
  padding: 0 24px;
  border-left: 1px solid rgba(28, 52, 84, 0.1);
}

.p-stats__item:first-child {
  border-left: none;
}

.p-stats__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: var(--c-white);
  margin-bottom: 16px;
}

.p-stats__icon img {
  width: auto;
  height: 50px;
}

.p-stats__num {
  font-size: 4.6rem;
  font-weight: 900;
  color: #07b2b2;
  line-height: 1.2;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
}

.p-stats__unit {
  font-size: 2.2rem;
  font-weight: 700;
  margin-left: 4px;
}

.p-stats__label {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--c-navy);
  margin: 10px 0 20px;
}

.p-stats__note {
  font-size: 1.4rem;
  line-height: 1.4;
  text-align: left;
}

/* --------------------------------------------------------------------------
   Business
   -------------------------------------------------------------------------- */
.p-business {
  padding: 100px 0;
}

.p-business__card {
  display: grid;
  grid-template-columns: 360px 1fr 400px;
  margin-bottom: 32px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.p-business__card:last-child {
  margin-bottom: 0;
}

.p-business__side {
  color: var(--c-white);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.p-business__card--01 .p-business__side {
  background: url(../images/bussiness-card_01.jpg) no-repeat center center;
  background-position: cover;
}
.p-business__card--02 .p-business__side {
  background-color: var(--c-green);
}
.p-business__card--03 .p-business__side {
  background-color: var(--c-olive);
}

.p-business__side-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}

.p-business__side-icon img {
  width: 100%;
  height: 100%;
}

.p-business__side-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.p-business__side-sub {
  font-size: 1.3rem;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 16px;
}

.p-business__side-text {
  font-size: 1.2rem;
  line-height: 1.8;
  opacity: 0.9;
}

.p-business__main {
  background-color: var(--c-white);
  padding: 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.p-business__main-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--c-navy);
  display: inline-block;
}

.p-business__card--02 .p-business__main-title {
  color: var(--c-green);
  border-color: var(--c-green);
}
.p-business__card--03 .p-business__main-title {
  color: var(--c-olive);
  border-color: var(--c-olive);
}

.p-business__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-bottom: 24px;
}

.p-business__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-text);
}

.p-business__list img {
  width: 40px;
  height: 40px;
}

.p-business__card--01 .p-business__list img {
  border: 1px solid var(--c-navy);
}
.p-business__card--02 .p-business__list img {
  border: 1px solid var(--c-green);
}
.p-business__card--03 .p-business__list img {
  border: 1px solid var(--c-olive);
}
.p-business__img {
  display: flex;
  flex-direction: column;
}

.p-business__img-item {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.p-business__img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left bottom;
}

.p-business__img-tag {
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--c-teal-deep);
  color: var(--c-white);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 6px 14px;
}

/* --------------------------------------------------------------------------
   Reason
   -------------------------------------------------------------------------- */
.p-reason {
  background-color: var(--c-teal-bg);
  padding: 60px 0 90px;
}

.p-reason__list {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.p-reason__item {
  background-color: var(--c-white);
  border-radius: 4px;
  padding: 40px 24px;
  text-align: center;
}

.p-reason__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 60px;
  margin-bottom: 20px;
}

.p-reason__icon img {
  width: auto;
  height: 60px;
}

.p-reason__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 12px;
}

.p-reason__text {
  font-size: 1.3rem;
  color: var(--c-text-sub);
  line-height: 1.8;
  text-align: left;
}

/* --------------------------------------------------------------------------
   News
   -------------------------------------------------------------------------- */
.p-news {
  padding: 100px 0;
}

.p-news__list {
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid var(--c-border);
}

.p-news__item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--c-border);
}

.p-news__date {
  flex: 0 0 auto;
  font-size: 1.3rem;
  color: var(--c-text-sub);
}

.p-news__cat {
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-teal-deep);
  background-color: var(--c-teal-bg);
  padding: 6px 16px;
  border-radius: 3px;
  text-align: center;
}

.p-news__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-text);
}

/* --------------------------------------------------------------------------
   Message
   -------------------------------------------------------------------------- */
.p-message {

  padding: 90px 0 60px;
}

.p-message__inner {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.p-message__img {
  flex: 0 0 300px;
  text-align: center;
}

.p-message__img img {
  border-radius: 4px;
  margin-bottom: 16px;
}

.p-message__name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-navy);
}

.p-message__body {
  flex: 1;
}

.p-message__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: 24px;
}

.p-message__quote {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.6;
  margin-bottom: 24px;
}

.p-message__text {
  font-size: 1.4rem;
  color: var(--c-text-sub);
  line-height: 1.9;
  margin-bottom: 32px;
}

/* --------------------------------------------------------------------------
   Tagline
   -------------------------------------------------------------------------- */
.p-tagline {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  padding: 80px 24px;
  font-family: "Zen Old Mincho", serif;
  font-weight: 400;
  font-style: normal;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.l-footer {
  background-color: var(--c-navy-dark);
  color: var(--c-white);
  padding: 64px 0 0;
}

.l-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.l-footer__logo-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.l-footer__logo-icon {
  width: 24px;
  height: 24px;
}

.l-footer__address,
.l-footer__tel {
  font-size: 1.3rem;
  opacity: 0.85;
  line-height: 1.8;
}

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

.l-footer__nav-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.l-footer__nav-list li {
  margin-bottom: 12px;
}

.l-footer__nav-list a {
  font-size: 1.3rem;
  opacity: 0.85;
}

.l-footer__copyright {
  text-align: center;
  font-size: 1.1rem;
  opacity: 0.6;
  padding: 24px 0;
}

/* --------------------------------------------------------------------------
   Archive (index.php fallback)
   -------------------------------------------------------------------------- */
.p-archive {
  padding: 100px 0;
}

.p-archive__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.p-archive__item h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 12px;
}

.p-archive__item p {
  font-size: 1.2rem;
  color: var(--c-text-sub);
}

/* ==========================================================================
   Responsive (Tablet / Smartphone)
   ========================================================================== */

/* ---------------- Tablet ---------------- */
@media screen and (max-width: 1024px) {
  .p-business__card {
    grid-template-columns: 1fr;
  }

  .p-business__img {
    flex-direction: row;
  }

  .p-business__img-item {
    height: 220px;
  }

  .p-reason__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-about__inner {
    gap: 40px;
  }

  .p-message__inner {
    gap: 40px;
  }

  .p-archive__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------- Smartphone ---------------- */
@media screen and (max-width: 767px) {
  html {
    font-size: 55%;
  }

  .l-inner {
    padding: 0 20px;
  }

  /* Header */
  .l-header {
    height: var(--header-height-sp);
  }

  .l-header__nav {
    position: fixed;
    top: var(--header-height-sp);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height-sp));
    background-color: var(--c-white);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .l-header__nav.is-active {
    transform: translateX(0);
  }

  .l-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px;
  }

  .l-header__nav-list li {
    width: 100%;
    border-bottom: 1px solid var(--c-border);
  }

  .l-header__nav-list a {
    display: block;
    padding: 20px 0;
  }

  .l-header__menu-btn {
    display: flex;
  }

  /* Hero */
  .p-hero {
    padding: 24px 0 0;
  }

  .p-hero__images {
    gap: 8px;
  }

  .p-hero__copy {
    font-size: 2.4rem;
    padding-top: 28px;
  }

  /* About */
  .p-about {
    padding: 64px 0;
  }

  .p-about__inner {
    flex-direction: column;
  }

  .p-about__img {
    width: 100%;
  }

  .p-about__title {
    font-size: 2.1rem;
  }

  /* Stats */
  .p-stats__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  .p-stats__item {
    border-left: none;
    padding: 0;
  }

  .p-stats__note {
    display: none;
  }

  /* Business */
  .p-business {
    padding: 64px 0;
  }

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

  .p-business__list {
    grid-template-columns: 1fr;
  }

  .p-business__img {
    flex-direction: column;
  }

  .p-business__img-item {
    height: 200px;
  }

  /* Reason */
  .p-reason {
    padding: 64px 0;
  }

  .p-reason__list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* News */
  .p-news {
    padding: 64px 0;
  }

  .p-news__item {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .p-news__title {
    flex: 1 0 100%;
  }

  /* Message */
  .p-message {
    padding: 64px 0;
  }

  .p-message__inner {
    flex-direction: column;
  }

  .p-message__img {
    flex: 0 0 auto;
    width: 200px;
    margin: 0 auto;
  }

  .p-message__quote {
    font-size: 1.8rem;
  }

  /* Tagline */
  .p-tagline {
    font-size: 1.8rem;
    padding: 56px 20px;
  }

  /* Footer */
  .l-footer__inner {
    flex-direction: column;
    gap: 32px;
  }

  .l-footer__nav {
    gap: 32px;
  }

  .p-archive__list {
    grid-template-columns: 1fr;
  }
}
