/*
Theme Name: WithTrust
Author: AIM
Version: 1.0
*/

/* ========================================
   RESET
======================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ========================================
   HEADER / LOGO / MENU
======================================== */

.site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

/* TOPではヘッダーロゴ非表示 */
.home .site-header .site-logo,
.front-page .site-header .site-logo {
  display: none;
}

/* 下層ページロゴ */
.site-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-logo img {
  width: 190px;
  height: auto;
  display: block;
}

/* ハンバーガー固定 */
.menu-trigger {
  position: fixed;
  top: 34px;
  left: 32px;
  width: 42px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 3000;
  padding: 0;
}

.menu-trigger span {
  display: block;
  width: 100%;
  height: 1px;
  background: #111;
  position: absolute;
  left: 0;
  transition: 0.4s ease;
}

.menu-trigger span:first-child {
  top: 8px;
}

.menu-trigger span:last-child {
  bottom: 8px;
}

/* OPEN時 */
.menu-open .menu-trigger span:first-child {
  top: 50%;
  transform: rotate(25deg);
}

.menu-open .menu-trigger span:last-child {
  bottom: auto;
  top: 50%;
  transform: rotate(-25deg);
}

/* オーバーレイメニュー */
.global-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255,255,255,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.45s ease;
}

.menu-open .global-menu {
  opacity: 1;
  visibility: visible;
}

.global-menu-inner {
  text-align: center;
}

/* メニュー内ロゴ */
.menu-logo {
  margin: 0 auto 64px;
  max-width: 260px;
  padding: 0 32px;
}

.menu-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* メニュー */
.global-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.global-menu li {
  margin: 18px 0;
}

.global-menu a {
  font-size: 28px;
  letter-spacing: 0.14em;
  font-weight: 300;
  text-transform: uppercase;
}

/* ========================================
   FRONT PAGE
======================================== */

.front-page {
  overflow: hidden;
}

/* ========================================
   FV
======================================== */

.fv {
  position: relative;
  min-height: 100vh;
  padding: 120px 60px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f7f5;
}

.fv-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.fv-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  transform: scale(1.05);
}

/* FVロゴ */
.fv-logo {
  margin: 0 auto 40px;
  max-width: 420px;
  padding: 0 32px;
}

.fv-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.fv-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  text-align: center;
}

.fv-sub {
  margin: 0 0 24px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: #777;
}

.fv h1 {
  margin: 0 0 40px;
  font-size: clamp(42px, 7vw, 92px);
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.fv-text {
  max-width: 620px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 2.2;
  color: #555;
}

/* ========================================
   SECTION
======================================== */

.section {
  padding: 140px 60px;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-inner.wide {
  max-width: 1200px;
}

.section-label {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: #777;
}

.section h2 {
  margin: 0 0 48px;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.4;
  font-weight: 300;
}

.section p {
  font-size: 15px;
  line-height: 2.2;
  color: #444;
}

/* ========================================
   SERVICE
======================================== */

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  margin-top: 80px;
}

.service-item {
  padding-top: 24px;
  border-top: 1px solid #ddd;
}

.service-item span {
  display: block;
  margin-bottom: 20px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: #999;
}

.service-item h3 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 300;
}

/* ========================================
   ACTIVITY
======================================== */

.activity-image {
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.activity-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   CONTACT
======================================== */

.section-contact {
  background: #111;
  color: #fff;
  text-align: center;
}

.section-contact p,
.section-contact .section-label {
  color: rgba(255,255,255,0.7);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  padding: 18px 42px;
  border: 1px solid #fff;
  font-size: 12px;
  letter-spacing: 0.2em;
  transition: 0.3s;
}

.btn:hover {
  background: #fff;
  color: #111;
}

/* ========================================
   PAGE
======================================== */

.page-main {
  padding-top: 40px;
}

.page-hero {
  padding: 120px 60px 80px;
  text-align: center;
  background: #f7f7f5;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 300;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 28px 140px;
}

/* ========================================
   FOOTER
======================================== */

.site-footer {
  padding: 80px 24px;
  background: #111;
  color: #fff;
  text-align: center;
}

.footer-logo {
  margin: 0 0 16px;
  letter-spacing: 0.18em;
  font-size: 18px;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 767px) {

  .site-header {
    min-height: 96px;
    padding: 28px 20px;
  }

  .site-logo img {
    width: 150px;
  }

  .menu-trigger {
    top: 28px;
    left: 22px;
    width: 34px;
    height: 24px;
  }

  .menu-logo {
    max-width: 220px;
    margin-bottom: 56px;
  }

  .global-menu a {
    font-size: 22px;
  }

  .fv {
    padding: 140px 28px 80px;
  }

  .fv h1 {
    font-size: 42px;
  }

  .fv-logo {
    max-width: 320px;
    margin-bottom: 48px;
  }

  .section {
    padding: 90px 28px;
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .page-hero {
    padding: 100px 28px 60px;
  }

}

/* ========================================
   TOP PAGE HEADER
======================================== */

.home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 0;
  padding: 0;
}

.home .menu-trigger {
  position: absolute;
  top: 34px;
  left: 32px;
}

@media (max-width: 767px) {

  .home .menu-trigger {
    top: 24px;
    left: 22px;
  }

}