@charset "UTF-8";

/* ===============================================
   1. クリアCSS (Reset CSS)
   =============================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0; width: 100%; height: 100%;
    -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dt, dd { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

/* ===============================================
   2. 全体レイアウト変数
   =============================================== */
:root {
    --bg-frame: #fdfaf3;
    --bg-main: #08233b;
    --text-white: #ffffff;
    --tab-paper: #cda272;
    --tab-web: #3f3f3f;
    --frame-padding: calc(2vw + 10px);
    --split-gap: 20px;
    --snap-sink: 5px;
}

body {
    font-family: "M PLUS Rounded 1c","Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    /* background-image: url("img/bgMineW.jpg"); */
    background-color: var(--bg-frame);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.frame-container {
    width: 100%; height: 100vh;
    padding: var(--frame-padding);
    display: flex; position: relative;
}

.scroll-content {
    /* background-image: url("img/bgMineB.jpg"); */
    background-color: var(--bg-main);
    width: 100%; height: 100%;
    overflow-y: auto;
    border-radius: 8px;
    border: 2px solid rgb(28, 255, 145);
    color: var(--text-white);
    position: relative;
    -webkit-overflow-scrolling: touch;
    z-index: 0;

    background-attachment: scroll;
    background-repeat: repeat;
    background-size: cover;
}
.scroll-content::-webkit-scrollbar { width: 8px; }
.scroll-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.scroll-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }

/* ===============================================
   3. 装飾（トンボ ＆ 内影）
   =============================================== */
.tombo-wrapper {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; z-index: 100;
}

/* トンボの共通設定（マスクや背景画像を削除） */
.tombo {
    position: absolute;
    /* 「ウィンドウ角から10pxの余白」を除いた領域を基準に 1.3倍 する */
    width: calc((var(--frame-padding) - 10px) * 1.3);
    height: calc((var(--frame-padding) - 10px) * 1.3);
    transform-origin: center center;
}

/* SVGが親要素いっぱいに広がるように設定 */
.tombo svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* 10pxオフセットと回転 */
.tombo.tl { top: 10px; left: 10px; transform: rotate(0deg); }
.tombo.tr { top: 10px; right: 10px; transform: rotate(90deg); }
.tombo.bl { bottom: 10px; left: 10px; transform: rotate(-90deg); }
.tombo.br { bottom: 10px; right: 10px; transform: rotate(180deg); }

/* 内影（前面へ出し、暗色背景でも見えるように濃さを調整） */
.inner-shadow-overlay {
    position: absolute;
    top: var(--frame-padding);
    left: var(--frame-padding);
    right: var(--frame-padding);
    bottom: var(--frame-padding);
    /* 影の広がりと濃さを強調 */
    /* box-shadow: inset 0 0 120px rgba(0, 0, 0, 0.6); */
    border-radius: 8px;
    pointer-events: none;
    z-index: 90; /* スクロール領域(z-index: 0)より確実に手前へ */
}

/* ===============================================
   4. エフェクトキャンバス
   =============================================== */
#effectCanvas {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; pointer-events: none;
}
#halftoneCanvas {
    position: absolute; bottom: 0; left: var(--frame-padding);
    width: calc(100% - var(--frame-padding) * 2); height: 200px;
    pointer-events: none; z-index: 15;
}

/* ===============================================
   5. ヒーローセクション ＆ ロゴレイアウト
   =============================================== */
.hero {
    height: 90vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 20px; position: relative; z-index: 2;
}
.catch-top { font-size: clamp(0.9rem, 2vw, 1.1rem); letter-spacing: 0.2em; margin-bottom: 30px; }
.catch-bottom { font-size: clamp(1rem, 2.5vw, 1.4rem); font-weight: 500; }
.logo-container {
    display: flex; align-items: center; justify-content: center;
    width: 100vw; max-width: 80%; margin: 0 auto 25px; gap: 3%; perspective: 0px;
    margin-top: 20px;
}
.logo-mark {
    width: 15%; aspect-ratio: 1 / 1; position: relative; flex-shrink: 0; padding-top: 20px;
    animation: mark-intro-tilt 0.3s ease-out 3s forwards, mark-rotate 1s ease-in-out 3.3s forwards, mark-snap-sink 0.2s ease-in 4.8s;
    transform-origin: center center; opacity: 1;
}
.mark-piece {
    position: absolute; left: 0;
    overflow: hidden; transition: transform 1s ease-in-out 3.3s;
}
.mark-piece img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mark-top { bottom: 58%; animation: piece-top-move 1s ease-in-out 3.3s forwards; }
.mark-bottom { bottom: 0; animation: piece-bottom-move 1s ease-in-out 3.3s forwards; }
.logo-text-wrapper { width: 72%; display: flex; align-items: center; }
.logo-text-wrapper img { width: 100%; height: auto; display: block; }
.img-placeholder, .text-placeholder { width: 100%; display: flex; align-items: center; justify-content: center; color: #fff; }
.text-placeholder { margin-top: 30px; }

/* ===============================================
   6. アニメーション定義 (Keyframes)
   =============================================== */
@keyframes mark-intro-tilt { 0% { transform: rotate(0deg); } 100% { transform: rotate(-15deg); } }
@keyframes mark-rotate { 0% { transform: rotate(-15deg); } 100% { transform: rotate(720deg); } }
@keyframes piece-top-move { 0% { transform: translateY(0); } 100% { transform: translateY(calc(var(--split-gap) / -2)); } }
@keyframes piece-bottom-move { 0% { transform: translateY(0); } 100% { transform: translateY(calc(var(--split-gap) / 2)); } }
@keyframes mark-snap-sink { 0% { transform: rotate(720deg) translateY(0); } 50% { transform: rotate(720deg) translateY(var(--snap-sink)); } 100% { transform: rotate(720deg) translateY(0); } }

/* ===============================================
   7. 各セクション
   =============================================== */
.content-section { width: 70%; margin: 0 auto; position: relative; z-index: 10; }
.works-section { margin-top: -15px; padding-bottom: 80px; }
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.work-card {
    background: #fff; border-radius: 6px; overflow: hidden; position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease;
    display: flex; flex-direction: column; aspect-ratio: 16 / 10;
}
.work-card:hover { transform: translateY(-5px); }
.work-image { width: 100%; height: 100%; background-color: #eee; display: flex; align-items: center; justify-content: center; color: #999; font-size: 0.8rem; overflow: hidden; }
.work-image img { width: 100%; object-fit: contain; display: block; }
.card-tabs { position: absolute; top: 0; left: 0; display: flex; z-index: 2; }
.tab { padding: 4px 12px; font-size: 0.7rem; font-weight: bold; color: #fff; text-transform: uppercase; }
.tab-paper { background-color: var(--tab-paper); }
.tab-web { background-color: var(--tab-web); }

.profile-section { padding-bottom: 100px; text-align: left; display: flex; flex-direction: column;}
.section-title { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.15em; margin: 50px 0px; text-align: center;}
.profile-bg{ width:30%; margin: 70px auto; background-size:400px; background-repeat: no-repeat; background-position:}
.profile-container { display: flex; gap: 60px; align-items: flex-start; }
.profile-left { width: 220px; flex-shrink: 0; text-align: center; }
.profile-avatar { width: 220px; height: 220px; border-radius: 50%; background-color: #4C6376; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; color: #333; font-size: 0.8rem; padding: 40px; line-height: 1.4; border: 1px solid #ffffff;}
.profile-name { font-size: 1rem; letter-spacing: 0.1em; font-weight: 700; }
.profile-right { flex-grow: 1; }
.history-list { display: grid; grid-template-columns: auto 1fr; gap: 40px 30px; }
.history-list dt { font-weight: bold; white-space: nowrap; letter-spacing: 0.05em; padding-top: 2px; }
.history-list .duration { font-size: 0.85em; opacity: 0.8; }
.history-list dd { font-size: 0.95rem; line-height: 1.9; letter-spacing: 0.03em; }

/* ===============================================
   8. スキルアイコンループ ＆ 締め
   =============================================== */
.closing-section { padding: 60px 0 150px; text-align: left; display: flex; align-items: center; }
.closing-content-wrapper { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 40px; }
.skill-loop-container { position: relative; width: 100%; max-width: 600px; overflow: hidden; }
.fade-edge { position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.fade-edge.left { background: linear-gradient(to right, var(--bg-main) 0%, transparent 100%); }
.fade-edge.right { background: linear-gradient(to left, var(--bg-main) 0%, transparent 100%); }
.skill-loop-track { display: flex; width: max-content; transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); }
.skill-loop-list { display: flex; gap: 30px; padding-right: 30px; }
.skill-icon { width: 60px; height: 60px; background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: bold; color: var(--text-white); cursor: pointer; transition: background-color 0.2s, transform 0.2s; flex-shrink: 0; }
.skill-icon:hover { background-color: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
@keyframes infinite-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.is-animating { animation: infinite-scroll 20s linear infinite; }

/* ===============================================
   9. ルーペ＆ハーフトーン効果
   =============================================== */
.loupe-magnifier { position: fixed; width: 140px; height: 140px; border-radius: 50%; pointer-events: none; overflow: hidden; z-index: 9999; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.5); transition: opacity 0.2s ease; opacity: 0; background-color: var(--bg-main); }
.loupe-content { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; transform-origin: 0 0; pointer-events: none; background-image: url("img/bgMineW.jpg"); background-size: cover; background-position: center; filter: contrast(1.3) saturate(1.5); }
.loupe-content .frame-container { position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; }
.loupe-halftone { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: radial-gradient(rgba(0, 255, 255, 0.6) 1.5px, transparent 1.5px), radial-gradient(rgba(255, 0, 255, 0.6) 1.5px, transparent 1.5px), radial-gradient(rgba(255, 255, 0, 0.6) 1.5px, transparent 1.5px), radial-gradient(rgba(0, 0, 0, 0.4) 1px, transparent 1px); background-size: 8px 8px; background-position: 0 0, 4px 2px, 2px 6px, 6px 4px; mix-blend-mode: hard-light; z-index: 10; }

/* ===============================================
   10. レスポンシブ (スマホ対応)
   =============================================== */
@media (max-width: 1024px) { .content-section { width: 80%;} .history-list { gap: 30px 20px; } }
@media (max-width: 768px) {
    .text-placeholder { margin-top: 20px; }
    .logo-container { width: 80vw; flex-direction: column ; }
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-container { flex-direction: column; align-items: center; text-align: center; }
    .profile-section { text-align: center; }
    .profile-left { margin-bottom: 30px; }
    .history-list { grid-template-columns: 1fr; gap: 15px 0; text-align: left; }
    .history-list dd { margin-bottom: 25px; }
    .catch-top {margin-bottom: 50px; font-size: 3vw;}
    .logo-mark {width:70%;}
    .closing-content-wrapper { flex-direction: column; align-items: center; text-align: center; gap: 30px; }
    .closing-text { font-size: clamp(1.2rem, 5vw, 1.8rem); }
    .skill-loop-container { width: 100%; max-width: 100%; overflow: visible; }
    .fade-edge { display: none; }
    .skill-loop-track { display: block; width: 100%; transition: none; animation: none !important; transform: none !important; }
    .skill-loop-track .skill-loop-list:nth-child(2) { display: none; }
    .skill-loop-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; padding-right: 0; }
    .skill-icon { width: calc((100% - (15px * 4)) / 5); aspect-ratio: 1 / 1; height: auto; font-size: 1rem; }
    .catch-bottom{width:70%; font-size:4.5vw;}
    .profile-bg{ padding: 0px;}
.logo-text-wrapper { width: 80vw;}
    /* スマホ時のトンボサイズとオフセットを縮小 */
    .tombo {
            width: calc((var(--frame-padding) - 5px) * 1.1);
            height: calc((var(--frame-padding) - 5px) * 1.1);
        }
        .tombo.tl { top: 5px; left: 5px; }
        .tombo.tr { top: 5px; right: 5px; }
        .tombo.bl { bottom: 5px; left: 5px; }
        .tombo.br { bottom: 5px; right: 5px; }
}
@media (max-width: 600px) {
    :root { var(--frame-padding: 15px); }
    .hero { height: 90vh; }
    .works-section { width: auto; padding: 0 20px 60px; margin-top: -15px; }
    .profile-section { width: auto; padding: 0 20px 80px; }
    .closing-section { width: auto; padding: 0 20px 100px; text-align: center; display: block; }
    .works-grid { grid-template-columns: 1fr; }
    .skill-icon { font-size: 0.9rem; border-radius: 8px; }
}



/* ==============================================
   Footer Styles
============================================== */
.l-footer {
  background-color: #f7f7f7;
  color: #333;
  /*font-family: sans-serif;*/
  line-height: 1.6;
}

/* CTAエリア */
.l-footer__cta {
  background-color: #ffca1c;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.l-footer__cta-title {
  font-size: 1.5rem;
  margin-bottom: 24px;
  font-weight: bold;
}

.c-button {
  display: inline-block;
  background-color: #fff;
  color: #333;
  padding: 16px 40px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.c-button:hover {
  opacity: 0.8;
}

/* メインエリア */
.l-footer__main {
  padding: 60px 20px;
}

.l-footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

/* 事業者情報 */
.l-footer__info {
  /*flex: 1 1 300px;*/
}

.l-footer__logo {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.l-footer__address {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.u-text-small {
  font-size: 0.75rem;
  color: #666;
}

.l-footer__sns {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 16px;
}

.l-footer__sns a {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
}

.l-footer__sns a:hover {
  text-decoration: underline;
}

/* ナビゲーション */
.l-footer__nav {
  display: flex;
  flex: 2 1 400px;
  gap: 40px;
}

.l-footer__nav-group {
  flex: 1;
}

.l-footer__nav-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #ddd;
}

.l-footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.l-footer__nav-list li {
  margin-bottom: 12px;
}

.l-footer__nav-list a {
  color: #555;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.l-footer__nav-list a:hover {
  color: #000;
}

/* コピーライト */
.l-footer__copyright {
  background-color: #e5e5e5;
  text-align: center;
  padding: 16px 20px;
}

.l-footer__copyright small {
  font-size: 0.8rem;
  color: #666;
}

/* レスポンシブ対応 (SP) */
@media screen and (max-width: 768px) {
  .l-footer__inner {
    flex-direction: column;
  }

  .l-footer__nav {
    flex-direction: column;
    gap: 30px;
  }
}
