@charset "UTF-8";

/* ======================
基本設定
====================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: #333;

  /* 背景の設定 */
  --grid: 50px;
  --line: #BF3232;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  background-repeat: repeat;
}

@media (max-width: 400px){
  body{ 
    background-image:
      linear-gradient(to right, var(--line) 0.5px, transparent 0.5px),
      linear-gradient(to bottom, var(--line) 0.5px, transparent 0.5px);
    background-size: 32px 32px;
  }
}

.wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 30px);
}

p {
  line-height: 1.8;
}

h2,h3 {
  font-weight: 500;
}

section {
  scroll-margin-top: 100px;
}

.anchor-top {
  position: absolute;
  top: 0;
  left: 0;
}

#top { scroll-margin-top: 0; } 

/* ======================
section-card（共通：ベージュ箱）
====================== */
.section-card {
  background-color: #FDF6E8;
  border-radius: 30px;
  max-width: 1200px;
  margin-inline: auto;
  width: 100%;
  padding-block: 80px;
}

/* card系sectionの「中身幅＋左右clamp」 */
.inner--card {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

/* section title（共通：h2見出し画像）*/
/* ▼ h2（見出し）は中央寄せの想定 */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-img {
  display: inline-block;
}

.section-title-img img {
  height: clamp(28px, 6vw, 36px);
  width: auto;
  max-width: 100%;
  display: block;
}

.section-title-jp {
  display: block;
  margin-top: 10px;
  font-size: clamp(16px, 3.5vw, 20px);
}

/* アニメーション（共通） */
.js-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.6s ease-out,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal.is-animated {
  opacity: 1;
  transform: translateY(0);
}

/* ======================
ヘッダー
====================== */
.header {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translate(-50%, -10px);
  opacity: 0;
  margin: 0;
  z-index: 10;
}

.header-inner {
  width: min(1200px, calc(100vw - 48px));
  height: clamp(72px, 8vw, 80px);
  margin: 0 auto;
  padding-block: 25px;
  padding-inline: clamp(16px, 4.5vw, 80px);
  background-color: #BF3232;
  border-radius: 50px;
  display: flex;
  align-items: center;
  transition: background-color 0.6s ease;
}

/* ロゴ（PC） */
.header-logo {
  flex: 0 0 clamp(45px, 4vw, 50px);
  width: clamp(45px, 4vw, 50px);
  height: clamp(45px, 4vw, 50px);
}

.header-logo__btn {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: transparent;
}

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

/* ナビ（PC） */
.header-nav {
  margin-left: auto;
}

.header-nav__list {
  display: flex;
  gap: clamp(16px, 3.5vw, 70px);
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-nav__item {
  display: flex;
}

.header-nav__link {
  display: flex;
  align-items: center;
}

.header-nav__link img{
  height: clamp(12px, 2vw, 18px);
  width: auto;
  max-width: 100%;
  display: block;
}

/* hover */
.header-nav__link,
.header-logo {
  transition: opacity 0.4s ease;
}

.header-nav__link:hover,
.header-logo:hover {
  opacity: 0.5;
}

/* スクロール後 */
.header--scrolled .header-inner {
  border: 1.5px solid #BF3232;
  background-color: #FFF;
}

.header--scrolled .header-logo__btn{
  background: transparent;
}

.header--scrolled .header-nav__link img,
.header--scrolled .header-logo img {
  transition: filter 0.3s ease;
}

/* ロード時フェードイン */
@keyframes headerFadeIn {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  100% { opacity: 1; transform: translate(-50%, 0); }
}

.is-loaded .header {
  animation: headerFadeIn 0.7s ease-out forwards;
}

/* =========================
  Hamburger button（ベース定義）
========================= */
.header-hamburger {
  display: none;   /* 800px以下で表示 */
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1001;    /* 右上btnの配置 */
}

.header-hamburger__inner{
  position: relative;
  display: block;
  width: 36px;
  height: 28px;
}

.header-hamburger__line {
  position: absolute;
  left: 0;
  top: 50%;
  width: 36px;
  height: 3px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #FDF6E8;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.header-hamburger__line:nth-child(1) {
  transform: translateY(calc(-50% - 10px));
}

.header-hamburger__line:nth-child(2) {
  transform: translateY(-50%);
}

.header-hamburger__line:nth-child(3) {
  transform: translateY(calc(-50% + 10px));
}

.header-hamburger.is-active .header-hamburger__line:nth-child(1) {
  transform: translateY(-50%) rotate(45deg);
}

.header-hamburger.is-active .header-hamburger__line:nth-child(2) {
  opacity: 0;
}

.header-hamburger.is-active .header-hamburger__line:nth-child(3) {
  transform: translateY(-50%) rotate(-45deg);
}

.header-hamburger.is-active {
  background: none;
}

.header-hamburger.is-active .header-hamburger__line {
  height: 3.5px;
  background: #BF3232;   /* ×は赤線 */
}

/* スクロール後：ハンバーガーの線を赤に（白背景で見えるように） */
.header--scrolled .header-hamburger__line {
  background: #BF3232;
}

/* =========================
  Drawer
========================= */
.header-drawer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;    /* 右上btnの配置 */
}

.header-drawer.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-drawer__panel {
  position: relative;
  width: min(768px, calc(100vw - 48px));
  padding: 80px 28px;
  border-radius: 30px;
  --panel-border-width: 1.5px;
  border: var(--panel-border-width) solid #BF3232;
  transform: translateY(calc(-1 * var(--panel-border-width)));
  background: #FFF;
  z-index: 1;
}

.header-drawer-nav__list {
  list-style: none;
  padding: 0;
  margin-block: auto;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.header-drawer-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ドロワー：ナビ画像（カプセルと同じ指定） */
.header-drawer-nav__link--home img { height: 30px; width: 72px; }
.header-drawer-nav__link--services img { height: 30px; width: 125px; }
.header-drawer-nav__link--about img    { height: 30px; width: 88px; }
.header-drawer-nav__link--works img    { height: 30px; width: 90px; }
.header-drawer-nav__link--contact img  { height: 30px; width: 117px; }

/* ======================
FV
====================== */
/* FV 全体 */
.fv {
  margin-top: 160px;     /* headerとの重なり回避 */
  margin-bottom: 80px;   /* 次セクションとの間隔 */
  position: relative;    /* scroll-indicator等の基準 */
}

/* 外側：フル幅 + 余白担当（まずpaddingが縮む役） */
.fv-stage {
  width: 100%;
  padding-inline: clamp(8px, 2vw, 24px);
}

/* フェードイン：fv-inner に統一 */
.fv .fv-inner {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .7s ease, transform .7s ease;
}

body.is-loaded .fv .fv-inner {
  opacity: 1;
  transform: none;
}

/* 内側：中身幅 */
.fv-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

/* 左右の並び */
.fv-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(16px, 3vw, 60px);   /* 左右の距離が詰まる時の逃げ */
}

/* 左：タイトル帯（主役。縮みすぎないように） */
.fv-left {
  flex: 1 1 auto;                 /* まず“場”を持つ */
  max-width: min(900px, 62%);     /* 900px上限 & だいたいの比率 */
  margin-top: clamp(40px, 6vw, 90px);
}

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

/* 右：装飾（背景側。状況に応じて縮む） */
.fv-right {
  flex: 0 1 36%;
  max-width: 36%;
  position: relative;
  min-height: 340px;
}

/* 飾りSVG */
.fv-right svg {
  display: block;
  width: 100%;
  height: auto;
}

.fv-icon {
  transform-box: fill-box;
  transform-origin: center;
}

/* 中央のギザギザ円：ゆっくり回る */
.fv-icon--sun {
  animation: fv-rotate 18s linear infinite;
}

/* 右中央の角の丸いスター：逆回転・少しスピード変える */
.fv-icon--star-big {
  animation: fv-rotate-reverse 22s linear infinite;
}

/* 左上のきらめき：ちょっと速く */
.fv-icon--sparkle {
  animation: fv-rotate 10s linear infinite;
}

/* 右上の塗りつぶし星 */
.fv-icon--star2 {
  animation: fv-rotate-reverse 15s linear infinite;
}

.fv-icon--star {
  animation: fv-rotate 20s linear infinite;
}

 .fv-icon--sun-sub {
  animation: fv-rotate-reverse 15s linear infinite;
 }

/* ▼ 初期状態：下からふわっと出てくる FV 本体 */
.fv-inner {
  opacity: 0;
  transform: translateY(20px); /* ちょっと下にずらしておく */
}

@keyframes fv-icon--star {
  /* 止まってる時間 */
  0%   { transform: rotate(0deg); }
  70%  { transform: rotate(0deg); }

  /* 回る瞬間 */
  80%  { transform: rotate(360deg); }

  /* また止まる */
  100% { transform: rotate(360deg); }
}

/* 三角も同様にお好みで */
@keyframes fv-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes fv-rotate-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* FV：下からふわっとフェードイン */
@keyframes fvFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ▼ ロード後に共通で発火 */
.is-loaded .fv-stage {
  animation: fvFadeIn 0.9s ease-out 0.2s forwards;
}

/* ======================
scroll
====================== */
.scroll-indicator {
  position: absolute;
  left: 50%;
  top: 75%; 
  bottom: 40px;
  transform: translateX(-50%);
  z-index: 5;

  /* サイズ（SVG全体の見た目） */
  width: clamp(80px, 11vw, 120px);
  height: auto;
}

/* SVGをブロック要素にして余計な隙間を消す */
.scroll-indicator svg {
  display: block;
  width: 100%;
  height: auto;
}

.scroll-indicator__arrow {
  animation: scroll-bounce 1.6s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ======================
policy
====================== */
#policy {
  background-color: #BF3232;
  padding: 80px 0;
}

/* 中身：中央寄せ + 可変余白 + 中身の最大幅を固定 */
.policy-inner {
  max-width: 1200px; 
  margin: 0 auto; 
  padding-inline: clamp(24px, 5vw, 120px); 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 50px); 
}

/* 左側イラスト */
.policy-image {
  flex: 0 0 45%;
}
.policy-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* 右側テキスト */
.policy-text {
  flex: 0 0 50%;
  color: #FDF6E8;
}

.policy-text h2 {
  font-size: 32px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.policy-text p {
  font-size: 16px;
  line-height: 2;
}

/* policy アニメーション */
/* policy 初期状態 */
#policy .policy-image,
#policy .policy-text {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease-out,
    transform 1.2s cubic-bezier(0.12, 1, 0.25, 1);
}

/* 少し時間差 */
#policy .policy-text {
  transition-delay: 0.12s;
}

/* 発火後 */
#policy.is-animated .policy-image,
#policy.is-animated .policy-text {
  opacity: 1;
  transform: translateY(0);
}


/* ======================
services
====================== */
/* ▼ services セクション全体 */
#services {
  margin-top: clamp(64px, 10vw, 120px);
}

#services .inner{
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

/* ▼ services-inner（3カラム配置） */
.services-inner {
  display: flex;
  justify-content: space-between;
  gap: clamp(20px, 3vw, 40px);
}

/* ▼ 各アイテム */
#services .services-item{
  width: auto;
  flex: 1;
  min-width: 0;
}

/* ▼ アイコン背景（白い丸） */
.services-image {
  width: clamp(160px, 22vw, 320px);
  aspect-ratio: 1 / 1;
  background-color: #FFF;
  border-radius: 50%;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.services-image img {
  width: 70%;
  height: auto;
  display: block;
}

/* ▼ h3 見出し */
.services-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 500;
}

/* ▼ 左の赤いマーク（共通の箱） */
.services-title-icon {
  width: 25px;
  height: 25px;
  background-color: #BF3232;
  display: inline-block;
  border-radius: 50%;
  display: block;
  inline-size: 25px;
  aspect-ratio: 1 / 1; 
  block-size: auto; 
  flex: 0 0 auto;
  flex-shrink: 0;
}

/* ▼ itemごとに形を変える（丸 → 四角 → 五角形） */
.services-item:nth-child(2) .services-title-icon {
  border-radius: 0; /* 四角 */
}

.services-item:nth-child(3) .services-title-icon {
  border-radius: 0;
  clip-path: polygon(
    50% 0%,
    100% 38%,
    82% 100%,
    18% 100%,
    0% 38%
  ); /* 五角形 */
}

/* ▼ 本文 */
.services-item p {
  line-height: 1.8;
  font-size: 15px;
  text-align: left;
  margin-top: 10px;
}

/* ======================
＋アイコン
====================== */
.section-divider-wrapper {
  --gap: 120px; 
  --d: clamp(72px, 7vw, 100px); 
  --over: clamp(18px, 2vw, 25px);
  position: relative;
  margin-top: calc(var(--over) * -1);
  margin-bottom: calc(var(--over) * -1); 
  z-index: 3;
}

.section-divider {
  width: var(--d);
  height: var(--d);
  margin: 0 auto;
  background-color: #BF3232;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-divider__icon {
  position: static;
  transform: none; 
  color: #FFF;
  font-size: calc(var(--d) * 0.64);
  font-weight: bold;
  display: block;
  line-height: 1;
  transform: translateY(-0.05em); 
}

/* ======================
capability
====================== */
#capabilities {
  margin-top: 0;
  background-color: #FDF6E8;
  border-radius: 30px;
}

/* 内側余白（80px追加） */
.capabilities-inner {
  background-color: #FDF6E8;
  border-radius: 20px;
}

/* 各項目 */
.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

/* 赤ラベル */
.capability-label {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  background-color: #BF3232;
  color: #FFF;
  padding: 15px 30px;
  border-radius: 8px;
  min-width: 320px;
}

/* 図形アイコン（全体共通） */
.capability-icon {
  width: 25px;
  height: 25px;
  background-color: #FFF;
  display: inline-block;
  border-radius: 50%; /* 初期値＝丸 */
}

/* 1つ目 → 丸のまま OK */
.capability-item:nth-child(1) .capability-icon {
  border-radius: 50%;
}

/* 2つ目 → 四角に変更 */
.capability-item:nth-child(2) .capability-icon {
  border-radius: 0px;
}

/* 3つ目 → 五角形 */
.capability-item:nth-child(3) .capability-icon {
  border-radius: 0;
  clip-path: polygon(
    50% 0%,
    100% 38%,
    82% 100%,
    18% 100%,
    0% 38%
  );
}

.capability-item:last-child {
  margin-bottom: 0;
}

.capability-title {
  font-size: 20px;
}

/* 3つ目だけ少しだけ小さくする */
.capability-label--long {
  font-size: 18px;
}

/* ======================
about
====================== */
#about {
  margin-top: clamp(64px, 10vw, 120px);
  background-color: #FDF6E8;
  border-radius: 30px;
}

/* 小見出し プロフィール＋スキルの帯 */
.about-section-title {
  display: inline-block;
  background-color: #BF3232;
  color: #FFF; 
  padding: 8px 24px; 
  border-radius: 8px; 
  font-size: 20px;
  margin-bottom: 10px;
}

.about-inner {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
}

/* プロフィール画像 */
.about-image {
  flex: 0 0 clamp(180px, 20vw, 228px); 
}

.about-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  display: block;
}

/* 右側テキストブロック */
.about-content {
  flex: 1;
}

.about-profile {
  margin-bottom: 30px;
}

/* 名前行 */
.fullname {
  font-size: 28px; 
  margin-bottom: 16px;
}

.name-ja {
  display: inline-block;
  margin-right: 36px;
  font-size: 32px;
  font-weight: 500;
}

.name-en {
  font-size: 32px;
  font-weight: 500;
}

/* 波線（SVG） */
.name-underline {
  margin: 8px 0 32px;
}

.name-underline svg {
  max-width: 765px;
  width: 100%;
  height: auto;
  display: block;
}

/* ======================
works
====================== */
/* セクション自体の箱（他セクションと同じルール） */
#works {
  margin-top: clamp(64px, 10vw, 120px);
  background-color: #FDF6E8;
  border-radius: 30px;
}

/* 一覧全体：2カラムのグリッド */
.works-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
}

/* 各アイテムのカード */
.works-item {
  padding-top: 20px;
  padding-bottom: 24px;
  background-color: #FDF6E8;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.works-item:hover {
  opacity: 0.5;
}

/* サムネイル */
.works-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #BF3232;
  border-radius: 20px;
}

/* タイトル */
.works-title {
  margin-top: 24px;
  margin-bottom: 16px;
  font-size: 1.4rem;
  font-weight: 400;
}

/* タグの並び */
.works-tag-list {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

/* タグ本体（文字数が変わっても同じ見た目に） */
.works-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  min-width: 80px; 
  min-height: 32px; 
  border-radius: 10px; 
  background-color: #BF3232;
  color: #FFF;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .05em;
  box-sizing: border-box;
  text-align: center;
}

/* 「実績をもっと見る」ボタン */
.works-more-btn {
  display: block;
  margin: 50px auto 0 auto;
  padding: 14px 28px;
  background-color: #BF3232;
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.works-item--hidden {
  display: none;
}

.works-item--hidden.is-open {
  display: block;
}

#worksToggleBtn {
  border-radius: 50px; 
  padding: 16px 40px;
  color: #FDF6E8;
  border: 2px solid #BF3232;

}

#worksToggleBtn:hover{
  background-color: #FDF6E8;
  color: #BF3232;
  border: 2px solid #BF3232;
  cursor: pointer;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

/* ======================
contact
====================== */
#contact {
  margin-top: clamp(64px, 10vw, 120px);
  background-color: #FDF6E8;
  border-radius: 30px;
}

/* contactの中身だけ細くする */
#contact .inner--card{
  max-width: 768px;
  min-width: 0;
  margin-inline: auto;
  padding-inline: clamp(40px, 7vw, 70px);
}

/* リード文 */
.contact-lead {
  margin-inline: auto;
  margin-bottom: 60px;
  line-height: 1.8;
  color: #4A4A4A;
  width: fit-content;
  max-width: 32em;
  text-align: left; 
  font-size: clamp(14px, 2.8vw, 16px);
}

/* -------------------------
  フォーム全体
------------------------- */
.contact-form {
  width: 100%;
}

/* 1項目のブロック */
.form-group {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

/* ラベル行（必須バッジもここに） */
.form-label {
  width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: baseline;
  gap: 16px;
  font-size: 16px;
  letter-spacing: 0.03em;
}

/* 必須バッジ */
.contact-badge {
  background: #EA0000;
  color: #FFF;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1;
  display: inline-block;
}

/* -------------------------
   入力欄
------------------------- */
.form-input {
  width: 100%;
  flex: 1;
  padding: 16px;
  border: 1px solid #D8C8B0;
  border-radius: 8px;
  background: #FFF;
  font-size: 16px;
  letter-spacing: .02em;
}

/* textarea */
.form-textarea {
  flex: 1;
  padding: 16px;
  border: 1px solid #D8C8B0;
  border-radius: 8px;
  background: #FFF;
  font-size: 16px;
  height: 180px;
  resize: vertical;
}

/* placeholder */
.form-input::placeholder,
.form-textarea::placeholder {
  color: #B8B8B8;
}

/* -------------------------
   送信ボタン
------------------------- */
.contact-submit {
  display: block;
  margin: 60px auto 0;
  padding: 16px 48px;
  background-color: #BF3232;
  color: #FFF;
  font-size: 16px;
  border: 2px solid #BF3232;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease;
}

.contact-submit:hover {
  background-color: #FDF6E8;
  color: #BF3232;
  border: 2px solid #BF3232;
  cursor: pointer;
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
}

/* ======================
PAGE TOPボタン
====================== */
/* ラッパー：右寄せ＆位置決め（x方向ここで合わせる） */
.page-top-wrapper {
  max-width: 1200px; 
  margin: 40px auto;
  display: flex;
  justify-content: flex-end;
}

.page-top {
  display: block;
  width: clamp(76px, 18vw, 100px); 
  aspect-ratio: 1 / 1; 
  text-decoration: none;
  transition: opacity 0.5s ease, transform 0.3s ease;
}

.page-top:hover {
  transform: translateY(-5px);
}

/* SVGをボタンのサイズにぴったりフィットさせる */
.page-top__svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ======================
  モーダル（共通）
====================== */
/* モーダルの土台（最初は非表示） */
.modal {
  position: fixed;
  inset: 0; 

  display: flex; 
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}

/* JS で .is-active が付いたら表示する */
.modal.is-active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 中身のカード部分（白いウィンドウ） */
.modal-content {
  background-color: #FFF; 
  border-radius: 30px;
  padding: clamp(24px, 6vw, 50px);
  width: min(1200px, calc(100% - clamp(24px, 6vw, 80px)));
  max-height: 85vh;
  box-sizing: border-box;
  position: relative; 
  overflow: hidden; 

  opacity: 0;
  transition: opacity 0.8s ease;
}

.modal.is-active .modal-content {
  opacity: 1;
}

/* モーダル全体の文字ルール（h3/h4 は太らせない） */
.modal-content h3,
.modal-content h4 {
  font-weight: 400;
}

/* 閉じるボタン（右上の ×） */
.modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 4px; 
  background: #FDF6E8; 
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* hover（任意） */
.modal-close:hover {
  opacity: 0.5;
}

/* ======================
  WORKS モーダル中身
====================== */
/* タイトル＋タグ（左上ブロック） */
.modal-works-header {
  max-width: 400px;
  margin-bottom: clamp(8px, 3vw, 18px);
}

.modal-works-title {
  margin: 0 0 16px; 
  font-size: clamp(18px, 2.2vw, 24px);
}

.modal-works-tag-list {
  display: flex;
  gap: 12px;
}

.modal-works-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5px, 0.8vw, 6px) clamp(12px, 1.8vw, 18px);
  min-width: clamp(64px, 8vw, 80px); 
  min-height: 32px; 
  border-radius: 10px; 
  background-color: #BF3232;
  color: #FFF;
  font-size: clamp(12px, 1.4vw, 14px);
  line-height: 1.2;
  letter-spacing: .05em;
  box-sizing: border-box;
  text-align: center;
}

/* 左：サムネ ／ 右：テキストを横並びにする親 */
.modal-works-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
}

/* 左カラム（タイトル＋タグ＋サムネ）の幅 */
.modal-works-main {
  flex: 0 0 clamp(280px, 42vw, 520px);
  min-width: 0;
}

/* 横長タイプ共通（LP・PFどっちも） */
.modal-works-main--wide {
  display: flex;
  flex-direction: column;
}

.modal-works-thumb {
  display: flex;
  justify-content: center;
}

.modal-works-body--banner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(16px, 2vw, 28px);
}

/* 左カラム（タイトル＋タグ＋サムネ）をバナー用に少し詰める */
.modal-works-main--banner {
  flex: unset;
  max-width: none;
}

/* バナー（正方形）だけ */
.modal-works-thumb--square img {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
}

/* 右側テキストエリア（ここだけスクロールさせる） */
.modal-works-description {
  flex: 1;
  height: 100%;
  max-height: calc(85vh - (clamp(24px, 6vw, 50px) * 2));
  
  min-width: 0;
  overflow-y: auto; 
  padding-right: 8px;
}

/* 各ボックス（制作仕様 / 制作背景 / デザインについて など） */
.modal-works-description__item {
  padding: 20px 20px 0 20px;
  background-color: #FFF;
}

.modal-works-description__item:first-child {
  padding-top: 0;
}

.modal-works-description__label {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 16px;
  border-radius: 4px;
  background-color: #BF3232;
  color: #FFF;
  font-size: 14px;
}

.modal-works-description__text {
  font-size: 14px;
  line-height: 1.8;
}

/* 制作仕様（ul）のスタイル */
.modal-spec-list {
  list-style: none; 
  margin: 0;
  padding-left: 0;
}

.modal-spec-list li {
  position: relative;
  padding-left: 14px; 
  font-size: 14px;
  line-height: 1.8;
}

/* ハイフン（-）を疑似要素で付ける */
.modal-spec-list li::before {
  content: "-";
  position: absolute;
  left: 0;
  top: 0;
  color: #333; 
  font-weight: 400;
}

/* ======================
  WORKS モーダル（PFサイト専用）
  共通モーダルCSSの「下」に追記
====================== */
.modal-illustrations {
  display: flex;
  gap: 24px; 
  padding: 16px;
  margin-bottom: 20px;
  box-sizing: border-box;
}
.modal-illustrations img {
  flex: 1 1 0;
  max-width: calc((100% - 24px) / 2);
  height: auto;
  margin: 0;
  display: block;
}

/* ======================
  WORKS モーダル（水回りLP専用）
  共通モーダルCSSの「下」に追記
====================== */
/* LPサムネ：350 × 約 218px 想定 */
.modal-works-main--wide .modal-works-thumb img {
 width: min(100%, 520px); 
  height: auto;
  object-fit: contain;
  display: block;
}

/* 下層LPへ飛ぶボタン */
.modal-works-main--wide .modal-works-btn {
  display: inline-flex;
  justify-content: center;
  align-self: center;
  margin-top: clamp(16px, 3vw, 32px);
  padding: clamp(12px, 2vw, 18px) clamp(20px, 4vw, 40px);
  border-radius: 50px;
  border: 2px solid #BF3232;
  background-color: #FDF6E8;
  color: #BF3232;
  font-size: clamp(14px, 1.6vw, 17px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
  text-decoration: none;
  box-sizing: border-box;
}

.modal-works-btn:hover {
  border: 2px solid #BF3232;
  background-color: #BF3232;
  color: #FDF6E8;
}

/* ======================
  WORKS モーダル（バナー別案）
  共通モーダルCSSの「下」に追記
====================== */
.modal-variation-img {
  display: block; 
  max-width: 350px;
  width: 100%; 
  margin: 20px auto; 
}

#modal-craftfair .modal-variation-img {
  max-width: 100%; 
  height: auto;
  display: inline-block;
  margin: 20px auto 0;
}

#modal-fitness-miora .modal-variation-list {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 8px;
}

#modal-fitness-miora .modal-variation-img {
  max-width: calc(50% - 8px);
  height: auto;
  display: block;
}

/* ======================
   CONTACT 確認モーダル
   （中身だけスクロール）
====================== */
/* このモーダルだけカード幅を少し細くする */
#confirmModal .modal-content {
  max-width: 900px; 
}

/* 中身のレイアウト全体（縦並び） */
.modal-contact {
  color: #333333;
  display: flex;
  flex-direction: column;
  max-height: calc(90vh - 100px); 
}

/* 右カラムだけスクロール（PC〜タブレット想定） */
.modal-works-description{
  overflow: auto;
  max-height: 60vh;
  padding-right: 6px;
}

/* タイトル・リード */
.modal-contact__title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.modal-contact__lead {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* 一覧部分：ここだけスクロールさせる */
.modal-contact__list {
  margin: 0 0 24px;
  padding-right: 8px; 
  flex: 1; 
  overflow-y: auto; 
}

/* 1行分（ラベル＋内容） */
.modal-contact__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  column-gap: 24px;
  row-gap: 8px;
  font-size: 0.9rem;
  line-height: 1.8;
  padding: 8px 0;
}

/* 行ごとの縞背景 */
.modal-contact__row:nth-child(odd) {
  background-color: #f3f3f3;
}

.modal-contact__row dt {
  padding-left: 16px;
  font-weight: 500;
  color: #333;
}

.modal-contact__row dd {
  margin: 0;
  white-space: pre-wrap; 
  overflow-wrap: anywhere; 
  word-break: break-word; 
  min-width: 0;
}

/* ボタン並び（カード下部に固定されるイメージ） */
.modal-contact__buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 8px;
}

/* ボタン共通 */
.modal-btn {
  min-width: 150px;
  padding: 12px 24px;
  border-radius: 50px;
  border: 1px solid #bf3232;
  font-size: 0.9rem;
  cursor: pointer;
}

/* 戻るボタン */
.modal-btn--back {
  background-color: #FFF;
  color: #bf3232;
}

/* 送信ボタン */
.modal-btn--submit {
  background-color: #bf3232;
  color: #FFF;
}

.modal-btn:hover {
  opacity: 0.5;
  transition: opacity .2s;
}

/* 送信中（disabled）状態 */
.modal-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* hoverを無効化（重要） */
.modal-btn:disabled:hover {
  opacity: 0.7;
}

.modal-btn:disabled::after {
  font-size: 0.75em;
  margin-left: 0.5em;
}

/* 送信失敗時のメッセージ */
.modal-contact__error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #BF3232;
  border-radius: 12px;
  color: #BF3232;
  background: #fff7f7;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 480px以下でconfirm画面を1frに変える */
@media (max-width: 480px) {
  .modal-contact__row {
    grid-template-columns: 1fr; /* 縦積み */
    row-gap: 4px;
    padding: 12px 0;
  }

  .modal-contact__row dt {
    padding-left: 12px;
  }

  .modal-contact__row dd {
    padding-left: 12px;
  }

  .modal-contact__buttons {
    flex-direction: column;
    align-items: center; /* ボタンを中央へ */
    gap: 12px;
  }

  .modal-contact__buttons .modal-btn {
    width: min(100%, 320px); 
  }

  .modal-btn--submit {
    order: -1; 
  }
}

/* ======================
  CONTACT THANK YOUモーダル
====================== */
.modal-thanks__header {
  text-align: center;
}

.modal-thanks {
  padding: clamp(18px, 4vw, 56px);
}

.modal-thanks__logo img {
  width: clamp(200px, 55vw, 360px);
  height: auto;
  display: block;
  margin-inline: auto;
}

.modal-thanks__heading {
  margin-top: 12px;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.6;
}

.modal-thanks__message {
  margin-top: 32px;
  max-width: 600px; 
  margin-inline: auto; 
}

.modal-thanks__message p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.modal-thanks__buttons {
  text-align: center;
  margin-top: 40px;
}

#thanksModal .modal-btn--back {
  background-color: #FDF6E8;
}

/* confirm thanks画面設定 */
@media (max-width: 820px){
  #confirmModal .modal-content,
  #thanksModal .modal-content{
    margin-top: 0;

  }

  #confirmModal.modal.is-active,
  #thanksModal.modal.is-active{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px;
  }

  #confirmModal .modal-content,
  #thanksModal .modal-content{
    max-height: calc(100dvh - 120px);
    overflow: auto;
  }
}

@media (max-width: 480px) {
  #confirmModal.modal.is-active,
  #thanksModal.modal.is-active{
    padding-top: 88px;
    padding-bottom: 24px;
  }

  #confirmModal .modal-content,
  #thanksModal .modal-content{
    max-height: calc(100dvh - 80px);
    overflow: auto;
  }
}

/* ======================
フッター
====================== */
footer {
  width: 100%;
  height: 100px;
  background-color: #BF3232;
}

footer p {
  line-height: 100px;
  text-align: center;
  color: #fdf6e8;
}

/* ======================
LP水回り
下層(mizumawari.html）
====================== */
/* LP用カード（section-cardと同じ） */
.lp-visual {
  max-width: 1200px;
  margin-inline: auto;
  width: 100%;
  margin-top: clamp(120px, 18vw, 180px);
}

/* --------------------------------------------------
  LP詳細ページ：水回りLP
  既存のstyle.cssの一番下あたりに足すイメージ
-------------------------------------------------- */
/* ▼ 中央寄せの箱（topの.section-innerと同じ） */
/* 中身の左右余白 */
.lp-visual__inner {
  margin-inline: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ▼ 「全体図」ラベル */
.lp-visual__label {
  margin-block: 40px 0;
  margin-inline: clamp(24px, 5vw, 80px) 0;
}

/* ▼ 白いフレーム（PC＋SP画像をまとめて入れる箱） */
.lp-visual__frame {
  background-color: #FFF;
  border-radius: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
}

.lp-visual__body {
  max-width: 960px;
  margin-inline: auto; 
  display: flex;
  gap: clamp(24px, 4vw, 40px);
  padding: clamp(24px, 5vw, 80px);
  justify-content: center;
}

.lp-visual__img img {
  width: 100%;
}

/* ======================
768pxレイアウト
====================== */
@media (max-width: 768px) {
  .wrapper { padding-inline: 20px; } 
}

/* ======================
   policy（768px以下）
====================== */
@media (max-width: 768px) {

  /* セクション自体 */
  #policy {
    padding: 80px 0;
  }

  /* 1カラム化：縦積み */
  .policy-inner {
    max-width: 600px;
    margin: 0 auto;

    padding-inline: clamp(16px, 6vw, 50px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px; 
  }

  /* 画像：横幅は100% */
  .policy-image {
    flex: none;
    width: 100%;
    max-width: clamp(360px, 60vw, 500px); 
  }

  .policy-image img {
    width: 100%;
    height: auto;
  }

  /* テキスト：中央寄せ（スクショっぽく） */
  .policy-text {
    flex: none;
    width: 100%;
  }

  .policy-text h2 {
    font-size: clamp(20px, 5vw, 24px); 
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: center;
  }

  .policy-text p {
    font-size: 14px;
    line-height: 2;
    text-align: left;

  }
}

/* ======================
services（768px以下：1カラム）
====================== */
@media (max-width: 768px) {

  /* 3カラム → 1カラム */
  .services-inner{
    flex-direction: column;
    align-items: center;
    gap: 48px; 
  }

  /* 各アイテム：幅に上限を持たせる */
  #services .services-item{
    width: 100%;
    max-width: clamp(420px, 80vw, 560px);
    margin-inline: auto;
  }

  /* 画像（白丸）：SPで強くなりすぎないように調整 */
  .services-image{
    width: clamp(180px, 50vw, 280px); 
    margin: 0 auto 24px;
  }

  /* 見出し：中央 */
  .services-title{
    font-size: 20px; 
    margin-bottom: 16px;
  }

  /* 本文：読みやすさ優先で左寄せ維持 */
  .services-item p{
    font-size: 15px;
    line-height: 1.9;
  }
}

/* ======================
about SP（655px以下で1カラム）
====================== */
@media (max-width: 655px) {

  /* 2カラム → 1カラム */
  .about-inner{
    flex-direction: column;
    align-items: center; 
    gap: 40px; 
  }

  .about-image{
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .about-image img{
    width: clamp(180px, 40vw, 240px);
    aspect-ratio: 1 / 1;
    height: auto; 
    display: block;
    object-fit: contain;
  }

  /* 右側テキスト：中央基準に */
  .about-content{
    width: 100%;
  }

  /* 名前：SPでは日→英の2行にして崩れを消す */
  .fullname{
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 24px;
    text-align: center;
    margin-bottom: 20px;
  }

  .name-ja,
  .name-en{
    display: inline;
    margin-right: 0;
    font-size: clamp(24px, 6vw, 32px);
    line-height: 1.2;
    white-space: nowrap;
  }

  .name-en{
    margin-top: 6px;
  }

  /* 波線：中央寄せ＆幅を抑える */
  .name-underline{
    margin: 12px auto 24px;
    width: 100%;
  }

  /* 赤帯（見出し）：中央寄せで “2行化”しづらく */
  .about-section-title{
    display: inline-block;
    text-align: center;
    margin-inline: auto;
    font-size: 18px;
    padding: 8px 20px;
  }

  /* プロフィール本文：行間だけ気持ち整える */
  .about-profile p,
  .about-skills p{
    line-height: 1.9;
  }
}

/* ======================
works（745px以下：1カラム）
====================== */
@media (max-width: 745px) {
  /* 一覧：1カラム */
  .works-list{
    grid-template-columns: 1fr;
    gap: clamp(16px, 4vw, 28px); 
  }

  /* アイテム */
  .works-item{
    max-width: 520px; 
    margin-inline: auto;
    width: 100%;
    padding: clamp(16px, 4vw, 24px);
  }

  /* サムネ */
  .works-thumb img{
    width: 100%;
    height: auto;
  }

  /* タイトル：2行になっても気になりにくいように調整 */
  .works-title{
    margin-top: clamp(16px, 4vw, 24px);
    margin-bottom: 12px;
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.35;
  }

  /* タグ：はみ出し事故を避ける（折り返し許可＋中央寄せ） */
  .works-tag-list{
    gap: 12px;
    flex-wrap: wrap;
    /* justify-content: start; */
  }

  /* タグ：文字が長い時の破綻を防ぐ */
  .works-tag{
    min-width: 0;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 10px;
    max-width: 100%;
    word-break: keep-all;
  }
}


/* ======================
768px以下：SPヘッダーに切り替え（カプセルは残す）
====================== */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .header-inner {
    height: 64px;
  }

  /* ハンバーガー */
  .header-hamburger {
    display: grid;
    place-items: center;

    width: 64px;
    height: 64px;
  }

  .header-logo {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
  }

  .header-logo__btn {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
  }

  .header-logo__btn img {
    width: 40px;
    height: 40px;
  }

  .header-inner {
    justify-content: space-between;
    /* SPは左右余白を少し詰める（でもカプセル維持） */
    padding-inline: clamp(12px, 4vw, 24px);
  }

  .header--scrolled .header-inner {
    background-color: #FFF;
  }

  .header-nav__link:hover,
  .header-logo:hover {
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .header-inner { 
    height: 56px; 
    padding-inline: 24px;
  }

  .header-logo,
  .header-logo__btn,
  .header-hamburger {
    width: 56px;
    height: 56px;
  }

  .header-logo {
    flex: 0 0 56px;
  }

  .header-logo__btn img {
    width: 34px;
    height: 34px;
  }
}

/* ======================
FV variant 切り替え
====================== */
/* まず全部非表示 */
.fv-variant {
  display: none;
}

/* ======================
PC：769px以上
====================== */
@media (min-width: 769px) {
  .fv--pc {
    display: block;
  }
}

/* ======================
TAB：501px〜768px
====================== */
@media (min-width: 501px) and (max-width: 768px) {
  .fv--tab { 
    display: block; 
  }
}

/* ======================
SP：〜500px
====================== */
@media (max-width: 500px) {
  .fv--sp { 
    display: block;
   }
}


/* 768px 以下のmargin指定 */
@media (max-width: 768px) {
  .fv {
    margin-top: clamp(100px, 18vw, 130px);
    margin-bottom: clamp(16px, 2vw, 60px);
  }
}

/* ======================
scroll
====================== */
@media (max-width: 768px) {
  .scroll-indicator {
    top: 78%;
    width: clamp(70px, 12vw, 120px);
  }
}

/* ======================
works
====================== */
@media (max-width: 960px) {

  /* タイトル（h3.works-title） */
  .works-title{
    font-size: 1.25rem; 
    margin-top: 20px;
    margin-bottom: 12px; 
  }

  /* タグ並び */
  .works-tag-list{
    gap: 12px; 
    margin-top: 6px; 
  }

  /* タグ本体 */
  .works-tag{
    font-size: 13px; 
    padding: 5px 14px; 
    min-width: 72px; 
    min-height: 28px; 
    border-radius: 9px; 
  }
}

/* ======================
capabilities
====================== */
@media (max-width: 820px) {
  .capability-item {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 650px){
  .capabilities-inner{
   max-width: clamp(300px, 90vw, 500px);
    margin-inline: auto;
  }

  .capability-item{
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .capability-label {
    min-width: 280px;
  }

  .capability-label,
  .capability-item p{
    width: 100%;
    max-width: 100%;
  }

  .capability-item p{
    text-align: left;
    margin: 0;
  }
}

@media (max-width: 390px) {
  .capability-title {
    font-size: 18px;
  }

  .capability-label--long {
    font-size: 15px;
  }
}

/* ======================
modal共通（820pxで1カラム）
====================== */
/* 820以下で1カラム化 */
@media (max-width: 820px){
  .modal {
    align-items: flex-start;
    justify-content: center;
    padding: clamp(16px, 4vw, 28px);
    overflow: hidden;
  }

  .modal-works-main--wide{
    width: 100%;
  }

  .modal-content {
    margin-top: clamp(60px, 6vw, 80px);
    padding: clamp(40px, 6vw, 50px);
    max-height: none;
    height: auto;
    max-height: calc(100dvh - 120px);
    display: flex;
    flex-direction: column;
  }

  .modal-works {
    overflow-y: auto;
  }

  /* 1カラム化 */
  .modal-works-body{
    grid-template-columns: 1fr;
    gap: 40px;

    min-height: 0;

    padding-right: 12px;
    scrollbar-gutter: stable;
  }

  .modal-works-main {
    padding-inline: 20px;
    box-sizing: border-box;
  }

  /* 1カラム時は右だけスクロールをやめる */
  .modal-works-description{
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}



