@charset "UTF-8";

/* ====================================
   オリジナルフォントの読み込み
==================================== */
@font-face {
  font-family: 'capirera6';
  src: url('Capirera-6.TTF') format('truetype');
}

/* ====================================
   共通設定（全ページ共通）
==================================== */
:root {
  --main-color: #ffdae0;
  --accent-color: #ffd4c4;
  --text-color: #5a4d4a;
  --bg-color: #fff9f6;
  --price-color: #e85a71;
}

body { font-family: 'capirera6', sans-serif; font-weight: 500; margin: 0; padding: 0; color: var(--text-color); background-color: var(--bg-color); line-height: 1.8; animation: fadeIn 1.5s ease-in-out; }
@keyframes fadeIn { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* ====================================
   ヘッダー設定（左右端ギリギリの全幅）
==================================== */
header {
  text-align: center;
  padding: 60px 20px 50px; /* 画像を広く見せるために上下の余白を少し増やしました */
  
  /* ▼ 後日GIF動画にする際は、以下の 'header.jpg' を 'header.gif' に変更するだけでOKです ▼ */
  /* ※もし動画を白っぽくせず、色をくっきり見せたい場合は「linear-gradient(...), 」の部分を丸ごと削除してください */
  background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('header.jpg');
  
  background-size: cover;
  background-position: center;
  width: 100%; /* 左右の端まで広げる */
  box-sizing: border-box;
  margin: 0 0 50px 0;
  /* 以前の max-width や border-radius などの「枠」の設定を削除しました */
}

.logo { font-family: 'capirera6', sans-serif; font-size: 24px; letter-spacing: 2px; margin-bottom: 15px; color: var(--text-color); text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 0 4px 10px rgba(255,255,255,0.9); }
.logo::after { content: " ✨"; font-size: 0.8em; color: var(--main-color); }

nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; align-items: center;}
nav a { display: flex; flex-direction: column; align-items: center; padding: 8px 18px; border-radius: 20px; background-color: var(--bg-color); color: var(--text-color); line-height: 1.2; }
.nav-en { font-size: 14px; letter-spacing: 1.5px; font-weight: 700; }
.nav-ja { font-size: 10px; opacity: 0.8; font-weight: 500; margin-top: 2px; }
nav a:hover { color: #fff; background-color: var(--main-color); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(255, 218, 224, 0.6); }

/* ====================================
   セクション共通設定
==================================== */
section { max-width: 900px; margin: 60px auto; padding: 0 20px; }

/* タイトルを縦並びにしてルビを追加する設定 */
.sec-title { font-family: 'capirera6', sans-serif; text-align: center; margin-bottom: 50px; color: var(--text-color); position: relative; display: inline-flex; flex-direction: column; align-items: center; left: 50%; transform: translateX(-50%); }
.sec-en { font-size: 24px; letter-spacing: 3px; line-height: 1; }
.sec-ja { font-size: 12px; font-weight: 700; color: var(--price-color); letter-spacing: 2px; margin-top: 8px; line-height: 1; }
.sec-title::after { content: ''; position: absolute; bottom: -15px; left: 0; width: 100%; height: 6px; background: var(--main-color); border-radius: 3px; }

.card-style { background: #fff; border-radius: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.015); transition: transform 0.3s, box-shadow 0.3s; border: 1px solid #fff; }
.card-style:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.03); border: 1px solid #eee; }
footer { text-align: center; padding: 30px; font-size: 12px; color: #ccc; margin-top: 60px; background: #fff; border-radius: 30px 30px 0 0; border-top: 1px solid #eee; }

/* ====================================
   index.html & portfolio.html 専用設定
==================================== */
.pickup-container { padding: 15px; text-align: center; }
.pickup-video { width: 100%; aspect-ratio: 16/9; background: #fdf2f4; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: #ccacb2; margin-bottom: 15px; font-weight: 700; overflow: hidden; }
.pickup-info h3 { margin: 0 0 8px 0; font-size: 18px; color: #333; font-weight: 700; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.service-card { padding: 40px 25px; text-align: center; }
.service-num { color: var(--main-color); font-family: 'Mochiy Pop P One', sans-serif; font-size: 40px; font-weight: bold; margin-bottom: 10px; text-shadow: 2px 2px 0 #fff; }
.service-title { font-weight: 700; margin-bottom: 10px; font-size: 18px; color: #333; }
.service-desc { font-size: 14px; color: #777; }

/* ギャラリー（ドラッグ対応のカーソル設定を追加） */
.gallery-wrapper { width: 100%; overflow-x: auto; padding-bottom: 20px; scrollbar-width: thin; scrollbar-color: var(--main-color) var(--bg-color); -webkit-overflow-scrolling: touch; cursor: grab; }
.gallery-wrapper.active { cursor: grabbing; } /* ドラッグ中は掴むカーソルに */
.gallery-wrapper::-webkit-scrollbar { height: 8px; }
.gallery-wrapper::-webkit-scrollbar-thumb { background: var(--main-color); border-radius: 10px; }
.gallery-wrapper::-webkit-scrollbar-track { background: var(--bg-color); border-radius: 10px; }
.gallery-grid { display: flex; gap: 20px; padding: 10px 5px; flex-wrap: nowrap; }
.gallery-item { width: 280px; flex: 0 0 auto; white-space: normal; }
.gallery-thumb { width: 100%; aspect-ratio: 16/9; background: #fdf2f4; display: flex; align-items: center; justify-content: center; color: #ccacb2; font-size: 13px; font-weight: 700; overflow: hidden; border-radius: 20px 20px 0 0; }
.gallery-info { padding: 15px; }
.gallery-date { font-size: 11px; color: #bbb; margin-bottom: 6px; }
.gallery-title { font-size: 15px; font-weight: 700; line-height: 1.5; margin: 0; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;}
.category-tag { display: inline-block; font-size: 11px; background: var(--bg-color); border: 1px solid #eee; padding: 4px 10px; border-radius: 20px; margin-top: 10px; color: #999; font-weight: 700; }
.filter-buttons { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.filter-btn { padding: 8px 20px; border-radius: 30px; border: 2px solid var(--main-color); background: #fff; color: var(--text-color); font-family: 'capirera6', sans-serif; cursor: pointer; transition: 0.3s; }
.filter-btn:hover, .filter-btn.active { background: var(--main-color); color: #fff; }

/* ====================================
   price.html（料金表）専用設定
==================================== */
.price-section { margin-bottom: 60px; }
.price-cat-title { font-size: 18px; color: var(--text-color); background: var(--main-color); padding: 10px 25px; border-radius: 20px; display: inline-block; margin-bottom: 20px; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(255, 218, 224, 0.6); }

/* 納品までの流れ */
.flow-list { list-style: none; padding: 0; margin: 0; }
.flow-list li { background: #fff; margin-bottom: 45px; padding: 20px; border-radius: 15px; display: flex; align-items: center; box-shadow: 0 4px 15px rgba(0,0,0,0.02); border: 1px solid #fdf2f4; position: relative; }
.flow-list li:not(:last-child)::after { content: '▼'; position: absolute; bottom: -38px; left: 50%; transform: translateX(-50%); color: var(--main-color); font-size: 22px; text-shadow: 0 2px 4px rgba(255, 218, 224, 0.5); }
.flow-step { background: var(--main-color); color: var(--text-color); padding: 6px 16px; border-radius: 20px; font-size: 15px; margin-right: 20px; white-space: nowrap; font-weight: bold; box-shadow: 0 3px 8px rgba(255, 218, 224, 0.6); }
.flow-text { font-size: 15px; color: #333; font-weight: 700; }
.flow-sub { font-size: 12px; color: #777; display: block; margin-top: 5px; font-weight: 500;}

/* タブボタン */
.tab-container { margin-bottom: 60px; }
.tab-buttons { display: flex; justify-content: center; gap: 8px; margin-bottom: -4px; position: relative; z-index: 10; flex-wrap: wrap; }
.tab-btn { padding: 12px 25px; background: #fdf2f4; color: var(--text-color); border: 4px solid var(--main-color); border-bottom: none; border-radius: 20px 20px 0 0; font-family: 'capirera6', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; transition: 0.3s; box-shadow: inset 0 -5px 10px rgba(255,218,224,0.3); }
.tab-btn:hover { background: var(--main-color); color: #fff; }
.tab-btn.active { background: #fff; color: var(--text-color); border-color: var(--main-color); padding-bottom: 16px; margin-bottom: -4px; box-shadow: none; font-size: 18px; }

.tab-content-wrapper { background: #fff; border: 4px dashed var(--main-color); border-radius: 30px; padding: 40px 25px; position: relative; }
.tab-content { display: none; animation: fadeIn 0.5s ease; }
.tab-content.active { display: block; }

/* プランカード */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-bottom: 30px; padding-top: 20px; }
.pinned-card { position: relative; padding: 45px 20px 25px; transform-origin: top center; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.pinned-card::before { content: ''; position: absolute; top: 10px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -2px -2px 4px rgba(0,0,0,0.2), inset 2px 2px 4px rgba(255,255,255,0.6), 2px 3px 4px rgba(0,0,0,0.3); z-index: 5; }
.pinned-card::after { content: ''; position: absolute; top: 18px; left: calc(50% - 1px); width: 2px; height: 16px; background: linear-gradient(to right, #ccc, #eee, #999); transform: rotate(35deg); transform-origin: top center; z-index: 4; box-shadow: 1px 1px 2px rgba(0,0,0,0.2); }
.pinned-card:hover { animation: swing 0.8s ease-in-out infinite alternate; box-shadow: 0 15px 30px rgba(255, 218, 224, 0.4); }
@keyframes swing { 0% { transform: rotate(0deg); } 33% { transform: rotate(3deg); } 66% { transform: rotate(-3deg); } 100% { transform: rotate(0deg); } }

/* ピンの色のクラス分け（赤・白を追加） */
.pin-pink::before { background: #ff8da1; }
.pin-yellow::before { background: #fce205; }
.pin-green::before { background: #58d68d; }
.pin-blue::before { background: #5dade2; }
.pin-red::before { background: #ff6b81; }
.pin-white::before { background: #ffffff; }

.plan-badge { background: #ffebf0; color: #ff8da1; font-size: 12px; font-weight: 700; padding: 5px 15px; border-radius: 20px; display: inline-block; margin-bottom: 15px; }
.plan-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: #333; }
.plan-price { font-size: 24px; font-weight: 700; color: var(--price-color); margin-bottom: 15px; text-shadow: 1px 1px 0 #fff; }
.plan-desc { font-size: 13px; color: #666; }

/* オプション・その他リスト */
.option-list { background: #fff9f6; border-radius: 20px; padding: 30px; border: 2px solid #fdf2f4; }
.option-list h4 { margin: 0 0 20px 0; color: #333; border-bottom: 2px dashed #ffdae0; padding-bottom: 10px; font-size: 16px; text-align: center; }
.option-list ul { list-style: none; padding: 0; margin: 0; }
.option-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #ffebf0; font-size: 14px; color: #555; font-weight: bold;}
.option-list li:last-child { border-bottom: none; }
.option-price { color: var(--price-color); font-weight: 700; }

/* 注意事項 */
.notes-box { position: relative; background: #fff; padding: 45px 30px 30px; border-radius: 10px; border: 2px dashed #ffbacc; font-size: 13px; color: #555; margin-top: 40px; }
.notes-box::before { content: ''; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg); width: 140px; height: 35px; background: rgba(255, 218, 224, 0.9); box-shadow: 0 1px 3px rgba(0,0,0,0.1); z-index: 1; }
.notes-title { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-weight: 700; color: var(--price-color); margin: 0; text-align: center; font-size: 16px; z-index: 10; text-shadow: 1px 1px 0 #fff; }
.notes-box ul { padding-left: 20px; margin: 0; position: relative; z-index: 2; }
.notes-box li { margin-bottom: 8px; }

/* プロフィール・お問い合わせ等 */
.profile-card { padding: 50px 30px; text-align: center; max-width: 600px; margin: 0 auto; position: relative; }
.profile-icon { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 20px; overflow: hidden; border: 4px solid var(--main-color); box-shadow: 0 4px 10px rgba(255, 218, 224, 0.5); background: #fdf2f4; display: flex; align-items: center; justify-content: center; }
.profile-icon img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 22px; margin-bottom: 15px; color: #333; }
.profile-text { font-size: 14px; text-align: left; display: inline-block; margin-bottom: 30px; }
.illust-credit { font-size: 11px; color: #999; margin-top: -15px; margin-bottom: 30px; }
.sns-links { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }
.sns-btn { display: inline-block; padding: 10px 25px; border-radius: 30px; font-size: 13px; font-weight: 700; border: 2px solid #fdf2f4; background: #fff; color: var(--text-color); transition: 0.3s; }
.sns-btn:hover { border-color: var(--main-color); background: var(--main-color); color: #fff; transform: translateY(-2px); }
.contact-box { text-align: center; background: #fff; padding: 60px 20px; border-radius: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.01); }
.btn { display: inline-block; background: #fff; color: var(--text-color); border: 3px solid var(--main-color); padding: 14px 40px; border-radius: 30px; letter-spacing: 1.5px; margin-top: 20px; transition: 0.3s; font-size: 14px; font-weight: 700; }
.btn:hover { background: var(--main-color); color: #fff; }
.form-wrapper { background: #fff; padding: 40px; border-radius: 20px; box-shadow: 0 8px 25px rgba(0,0,0,0.015); }
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 8px; color: #333; font-size: 14px; text-align: left; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border: 2px solid #fdf2f4; border-radius: 10px; font-family: 'capirera6', sans-serif; font-size: 14px; box-sizing: border-box; background: #fafafa; transition: 0.3s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--main-color); background: #fff; }
.submit-btn { display: block; width: 100%; background: var(--main-color); color: var(--text-color); border: none; padding: 15px; border-radius: 30px; font-size: 16px; font-weight: 700; font-family: 'capirera6', sans-serif; cursor: pointer; transition: 0.3s; margin-top: 10px; }
.submit-btn:hover { background: #ffc4ce; color: #fff; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 218, 224, 0.5); }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }
#page-top { position: fixed; bottom: 20px; right: 20px; background: var(--main-color); color: #fff; width: 50px; height: 50px; border-radius: 50%; text-align: center; line-height: 50px; font-size: 18px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000; border: 2px solid #fff; }
#page-top.is-show { opacity: 1; visibility: visible; }
#page-top:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); background: #ffc4ce; }

/* YouTube埋め込み用のレスポンシブ設定 */
.youtube-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9の黄金比 */
  margin-bottom: 10px;
}
.youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* ====================================
   スマホ用：タブボタンの改行・レイアウト崩れ防止（ドラッグ禁止・中央固定版）
==================================== */
@media screen and (max-width: 768px) {
  .tab-buttons {
    gap: 2px !important; 
    flex-wrap: nowrap !important; 
    justify-content: center !important; /* 左詰めではなく、画面中央に固定 */
    padding: 0 !important;
    /* 不要になった横スクロール（ドラッグ）設定を削除しました */
  }
  
  .tab-btn {
    white-space: nowrap !important; 
    padding: 8px 10px !important; /* 画面に綺麗に収まるようパディングを微調整 */
    font-size: 12px !important; 
    flex-shrink: 0 !important; 
  }
  
  .tab-btn.active {
    font-size: 13px !important;
    padding-bottom: 12px !important;
  }
}