/*
Theme Name: Inoharu Portfolio
Author: inoharu
Description: オリジナルポートフォリオテーマ
Version: 1.0.0
*/

:root {
  --color-black: #111111;
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-text-sub: #555555;
  --color-text-light: #888888;
  --color-accent: #D0FF00;
  --color-placeholder: #efefef;
  --color-placeholder-txt: #aaaaaa;

  --font-en: 'Montserrat', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;

  --fz-nav: 13px;
  --fz-h2-section: 36px;
  --fz-h2-card: 28px;
  --fz-h3-card: 22px;
  --fz-body: 14px;
  --fz-small: 12px;
  --fz-works-catch: 22px;
  --fz-civic-logo: 28px;

  --fw-nav: 700;
  --fw-bold: 700;
  --fw-black: 900;
  --ls-nav: 0.12em;
  --ls-heading: 0.04em;

  --logo-bar-padding-y: 18px;
  --nav-padding-y: 14px;
  --section-padding-y: 72px;
  --section-padding-x: 40px;
  --card-padding: 20px;
  --card-gap: 24px;
  --card-radius: 12px;
  --card-shadow: 5px 5px 0 #111111;
  --btn-radius: 40px;
  --btn-w: 250px;
  --btn-h: 51px;
  --container-max: 960px;
  --container-wide: 1100px;
  --z-header: 100;
  --transition: 0.25s ease;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--font-jp);
  font-size:var(--fz-body);
  color:var(--color-text);
  background-color:var(--color-bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.7;
  overflow-x:hidden;
}
a{text-decoration:none;color:inherit}
ul,ol{list-style:none}
img,svg{display:block;max-width:100%}
button{background:transparent;border:none;cursor:pointer;font:inherit;padding:0}

.img-placeholder{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  background-color:var(--color-placeholder);
  color:var(--color-placeholder-txt);
  font-size:11px;font-family:var(--font-jp);
  line-height:1.6;text-align:center;gap:6px;
}
.img-placeholder__icon{width:28px;height:28px;opacity:.4}

.btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:var(--btn-w);height:var(--btn-h);
  border-radius:var(--btn-radius);
  font-family:var(--font-jp);font-size:var(--fz-body);font-weight:var(--fw-bold);
  letter-spacing:0.04em;cursor:pointer;text-align:center;white-space:nowrap;
  position:relative;overflow:hidden;isolation:isolate;transition:color var(--transition);
}
.btn--dark{background-color:var(--color-black);color:var(--color-white);border:none}
.btn--dark::before{
  content:'';position:absolute;inset:0;
  background-color:var(--color-accent);
  transform:translateX(-100%);
  transition:transform var(--transition);
  border-radius:inherit;z-index:-1;
}
.btn--dark:hover::before{transform:translateX(0)}
.btn--dark:hover{color:var(--color-black)}

.site-header{
  position:sticky;top:0;left:0;width:100%;
  z-index:var(--z-header);background-color:var(--color-white);
}

.site-header__logo-bar{
  width:100%;background-color:var(--color-white);
  display:flex;justify-content:center;align-items:center;
  padding-block:var(--logo-bar-padding-y);
}
.site-header__logo{display:inline-flex;align-items:center;justify-content:center;transition:opacity var(--transition)}
.site-header__logo:hover{opacity:.75}
.site-header__logo-img{width:434px;height:61px;max-width:100%}

.site-header__nav{width:100%;background-color:var(--color-white)}
.site-header__nav-list{
  display:flex;flex-direction:row;justify-content:center;align-items:center;
  gap:80px;padding-block:var(--nav-padding-y);flex-wrap:nowrap;list-style:none;
}

/* WordPressのメニュータグに対応させるCSS */
.site-header__nav-list .menu-item a {
  display:inline-block;font-family:var(--font-en);
  font-size:var(--fz-nav);font-weight:var(--fw-nav);letter-spacing:var(--ls-nav);
  color:var(--color-text);padding-block:6px;position:relative;transition:color var(--transition);
}
.site-header__nav-list .menu-item a::after {
  content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);
  width:0;height:calc(var(--fz-nav) / 2);
  background-color:var(--color-accent);border-radius:2px;
  transition:width var(--transition);
}
.site-header__nav-list .menu-item a:hover::after,
.site-header__nav-list .current-menu-item a::after {width:100%}

.site-header__hamburger{
  display:none;flex-direction:column;justify-content:center;align-items:center;
  gap:5px;width:44px;height:44px;margin-left:auto;margin-right:16px;
}
.site-header__hamburger-line{
  display:block;width:24px;height:2px;
  background-color:var(--color-black);border-radius:2px;
  transition:transform var(--transition),opacity var(--transition);
}
.site-header__hamburger--active .site-header__hamburger-line:nth-child(1){transform:translateY(7px) rotate(45deg)}
.site-header__hamburger--active .site-header__hamburger-line:nth-child(2){opacity:0;transform:scaleX(0)}
.site-header__hamburger--active .site-header__hamburger-line:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.hero-image{width:100%;aspect-ratio:1442/457;max-height:457px}

.about-news{
  padding-block:var(--section-padding-y);padding-inline:var(--section-padding-x);
  background-color:var(--color-white);
}
.about-news__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch; 
}

.about-news__col--left {
  display: flex;
  flex-direction: column;
  height: 100%; 
}

/* --- 0. 親要素：中身をすべて中央に集める命令 --- */
.about-container, 
.about {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important; /* 子要素を横方向の中央に寄せる */
  text-align: center;
  width: 100%;
}

/* --- 1. カード本体：最大幅を維持して中央寄せ --- */
.about-card {
  height: auto; 
  display: flex;
  flex-direction: column;
  /* カード内のテキスト自体も中央にしたい場合は center、左寄せなら flex-start */
  align-items: center; 
  background-color: var(--color-white, #fff);

  width: 100%;           /* 基本は幅いっぱい */
  max-width: 800px;      /* ただし800px以上にはならない */
  margin: 0 auto 32px !important; /* 上下中央寄せの決定打 */

  border: 4px solid #111 !important;
  border-radius: 16px !important;
  box-shadow: 12px 12px 0 #111 !important;
  padding: 40px !important;
}

/* --- 2. ボタン：カードの外にある場合も中にある場合も中央へ --- */
.about-btn, 
.about-card a.button,
.about a.button {
  display: inline-block !important; /* 中身の幅に合わせる */
  width: auto !important;
  min-width: 200px;      /* ボタンらしい幅を持たせる */
  margin: 24px auto 0 !important;
  text-align: center;
  
  /* ボタンの配置を強烈に中央固定する */
  align-self: center !important; 
}
.about-card__title{
  font-family:var(--font-en);font-size:var(--fz-h2-card);
  font-weight:var(--fw-black);letter-spacing:var(--ls-heading);margin-bottom:12px;
}
.about-card__text{
  font-family:var(--font-jp);font-size:var(--fz-small);
  color:var(--color-text);line-height:2;margin-bottom:16px;
}
.about-card__btn-wrap{margin-top:4px}

.about-news__col--right{display:flex;flex-direction:column;gap:28px}
.news-block{text-align:center}
.news-block__title{
  font-family:var(--font-en);font-size:var(--fz-h2-card);
  font-weight:var(--fw-black);letter-spacing:var(--ls-heading);
  text-align:center;margin-bottom:4px;
}
.news-block__sub{font-size:var(--fz-small);color:var(--color-text-sub);margin-bottom:16px}

.sns-block{text-align:center}
.sns-block__title{font-family:var(--font-en);font-size:24px;font-weight:var(--fw-black);margin-bottom:14px}
.sns-block__list{display:flex;justify-content:center;gap:16px}
.sns-img-placeholder {
  width: 101px;
  height: 101px;
  border-radius: 14px;
  /* ★追加：動きを滑らかにする（0.25秒かけて変化） */
  transition: transform var(--transition), box-shadow var(--transition);
}

/* ★追加：ホバーした時の動き */
.sns-img-placeholder:hover {
  transform: translateY(-6px); /* 6px上に持ち上げる */
  box-shadow: 0 10px 20px rgba(0,0,0,0.15); /* ふわっとした影を付けて浮遊感を出す */
}
.solution{
  padding-block:var(--section-padding-y);padding-inline:var(--section-padding-x);
  background-color:var(--color-white);
}
.solution__inner{max-width:var(--container-max);margin-inline:auto}
.solution__heading{text-align:center;margin-bottom:36px}
.solution__heading-title{
  font-family:var(--font-en);font-size:var(--fz-h2-section);
  font-weight:var(--fw-black);letter-spacing:var(--ls-heading);line-height:1;
}
.solution__heading-sub{font-family:var(--font-jp);font-size:var(--fz-small);color:var(--color-text-sub);margin-top:4px}

.solution__grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--card-gap)}

.solution-card{
  background-color:var(--color-white);border:none;
  border-radius:var(--card-radius);padding:16px 16px 14px;
  text-align:center;box-shadow:var(--card-shadow);
  transition:transform var(--transition),box-shadow var(--transition);
}
.solution-card:hover{transform:translate(-2px,-2px);box-shadow:7px 7px 0 var(--color-black)}
.solution-card__title{
  font-family:var(--font-en);font-size:var(--fz-h3-card);
  font-weight:var(--fw-bold);letter-spacing:0.02em;margin-bottom:2px;
}
.solution-card__sub{
  font-family:var(--font-jp);font-size:var(--fz-small);
  color:var(--color-text-sub);margin-bottom:10px;
}
.solution-img-placeholder{width:250px;height:200px;max-width:100%;border-radius:6px;margin-inline:auto}

.works{padding-block:var(--section-padding-y);background-color:var(--color-white)}
.works__heading{text-align:center;padding-inline:var(--section-padding-x);margin-bottom:36px}
.works__title{
  font-family:var(--font-en);font-size:var(--fz-h2-section);
  font-weight:var(--fw-black);letter-spacing:var(--ls-heading);line-height:1;
}
.works__sub{font-family:var(--font-jp);font-size:var(--fz-small);color:var(--color-text-sub);margin-top:4px}

.works__slider{position:relative;overflow:hidden}
.works__track {
  display: flex;
  gap: 20px; /* 隙間を20pxに設定 */
  transition: transform 0.5s ease-in;
  will-change: transform;
}

.work-card__col {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 22px;
  aspect-ratio: 5 / 4; 
  min-height: auto; 
  border: none;
  border-radius: 16px;
  overflow: hidden;
}
.work-card__col--img{padding:0;overflow:hidden;background-color:#ffffff;}

.work-card__catch{font-family:var(--font-jp);font-size:var(--fz-works-catch);font-weight:var(--fw-bold);color:#000000;line-height:1.4;display:block;width: fit-content;background-color: var(--color-accent);padding: 0.1em 0.5em;box-decoration-break: clone;-webkit-box-decoration-break: clone;border-radius:10px;}
.work-card__brand {margin-top: 10px;display:block;width:fit-content;background-color:#ffffff;color: #000000 !important;font-size: 12px;padding: 2px 8px;font-weight: var(--fw-bold);}
.work-card__label{font-family:var(--font-jp);font-size:11px;color:var(--color-text-sub);margin-top:1px;line-height:1}
.work-card__civic-logo{font-family:var(--font-en);font-size:var(--fz-civic-logo);font-weight:var(--fw-black);line-height:1}
.work-card__civic-logo sup{font-size:14px}
.work-card__civic-sub{font-size:11px;color:var(--color-text-light);margin-top:1px}

.works__nav{
  display:flex;align-items:center;justify-content:center;
  gap:32px;padding-inline:var(--section-padding-x);margin-top:28px;
}
.works__arrow{
  display:flex;align-items:center;justify-content:center;
  width:55px;height:16px;
  transition:opacity var(--transition);
}
.works__arrow:hover{opacity:.45}
.works__arrow svg{width:100%;height:100%;overflow:visible}

.works__dots{display:flex;gap:8px;justify-content:center;margin-top:16px}
.works__dot{
  width:8px;height:8px;border-radius:50%;background:#ccc;border:none;
  cursor:pointer;transition:background var(--transition),transform var(--transition);
}
.works__dot--active{background:var(--color-black);transform:scale(1.3)}

.contact {
  padding-block: var(--section-padding-y);
  padding-inline: var(--section-padding-x);
  background-color: var(--color-white);
}
.contact__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  justify-content: center;
}
.contact__card {
  width: 100%;
  max-width: 580px;
  border: none;
  border-radius: var(--card-radius);
  padding: 56px 48px;
  text-align: center;
  box-shadow: var(--card-shadow);
  background-color: var(--color-white);
}
.contact__title {
  font-family: var(--font-en);
  font-size: var(--fz-h2-section);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-heading);
  line-height: 1;
}
.contact__sub {
  font-family: var(--font-jp);
  font-size: var(--fz-small);
  color: var(--color-text-sub);
  margin-top: 4px;
  margin-bottom: 16px;
}
.contact__text {
  font-family: var(--font-jp);
  font-size: var(--fz-body);
  margin-bottom: 28px;
}

/* ★ボタンの並び（PC用基本設定） */
.contact__btns {
  display: flex;
  flex-direction: row; /* 横並び */
  justify-content: center;
  gap: 16px;           /* 隙間を少し詰めました */
  width: 100%;
  margin-top: 30px;
  flex-wrap: nowrap;   /* 意地でも改行させない */
}

/* ★ボタン自体の幅を調整 */
.contact__btns .btn {
  flex: 1;             /* 親要素に合わせて伸縮させる */
  max-width: 220px;    /* 最大幅を484pxに収まるサイズに制限 */
  text-align: center;
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--color-white);
  padding-block: 24px;
  padding-inline: var(--section-padding-x);
}
.site-footer__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-footer__links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-footer__link {
  font-family: var(--font-jp);
  font-size: 11px;
  color: var(--color-text-sub);
  transition: color var(--transition);
}
.site-footer__link:hover {
  color: var(--color-black);
  text-decoration: underline;
}
.footer-logo-placeholder {
  width: 160px;
  height: 140px;
  flex-shrink: 0;
  border-radius: 8px;
}

/* --- MEDIA QUERIES --- */
@media screen and (max-width: 1024px) {
  :root { --section-padding-x: 28px; }
  .site-header__nav-list { gap: 36px; }
  .btn { width: min(var(--btn-w), 90%); }
}

@media screen and (max-width: 767px) {
  :root {
    --section-padding-y: 48px;
    --section-padding-x: 20px;
    --fz-h2-section: 26px;
    --fz-h2-card: 22px;
    --fz-h3-card: 18px;
    --fz-works-catch: 16px;
    --btn-w: 90%;
  }
  .site-header__hamburger { display: flex; }
  .site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-block: 10px;
    position: relative;
  }
  .site-header__nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-block: 0;
    background-color: var(--color-white);
    border-top: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: var(--z-header);
  }
  .site-header__nav-list--open { display: flex; }
  .site-header__nav-item { width: 100%; border-bottom: 1px solid #f0f0f0; }
  .site-header__nav-list .menu-item a { display: block; padding: 15px 24px; font-size: 14px; }
  .site-header__nav-list .menu-item a::after { display: none; }
  .hero-image { aspect-ratio: auto; height: 200px; }
  .about-news__inner { grid-template-columns: 1fr; gap: 24px; }
  .solution__grid { grid-template-columns: 1fr; }
  .solution-img-placeholder { width: 100%; }

  .work-card__col { flex: 0 0 calc(100% - 2px); }
  .work-card__col--img { min-height: 200px; }

  /* スマホ時のCONTACT微調整 */
  .contact__card { padding: 36px 20px; }
  .contact__btns {
    flex-direction: row; /* 横並びを維持 */
    gap: 8px;
  }
  .contact__btns .btn {
    font-size: 11px;
    padding-inline: 4px;
    height: 44px; /* スマホでは少し高さを抑える */
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
/* ==========================================================================
   about.css — Inoharu Design Labo / About ページ専用スタイル
   ※ style.css を読み込んだ後に追記してください。
   ※ CSS変数（--color-accent 等）はすべて style.css の :root から継承します。
   ========================================================================== */


/* ==========================================================================
   1. レイアウト共通
   ========================================================================== */
.l-main {
  padding-top: 0;
}


/* ==========================================================================
   2. ABOUT ヒーロー（ページタイトルエリア）
========================================================================== */
.about-hero {
  text-align: center;
  padding-top: var(--section-padding-y);
  padding-bottom: 0; 
}

.about-hero__title {
  /* HOMEのSOLUTION等と同じ設定を適用 */
  font-family: var(--font-en);
  font-size: var(--fz-h2-section); /* 36px */
  font-weight: var(--fw-black);    /* 900 */
  letter-spacing: var(--ls-heading);
  line-height: 1;
  text-transform: uppercase;       /* SOLUTION同様、大文字にする場合 */
  color: var(--color-black);
}

.about-hero__sub {
  /* HOMEのサブテキストと同じ設定を適用 */
  font-family: var(--font-jp);
  font-size: var(--fz-small);      /* 12px */
  color: var(--color-text-sub);
  margin-top: 4px;
  display: block;
}

/* ==========================================================================
   3. プロフィールセクション
   ========================================================================== */
.about-profile {
  background-color: var(--color-white);
  padding-top: 20px; 
  padding-bottom: var(--section-padding-y);
  padding-inline: var(--section-padding-x);
}

/* 全体コンテナ：縦並び・中央揃え */
.about-profile__inner {
  max-width:         640px;         /* コンテンツ幅を絞る */
  margin-inline:     auto;          /* 水平中央 */
  padding-inline:    var(--section-padding-x);
  display:           flex;
  flex-direction:    column;
  align-items:       center;        /* 子要素を水平中央揃え */
  text-align:        center;        /* テキストも中央揃え */
  gap:               0;
}


/* ─── プロフィール写真（308×308px・丸型）───────────── */
.about-profile__photo-wrap {
  width:            308px;          /* ← 指定サイズ */
  height:           308px;          /* ← 指定サイズ */
  border-radius:    50%;            /* 完全な円形 */
  overflow:         hidden;
  flex-shrink:      0;
  background-color: #efefef;        /* 画像未配置時のフォールバック */
  margin-bottom:    28px;
}

.about-profile__photo {
  width:           100%;
  height:          100%;
  object-fit:      cover;
  object-position: center top;      /* 顔を中心に */
  display:         block;
}


/* ─── 氏名・肩書き ─────────────────────────────────── */
.about-profile__meta {
  text-align: center;
  margin-bottom: 20px; /* セクション全体の余白も少し詰めました */
}

.about-profile__name {
  font-family: var(--font-jp);
  font-size: 22px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  color: var(--color-black);
  /* 1.0 = 文字の高さぴったり。これ以上詰めると文字が重なり始めます */
  line-height: 1; 
  margin-bottom: 0;
}

.about-profile__alias {
  font-family: var(--font-jp);
  font-size: 11px;
  color: var(--color-text-sub);
  letter-spacing: 0.06em;
  /* ★修正：名前との距離を「0」に */
  margin-top: -2px; 
  margin-bottom: 0;
  /* ★修正：1.5から1.2に詰めました（改行部分の隙間が減ります） */
  line-height: 1.2; 
}

.about-profile__role {
  font-size: 15px; /* 少しだけサイズを調整すると収まりが良くなることがあります */
  font-weight: var(--fw-bold);
  color: var(--color-black);
  /* ★修正：aliasとの距離を 8px から 2px まで一気に詰めました */
  margin-top: 2px; 
  line-height: 1;
}
/* ─── 紹介文（写真ブロックと幅を揃えて中央配置）──── */
.about-profile__body {
  width:      100%;                 /* コンテナ幅いっぱいに広げる */
  text-align: center;              /* ← 中央揃え */
}

.about-profile__text {
  font-family:    var(--font-jp);
  font-size:      var(--fz-small);  
	color:          var(--color-text);
  line-height:    2;
  letter-spacing: 0.04em;
  display:        inline-block;     /* text-align:center で中央に寄せるために必要 */
  text-align:     center;
}


/* ==========================================================================
   4. CONTACTセクション（style.css のクラスを再利用）
   ========================================================================== */
.about-profile + .contact {
  padding-top: 80px;
}


/* ==========================================================================
   5. レスポンシブ
   ========================================================================== */

/* ─ タブレット（〜 1024px） ─ */
@media screen and (max-width: 1024px) {
  .about-profile__inner {
    max-width: 560px;
  }
}

/* ─ SP（〜 767px） ─ */
@media screen and (max-width: 767px) {
  .about-hero {
    padding-block: 40px 8px;
  }

  .about-hero__title {
    font-size: clamp(40px, 12vw, 64px);
  }

  .about-profile {
    padding-block: 36px 60px;
  }

  .about-profile__inner {
    padding-inline: 24px;
  }

  /* SP では写真を少し小さく */
  .about-profile__photo-wrap {
    width:         240px;
    height:        240px;
    margin-bottom: 22px;
  }

  .about-profile__name {
    font-size: 20px;
  }

  .about-profile__role {
    font-size: 12px;
  }

  /* SP でも中央揃えを維持 */
  .about-profile__text {
    font-size:  13px;
    line-height: 2;
    text-align: center;
  }
}

/* ─ 小型SP（〜 375px） ─ */
@media screen and (max-width: 375px) {
  .about-profile__photo-wrap {
    width:  200px;
    height: 200px;
  }
}
.about-highlight {
  background: linear-gradient(transparent 60%, var(--color-accent) 60%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 0.2em;
}

/* --- SOLUTION ヒーローの調整 --- */
.solution-hero {
  text-align: center;
  padding-top: var(--section-padding-y);
  padding-bottom: 0; /* ABOUTと同様、下の余白を詰める */
}

.solution-hero__title {
  font-family: var(--font-en);
  font-size: var(--fz-h2-section); /* 36px */
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-heading);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-black);
}

.solution-hero__sub {
  font-family: var(--font-jp);
  font-size: var(--fz-small);
  color: var(--color-text-sub);
  margin-top: 4px;
  display: block;
}

.solution-hero {
  text-align: center;
  padding-top: var(--section-padding-y);
  padding-bottom: 0; 
}
.solution-hero__title {
  font-family: var(--font-en);
  font-size: var(--fz-h2-section);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-heading);
  line-height: 1;
  text-transform: uppercase;
  color: var(--color-black);
}
.solution-hero__sub {
  font-family: var(--font-jp);
  font-size: var(--fz-small);
  color: var(--color-text-sub);
  margin-top: 4px;
  display: block;
}
/* ==========================================================================
   SOLUTIONページ限定：画像はみ出しレイアウト調整
   ========================================================================== */

/* 1. 各行を中央揃えにする */
.solution-page .sol-row {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

/* 2. 図形と画像を重ねるための土台（サイズ固定・歪み防止） */
.solution-page .sol-layered-wrap {
  position: relative;
  width: 330px; 
  height: 330px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 3. 【背面】はみ出す画像の設定 */
.solution-page .sol-layer-img {
  position: absolute;
  z-index: 1; /* 重なり順：一番奥 */
  width: 480px; /* 図形(330px)より大きくして、はみ出させる */
  height: auto;
  opacity: 0.6; /* デザイナーの好みで0.4〜0.8で調整してください */
  pointer-events: none; /* 画像がクリックの邪魔をしないように */
  transition: transform 0.4s ease;
}

.solution-page .sol-layer-img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* 4. 画像のはみ出し方向を交互に変える（リズムを出す） */
.solution-page .sol-row--1 .sol-layer-img,
.solution-page .sol-row--3 .sol-layer-img {
  top: -40px; left: -80px; /* 左上にはみ出し */
}
.solution-page .sol-row--2 .sol-layer-img,
.solution-page .sol-row--4 .sol-layer-img {
  bottom: -40px; right: -80px; /* 右下にはみ出し */
}

/* 5. 【前面】図形（aタグ）の設定 */
.solution-page .sol-circle, 
.solution-page .sol-triangle, 
.solution-page .sol-square, 
.solution-page .sol-pentagon {
  position: relative;
  z-index: 10; /* 重なり順：画像より前 */
  width: 330px !important;
  height: 330px !important;
  background: transparent !important;
  border: none !important;
  clip-path: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 6. 図形の形と色（疑似要素で描画） */
.solution-page .sol-layered-wrap a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.solution-page .sol-circle::before { border-radius: 50%; }
.solution-page .sol-triangle::before { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.solution-page .sol-square::before { border-radius: 20px; }
.solution-page .sol-pentagon::before { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); }
.solution-page .sol-shape--on-orange::before { background-color: #FF6600 !important; }
.solution-page .sol-shape--on-yellow::before { background-color: var(--color-accent) !important; }

/* 7. テキストの色の出し分け */
.solution-page .sol-shape--on-orange .sol-shape__body p {
  color: #ffffff; /* オレンジの時は白文字 */
}

.solution-page .sol-shape__body {
  position: relative;
  z-index: 20; /* 最前面 */
  padding: 40px;
  text-align: center;
}
/* ==========================================================================
   SOLUTIONページ限定：レイヤーデザイン調整
   ========================================================================== */

/* 1. 各行を中央揃えにする */
.solution-page .sol-row {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  margin-bottom: 120px; /* アイテム同士の縦の隙間 */
}

/* 2. 図形と画像を重ねるための土台 */
.solution-page .sol-layered-wrap {
  position: relative;
  width: 330px; 
  height: 330px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 3. 【背面】はみ出す画像 */
.solution-page .sol-layer-img {
  position: absolute;
  z-index: 1; 
  width: 480px; 
  height: auto;
  opacity: 0.6;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.solution-page .sol-layer-img img {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* 4. 画像のはみ出し方向を交互に変える */
.solution-page .sol-row--1 .sol-layer-img,
.solution-page .sol-row--3 .sol-layer-img {
  top: -40px; left: -80px;
}
.solution-page .sol-row--2 .sol-layer-img,
.solution-page .sol-row--4 .sol-layer-img {
  bottom: -40px; right: -80px;
}

/* 5. 【前面】図形（aタグ） */
.solution-page .sol-circle, 
.solution-page .sol-triangle, 
.solution-page .sol-square, 
.solution-page .sol-pentagon {
  position: relative;
  z-index: 10; 
  width: 330px !important;
  height: 330px !important;
  background: transparent !important;
  border: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 6. 図形の「形」と「色」を作る擬似要素 */
.solution-page .sol-layered-wrap a::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform var(--transition);
}

.solution-page .sol-circle::before { border-radius: 50%; }
.solution-page .sol-triangle::before { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.solution-page .sol-square::before { border-radius: 20px; }
.solution-page .sol-pentagon::before { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); }

.solution-page .sol-shape--on-orange::before { background-color: #FF6600 !important; }
.solution-page .sol-shape--on-yellow::before { background-color: var(--color-accent) !important; }

/* 7. テキスト設定 */
.solution-page .sol-shape--on-orange .sol-shape__body p {
  color: #ffffff; /* オレンジ背景は白文字 */
}

.solution-page .sol-shape__body {
  position: relative;
  z-index: 20;
  padding: 40px;
  text-align: center;
}

/* ホバー時に図形を少し大きく */
.solution-page .sol-layered-wrap:hover a::before {
  transform: scale(1.05);
}
/* ==========================================================================
   ディテール調整：背景の半透明化 ＆ 英語タイトルの装飾
   ========================================================================== */

/* 1. 図形の背景「だけ」を半透明にする（rgbaを使用） */
/* オレンジ（元色 #FF6600 → RGB: 255, 102, 0） / 0.85 は不透明度(85%) */
.solution-page .sol-shape--on-orange::before { 
  background-color: rgba(255, 102, 0, 0.85) !important; 
}

/* イエロー（元色 #D0FF00 → RGB: 208, 255, 0） / 0.85 は不透明度(85%) */
.solution-page .sol-shape--on-yellow::before { 
  background-color: rgba(208, 255, 0, 0.85) !important; 
}


/* 2. 英語タイトル（Illustration等）のフォントサイズとデザイン調整 */
.solution-page .sol-shape__en {
  font-family: var(--font-en);    /* 英語専用の美しいフォントを適用 */
  font-size: 24px !important;     /* ★文字の大きさ（お好みで調整してください） */
  font-weight: 900 !important;    /* ガツンと太くする */
  letter-spacing: 0.05em;         /* 文字の間隔を少し開けてスタイリッシュに */
  line-height: 1.2;
  margin-bottom: 4px;             /* 下の「日本語タイトル」との隙間 */
  text-transform: uppercase;      /* ★すべて大文字にする（不要ならこの1行を削除） */
}

/* ついでに：イエロー背景の時の英語タイトルは、黒だと強すぎるので少しだけ色を和らげる */
.solution-page .sol-shape--on-yellow .sol-shape__en {
  color: #222222;
}
/* キャッチコピーを英語タイトルと同じサイズ（28px）にする */
.solution-page .sol-shape__catch {
  font-size: 24px !important;     /* 英語タイトルと同じサイズ */
  font-weight: var(--fw-black) !important; /* 一番太いウェイトで力強く */
  line-height: 1.4 !important;    /* <br>で改行した時に、行同士がくっつきすぎないように調整 */
  margin-top: 12px !important;    /* 上の「日本語タイトル」との間隔を少し開ける */
  margin-bottom: 16px !important; /* 下の「説明文」との間隔 */
}
/* ヒーロー（タイトル部分）とコンテンツの間に十分な余白を作る */
.solution-page .solution-hero {
  /* はみ出した画像とぶつからないように、広めに確保します */
  margin-bottom: 120px !important; 
}

/* スマホ表示の時は少し余白を狭くする */
@media screen and (max-width: 767px) {
  .solution-page .solution-hero {
    margin-bottom: 80px !important; 
  }
}
/* ==========================================================================
   WORKS一覧ページ専用スタイル（archive-works.php）
   ========================================================================== */
.works-archive-page {
  padding-bottom: var(--section-padding-y);
}

/* ヒーローエリア */
.works-hero {
  text-align: center;
  padding-top: var(--section-padding-y);
  margin-bottom: 20px;
}
.works-hero__title {
  font-family: var(--font-en);
  font-size: var(--fz-h2-section);
  font-weight: var(--fw-black);
  letter-spacing: var(--ls-heading);
  line-height: 1;
  color: var(--color-black);
}
.works-hero__sub {
  font-family: var(--font-jp);
  font-size: var(--fz-small);
  color: var(--color-text-sub);
  margin-top: 4px;
}

/* コンテンツエリア */
.works-archive-content {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-inline: var(--section-padding-x);
}

/* カードのデザイン */
.works-card {
  display: flex;
  flex-direction: column;
}
.works-card:hover .works-card__img-wrap img {
  transform: scale(1.05); /* ホバーで画像が少し拡大する演出 */
}

/* サムネイル画像 */
.works-card__img-wrap {
  aspect-ratio: 4 / 3; /* 画像の比率を4:3で統一 */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background-color: var(--color-placeholder);
}
.works-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 比率が違っても綺麗に切り抜く */
  transition: transform 0.4s ease;
}

/* カテゴリーバッジ */
.works-card__category {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--fw-bold);
  color: var(--color-black);
  background-color: var(--color-accent); /* イエローのアクセント */
  padding: 4px 10px;
  border-radius: 4px; /* 少しだけ丸みをつける */
  margin-bottom: 8px;
}

/* タイトル */
.works-card__title {
  font-size: 16px;
  font-weight: var(--fw-bold);
  line-height: 1.4;
  color: var(--color-black);
}

/* ページ送り */
.works-pagination {
  margin-top: 80px;
  text-align: center;
}
.works-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.works-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-placeholder);
  color: var(--color-text);
  font-family: var(--font-en);
  font-weight: var(--fw-bold);
  transition: all var(--transition);
}
.works-pagination .page-numbers.current,
.works-pagination .page-numbers:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* --- レスポンシブ（スマホ・タブレット対応） --- */
@media screen and (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr); /* タブレットは2列 */
  }
}
@media screen and (max-width: 767px) {
  .works-grid {
    grid-template-columns: 1fr; /* スマホは1列 */
    gap: 32px;
  }
}

/* ==========================================================================
   1. Worksページタイトル
   ========================================================================== */
.works-hero {
  padding-block: 56px 32px;
  text-align:    center;
  background:    var(--color-white);
}

.works-hero__title {
  font-family:    var(--font-en);
　font-size:      var(--fz-section); 
  font-weight:    var(--fw-black);
  letter-spacing: 0.06em;
  line-height:    1;
  color:          var(--color-black);
}

.works-hero__sub {
  font-family:    var(--font-jp);
  font-size:      var(--fz-body); 
  color:          var(--color-text-sub);
  margin-top:     8px;
  letter-spacing: 0.08em;
}


/* ==========================================================================
   2. カテゴリフィルタータブ
   ========================================================================== */
.works-filter {
  padding-block:  16px 48px;
  background:     var(--color-white);
}

.works-filter__list {
  display:         flex;
  justify-content: center;
  align-items:     center;
  gap:             16px;
  flex-wrap:       wrap;
  list-style:      none;
}

/* フィルターボタン（ピル型・黒） */
.works-filter__btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  padding:         10px 28px;
  border-radius:   var(--btn-radius);   /* 40px・ピル型 */
  background:      var(--color-white);
  color:           var(--color-black);
  border:          2px solid var(--color-black);
  font-family:     var(--font-jp);
  font-size:       var(--fz-small);     /* 12px */
  font-weight:     var(--fw-bold);
  letter-spacing:  0.06em;
  white-space:     nowrap;
  text-decoration: none;
  cursor:          pointer;
  position:        relative;
  overflow:        hidden;
  isolation:       isolate;
  transition:      color var(--transition), background var(--transition);
}

/* ホバー：黄緑スライドイン（style.css の .btn--dark と同じ挙動） */
.works-filter__btn::before {
  content:       '';
  position:      absolute;
  inset:         0;
  background:    var(--color-accent);   /* #D0FF00 */
  border-radius: inherit;
  transform:     translateX(-100%);
  transition:    transform var(--transition);
  z-index:       -1;
}
.works-filter__btn:hover::before       { transform: translateX(0); }
.works-filter__btn:hover               { color: var(--color-black); border-color: var(--color-accent); }

/* アクティブ（選択中）：黒塗り */
.works-filter__btn--active {
  background: var(--color-black);
  color:      var(--color-white);
}
.works-filter__btn--active::before { background: var(--color-accent); }
.works-filter__btn--active:hover   { color: var(--color-black); border-color: var(--color-accent); }


/* ==========================================================================
   3. 実績グリッド（2カラム）
   ========================================================================== */
.works-grid__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    justify-content: center; 
    gap: 24px; 
    padding: 0;
    margin: 40px auto; 
    list-style: none;
}
/* ==========================================================================
   4. 実績カード
   ========================================================================== */
.works-card {
  /* カードはシンプルに画像のみ */
}

.works-card__link {
  display:         block;
  text-decoration: none;
  overflow:        hidden;
  border-radius:   4px;
  transition:      transform var(--transition), box-shadow var(--transition);
}

.works-card__link:hover {
  transform:  translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.works-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; 
    overflow: hidden;
}

.works-card__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important; 
    display: block;
    transition: transform 0.5s ease;
}

.works-card__link:hover .works-card__thumb img {
  transform: scale(1.04);
}


/* ==========================================================================
   5. ページネーション
   ========================================================================== */
.works-pager {
  padding-block:  48px 80px;
  background:     var(--color-white);
}

.works-pager__list {
  display:         flex;
  justify-content: center;
  align-items:     center;
  gap:             8px;
  list-style:      none;
}

/* 番号ボタン共通 */
.works-pager__num {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           36px;
  height:          36px;
  border-radius:   50%;
  font-family:     var(--font-en);
  font-size:       14px;
  font-weight:     var(--fw-bold);
  color:           var(--color-black);
  text-decoration: none;
  transition:      background var(--transition), color var(--transition);
}

.works-pager__num:hover {
  background: var(--color-accent);    /* D0FF00 */
}

/* アクティブ（現在ページ）：黒丸 */
.works-pager__num--active {
  background: var(--color-black);
  color:      var(--color-white);
}
.works-pager__num--active:hover {
  background: var(--color-black);    /* アクティブはホバーでも変えない */
  color:      var(--color-white);
}

/* 次へ矢印 */
.works-pager__next {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  width:           48px;
  height:          36px;
  text-decoration: none;
  margin-left:     4px;
  opacity:         1;
  transition:      opacity var(--transition);
}
.works-pager__next:hover { opacity: 0.5; }

.works-pager__next svg {
  width:  48px;
  height: 16px;
  display: block;
}


/* ==========================================================================
   6. レスポンシブ
   ========================================================================== */

/* ─ タブレット（〜 1024px） ─ */
@media screen and (max-width: 1024px) {
  .works-grid__list {
    gap: 24px;
  }
}

/* ─ SP（〜 767px） ─ */
@media screen and (max-width: 767px) {
  .works-hero {
    padding-block: 40px 24px;
  }

  .works-filter {
    padding-block: 12px 36px;
    padding-inline: 16px;
  }

  .works-filter__list {
    gap: 10px;
  }

  .works-filter__btn {
    padding: 9px 20px;
    font-size: 11px;
  }

  .works-grid {
    padding-inline: 20px;
  }

  .works-grid__list {
    grid-template-columns: repeat(2, 1fr);  /* SPも2カラム維持 */
    gap: 16px;
  }

  .works-pager {
    padding-block: 36px 60px;
  }
}

/* ─ 小型SP（〜 375px）：1カラムに切り替え ─ */
@media screen and (max-width: 375px) {
  .works-grid__list {
    grid-template-columns: 1fr;
  }
}

/* ==============================================
   CONTACTページ：レイアウト・余白
============================================== */

/* タイトルセクションの余白（上56px / 下8px） */
.works-hero {
  padding-block: 56px 8px !important;
}

/* サブタイトル「お問合せ」の配置と余白 */
.contact-sub-title {
  text-align: center;
  font-size: var(--fz-small, 12px);
  color: var(--color-text-sub, #555);
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

/* フォーム全体の黒枠パネル（お問合せとの間隔を詰める） */
.contact-form-container {
  border: 4px solid var(--color-black, #111);
  border-radius: 16px;
  padding: 64px 40px;
  max-width: 800px;
  margin: 0 auto 64px !important; /* margin-topを最小限に */
  background: var(--color-white, #fff);
  box-shadow: 12px 12px 0 var(--color-black, #111);
}

/* 各入力項目の間隔 */
.form-field {
  margin-bottom: 32px;
}

/* 項目のラベルテキストをブロック要素にする */
.form-field label span {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--color-text, #111);
}

/* --- 【重要】必須の赤文字 (span.label-text のみに限定) --- */
.form-field label span.label-text::after {
  content: " ※";
  color: #ee0000;
  font-weight: bold;
  display: inline;
}

/* ==============================================
   入力フォーム・ボタンのデザイン
============================================== */

/* 入力欄の共通スタイル */
.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea,
.contact-form-container select {
  width: 100%;
  padding: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #f9f9f9;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  font-family: inherit;
  font-size: 16px;
  appearance: none;
}

.contact-form-container textarea {
  height: 200px;
  resize: vertical;
}

/* 送信ボタンの外枠（スライド演出） */
.submit-animation-wrap {
  position: relative;
  display: block;
  margin: 48px auto 0;
  width: 100%;
  max-width: 400px;
  height: 64px;
  background: #111111;
  border-radius: 10px !important; /* 角丸 10px */
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
}

/* スライドする黄色背景 */
.submit-animation-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent, #D0FF00);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1;
}

/* ホバー時の挙動 */
.submit-animation-wrap:hover::before {
  transform: translateX(0);
}

/* 送信ボタン本体（透明） */
.contact-submit-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: bold;
  font-size: 18px;
  border-radius: 10px !important; /* 角丸 10px */
  cursor: pointer;
  transition: color 0.3s;
}

.submit-animation-wrap:hover .contact-submit-btn {
  color: #111111 !important;
}

/* 注意書き（下部） */
.contact-notes {
  text-align: center;
  font-size: 12px;
  color: #555;
  line-height: 1.8;
  margin-top: 40px;
}
/* 「お問い合わせ」というサブタイトルの下に余白を作る */
.contact__contact__sub {
    margin-bottom: 24px !important; /* ここで広さを調整 */
    display: block; /* 確実に余白を効かせるため */
}

/* または、下の説明文の上に余白を作る場合 */
.contact__text {
    margin-top: 24px !important;
}
/* 1. 外枠の設定（奥行き感を作る） */
.about-profile__photo-wrap {
    perspective: 1000px; /* 数値が小さいほど回転がダイナミックになります */
    background-color: transparent;
    width: 300px;  /* 猪飼さんのデザインに合わせて調整 */
    height: 300px; /* 猪飼さんのデザインに合わせて調整 */
}

/* 2. 回転する中身の箱 */
.photo-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d; /* 3D空間を維持 */
}

/* 3. ホバーした時の回転命令 */
.about-profile__photo-wrap:hover .photo-flip-inner {
    transform: rotateY(180deg);
}

/* 4. 表と裏の共通設定 */
.photo-front, .photo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden; /* 裏側を見えなくする（重要！） */
    border-radius: 50%; /* もし丸いアイコンなら。四角なら削除か角丸に。 */
    overflow: hidden;
}

/* 5. 裏側（イラスト）の初期設定 */
.photo-back {
    transform: rotateY(180deg); /* 最初から裏返しておく */
}

/* 画像がぴったり収まるように */
.photo-front img, .photo-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 回転演出の画像（表も裏も） */
.photo-front img,
.photo-back img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 枠に合わせてトリミングする設定 */
    /* ★ここを追加：画像の基準点を「上・中央」にする */
    object-position: top center !important; 
}

/* --- 各セクションタイトルのキラッと光るアニメーション --- */
.about-card__title,
.news-block__title,
.solution__heading-title,
.works__title, 
.news-title,
.contact__title,
.about-hero__title,
.solution-hero__title,
.sns-block__title,
.works-hero__title { 

    /* ★修正：background ではなく background-image に変更！ */
    background-image: linear-gradient(
        110deg,
        #111111 0%,
        #111111 40%,  
        #ffffff 50%,  
        #111111 60%,
        #111111 100%
    ) !important;
    
    background-size: 300% auto !important;
    background-repeat: no-repeat !important;
    
    color: #111 !important; 
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-fill-color: transparent !important;
    
    animation: textShine 4s linear infinite !important;
    display: inline-block !important; 
}

@keyframes textShine {
    0% {
        background-position: 100% center; 
    }
    20% {
        background-position: 0% center; 
    }
    100% {
        background-position: 0% center; 
    }
}

/* --- WORKSスライダー：テキスト外出しデザイン --- */

/* 1. カード全体のレイアウト */
.work-card__wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;     /* テキストと画像の間の隙間 */
    width: 100%;
}

/* 2. テキストエリアのレイアウト */
.work-card__meta {
    display: flex;
    align-items: center; 
    gap: 12px;
}

.work-card__tag {
    font-size: 11px;
    font-weight: bold;
    color: #111;
    padding: 2px 6px;
    white-space: nowrap;
    line-height: 1 !important; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
	background-color: #D0FF00;
}
.work-card__title {
    font-size: 14px;
    font-weight: bold;
    color: #111;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1 !important; 
    transform: translateY(1px); 
}
/* --- WORKSスライダー：サイズ復元＆全体表示 --- */
.work-card__wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    
    width: 100%;
    min-width: 320px; 
    max-width: 600px; 
    margin: 0 auto;  
}
/* --- WORKSスライダー：画像サイズをテキスト幅に合わせる --- */
.work-card__wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%; 
}

.work-card__wrapper .work-card__col {
    position: relative;
    width: 100%;
    height: auto !important; 
　　aspect-ratio: 1 / 1.41;
	background-size: contain !important;
    background-position: center !important;
    border: none !important; 
    border-radius: 0;
}

/* ===================================================
   WORKS 一覧ページ：グリッドレイアウト＆ホバー演出
=================================================== */

/* --- 1. グリッドレイアウトの設定 --- */
.works-grid__list {
    display: grid;
    /* 画面幅に合わせて自動で列数を調整する最強のコード（1枚最低300px） */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px; /* 画像と画像の間の隙間 */
    padding: 0;
    margin: 40px 0;
    list-style: none;
}

/* --- 2. カード全体の基本設定 --- */
.works-card {
    position: relative;
    border-radius: 8px; /* 角を少し丸くする（不要なら0に） */
    overflow: hidden;   /* はみ出した画像を隠す */
	background: transparent;
}

.works-card__link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* 画像の設定：ホバー時にズームさせるための準備 */
.works-card__thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3; /* ここを16/9や1/1に変更して画像比率を揃えられます */
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease; /* ズームのアニメーション速度 */
}

.works-card__overlay {
    position: absolute;
    inset: 0;
    
    /* ★変更：#D0FF00を透過（rgba）に変換。最後の 0.85 が透明度です */
    background: rgba(208, 255, 0, 0.85); 
    
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.works-card__overlay-inner {
    text-align: center;
    
    /* ★重要：背景が明るい黄色になるため、文字色を黒にして視認性を確保 */
    color: #111; 
    
    transform: translateY(15px);
    transition: transform 0.5s ease;
}

.works-card__overlay-cat {
    display: inline-block;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid #111;     
    padding: 4px 10px;
    margin-bottom: 12px;
}

.works-card__overlay-title {
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
}

/* --- 4. マウスを乗せた時（ホバー）のアクション --- */
.works-card__link:hover .works-card__thumb img {
    transform: scale(1.08); /* 画像が8%ズームする */
}

.works-card__link:hover .works-card__overlay {
    opacity: 1; /* 黒い幕が現れる */
}

.works-card__link:hover .works-card__overlay-inner {
    transform: translateY(0); /* 文字が定位置にスッと上がる */
}

/* ===================================================
   NEWS 一覧ページ：リストレイアウト
=================================================== */

.news-list-section {
    max-width: 800px;  /* 文字が横に広がりすぎないように幅を制限 */
    margin: 0 auto 80px auto; /* 中央寄せ */
}

.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 2px solid #111; /* リストの一番上に太い黒線を引いて引き締める */
}

.news-item {
    border-bottom: 1px solid #e5e5e5; /* 各項目の区切り線 */
}

/* リンクエリア全体の設定 */
.news-item__link {
    display: flex;
    align-items: center; /* 縦の中央揃え */
    padding: 24px 16px;
    text-decoration: none;
    color: #111;
    transition: background-color 0.3s ease;
}

/* ホバーした時に少し背景をグレーにする */
.news-item__link:hover {
    background-color: #D0FF00;
}

/* 日付とカテゴリのエリア */
.news-item__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 240px; /* メタ情報の幅を固定して、タイトル開始位置をピッタリ揃える */
    flex-shrink: 0; /* 幅が縮まないようにする */
}

/* 日付 */
.news-item__date {
    font-size: 14px;
    font-weight: bold;
    color: #111;
    letter-spacing: 0.05em;
}

/* カテゴリタグ */
.news-item__badge {
    font-size: 11px;
    font-weight: bold;
    padding: 2px 8px;
    border: 1px solid #111;
    white-space: nowrap;
}

/* タイトル */
.news-item__title {
    font-size: 15px;
    font-weight: normal; /* タイトルはあえて細字にしてスマートに */
    line-height: 1.6;
    margin: 0;
}

/* --- スマホ表示時の調整（画面が狭い時） --- */
@media screen and (max-width: 768px) {
    .news-item__link {
        flex-direction: column; /* 縦並びに変更 */
        align-items: flex-start; /* 左寄せ */
        gap: 12px;
        padding: 20px 8px;
    }
    
    .news-item__meta {
        width: 100%; /* メタ情報の幅制限を解除 */
    }
}

/* --- 1. グリッドの外枠（セクション全体）を中央寄せにする --- */
.works-grid {
    width: 100%;
    /* ★ここが最重要：実績一覧の「最大横幅」を決めます（1000px〜1200pxが黄金比です） */
    max-width: 1080px; 
    
    /* ★箱ごと画面のど真ん中に配置する呪文 */
    margin: 0 auto; 
    
    /* スマホで見た時に画面の端にピタッとくっつかないようにする余白 */
    padding: 0 20px; 
}

/* --- 2. グリッド本体（中は1frで均等に敷き詰めるのが一番綺麗です） --- */
.works-grid__list {
    display: grid;
    /* 先ほどの auto-fit よりも、1fr で均等に広げる設定に戻します */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 0;
    margin: 40px 0; /* 上下の余白だけ指定 */
    list-style: none;
}

/* スライダーの外枠：はみ出たカードを隠す */
.works__slider {
    width: 100%;
    overflow: hidden;
    padding-block: 40px; /* 上下に少し余白 */
    position: relative;
}

/* カードを横一列に並べるトラック */
.works__track {
    display: flex;
    width: max-content; /* 中身の幅に合わせる */
    gap: 24px; /* カード間の隙間 */
}

/* 無限ループアニメーション（左から右） */
@keyframes infinite-scroll-right {
    0% {
        transform: translateX(-50%); /* 半分進んだ状態からスタート */
    }
    100% {
        transform: translateX(0); /* 0に戻る */
    }
}

.works__track {
    /* 40sは速度です。遅くしたい場合は数値を大きくしてください */
    animation: infinite-scroll-right 40s linear infinite;
}

/* マウスを乗せた時に一時停止させる（UX向上） */
.works__track:hover {
    animation-play-state: paused;
}

/* カード1枚のサイズ固定 */
.work-card__wrapper {
    flex: 0 0 320px; /* 幅を320pxに固定 */
}

.work-card__col {
    width: 100%;
    height: 400px; /* 高さを指定 */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

/* カード内のリンクをカードいっぱいに広げる */
.solution-card {
    padding: 0 !important; /* 内側の余白を一度消してリンク側に持たせる */
    overflow: hidden;
}

.solution-card__link {
    display: block;
    padding: 16px 16px 14px; /* 元のカードのパディングをここに移植 */
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    transition: background-color var(--transition);
}

/* ホバー時にカード全体を少し浮かせる（既存の.solution-card:hoverを強化） */
.solution-card:hover {
    transform: translate(-4px, -4px); /* 少し左上に動かす */
    box-shadow: 12px 12px 0 var(--color-black); /* 影を強くして奥行きを出す */
    background-color: #fcfcfc; /* ほんの少し色を変えて反応を出す */
}

/* 中の画像がはみ出さないように調整 */
.solution-img-placeholder {
    width: 250px;
    height: 200px;
    max-width: 100%;
    border-radius: 6px;
    margin-inline: auto;
    object-fit: cover; /* 画像の歪み防止 */
    display: block;
}
/* --- 固定ページ（プライバシーポリシー等）の標準スタイル --- */
.page-standard {
    max-width: 800px; /* 読みやすい横幅 */
    margin: 80px auto; /* 上下にたっぷり余白、左右中央寄せ */
    padding: 0 20px;
    line-height: 2; /* 行間を広くして読みやすく */
    color: var(--color-text);
}

.page-standard__header {
    margin-bottom: 60px;
    text-align: center;
}

.page-standard__title {
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* タイトルの下にアクセントの黄色い線を引く */
.page-standard__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 4px;
    background-color: var(--color-accent);
}

/* 本文内の見出し（h2など）を装飾 */
.page-standard__content h2 {
    font-size: 20px;
    margin: 48px 0 24px;
    padding-left: 15px;
    border-left: 4px solid #111;
    line-height: 1.4;
}

.page-standard__content p {
    margin-bottom: 24px;
}

/* お問い合わせフォームの入力項目すべてに適用 */
.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea,
.contact-form-container select {
    outline: none;
    border: 2px solid #ccc;
}
.contact-form-container input:focus,
.contact-form-container textarea:focus,
.contact-form-container select:focus {
    border-color: #D0FF00 !important;
}
.sol-bg-text {
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 20vw !important;
    font-weight: 900 !important;
    color: rgba(0, 0, 0, 0.03) !important; 
    z-index: -1 !important;
}
/* ==========================================================================
   SOLUTIONページ：Z型エディトリアルレイアウト（新デザイン）
   ========================================================================== */

/* 1. 行の設定（横並びで中央揃え） */
.sol-split-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-bottom: 200px;
    position: relative;
    max-width: 1000px;
    margin-inline: auto;
}

/* 偶数行は左右反転させる（Z型配置） */
.sol-split-row.row-reverse {
    flex-direction: row-reverse;
}

/* 2. 背景の巨大文字 */
.sol-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-en);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    z-index: -2;
    pointer-events: none;
    white-space: nowrap;
}

/* 3. ビジュアルエリア（左側/右側） */
.sol-split-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 透過アイコンに綺麗な影を落とす */
.sol-main-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(15px 15px 20px rgba(0, 0, 0, 0.15));
    transition: transform 0.5s ease;
}

.sol-split-row:hover .sol-main-img {
    transform: translateY(-10px); /* ホバーで少し浮く */
}

/* アイコンの背後に敷く「装飾としての図形」 */
.sol-deco-shape {
    position: absolute;
    z-index: 1;
    width: 300px;
    height: 300px;
    background-color: var(--color-accent); /* 猪飼さんのブランドイエロー */
    opacity: 0.6;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -40%); /* 少しズラして配置 */
    transition: transform 0.5s ease;
}

/* 各図形の形 */
.shape-circle { border-radius: 50%; }
.shape-triangle { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); background-color: #FF6600; } /* 2番目はオレンジに */
.shape-square { border-radius: 20px; }
.shape-pentagon { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); background-color: #FF6600; }

.sol-split-row:hover .sol-deco-shape {
    transform: translate(-50%, -50%) scale(1.05); /* ホバーで図形が広がる */
}

/* 4. テキストエリア（読みやすさ特化） */
.sol-split-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 10;
}

.sol-number {
    font-family: var(--font-en);
    font-size: 64px;
    font-weight: 900;
    color: #eeeeee;
    line-height: 1;
    margin-bottom: -20px; /* タイトルの裏に少し潜り込ませるテクニック */
}

.sol-title-en {
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.sol-title-jp {
    font-size: 14px;
    font-weight: bold;
    color: var(--color-text-sub);
    margin-bottom: 24px;
}

.sol-catchphrase {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 16px;
    border-left: 4px solid var(--color-accent); /* 左に黄色い線でアクセント */
    padding-left: 16px;
}

.sol-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 32px;
}

/* View Details リンク */
.sol-readmore {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-en);
    font-weight: bold;
    font-size: 14px;
    color: #111;
    border-bottom: 2px solid #111;
    padding-bottom: 4px;
    width: fit-content;
    transition: color 0.3s, border-color 0.3s;
}

.sol-readmore span {
    margin-left: 8px;
    transition: transform 0.3s;
}

.sol-readmore:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.sol-readmore:hover span {
    transform: translateX(8px); /* ホバーで矢印が右に動く */
}

/* 5. スマホ対応（縦積みにする） */
@media screen and (max-width: 767px) {
    .sol-split-row,
    .sol-split-row.row-reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 120px;
    }
    .sol-deco-shape { width: 200px; height: 200px; }
    .sol-number { font-size: 48px; margin-bottom: -10px; }
    .sol-title-en { font-size: 24px; }
    .sol-catchphrase { font-size: 20px; }
}

/* ==========================================================================
   ABOUTページ：裏面画像の物理的ズームと位置調整（フリップ干渉回避）
   ========================================================================== */

.photo-back img {
    width: 150% !important;
    height: 150% !important;
    max-width: none !important; 
    position: relative !important;
    left: -25% !important;
    top: -25% !important; 
    object-fit: cover !important;
    object-position: center 20% !important; 
}
/* サンクスページ全体のレイアウト */
.thanks-section {
    padding: 160px 20px;
    text-align: center;
}

.thanks-title {
    font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", "ヒラギノ角ゴシック", "YuGothic", "Yu Gothic", sans-serif;
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.15em;
    margin-bottom: 40px;
    color: #000;
}

.thanks-message {
    font-size: 15px;
    line-height: 2;
    margin-bottom: 60px;
    color: #333;
    letter-spacing: 0.05em;
}

/* ボタンのデザインとホバー挙動 */
.custom-btn {
    display: inline-block;
    padding: 18px 60px;
    border: 1px solid #000; /* 黒の細い枠線 */
    background-color: transparent;
    color: #000;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.2em;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* 滑らかな動き */
    position: relative;
    overflow: hidden;
}

/* ホバー時の挙動：背景が黒になり、文字が白に反転 */
.custom-btn:hover {
    background-color: #000;
    color: #fff;
}

@media (max-width: 768px) {
    .thanks-section {
        padding: 100px 20px;
    }
    .thanks-title {
        font-size: 1.8rem;
    }
}

/* Google Fonts 読み込み (Montserrat 100 / Noto Sans JP 100) */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100&family=Noto+Sans+JP:wght@100&display=swap');

/* 変数の定義 */
:root {
    --btn-radius: 40px;
    --accent-color: #D0FF00;
}

.thanks-section {
    padding: 160px 20px;
    text-align: center;
}

/* THANK YOU 部分 */
.thanks-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100; /* Thin */
    font-size: 4rem;
    letter-spacing: 0.2em;
    margin-bottom: 40px;
    color: #000;
}

/* メッセージ部分 */
.thanks-message {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 100; /* Thin */
    font-size: 15px;
    line-height: 2.2;
    margin-bottom: 60px;
    color: #333;
    letter-spacing: 0.1em;
}

/* ボタンのデザイン */
.custom-btn {
    display: inline-block;
    padding: 18px 80px;
    border: 1px solid #000;
    border-radius: var(--btn-radius); /* 40px */
    background-color: transparent;
    color: #000;
    text-decoration: none;
    font-size: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
}

/* ホバー時の挙動 */
.custom-btn:hover {
    background-color: var(--accent-color); /* #D0FF00 */
    border-color: var(--accent-color);
    color: #000; /* ネオンカラーの上なので文字は黒が映えます */
    transform: translateY(-2px); /* 少し浮き上がる演出 */
}

@media (max-width: 768px) {
    .thanks-title {
        font-size: 2.5rem;
    }
    .thanks-section {
        padding: 100px 20px;
    }
}