@charset "utf-8";

/* 
  Portfolio CSS
============================== */

/* 全体共通設定 ==================== */

:root {
  --color-white: #ffffff;
  --color-black: #000000;
  --color-darkGray: #666;
  --color-lightgray: #aaa;
}

html {
  font-size: 16px;
  line-height: 1.8;
  font-family: sans-serif;
  background-color: var(--color-white);
  color: var(--color-black);
  scroll-behavior: smooth;
}

img {
  width: 100% !important;
  max-width: 100% !important;
  height: 200px !important;       
  object-fit: contain !important;  
  background-color: transparent !important;
}

#PROFILE img {
  width: auto !important;
  height: 300px !important;
}
/* aタグのアニメーション時間 */
a {
  transition: 0.6s;
}

/* 見出しの共通設定 */
h1,
h2,
h3 {
  font-weight: bold;
  text-align: center;
}

/* 見出しの個別設定 */
h1 {
  font-size: 40px;
}

h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
}

/* ==================== 全体共通設定 */

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
}

/* 各セクションの設定 ==================== */

/* Header ######################################## */

header nav {
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999; 
}

header .logo {
  padding: 20px 0;
}

header .eyeCatch {
  background-image: url(../images/d34b92eba679138ac057331478e8d8ae.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  padding: 160px 20px 100px 20px; 
  text-shadow: 0 0 8px rgba(254, 253, 253, 0.8);
}

header .eyeCatch h1,
header .eyeCatch h2,
header .eyeCatch h3 {
  color: #543a29;         
  margin: 0;                
  line-height: 1.3;         
}

header .eyeCatch h1 {
  font-size: 42px !important; 
  letter-spacing: 0.05em;   
}

header .eyeCatch h2 {
  font-size: 24px !important; 
  margin: 5px 0 !important;   
  font-weight: bold;         
}

header .eyeCatch h3 {
  font-size: 38px !important; 
  letter-spacing: 0.1em;   
}

/* ######################################## Header */

/* Navigation ######################################## */

nav {
  text-align: right;
  top: 0;
}

nav ul {
  max-width: 1000px;
  margin-left: auto;
  margin-right: 20px;
  display: flex;
  justify-content: space-between;
  background-color: transparent;
}

nav ul li a {
  display: inline-block;
  font-size: 20px;
  font-weight: bold;
  padding: 10px;
  color: var(--color-black);
  background-color: transparent;
}

nav ul li a:hover {
  color: var(--color-black);
}

nav ul li a:hover {
  color: var(--color-black);
  opacity: 0.6; 
  transform: translateY(-2px);
}

/* ######################################## Navigation */





/* Main ######################################## */

/* Main 共通設定 ==================== */
main p {
  margin-bottom: 16px;
}

main>section {
  padding: 60px 20px;
  scroll-margin-top: 40px;
  background-color: var(--color-white) !important; 
}

main section .innerWrap {
  max-width: 1000px;
  margin: 0 auto;
}

.frame {
  background-color: transparent !important;
  box-shadow: none !important; 
  padding: 0px !important;
  border-radius: 0px !important;
  display: flex;
  flex-direction: column; 
  gap: 15px;             
}


/* カラム（列）設定 */
.column {
  display: grid;
  gap: 40px;
}

/* 2カラム */
.col2 {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  display: flex;
  gap: 30px;
}

.col2 h3 {
  text-align: left;
}

.col3 {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  gap: 40px !important; 
  flex-wrap: wrap !important;
}

.col3 h3 {
  text-align: center;
}

.col3 .frame {
  flex: 1 !important;
  min-width: 250px !important;
  max-width: 450px !important;
}

.meishi-img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important; 
  display: block;
  margin: 0 auto;
}

/* 4カラム */
.col4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 30px 20px;
  text-align: center;
}

/* 5カラム */
.col5 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}


/* Main Works ==================== */
.detailLink {
  text-align: right;
  margin-bottom: 0;
}

.detailLink a {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 4px;
  background-color: var(--color-darkGray);
  color: var(--color-white);
  font-weight: bold;
}

.detailLink a:hover {
  padding: 4px 20px;
}


/* Main Skill ==================== */
#skill .rating {
  border: 2px solid var(--color-black);
}

#skill .rating span {
  display: inline-block;
  background-color: var(--color-lightgray);
  text-align: center;
  padding: 0 4px;
}

.rating-20 { width: 20%; }
.rating-40 { width: 40%; }
.rating-60 { width: 60%; }
.rating-80 { width: 80%; }


/* Main Contact ========== */
#CONTACT {
  padding: 40px 20px;
}

#CONTACT h2 {
  margin-bottom: 24px !important;
}

#CONTACT form {
  max-width: 400px !important;
  margin: 0 auto !important;
}

#CONTACT form dl {
  margin-bottom: 16px;
}

#CONTACT form dt {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 6px;
  text-align: left;
}

#CONTACT form input[type="text"],
#CONTACT form textarea {
  background-color: #ffffff !important;
  border: 1px solid #ccc !important; 
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important; 
  padding: 10px !important;
  border-radius: 4px !important;
  resize: none !important;
  font-size: 15px !important;
}

#CONTACT form textarea {
  height: 120px !important;
}

#CONTACT form textarea::placeholder {
  color: #999 !important;
  font-size: 14px !important;
}

/* 送信ボタンの配置エリア */
#CONTACT form .submit {
  text-align: center !important;
  margin-top: 24px !important;
  padding: 0 !important;
}

#CONTACT form .submit input {
  display: inline-block !important;
  width: 150px !important; 
  height: 40px !important;      
  background-color: #ffffff !important; 
  color: #000000 !important;            
  border: 1px solid #ccc !important;   
  padding: 0 !important;         
  border-radius: 4px !important;       
  font-size: 15px !important;
  cursor: pointer;
  transition: background-color 0.3s;    
}

/* 送信ボタン ホバー時 */
#CONTACT form .submit input:hover {
  background-color: #eeeeee !important; 
  color: #000000 !important;
  border-radius: 4px !important;       
}

/* ######################################## Main */



/* PageTop ######################################## */
#pageTop {
  text-align: center;
  padding: 20px 0; 
}

#pageTop a {
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  width: 50px;       
  height: 50px;     
  border-radius: 50%;
  background-color: #543a29; 
  color: #ffffff;   
  font-size: 16px;   
  text-decoration: none;
  transition: 0.3s;
}

#pageTop a:hover {
  background-color: var(--color-darkGray); 
  color: #ffffff;
  transform: translateY(-4px); 
}
/* ######################################## PageTop */


/* Footer ######################################## */
footer {
  background-color: #fada8e;
  color: #654a39;
  text-align: center;
  padding: 30px 0;
}
/* ######################################## Footer */


main section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px; 
}

main section h2::before {
  content: "・・・・・・";
  color: #543a29; 
  font-size: 32px;      
  letter-spacing: 6px;  
  line-height: 1;  
}


main section h2::after {
  content: "・・・・・・";
  color: #543a29;
  font-size: 32px;      
  letter-spacing: 6px;  
  line-height: 1;  
}