/*
Theme Name: FOR LIFE Inc.
Theme URI: 
Author: Toru Kasuya
Author URI: 
Description: FOR LIFE Inc. Portfolio Theme
Version: 1.0.0
Text Domain: forlife
*/

/* ========================================
   Base & Reset
======================================== */
:root {
  --font-inter: 'Inter', sans-serif;
  --color-nav: #051211;
  --color-white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-inter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   First View (FV)
======================================== */
.fv {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fv-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* 背景画像を画面いっぱいにカバー */
.fv-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --------------------
   Header
-------------------- */
.header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 40px 28px 38px; /* Figma: top 28px, left 38px に準拠 */
  z-index: 10;
}

.header-logo img {
  width: 46px;
  height: auto; /* 比率を維持 */
}

.header-nav-list {
  display: flex;
  gap: 27px; /* TopとPortfolioの隙間（51px - 24px = 27px） */
  list-style: none;
}

.header-nav-list a {
  text-decoration: none;
  color: var(--color-nav);
  font-size: 12px;
  font-weight: 500;
  line-height: 13px;
  transition: opacity 0.3s ease;
}

.header-nav-list a:hover {
  opacity: 0.6;
}

/* --------------------
   FV Content (中央のテキスト)
-------------------- */
.fv-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 13px; /* Figma: gap 13px に準拠 */
  padding: 0 20px;
  z-index: 10;
}

.fv-title {
  color: var(--color-white);
  font-size: 44px;
  font-weight: 600;
  line-height: 40px;
  text-align: center;
}

.fv-subtitle {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* ========================================
   Utility
======================================== */
.u-keep {
  display: inline-block;
}

/* ========================================
   Concept Section
======================================== */
.concept {
  position: relative;
  width: 100%;
  background-color: #EFF2D2;
}

.concept-inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 450px; /* Figmaの背景コンテナ高さ */
  margin: 0 auto;
}

.concept-title {
  position: absolute;
  width: auto; /* Figmaの180pxでは幅が足りず改行されるためautoに変更 */
  white-space: nowrap;
  height: 81px;
  left: 206px;
  top: 183px;
  color: #051211;
  font-size: 24px;
  font-weight: 700;
  line-height: 39px;
  letter-spacing: 0.04em;
}

.concept-desc {
  position: absolute;
  width: 519px;
  height: 204px;
  left: 532px;
  top: 126px;
  color: #040404;
  font-size: 12px;
  font-family: '.SF NS Mono', 'SF Mono', Consolas, monospace;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.12px;
  white-space: nowrap; /* ブラウザの自動折り返しを防ぎ、<br>のみで改行させる */
}


/* ========================================
   Portfolio Section
======================================== */
.portfolio {
  position: relative;
  width: 100%;
  background-color: #EBEBEB; /* 推測値:親背景が透けるデザインだが単色で代用 */
}

.portfolio-inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  height: 1064px;
  margin: 0 auto;
}

/* Nav */
.portfolio-nav {
  position: absolute;
  left: 103px;
  top: 89px;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}
.portfolio-title {
  color: #051211;
  font-size: 24px;
  font-family: Inter, sans-serif;
  font-weight: 700;
  line-height: 36px;
}
.portfolio-cats {
  display: inline-flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.portfolio-cats li {
  color: #051211;
  font-size: 16px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  line-height: 16px;
  cursor: pointer;
}

/* Item Base */
.portfolio-item {
  position: absolute;
  width: 315px;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 7px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.portfolio-item:hover {
  opacity: 0.8;
}
.portfolio-item img {
  display: block;
  width: 315px;
  height: 315px;
  object-fit: cover;
}
.portfolio-item-title {
  color: #051211;
  font-size: 14px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  line-height: 16px;
}

/* Item Positions */
.item-logo  { left: 150px; top: 216px; }
.item-card  { left: 482px; top: 216px; }
.item-vibi  { left: 815px; top: 216px; }
.item-flyer { left: 150px; top: 618px; }
.item-sign  { left: 482px; top: 618px; }
.item-goods { left: 814px; top: 618px; }


/* ========================================
   Footer Section
======================================== */
.footer {
  background-color: #051211;
  width: 100%;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 153px 85px 140px; /* Figmaから抽出 */
  height: 360px; /* 固定高さ */
  display: flex;
  flex-direction: column;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 100%;
}

/* Footer Nav (左側) */
.footer-nav {
  display: flex;
  gap: 40px;
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
}
.footer-nav-col a {
  color: white;
  text-decoration: none;
  font-family: Inter, sans-serif;
}
.footer-nav-col > a:first-child {
  font-size: 20px;
  font-weight: 500;
  height: 30px;
  display: flex;
  align-items: center;
}
.nav-mt {
  margin-top: 28px;
  font-size: 20px;
  font-weight: 500;
  height: 30px;
  display: flex;
  align-items: center;
}
.nav-sub-col {
  margin-top: 58px;
  gap: 0;
}
.nav-sub-col a {
  font-size: 15px;
  font-weight: 500;
  height: 30px;
  display: flex;
  align-items: center;
}
.nav-sub-col > a:first-child {
  font-size: 15px;
}

/* Footer Info (右側) */
.footer-info {
  display: flex;
  align-items: flex-start;
  margin-top: 61px; /* 133px - 72px = 61px */
  gap: 32px;
}
.footer-company {
  color: white;
  font-size: 24px;
  font-weight: 600;
  font-family: Inter, sans-serif;
  padding-top: 4px;
}
.footer-line {
  width: 1px;
  height: 73px;
  background-color: white;
}
.footer-address-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.footer-address-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.footer-address-text p,
.footer-address-text a {
  color: white;
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer-address-text a:hover {
  opacity: 0.7;
}
.footer-address-text p {
  line-height: 22px;
}
.footer-address-text .footer-mail {
  line-height: 20px;
  margin-top: 8px;
}
.footer-insta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  line-height: 20px;
}
.footer-copy {
  color: white;
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: 8px;
  letter-spacing: 0.24px;
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 52px; /* 267 - 133 - 82 = 52px */
}

/* ========================================
   Subpage: Logo Design & Others
======================================== */
.page-logo {
  width: 100%;
  background-color: var(--color-white);
}
.page-logo-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 56px;
}
.page-logo-title {
  color: #051211;
  font-size: 20px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  line-height: 35px;
}
.gallery-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 100px 40px;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: #f5f5f5;
}
.gallery-title {
  color: #040404;
  font-size: 11px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  line-height: 16px;
  order: 2;
}

/* ========================================
   Subpage: VI / CI
======================================== */
.vi-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 108px;
}
.vi-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
}
.vi-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.vi-title {
  color: #040404;
  font-size: 11px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  line-height: 16px;
  order: 2;
}

/* ========================================
   Subpage: Flyer
======================================== */
.flyer-content {
  width: 100%;
}
.flyer-grid-top {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 42px;
  margin-bottom: 56px;
}
.flyer-grid-bottom {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.flyer-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.flyer-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background-color: #f5f5f5;
}
.flyer-title {
  color: #040404;
  font-size: 11px;
  font-family: Inter, sans-serif;
  font-weight: 500;
  line-height: 16px;
  order: 2;
}

/* ========================================
   Responsive (Tablet & Smartphone)
======================================== */
@media screen and (max-width: 1280px) {
  /* ---------- Concept (Tablet) ---------- */
  .concept-inner {
    height: auto;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }
  .concept-title,
  .concept-desc {
    position: static;
    width: 100%;
    height: auto;
    white-space: normal;
    text-align: center;
  }
  .concept-desc {
    max-width: 800px;
    text-align: left;
  }

  /* ---------- Portfolio (Tablet) ---------- */
  .portfolio-inner {
    height: auto;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .portfolio-nav {
    position: static;
    width: 100%;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 60px;
  }
  .portfolio-cats {
    flex-wrap: wrap;
    justify-content: center;
  }
  .portfolio-list {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 20px;
  }
  .portfolio-item {
    position: static;
    width: 100%;
    align-items: center; /* 画像等のカード要素を中央揃えに */
    gap: 5px;
  }
  .portfolio-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 400px; /* 画像が大きくなりすぎないように制限 */
  }
  .portfolio-top {
    position: static;
    margin-top: 60px;
    color: #051211;
  }

  /* ---------- Footer (Tablet) ---------- */
  .footer-inner {
    padding: 60px 40px;
    height: auto;
  }
  .footer-content {
    flex-direction: column;
    gap: 60px;
  }
  .footer-info {
    margin-top: 0;
  }
  .nav-sub-col {
    margin-top: 0;
  }
  .nav-mt {
    margin-top: 15px;
  }
  .footer-copy {
    padding-top: 40px;
  }

  /* ---------- Subpage (Tablet) ---------- */
  .page-logo-inner {
    padding: 60px 40px;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .vi-list {
    gap: 80px;
  }
  .flyer-grid-top {
    gap: 30px;
    margin-bottom: 40px;
  }
  .flyer-grid-bottom {
    gap: 30px;
  }
}

@media screen and (max-width: 768px) {
  .header {
    padding: 20px;
  }
  .header-logo img {
    width: 36px;
  }
  .fv-title {
    font-size: 32px;
    line-height: 1.2;
  }
  .fv-subtitle {
    font-size: 14px;
  }
  
  /* Concept & Portfolio (SP) */
  .concept-inner,
  .portfolio-inner {
    padding: 60px 20px;
  }
  .portfolio-nav {
    margin-bottom: 40px;
  }
  .portfolio-inner {
    grid-template-columns: 1fr;
    gap: 80px 0;
  }

  /* Footer (SP) */
  .footer-inner {
    padding: 40px 20px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 30px;
  }
  .footer-info {
    flex-direction: column;
    gap: 20px;
  }
  .footer-line {
    width: 100%;
    height: 1px;
  }
  .footer-address-col {
    gap: 30px;
  }
  .footer-copy {
    padding-top: 0;
  }

  /* ---------- Subpage (SP) ---------- */
  .page-logo-inner {
    padding: 40px 20px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 100px 15px; /* 縦の間隔を広げる */
  }
  .vi-list {
    gap: 60px;
  }
  .flyer-grid-top,
  .flyer-grid-bottom {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }
}

.portfolio-cats li a {
  color: inherit;
  text-decoration: none;
  font-size: inherit;
  transition: opacity 0.3s ease;
}
.portfolio-cats li a:hover {
  opacity: 0.6;
}
