/* Profile：写真・名前・紹介・屋号などの表・事業のきっかけ・ボタン（パソコンは写真を左、スマートフォンは縦に積む）。
   2026-11-12 昼に中身が増えたので、画面に入らないときは下へ送って読む（前は 1 画面に収めていた）。
   写真 → 名前 → 紹介 → 表 → 経歴 → 事業のきっかけ → ボタンの順にふわっと出す（CSS だけ。動きを減らす設定ではすぐ出す）。
   道案内（router.js）でほかの頁へ移っても、この見た目の指定は <head> に残る。選ぶ物は必ず .profile の中の物に絞る */

.profile {
  --rise: 700ms;                       /* 1 つが出きるまで */
  --rise-step: 160ms;                  /* 次の物が出始めるまでの間 */
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 108px 40px 76px;            /* 上はロゴとメニュー、下は足もと（どちらも画面に留まる）の分を空ける */
  text-shadow: var(--shadow-text);
  /* 日本語は文節の途中で折り返さず、最後の行に 1〜2 字だけ落ちるのを避ける。入りきらない語だけは途中で折る */
  word-break: auto-phrase;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.profile .profile-title { margin: 0; }

.profile-body {
  display: flex;
  align-items: flex-start;
  gap: 44px;
  margin-top: 30px;
  text-align: left;
}

/* 写真：丸く、幅 160px。元は縦長（325×411）なので、頭が切れないよう上に寄せて丸に入れる。空の写真なので白い縁で地の空と分ける */
.profile .profile-photo {
  flex: none;
  width: 160px;
  height: 160px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 0%;
  box-shadow: 0 10px 26px rgba(21, 24, 30, 0.28);
}

.profile-text { min-width: 0; max-width: 640px; }
.profile-name { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.35; letter-spacing: 0.04em; }
.profile-intro { margin: 14px 0 0; font-size: 16px; font-weight: 500; line-height: 1.85; }
.profile-intro strong { font-weight: 800; }

/* 屋号・制作・所在地・電話・メール：白い半透明の板（Contact の決まりの札と同じ色）に並べる */
.profile-table {
  width: 100%;
  margin-top: 22px;
  padding: 6px 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.profile-table th,
.profile-table td { padding: 8px 0; text-align: left; vertical-align: baseline; line-height: 1.55; }
.profile-table tr + tr th,
.profile-table tr + tr td { border-top: 1px solid rgba(255, 255, 255, 0.4); }
.profile-table th { width: 1%; padding-right: 26px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.profile-table td { font-size: 15px; font-weight: 500; }
.profile-table a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.profile-table a:hover { text-decoration-thickness: 2px; }

/* 事業のきっかけ：小さな見出しと、年と出来事の 3 行。表と同じ白い半透明の板に並べる */
.profile-history {
  margin-top: 18px;
  padding: 14px 22px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.profile-history-title { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: 0.04em; }
.profile-history-list { margin: 6px 0 0; padding: 0; list-style: none; }
.profile-history-list li { display: flex; gap: 18px; padding: 6px 0; line-height: 1.6; }
.profile-history-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.4); }
.profile-history .h-year { flex: none; width: 6.2em; font-size: 14px; font-weight: 700; white-space: nowrap; }
.profile-history .h-text { min-width: 0; font-size: 15px; font-weight: 500; }
/* 経歴は左の欄が社名なので、事業のきっかけ（年）より広く取る */
.profile-career .h-year { width: 9.6em; }

/* ボタン：ご依頼・お問い合わせ（オレンジ。黄色はトップの push、緑はホームページ制作のボタンで使っているため。白い字との見やすさの比 4.65）と、
   LINE 公式の友だち追加ボタンの絵（縦横の比を変えず、元の 232×72 より大きくしない）。どちらも高さ 52px（指で押せる 44px 以上） */
.profile-actions {
  --btn-h: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 20px;
}
.profile-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--btn-h);
  padding: 0 30px;
  border-radius: 999px;
  background: #d0440c;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: none;
  box-shadow: 0 3px 0 #9a3412, 0 6px 16px rgba(21, 24, 30, 0.26);
}
.profile-contact:active { transform: translateY(2px); box-shadow: 0 1px 0 #9a3412, 0 3px 10px rgba(21, 24, 30, 0.24); }
.profile-contact:focus-visible { border-radius: 999px; }
.profile-line { display: block; flex: none; }
.profile-line img { width: auto; height: var(--btn-h); max-width: 232px; }

/* ---- ふわっと出す：写真 → 名前 → 紹介 → 表 → 事業のきっかけ → ボタン ---- */
.profile .profile-photo,
.profile-name,
.profile-intro,
.profile-table,
.profile-history { animation: profile-rise var(--rise) var(--ease-rise) both; }
.profile-name { animation-delay: var(--rise-step); }
.profile-intro { animation-delay: calc(var(--rise-step) * 2); }
.profile-table { animation-delay: calc(var(--rise-step) * 3); }
.profile-career { animation-delay: calc(var(--rise-step) * 4); }
.profile-start { animation-delay: calc(var(--rise-step) * 5); }
.profile-actions { animation: profile-rise var(--rise) var(--ease-rise) both; animation-delay: calc(var(--rise-step) * 6); }
@keyframes profile-rise { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  .profile .profile-photo,
  .profile-name,
  .profile-intro,
  .profile-table,
  .profile-history,
  .profile-actions { animation: none; }
}

/* ---- スマートフォン（幅 767px まで。base.css と同じ境目）：縦に積んで真ん中にそろえる ---- */
@media (max-width: 767px) {
  .profile { padding: 84px 16px 64px; }
  .profile .profile-title { font-size: 40px; }
  .profile-body { flex-direction: column; align-items: center; gap: 14px; margin-top: 12px; text-align: center; }
  .profile .profile-photo { width: 140px; height: 140px; }
  .profile-text { width: 100%; }
  .profile-name { font-size: 21px; }
  .profile-intro { margin-top: 10px; font-size: 14px; line-height: 1.75; }
  .profile-table { margin-top: 16px; padding: 4px 16px; }
  .profile-table th { padding-right: 16px; font-size: 13px; }
  .profile-table td { font-size: 14px; }
  /* 事業のきっかけは左にそろえる（年と出来事を縦に積む） */
  .profile-history { margin-top: 14px; padding: 12px 16px 10px; text-align: left; }
  .profile-history-title { font-size: 14px; }
  .profile-history-list li { flex-direction: column; gap: 0; }
  .profile-history .h-year,
  .profile-career .h-year { width: auto; font-size: 13px; }
  .profile-history .h-text { font-size: 14px; }
  /* ボタンは 2 つを 1 列に並べる（幅 390 で収まる大きさ。もっと狭い画面では折り返して 2 段） */
  .profile-actions { --btn-h: 46px; justify-content: center; gap: 10px; margin-top: 14px; }
  .profile-contact { padding: 0 18px; font-size: 15px; }
}
