/* =====================================================================
   index-page.css
   TOPページ(index.html)だけで使うCSSです。
   共通部分(ナビ・フッター・配色など)は common.css 側にあるので、
   このファイルは必ず common.css の後に読み込んでください。

   中のコメントは、元の style.css からそのまま移してきたものです。
===================================================================== */

/* ============ HERO ============ */
/* ヒーロー内に画像や文字を重ねることが多いので、その基準として使う
   ----トップページの最初の大きなエリアを、画面いっぱいの高さにして、
       最低640pxを確保し、はみ出した部分は隠し、背景色を設定する---- */
.hero{
  position:relative;  /* .heroの中にある絶対配置（position: absolute）の要素の基準位置にする  */
  height:100vh;       /* 画面の高さ100% 最初に画面を開いたとき、ほぼ1画面分いっぱいに表示する */
  min-height:640px;   /* どんなに画面が小さくても、高さ640px未満にはしない */
  overflow:hidden;    /* .heroの領域からはみ出した部分を表示しない。特に背景画像の拡大・アニメーション・スライドなどを使うときによく使う */
  background:var(--dusk-deep);   
}
/* .hero の中に岩山の写真を背景として全面表示する部分 */
.hero-photo{
  position:absolute; inset:0;       /* 通常の配置から外して、自由に位置を指定できる状態
                                       inset:0;はtop: 0;right: 0;bottom: 0;left: 0;をまとめて指定。
                                       つまり上下左右いっぱいに広げること　*/
  background-image:url("../images/rock_images.jpg"); /* CSSの背景画像 */
  background-size:cover;            /* 写真が表示領域を完全に覆うように拡大・縮小する */
  background-position:center 62%;   /* 背景画像を横方向は中央、縦方向は62%の位置を基準に表示する */
}
/* 岩山写真の上に暗めのグラデーションを重ねる部分 */
.hero-photo::after{              /* .hero-photoの中に、擬似的な要素を1つ作る（イメージ的にはCSSで作られた透明なレイヤー） */
  content:'';                    /* ::afterを表示させるために必要な指定 */
  position:absolute; inset:0;    /* ::afterは.hero-photoを基準に配置 */
  /* 上から下に向かって、暗さが変化するグラデーションで.15は透明度で15％の意味
     0deg	下 → 上　90deg	左 → 右　180deg	上 → 下　270deg	右 → 左 */
  background:linear-gradient(180deg, rgba(19,27,44,.15) 0%, rgba(19,27,44,.05) 45%, rgba(19,27,44,.65) 100%);
}
/* ヒーローエリア内の切れ目の影の部分 */
.hero-tear-shadow{
  position:absolute; inset:0;
  width:100%; height:100%;
  z-index:2;
  filter:blur(7px);     /* フィルターブラー（ぼかし） */
  pointer-events:none;  /* この要素をマウス操作の対象にしない */
}
/* 和紙を表示してクリップパス（SVG）で切り抜く */
.hero-paper{
  position:absolute; inset:0;
  background-image:var(--washi-img);    /* --washi-imgという名前のCSS変数に登録してある和紙画像を、背景画像として表示する */
  background-size:cover;
  background-position:center;
  z-index:3;
  clip-path:url(#paperTearClip);        /* id="paperTearClip"という形に合わせて、この要素を切り抜いて表示する */
  filter:drop-shadow(0 0 18px rgba(20,14,8,.35));
  transition:opacity .7s ease, transform .7s ease;
  transform-origin:center;              /* この要素をtransformで変形するときは、中央を基準に変形 */
}
/* 現状.paper-awayが見つからないので必要ないかも
   意味はpaper-awayクラスが付いたら、和紙を少し左上へ移動させながら、完全に透明にする */
.hero-paper.paper-away{
  opacity:0;
  transform:translateX(-6%) translateY(-3%);
}
/* ここで和紙が切れているアニメーションを演出している */
.hero-paper-cover{
  position:absolute; inset:0;
  background-image:var(--washi-img);
  background-size:cover;
  background-position:center;
  z-index:4;                    /* 重なりを.hero-paperより上に */
  clip-path:inset(0 0 0 0%);    /* inset()は上下左右からどれだけ切り取るか　つまり最初は全く切らない */
  box-shadow:-14px 0 26px rgba(20,14,8,.25);  /* 和紙の端に影を付けるなくてもOK */
  transition:clip-path 3s cubic-bezier(.61,0,.2,1);
  /* 1.4秒の中で、cubic-bezier(.61,0,.2,1)でどういう速度で動いて切り抜くか
     cubic-bezier(.61,0,.2,1)は、最初はスッと動き出して、途中でしっかり進み、最後に自然に減速して止まる感じ */
}
/* これがないと切り抜いた状態にならない */
.hero-paper-cover.swept{
  clip-path:inset(0 0 0 100%);  /* 左側から和紙を切り取った状態 */
}



.hero-content{
  position:relative;
  z-index:5;
  height:120%;
  display:flex;             /* Flexboxレイアウトにする。これを指定すると下記が使える */
  flex-direction:column;    /* Flexboxの並び方向を縦方向にする。カラム：縦の列 */
  align-items:center;       /* 縦並びになった要素を、横方向の中央に揃える。 */
  justify-content:center;   /* 今度は縦方向の中央に配置する。 */
  text-align:center;        /* 文字そのものを中央揃えにする。 */
}

/* ｈ１のみを右に移動させる */
.hero-content h1 {
  align-self: flex-end;
  text-align: right;
  padding:0 26px 55px 0;
}
/* センターロゴの横幅設定 */
.hero-logo-pivot{
  width:160px;
  transform: translateY(-5px); /* ロゴの着地地点の変更 */
}
/* ロゴが上から落ちてくるアニメーションの設定 */
.hero-logo-drop{
  opacity:0;    /* 完全に透明にする。 */
  transform:translateY(-420px) rotate(-6deg); /* ロゴが本来ある場所から上に420px、反時計回り（ロウテイツ）に６度傾いている */
  transition:transform 1s cubic-bezier(.28,1.65,.4,1) .1s, opacity .5s ease .05s;  /* cubic-bezier(.28,1.65,.4,1)で落ちてくる速度と勢い　opacity .5s ease .05s;は透明→表示を0.5秒かけて変化させる */
  filter:drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));   /* ロゴのドロップシャドウ　左右0上下0ぼかし15pxの色 */

}
.hero.revealed .hero-logo-drop{
  opacity:1;    /* 上とは逆で見える　0.5だと半透明 */
  transform:translateY(0) rotate(0deg);
}
.hero{ opacity:1; transform:translateY(0); }
/* ヒーローエリア・タイトル設定 */
.hero-title{
  font-family: 'Stardos Stencil';
  font-weight: 700;
  font-style:italic;
  color:rgba(150, 150, 150, 0.7);
  line-height:1;     /*この2行の縦方向の間隔を調整する。1.08は「文字サイズの1.08倍」という意味*/
  font-size:clamp(1.6rem, 5vw, 3.6rem);   /* 2.3rem,は最小 6vw,標準 4.3rem最大 */
  text-shadow:0 3px 5px rgba(10,8,4,.4);
  opacity:0;
  transform:translateY(18px);
  transition:opacity .9s ease 1s, transform .9s ease 1s;
}
.hero.revealed .hero-title{ opacity:1; transform:translateY(0); }
/* ヒーローエリア・説明文設定 */
.hero-sub{
  font-weight: 500;
  margin-top:-30px;
  font-size:clamp(0.8rem, 1.5vw, 1.8rem); 
  color:var(--ink-soft);
  line-height:1.7;  
  letter-spacing:.08em;
  text-shadow:0 0px 20px rgba(255, 255, 255, 50);
  opacity:0;
  transition:opacity .9s ease 1.2s;
  padding:0 20px 0 20px;
}
.hero.revealed .hero-sub{ opacity:1; }

.scroll-cue{
  /* スクロールを下から10pxで、画面の左右中央に */
  position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:1px;
  color:var(--ink-soft); font-size:.5rem; letter-spacing:.3em;
  opacity:0;
  z-index:5;
  transition:opacity 1s ease 1.4s;
}

.hero.revealed .scroll-cue{ opacity:.8; }
 /* スクロールの棒の動き幅1pxで高さ40pxで、2秒かけて上から下へ */
.scroll-cue .line{ width:1px; height:40px; background:var(--ink-soft); animation:cue-drop 2s ease infinite; }
@keyframes cue-drop{
  0%{transform:scaleY(0); transform-origin:top;}
  50%{transform:scaleY(1); transform-origin:top;}
  50.001%{transform-origin:bottom;}
  100%{transform:scaleY(0); transform-origin:bottom;}
}

/* ============ SECTION BASE ============ */

section{ padding:120px 0; }
.section-head{ margin-bottom:50px; }
.section-eyebrow{ display:block; font-size:.78rem; color:var(--rust); letter-spacing:.06em; margin-bottom:10px; }
.section-head h2{ font-size:clamp(1.7rem, 3vw, 2.3rem); }   /* section内のh2の文字設定 */
.section-head h2 .en{ font-style:italic; color:var(--rust-deep); }    /* section内enの文字設定 */
.rule{ width:70px; height:2px; background:var(--rust); margin-top:8px; }    /* h2の下の横棒の設定 */

/* ============ PROFILE ============ */

.profile{ background:var(--paper-deep); }   /* porfileの背景の色 */
/* プロフィール部分を2列にして、左を300pxの写真、右を残り全部の文章にし、両者の間を64px空けて、上端を揃える */
.profile-grid{ display:grid; grid-template-columns:300px 1fr; gap:64px; align-items:start; }
.profile-photo{ position:relative; }
.profile-photo .frame{
  width:100%; aspect-ratio:4/5;
  background-image:url("../images/image_me.jpg");
  background-size: contain;       /* コンテイン：写真全体が枠内に収まるように表示する。 */
  /* 写真が切れても枠いっぱいに表示する */
  background-position: center;
  background-repeat: no-repeat;
  clip-path:polygon(6% 0%, 100% 0%, 100% 92%, 92% 100%, 0% 100%, 0% 8%);
}

/* porfile写真の下の文字設定 */
.profile-caption{ margin-top:18px; font-size:.82rem; color:var(--ink-soft); border-left:2px solid var(--rust); padding-left:14px; }
/* グラフィックデザイナー / Webデザイナーの文字設定 */
.profile-role{ font-size:1.15rem; color:var(--rust-deep); margin-bottom:6px; font-family:'Shippori Mincho', serif; font-weight:700; }
/* デザイン業界歴 20年以上 */
.profile-years{ font-size:.85rem; color:var(--ink-soft); margin-bottom:26px; }
.profile-body p{ margin:0 0 15px; }

.pull-quote{
  /* 「素早く・丁寧に」を～～～の枠の設定　左に縦棒 */
  margin:30px 0; padding:22px 26px; background:var(--paper);
  border-left:3px solid var(--gold);
  font-family:'Shippori Mincho', serif; font-size:1.05rem; color:var(--rust-deep); font-weight:700;
}
/* strengthsの中身を3等分の横3列に並べて、項目同士を16px離し、上下に余白をつける */
.strengths{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:26px 0 34px; }
/* strengthsの枠の設定 */
.strengths li{ background:var(--paper); border:1px solid var(--line); padding:18px 16px; font-size:.86rem; line-height:1.6; }
.strengths li b{ display:block; font-family:'Shippori Mincho', serif; color:var(--rust); font-size:1rem; margin-bottom:6px; }
/* 「対応可能な業務」と「制作環境」を左右2列に並べ、その上に区切り線を入れて、適度な余白をつける */
.skill-columns{ display:grid; grid-template-columns:1fr 1fr; gap:60px; margin-top:36px; padding-top:32px; border-top:1px solid var(--line); }
.skill-columns h4{ font-family:'Shippori Mincho', serif; font-size:1.1rem; color:var(--ink-soft); letter-spacing:.08em; margin:0 0 14px; }
.skill-columns li{ font-size:.9rem; padding:7px 0; border-bottom:1px dotted var(--line); }

/* strengths 以下を画面中央に配置 */
.profile-lower{ margin-top:30px; text-align:center; }
.profile-lower .strengths{ text-align:left; }
.profile-lower .skill-columns{ max-width:640px; margin-left:auto; margin-right:auto; text-align:center; }


/* ============ WORKS ============ */

.works-grid{ display:grid; grid-template-columns:1fr 1fr; gap:100px; margin-bottom:44px; }
.work-cat h3{ font-family:'Fraunces', serif; font-style:italic; color:var(--rust-deep); font-size:1.15rem; margin-bottom:18px; }
.work-card{
  display:block;
  aspect-ratio:16/11;
  background-size:cover;        /* coverとcontainの違いは、枠を完全に埋める（写真が切れる）か写真全体を見せる（隙間ができる）の違い */
  background-position:center;
  background-repeat:no-repeat;  /* 画像を繰り返さない　coverを使い際は、no-repeatを入れたほうが良い */
  position:relative;
  overflow:hidden;              /* 要素の枠からはみ出した部分を隠すという指定 画像のズームやホバーアニメーションを入れるなら、かなり重要 */
  transition:transform .35s ease, box-shadow .35s ease; /* transition：CSSの変化をアニメーションさせる指定で、パッと切り替えず、0.35秒かけて滑らかに変化させる。 */
}
/* data-labelの文字の設定 */
.work-card::after{
  content:attr(data-label);
  position:absolute; left:16px; bottom:10px; color:#F4EFE3;
  font-family:'Fraunces', serif; font-style:italic; font-size:.85rem; letter-spacing:.03em;
}
/* 画像の上にカーソルを持ってきたとき、ホバーする設定 */
.work-card:hover{ transform:translateY(-6px); box-shadow:0 20px 34px rgba(30,20,10,.24); }
/* 写真のURL */
.work-card.graphic{background-image:url("../images/graphic/graphic_01.jpg");}
.work-card.web{background-image:url("../images/web/web_01.jpg");}

/* ココナラ実績の設定 */
.coconala-card{
/* 要素を横並び    縦方向の中央揃え         左右の端に配置      間隔を24px空ける 【重要】横幅が足りなくなったら、次の行に折り返す。 */
  display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap;
  background:var(--dusk); color:#F4EFE3; padding:38px 44px;
}
.coconala-card h4{ font-family:'Shippori Mincho', serif; font-size:1.15rem; margin-bottom:8px; color:#F4EFE3; }
/* max-width:44ch; は、テキストの横幅を「54文字分くらいまで」に制限する指定 */
.coconala-card p{ margin:0; font-size:.88rem; color:#C7CEDC; max-width:54ch; }

/* ============ PRICING ============ */

.pricing{ background:var(--paper-deep); }
.pricing-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; }
.price-table{ background:var(--paper); border:1px solid var(--line); }
.price-table-head{ padding:20px 26px; background:var(--rust); color:var(--paper); }
.price-table-head.web{ background:var(--dusk); }
.price-table-head span{ font-family:'Fraunces', serif; font-style:italic; font-size:.8rem; letter-spacing:.05em; display:block; opacity:.85; }
.price-table-head h3{ color:inherit; font-size:1.1rem; margin-top:2px; }
table{ width:100%; border-collapse:collapse; }
table td{ padding:15px 26px; font-size:.88rem; border-bottom:1px dotted var(--line); }
table tr:last-child td{ border-bottom:none; }
table td:last-child{ text-align:right; white-space:nowrap; color:var(--rust-deep); font-weight:500; }
.price-note{ margin-top:22px; font-size:.8rem; color:var(--ink-soft); }
.pricing-cta{ text-align:center; margin-top:44px; }
.btn-solid{
  display:inline-block; padding:16px 40px; background:var(--rust); color:var(--paper);
  font-size:.9rem; letter-spacing:.04em; transition:background .25s ease, transform .25s ease;
}
.btn-solid:hover{ background:var(--rust-deep); transform:translateY(-2px); }

/* ============ NEWS ============ */
/* align-items:baseline;　Flexboxで並んでいる要素の「文字の基準線」を揃える（大きさの違う文字を横並びにする場合） */
.news-list li{ display:flex; gap:28px; align-items:baseline; padding:15px 0; border-bottom:1px solid var(--line); }

.news-list li:first-child{ border-top:1px solid var(--line); }
.news-date{ flex-shrink:0; width:110px; font-family:'Fraunces', serif; font-style:italic; color:var(--rust); font-size:.85rem; }
.news-list a{ font-size:.94rem; border-bottom:1px solid transparent; transition:border-color .2s ease, color .2s ease; }
.news-list a:hover{ border-color:var(--rust); color:var(--rust-deep); }

/* ============ CONTACT ============ */

.contact{ background:var(--ink-soft); color:#F4EFE3; text-align:center; }
.contact h2{ color:#F4EFE3; }
.contact .rule{ margin-left:auto; margin-right:auto; background:var(--gold-soft); }
.contact p{ max-width:55ch; margin:26px auto 34px; color:#C7CEDC; font-size:.95rem; }
.btn-gold{
  display:inline-block; padding:17px 46px; background:var(--gold-soft); color:var(--dusk-deep);
  font-size:.92rem; letter-spacing:.05em; transition:transform .25s ease, background .25s ease;
}
.btn-gold:hover{ transform:translateY(-2px); background:#F1D9A0; }

/* ============ index.html RESPONSIVE ============ */
@media (max-width:900px){
  .profile-grid{ grid-template-columns:1fr; }
  .profile-photo{ max-width:320px; }
  .strengths{ grid-template-columns:1fr; }
  .skill-columns{ grid-template-columns:1fr; gap:22px; }
  .works-grid{ grid-template-columns:1fr; gap:52px; }
  .pricing-grid{ grid-template-columns:1fr; }
}

@media (max-width:760px){
  section{ padding:84px 0; }
  .hero-title{
    text-shadow: 0 0 10px rgba(252, 252, 252, 0.8);
    margin: 60px 0 0 0;
    line-height:1.1;
  }
  .hero-sub{
    margin: 0 0 -70px 0;
  }
  /* スマホ表示では、ヒーロー部分のロゴの横幅を130pxにする。 */
  .hero-logo-pivot{ width:110px; transform: translateY(-45px); }
  .coconala-card{ padding:30px 26px; }
  .news-list li{ flex-direction:column; gap:6px; }
  .news-date{ width:auto; }
}
