@charset "UTF-8";

/* ==========================================================================
   Base Layout Settings（全体共通設定）
   ========================================================================== */
body {
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 固定ヘッダーの高さ分、メインコンテンツの上部に余白を作る */
.l-main {
  padding-top: 80px;
}

/* スマホ時はヘッダーの高さが60pxに縮むため、余白も合わせる */
@media (max-width: 768px) {
  .l-main {
    padding-top: 60px;
  }
}

/* ==========================================================================
   Header（ヘッダー全体）
   ========================================================================== */
.l-header {
  width: 100%;
  height: 80px;
  background-color: var(--color-bg-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed; /* 上部に固定 */
  top: 0;
  left: 0;
  z-index: 1000;
}

.l-header__inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ロゴ */
.l-header__logo img {
  height: 80px;
  width: auto;
  vertical-align: middle;
}

/* ナビゲーション（PC用） */
.l-header__menu {
  display: flex;
  align-items: center;
  gap: 30px; /* メニュー間の余白 */
}

@media screen and (max-width: 1080px) {
  .l-header__menu {
    display: none;
  }
}

.l-header__menu > li > a {
  font-weight: bold;
  font-size: 15px;
  color: var(--color-text-main);
  padding: 10px 0;
  transition: color 0.3s ease;
}

.l-header__menu > li > a:hover {
  color: var(--color-accent-orange); /* 共通アクセントオレンジに統一 */
}

/* お問い合わせボタン（アクセント） */
.l-header__menu .c-btn-contact {
  background-color: var(--color-primary);
  color: var(--color-text-main);
  padding: 12px 24px;
  border-radius: 25px;
  border: 1px solid var(--color-text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.l-header__menu .c-btn-contact:hover {
  background-color: var(--color-text-main);
  color: var(--color-primary);
}

/* 2階層目（ブランド一覧のサブメニュー） */
.l-header__menu .has-child {
  position: relative;
}

.l-header__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-bg-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 10px 0;
  width: 160px;
  display: none; /* 通常時は非表示 */
}

/* PC環境でホバーした時にサブメニューを表示 */
@media (min-width: 769px) {
  .l-header__menu .has-child:hover .l-header__submenu {
    display: block;
  }
}

.l-header__submenu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--color-text-sub);
}

.l-header__submenu li a:hover {
  background-color: var(--color-bg-gray);
  color: var(--color-accent-orange); /* 共通アクセントオレンジに統一 */
}

/* --------------------------------------------------------------------------
   Header Responsive（スマホ用設定）
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .l-header {
    height: 60px;
  }

  /* スマホ時はPC用ナビを一旦非表示 */
  .l-header__nav {
    display: none;
  }

  /* ハンバーガーボタン */
  .l-header__hamburger {
    display: block;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    position: relative;
    cursor: pointer;
  }

  .l-header__hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    left: 0;
    transition: all 0.3s ease;
  }

  .l-header__hamburger span:nth-child(1) { top: 0; }
  .l-header__hamburger span:nth-child(2) { top: 11px; }
  .l-header__hamburger span:nth-child(3) { top: 22px; }
}

@media (min-width: 769px) {
  .l-header__hamburger {
    display: none;
  }
}

/* ==========================================================================
   Footer（フッター全体）
   ========================================================================== */
.l-footer {
  position: relative; /* 絶対配置（absolute）の基準点にするため追加 */
  width: 100%;
  background-color: var(--color-primary);
  color: var(--color-text-main);
  padding: 100px 0 20px 0; /* 上部余白を広げて画像と文字の被りを防止 */
  margin-top: auto; /* 常に最下部に配置 */
}

/* フッター上部に配置する背景画像の設定 */
.l-footer__logo {
  position: absolute;
  top: 0;
  left: calc((100% - 1200px) / 2 + 20px); /* .l-footer__inner の max-width と padding に同期 */
  width: 350px; /* 画像の横幅（メニューブロック幅に合わせて調整可） */
  height: 60px; /* 画像の縦幅（実際の画像サイズに合わせて調整可） */
  background-image: url("../images/common/maxim-ehime_white.png");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  pointer-events: none; /* 画像の下にあるリンクをクリック可能にする */
}

.l-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* メニューの並び（1200px内で均等割り） */
.l-footer__nav {
  display: flex;
  justify-content: space-between;
  justify-content: flex-end;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

/* メニューの各縦列ブロック */
.l-footer__block {
  /*flex: 1;*/
  min-width: 150px;
}

/* メインメニュー */
.l-footer__main-link {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 15px;
}

.l-footer__main-link a {
  display: inline-block;
  transition: opacity 0.2s ease;
}

.l-footer__main-link a:hover {
  opacity: 0.7;
}

/* サブメニュー（縦並び） */
.l-footer__sub-menu li {
  margin-bottom: 10px;
}

.l-footer__sub-menu li a {
  font-size: 14px;
  color: var(--color-text-sub);
  display: inline-block;
  transition: opacity 0.2s ease;
}

.l-footer__sub-menu li a:hover {
  opacity: 0.7;
}

/* 区切り線 */
.l-footer__line {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.15); /* 自然な黒の透過線 */
  margin: 40px 0 30px 0;
}

/* 会社情報の配置 */
.l-footer__info-row {
  display: flex;
  justify-content: flex-end; /* 右寄せ */
  margin-bottom: 50px;
}

.l-footer__company {
  text-align: left;
  font-size: 15px;
  line-height: 1.8;
}

.l-footer__company-name {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 5px;
}

/* コピーライト */
.l-footer__copyright {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-sub);
}

/* --------------------------------------------------------------------------
   Footer Responsive（フッターのスマホ対応）
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .l-footer__logo {
    left: 20px;
  }
}
@media (max-width: 768px) {
  .l-footer {
    padding: 80px 0 20px 0;
  }

  .l-footer__logo {
    left: 20px; /* .l-footer__inner の padding に同期 */
    width: 240px; /* スマホ時のメニュー幅に最適化 */
    height: 40px;
  }

  .l-footer__nav {
    display: grid;
    gap: 0;
  }
  
  .l-footer__block {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 30px 20px;
  }
  
  .l-footer__block:last-of-type {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .l-footer__info-row {
    justify-content: flex-start;
    margin-bottom: 30px;
  }
  
  .l-footer__line {
    margin: 30px 0 20px 0;
  }
}

/* ==========================================================================
   Common Components（共通コンポーネントパーツ）
   ========================================================================== */

/* --------------------------------------------------------------------------
   共通見出しブロック（Service, Cases, Brands, Newsで使い回し）
   -------------------------------------------------------------------------- */
.c-section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: var(--space-heading-mb);
}

/* 日本語見出し（標準はオレンジの左線、修飾クラスで青に変更可能） */
.c-section-heading__ja {
  font-size: var(--font-size-h2-ja);
  font-weight: bold;
  color: var(--color-text-main);
  letter-spacing: 0.1em;
  padding-left: 16px;
  border-left: 6px solid var(--color-accent-orange); /* 初期値：オレンジ */
  line-height: 1.2;
}

/* 青色のボーダーに変えるための修飾クラス */
.c-section-heading.--blue .c-section-heading__ja {
  border-left-color: var(--color-accent-blue);
}

/* 英語見出し */
.c-section-heading__en {
  font-size: var(--font-size-h2-en);
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  font-family: var(--font-family-en);
}

.c-section-heading.--trans-black .c-section-heading__en {
  color: rgba(0, 0, 0, 0.4); /* Brands用の透かし黒 */
}

@media (max-width: 1080px) {
  .c-section-heading {
    margin-bottom: var(--space-heading-mb-sp);
  }
  .c-section-heading__ja { font-size: var(--font-size-h2-ja-sp); }
  .c-section-heading__en { font-size: var(--font-size-h2-en-sp); }
}

/* --------------------------------------------------------------------------
   共通矢印ボタン（Concept, Brands, Newsで使い回し）
   -------------------------------------------------------------------------- */
.c-btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 32px;
  background-color: var(--color-primary);
  color: var(--color-text-main);
  font-size: var(--font-size-body);
  font-weight: bold;
  text-decoration: none;
  border: 1px solid var(--color-text-main);
  border-radius: 30px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.c-btn-arrow::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--color-text-main);
  border-right: 2px solid var(--color-text-main);
  transform: rotate(45deg);
  margin-left: 16px;
  transition: transform 0.3s ease;
}

/* 白バージョン（修飾クラス） */
.c-btn-arrow.--white {
  background-color: var(--color-bg-white);
}

@media (hover: hover) {
  .c-btn-arrow:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  }
  .c-btn-arrow:not(.--white):hover {
    background-color: var(--color-primary);
  }
  .c-btn-arrow:hover::after {
    transform: translateX(4px) rotate(45deg);
  }
  /* 白バージョンのホバー */
  .c-btn-arrow.--white:hover {
    background-color: var(--color-text-main);
    color: var(--color-text-white);
  }
  .c-btn-arrow.--white:hover::after {
    border-top-color: var(--color-text-white);
    border-right-color: var(--color-text-white);
  }
}

@media (max-width: 768px) {
  .c-btn-arrow {
    width: 100%;
    max-width: 300px;
    font-size: var(--font-size-body-sp);
  }
}

/* ==========================================================================
   Lower Page Visual（下層ページ共通ヘッダーイメージ）
   ========================================================================== */
.p-page-visual {
  background-color: var(--color-primary);
  height: 180px;
}

.p-page-visual__inner {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .p-page-visual {
    height: 100px;
  }
  .p-page-visual__inner {
    width: 100%;
  }
}

/* ==========================================================================
   Lower Page Header（下層ページ共通ヘッダー）
   ========================================================================== */
.p-page-header {
  width: 100%;
  padding: 60px 20px 24px 20px;
  background-color: var(--color-bg-white);
}

.p-page-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between; /* 左右の端に寄せる */
  align-items: flex-end;          /* 下揃え */
  border-bottom: none; 
  padding-bottom: 8px;
}

/* --------------------------------------------------------------------------
   左側：ページタイトル
   -------------------------------------------------------------------------- */
.p-page-header__title-area {
  display: flex;
  flex-direction: column;
}

/* 日本語タイトル（左側に青いボーダー） */
.p-page-header__ja {
  font-size: 14px;
  color: var(--color-text-sub);
  font-weight: bold;
  line-height: 1;
  margin-bottom: 10px;
  border-left: 4px solid #1760ff; /* ニュース等と共通の青を指定 */
  padding-left: 10px;
}

/* 英語タイトル */
.p-page-header__en {
  font-size: 38px;
  font-weight: normal;
  color: var(--color-text-main);
  line-height: 1;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   右側：サブメニュー（上下ボーダーと「く」の字矢印）
   -------------------------------------------------------------------------- */
.p-page-header__sub-nav {
  margin-bottom: -4px; /* 英語タイトルのベースラインに目線を合わせる微調整 */
}

.p-page-header__sub-menu {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--color-text-main);
  border-bottom: 1px solid var(--color-text-main);
  padding: 16px 64px;
}

.p-page-header__sub-menu li {
  display: flex;
  align-items: center;
}

.p-page-header__sub-menu li a {
  font-size: 15px;
  font-weight: bold;
  color: var(--color-text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

/* 各サブメニューの頭に下向きの「く」を設置 */
.p-page-header__sub-menu li a::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-bottom: 2px solid var(--color-text-main);
  border-right: 2px solid var(--color-text-main);
  transform: rotate(45deg);
  margin-right: 8px;
  margin-top: -4px; /* 矢印の中心を文字の高さに合わせる調整 */
  transition: border-color 0.2s ease;
}

/* ホバー時にアクセントカラーへ変化 */
@media (hover: hover) {
  .p-page-header__sub-menu li a:hover {
    color: var(--color-accent-orange);
  }
  .p-page-header__sub-menu li a:hover::before {
    border-color: var(--color-accent-orange);
  }
}

/* --------------------------------------------------------------------------
   Responsive（スマホ対応）
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .p-page-header {
    padding: 40px 20px 20px 20px;
  }

  .p-page-header__inner {
    flex-direction: column;  /* スマホ時は縦並び */
    align-items: flex-start; /* 左寄せ */
    gap: 20px;
  }

  .p-page-header__en {
    font-size: 30px;
  }

  .p-page-header__sub-nav {
    width: 100%;
  }

  .p-page-header__sub-menu {
    justify-content: flex-start; /* スマホ時は左詰めに並べる */
    gap: 20px;
    width: 100%;
    padding-inline: 10px;
  }
}

/* --------------------------------------------------------------------------
   セクション共通見出し
   -------------------------------------------------------------------------- */
.p-section-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 56px;
}

/* 日本語見出し（左側にメインカラーの●） */
.p-section-title__ja {
  font-size: 16px;
  color: var(--color-text-main);
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
}

.p-section-title__ja::before {
  content: "●";
  color: var(--color-primary);
  margin-right: 0.5em;
  font-size: 0.9em;
}

/* 英語見出し */
.p-section-title__en {
  font-size: 32px;
  font-weight: normal;
  color: var(--color-text-sub);
  line-height: 1;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   スマホ用ハンバーガーボタン ＆ ドロワーメニュー
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ハンバーガーボタン（三本線）のアニメーション設定
   -------------------------------------------------------------------------- */
.l-header__hamburger {
  display: none;
}

@media screen and (max-width: 1080px) {
  .l-header__hamburger {
    display: block;
    position: relative;
    z-index: 9999; /* メニューより常に上に配置 */
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  /* 三本線の共通スタイル */
  .l-header__hamburger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-main);
    border-radius: 2px;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
  }

  /* 三本線の初期位置 */
  .l-header__hamburger span:nth-child(1) { top: 0; }
  .l-header__hamburger span:nth-child(2) { top: 11px; }
  .l-header__hamburger span:nth-child(3) { top: 22px; }

  /* JSで「is-open」がついたとき、三本線を「×」に変形させる */
  .l-header__hamburger.is-open span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
  }
  .l-header__hamburger.is-open span:nth-child(2) {
    opacity: 0;
  }
  .l-header__hamburger.is-open span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
  }

  /* --------------------------------------------------------------------------
     2. スマートフォン用ドロワーメニュー（ネスト階層の最適化）
     -------------------------------------------------------------------------- */
  .p-drawer-menu {
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態は画面外に隠す */
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95); /* 背景色と透過度（適宜調整） */
    z-index: 9998; /* ハンバーガーボタン(9999)の真下に配置 */
    padding: 80px 24px 40px; /* 上部はヘッダーと被らないように余白を確保 */
    overflow-y: auto;
    transition: right 0.3s ease;
  }

  /* JSで「is-open」が付与されたら画面内にスライドイン */
  .p-drawer-menu.is-open {
    right: 0;
  }

  /* 親メニューリスト */
  .p-drawer-menu__list {
    display: flex;
    flex-direction: column;
    gap: 16px; /* メニュー項目間の縦の隙間 */
  }

  /* メニュー内のリンク共通スタイル */
  .p-drawer-menu__list a {
    display: block;
    color: var(--color-text-main);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 0;
  }

  /* 子メニュー（事例紹介・ブランド一覧の下層リスト） */
  .p-drawer-menu__submenu {
    display: flex;
    flex-direction: column;
    gap: 8px; /* 子メニュー間を少し狭める */
    margin-top: 8px;
    padding-left: 16px; /* 左インデントを設けて階層構造を視覚化 */
    border-left: 2px solid #ddd; /* 左側に薄いガイド線を引いてデザイン性を担保 */
  }

  /* 子メニュー内のリンクスタイル */
  .p-drawer-menu__submenu a {
    font-size: 14px; /* 子階層なので文字サイズを少し小さく */
    font-weight: 400; /* 太字を解除して親メニューとメリハリをつける */
    color: #666; /* 文字色を少しマイルドに */
    padding: 4px 0;
  }
}

/* --------------------------------------------------------------------------
   2. ドロワーメニュー（スマホ用全画面メニュー）
   -------------------------------------------------------------------------- */
.p-drawer-menu {
  display: none;
}

@media screen and (max-width: 1080px) {
  .p-drawer-menu {
    display: block;
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態：画面の右外側に隠しておく */
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98); /* 白背景（ほんのり透過） */
    z-index: 9998;
    padding: 70px 40px 20px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* JSで「is-open」がついたとき、画面内にスライドインさせる */
  .p-drawer-menu.is-open {
    right: 0;
  }

  /* メニュー内の装飾 */
  .p-drawer-menu__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .p-drawer-menu__list a {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }
}

/* ==========================================================================
   4. オリジナル商品企画：制作フロー
   ========================================================================== */
.p-time-flow__timeline {
  position: relative;
  max-width: 800px;
  margin: 40px auto 0;
}

.p-time-flow__item {
  display: flex;
  gap: 24px;
  position: relative;
  margin-bottom: 40px;
}

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

.p-time-flow__marker-box {
  width: 42px;
  position: relative;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

/* ドットの「親の枠」を基準にして下に線を伸ばし、はみ出さずに繋ぐ */
.p-time-flow__marker-box::before {
  content: "";
  position: absolute;
  top: 13px; /* ●の中心（margin-top 6px + 半径7px）からスタート */
  height: calc(100% + 40px); /* 自分の高さ100% ＋ 次の項目との隙間40px分をすべて埋める */
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background-color: var(--color-primary); /* 縦線：メインカラー */
  z-index: 1;
}

/* 一番最後のアイテム（04）のドットからは、下に線を出さない */
.p-time-flow__item:last-child .p-time-flow__marker-box::before {
  display: none;
}

/* 番号の前の● */
.p-time-flow__dot {
  width: 14px;
  height: 14px;
  background-color: var(--color-primary);
  border-radius: 50%;
  margin-top: 6px; /* 数字と見出しの並びの中心に合わせる */
  position: relative;
  z-index: 2;
}

.p-time-flow__content {
  flex: 1;
  padding: 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
}

/* 01などの数字の横に見出しを配置するコンテナ */
.p-time-flow__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.p-time-flow__num {
  font-family: var(--font-family-base);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1;
}

.p-time-flow__item-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1;
}

.p-time-flow__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-sub);
  padding-left: 44px;
}

/* 備考用リスト */
.ets li {
  position: relative;
  padding-left: 1.2em; /* ※印の幅＋少しの余白 */
  font-size: 0.8rem;
  line-height: 1.6;
  color: #666666;
}

/* 行頭に「※」を固定 */
.ets li::before {
  content: '\0203B'; /* 米印（※） */
  position: absolute;
  left: 0;
  top: 0;
}

@media (max-width: 768px) {
  .sp_none {
    display: none;
  }
}
@media (min-width: 769px) {
  .pc_none {
    display: none;
  }
}
